WPPizza – Google Cloudprint
Important: January 2020 – Google Cloudprint Discontinuation Notice
November 2020: This Plugin has now been discontinued and is only listed here for historical reasons. A possibly suitable alternative can be found here.
As of December 31, 2020 Google Cloud Print will no longer be supported by Google. Beginning January 1, 2021, devices across all operating systems will not be able to print using Cloud Print. Therefore the “WPPizza – Google Cloudprint” plugin will only continue to function until end of December 2020.
For full details please also see here
I will do my best to find alternative solutions/implementations in the coming months that can be used to replace this plugin. However, at this moment in time there does not appear to be a *universally* usable solution available that allows to print directly to a printer from a website without any additional user interaction. (Please let me know if you hear of anything that might be suitable though)
Just to be absolutely clear: unless the situation changes, the “WPPizza – Google Cloudprint” plugin will only continue to function until end of December 2020. Absolutely no refunds will be given if you still decide to buy this plugin even though you have now been made aware of this limitation !!!
send any WPPIZZA orders directly to your google cloud connected/enabled printer while also being stored on your google drive
if no printer is connected, (pdf) files of your orders will just be stored in your google drive without being printed
- WPPIZZA 2.11.9+, cURL 7.16.2+
- As of version 4.0+ WPPizza v3.x compatible
- you must (obviously) have a google account
- I am not able to advise you on your specific printer as to how to set it up, if it is even capable of receiving google cloudprint documents or indeed as to what format(size) your printer will be able to print documents ii received from the google cloudprint service
- The “WPPizza – Google Cloudprint” plugin simply sends an order according to your chosen/selected/set template settings in “Wppizza->Templates->Print” to the google cloudprint service.
- When a document has been sent by this plugin to the google cloudprint service, it is *entirely* between the google cloudprint service and your printer to print the document as required. The plugin/software has no influence whatsoever about that process once the wppizza order has been sent to the cloudprint service
- Default print templates are set to be 100% page width (editable in wppizza->template). It is the printers responsibility to make page output for printing to fit onto the media selected. (ALthough some printers can be tricked by simply setting the margins or width of the print template css)
- The plugin has ZERO control over your printer sizing. i.e if you need to print to A5 but your printer will always try to print A4 when receiving cleoudprint documents there is nothing the plugin can do about this and you will have to contact the manufacturer
- The following link might be of interest too: https://www.wp-pizza.com/topic/question-google-cloudprint/
- install by uploading the zip file in the normal wordpress manner from withing the plugin screen (add new->upload) and activate
A) Add Printer to “Google Cloud Print”
- to add printers to Google Cloud Print follow the instructions here: https://support.google.com/cloudprint/answer/1686197
- for a list of cloud ready printers (according to google) please see here http://www.google.com/cloudprint/learn/printers.html
B) Creating Google OAuth Credentials
- Create a new project to get the corresponding OAuth credentials using Google developer console by going to https://console.developers.google.com/
(you may have to log in to your google account if not already logged in)
Note: If you have issues accessing this page from there you can also try going directly to https://console.developers.google.com/projectcreate or https://console.cloud.google.com/cloud-resource-manager -> Create New Project
- click on “Create a project”
- give the project a name and click on “Create”.
- wait a few moments until it has been created
- click on “Enable and manage APIs”
- note: If you have problems finding a link to the API pages page, try going directly to https://console.developers.google.com/apis/dashboard. Your current project should also already be selected there
- go to “Credentials” -> “OAuth consent screen”, enter a product name and click save.
- go to “Credentials” -> “Credentials” -> “Create Credentials” and select “OAuth client ID”.
- In the following screen choose “Web application”, give it a name and enter the “Authorized redirect URIs” as given to you in your “wppizza->cloudprint” screen. Click “Create”.
- In the resulting screen
copy the “Client ID” and “Client Secret” into the relevant fields in
WPPizza->Cloudprint->Settingsand Save .
- Click on “Click here to get token” in wppizza-> google cloudprint (will open in a new window). You will get a screen similar to this.
- Click “Allow”.
– If you do not get this screen, but error messages , double check your Redirect URIs settings under “APIs & Auth -> Credentials” (see 8 above). These must be EXACTLY the same as the url displayed in the wppizza->cloudprint settings (watch out for http:// vs. https:// for example
– If you get a screen that says “This App isnt verified” or similar, click on “Advanced ” and continue from there (the idea of it all *IS* to actually verify it)
- Click on “Click here to get Token” in wppizza->google cloudprint (if you need to login into google again, do so ) and copy and paste this access token into the relevant token field and save.
that should be it it
- The first thing to do is to enter “__google_docs” (without the quotes) into the “Printer Id” settings of the plugin to make sure the plugin is not the one causing errors – ding so will bypass/ignore any printer connections to be able to narrow things down
- Once you have done this, do an order and check if you have a pdf/document of that order in your google drive. If this is the case, the plugin is working as expected and the problem is a communication error between google cloudprint service and your printer
- If you do NOT have a document in your google drive now, the problem is – most likely – software related (either the plugin itself or other scripts interfering or causing issues). So turn on debug and check the debug.log.
- You also want to check if there is perhaps a related logfile in [wp-content-path]/plugins/wppizza/logs which might tell you something
- If you DO however have a document in your google drive with the “__google_docs” settings , the plugin is working as expected and you will have to check the communication between the google cloudprint service and your particular printer.
- I.e re-enter and double check the printer id, token etc etc (there are reports of WIN10 updates resetting/changing printer id’s !). Then again check the above mentioned logfiles for clues
in case this is of interest to anyone using interfax to send orders as faxes:
there also *appears* to be an implementation by interfax to send google docs as fax documents instead/as well.
although I have no experience with this particular interface, this link might be useful to someone and I would be glad to hear if this works (or not as the case may be)
Screenshots – (click images for larger versions)