Star Europe
Forum Replies Created
-
Forum: Plugins
In reply to: [Star CloudPRNT for WooCommerce] Start Cloud Printer not displayingYour printer Server URL is being blocked by your Go Daddy firewall. You need to whitelist this for it to work.
Please visit the URL in a web browser manually to see the error yourself.
Forum: Plugins
In reply to: [Star CloudPRNT for WooCommerce] Questions with Auto PrintHi wesleyli,
Sorry for the delay in getting back to you, we don’t actively monitor this forum. In the future, for fast support we recommend e-mailing us directly on the following address: support@star-emea.com
This plugin integrates with WooCommerce by using hooks which WooCommerce provide. These hooks allow our code to be executed when certain events occur within the WooCommerce lifecycle, for example you can hook onto order status changes.
The way our plugin detects a successful order has been placed is when the WooCommerce “Thank you / confirmation” page is displayed, this is known as the woocommerce_thankyou event. So as you have rightly discovered, if PayPal does not automatically return back to WooCommerce, then that event is not fired so the plugin code will not be executed. There may be better hooks to use that you can look into and try changing but from our testing the “thankyou” hook seems to be the most reliable way.
To answer your second question, yes it is possible to modify the layout of the receipt. As of 1.0.2, you can edit the “order-handler.php” file which basically uses the Star Line Mode builder class to generate the receipt content. We plan to add in support for PNG image printing soon too (this is already possible on the printer side but not implemented in the plugin currently), this will allow for greater customisation.
You can print 2 receipts as well, as of 1.0.2, along with the order history function you can specify the copy count too by modifying the “printer_star_line.inc.php” function, just change the last parameter of line 102 to your desired amount of copies.
E.g:
star_cloudprnt_queue_add_print_job($this->printerMac, $this->tempFilePath, 1); // 1 copy
star_cloudprnt_queue_add_print_job($this->printerMac, $this->tempFilePath, 2); // 2 copies
star_cloudprnt_queue_add_print_job($this->printerMac, $this->tempFilePath, 5); // 5 copiesWe plan to add this into the interface too, so you won’t have to change the actual code in the future.