WPPizza – A Restaurant Plugin for WordPress › Support › Feature Requests › Conditional change template for Autoprint
- AuthorPosts
- 26 January, 2021 at 12:46 pm #53605
Hi, very happy with the Autoprint addon – was dreading the end of Google Cloudprint. We are using the nodeprint solution.
One particular feature we would like to add is to conditionally change the template or add a graphic depending on details in the order.
In our particular case we want to add a prominent graphic when the order is a pre-order as we are having a prpblem with staff not checking the date when we are busy. But I can imagine the same principle could apply to many other situations – you might use different print formats for timed menus, or use custom fields only when an order has certain items.
Is there a call that we could make already change some print options like either different template or printing a graphic depending upon whether an order is more than x time in the future?26 January, 2021 at 12:57 pm #53608just like you can filter printer id’s , printnode_api_key etc
you can also filter any of the other plugin options in whichever way you like
so in your case that will be the $printnode_options[‘print_template’] I would guess, assuming you have set-up additional templates as you require for what it is you want to dosee here
see https://docs.wp-pizza.com/developers/?section=wppizza-autoprint - AuthorPosts
- The topic ‘Conditional change template for Autoprint’ is closed to new replies.