WPPizza Mailinglists

Customisations of selected WPPizza Mailinglists Freshmail @param: array @return: array /* Adding preconfigured custom fields */ add_filter(‘wppizza_mll_freshmail_custom_fields’, ‘myprefix_freshmail_customfields’); function myprefix_freshmail_customfields($custom_fields){ /* a) Assign the appropriate field in “WPPizza -> Order Settings -> Mailinglists : Customers Name Formfield” b) Create a custom field for your selected 

Coupons and Discounts

Filters available for WPPizza Coupons and Discounts wppizza_cad_filter_discounts Allow to filter (unset) applied discounts – identified by their ID – depending on custom conditions related to cart contents. As with all customisations, use at your own risk. You should test this thoroughly /* @since 2.1.4 

Preorder

Customisations WPPizza Preorder Highlighting preorders for days after today in *emails* sent (for print templates, simply use css declarations) Your email template(s) selected MUST be set to “Html” for this to make any difference set conditionals as required @param: array @param: array @param: str @param: 

Extensions / Gateways

Please refer to the relevant sub-section in the navigation on the left. Note: Documentation for extensions and gateways will always be work in progress and will expand over time.

Add Ingredients

Filters available in WPPizza Add Ingredients wppizza_ingredients_filter_email_styles The below filter will *only* apply to emails (as emails need style declarations to be added inline). For Print templates, use the css input in WPPizza->Templates->Print in conjunction with your browsers element inspector @param: array @return: array add_filter(‘wppizza_ingredients_filter_email_styles’, 

WPPizza Autoprint

Customisations WPPizza Autoprint Adjusting print output of selected autoprint template Your print template selected MUST be set to “Html” to be able to access the css setting Go to “Wppizza -> Templates -> Print” Locate the template you have selected to use as your autoprint 

Confirm | Reject | Notify

Filters available using WPPizza – Confirm | Reject | Notify wppizza_crn_sms_branding Allow “Branding”: Send some arbitrary text instead of sending a phonenumber as “Sender ID”. Be aware that this will not work if you are using 2-way or 3-way SMS settings (as the recipient would 

Cross-Sells

Widgets/Shortcode Cross Sells – Shortcodes / Widget settings     title=’some title’ optional string Label above Cross Sells (Omit for default as set in Wppizza->Localization->Cross Sells) max=’5′ optional integer Maximum number of x-sells results to retrieve (Omit for default as set in WPPizza->Order Settings->Cross Sells) 

Delivery By Post/Zipcode

Shortcodes If you wish to display the delivery by post/zip-code selection in a different location [wppizza_dbp] If using google maps option: displaying the *dashboard map widget* showing your orders elsewhere: Shortcode: [wppizza_dbp_map] Available attributes: orders – orders to display according to status set. default: “new,delivered”. 

Goodcom Printer

Filter examples to alter the goodcom printer output wppizza_goodcom_printer_filter_xml_site Using the 3 filters below as described will result in a print layout similar to this screenshot. The final layout will depend on actual order and customer values submitted. @param: array(parameters) @return: array(filtered parameters) /* example