WPPizza – A Restaurant Plugin for WordPress › Support › Feature Requests › Auto print – add how many pages to print
- AuthorPosts
- 1 January, 2021 at 1:47 am #53056
for WPPizza – Autoprint,
Can we add set how many pages to print? I was able to set it in google cloud print, but seems like the new plugin doesn’t have such feature.
Clients wants to have 2 exact copy of the same order, one for kitchen, one for packaging. Thanks
1 January, 2021 at 12:35 pm #53057as there are multiple different ways to use the plugin (like storing the order emails somewhere or sending things to different printers etc ) there is no global “number of copies” or similar.
However, you can simply enter the same printer id multiple times (comma separated) in the relevant field I would think.
Hope that helps
1 January, 2021 at 5:41 pm #53075i just got the following from another user, so it appears this is in fact not possible (at the moment at least) unless you add the same printer 2x somehow . If anyone has any better idea(s), i’d be more than happy to hear it.
I’ll also have a rummage around if i can find some other way perhapsJust to let you know you can’t put the same printer id in twice (comma separated) when using printnode. I tried and it only printed one. I noticed in the printnode docs it says it ignores duplicate printer id’s. I can’t think of anyway at the moment to get it to do 2 copies, other than maybe adding the printer driver twice so I get 2 different IDs.
3 January, 2021 at 3:14 am #53095as of v1.2 multiple copies are now supported (as long as the printer supports this to start off with) by adding “:2” after the printer id
i.e enter “123456:2” [to print 2 copies] , “123456:3” [ to print 3 copies] and so onalso see https://www.wp-pizza.com/downloads/wppizza-autoprint/ for more details
10 January, 2021 at 4:51 pm #53277Hello there.
I was wondering if it is (or could be in the future) possible to print orders on different printers based on “Delivery by Post/Zip-Code”. e.g. there could be an extra field in “Delivery by Post/Zip-Code” plugin, like the e-mail field, where we could enter the printer id (based on printnode) so that every order would be printed based on that.?!10 January, 2021 at 7:40 pm #53281@petroni417
it’s not very likely that there will be an y extra fields along those lines (as no doubt everyone will want something different based on different things)
However, I am happy to add a filter to the plugin in an update that allows people to set printids on whatever order value they want to base it on10 January, 2021 at 10:31 pm #53290Great. I only said that because I have 3 stores and the only way I could thing of to print the specific order on the specific store, was based on that model (Delivery by Post/Zip-code). You know better how things work, so I look forward for the update. Thank you!
11 January, 2021 at 3:20 am #53296filter(s) added as of 1.3.1
see: https://docs.wp-pizza.com/developers/?section=wppizza-autoprint12 January, 2021 at 7:13 pm #53358Well, that was quick. Thank you very much for the quick respond. Althought I have no idea how to use filters-actions etc. (where to put them, what to write ….)
Hopefully I’ll find something on youtube-google, so I can understand. Again thank you.12 January, 2021 at 7:38 pm #53361@petroni417
you might want to also have a look here then to start off with
https://docs.wp-pizza.com/developers/?section=filters-actions-functions13 January, 2021 at 8:33 pm #53381Can you please help me further about this? If not, I can undertand.
The value I want this filter to work based on, is the “Label [post/zipcode or area]”, let’s say that i have 3 different areas, “AAA”,”BBB” & “CCC”. I have 3 different printers “111”, “222” & “333”.
I want when the order comes from “BBB” it should be printed on “222” and the default, when the orders comes from “CCC” it should be printed on “111” and “333” and the default.how should i write the code?
if($order_details['ordervars']['{some-order-value}']['value'] == 'some value' && $printnode_id = '123456'){ $printnode_id= '987654'; }
sorry for being anoying
14 January, 2021 at 2:47 am #53389>how should i write the code?
you should write it depending on the parameters you will find in $order_details (it should be quite obvious what is what if you output that array somewhere ) and your requirements/conditionals as needed.
I don’t understand the question here
14 January, 2021 at 10:52 pm #53404Based on the previous example that I wrote, if it makes any sence to you, how is the wright way to write it?
if($order_details['ordervars']['{some-order-value}']['value'] == 'BBB' && $printnode_id = 'default'){ $printnode_id= '222'; if($order_details['ordervars']['{some-order-value}']['value'] == 'CCC' && $printnode_id = 'default'){ $printnode_id= '111,333';
Is this wright? will it work?
16 January, 2021 at 2:00 am #53421>will it work?
No. you *must* find the right$order_details
parameter according to your requirements.
$order_details['ordervars']['{some-order-value}']['value']
is just a dummy/placeholder (it doesn’t even exist in the $order_details array) - AuthorPosts
- The topic ‘Auto print – add how many pages to print’ is closed to new replies.