=== WPPizza Coupons and Discounts === Contributors: ollybach Plugin URI: https://www.wp-pizza.com Author URI: https://www.wp-pizza.com Tags: Coupons, Discounts , wppizza Requires at least: PHP 5.3+, WP 3.3 , WPPizza 2.11.9+ Tested up to: 5.0 Stable tag: 2.0.12 WPPizza Coupons and Discounts - Coupons and Discounts Extension for WPPizza - Requires WPPIZZA 2.11.9+ (2.16.11.1+ recommended) == Description == WPPizza Coupons and Discounts - Enables Coupons and Discounts for customers using the Wordpress WPPIZZA Plugin - Requires WPPIZZA 2.11.9+ (2.16.11.1+ recommended) == Changelog == 2.0.12 * fix: pickup-only conditional in coupon codes was inverted - i.e only applied on delivery (wppizza v3.x) 20th December 2017 2.0.11 * fix: setting/using required items for coupon codes did not work correctly (wppizza v3.x) 26th October 2017 2.0.10 * fix: typo in function call resulted in fatal error when using shortcodes (wppizza v3.x) 15th October 2017 2.0.9 * tweak: account/allow for rogue (i.e erroneous) output of other scripts/plugins/themes in admin ajax requests * tweak: eliminated some possible php notices 9th October 2017 2.0.8 * added: option for coupon codes to apply together with simple discounts (prveiously - if a coupon code was used - only the more favourable of the 2 was applied) 20th September 2017 2.0.7 * tweak: increased a couple of filter priorities to account for possible race conditions 14th August 2017 2.0.6 * fix: "Illegal string offset" fixed when used with php 7+ 12th August 2017 2.0.5 * tweak: taking advantage of some constants defined in wppizza v3.x (if used) 12th May 2017 2.0.4 * fix: possible wrong discount calculation with simple discounts (cheapest [x] reduced) when setting required items/categories without also selecting "Set Items only" * fix: misnamed key when checking for requirements (if using wppizza 3.x) 10th May 2017 2.0.3 * fix: coupon code did not get applied when set to "apply discount only to selected items" 17th February 2017 2.0.2 * fix: increased loading priority to fix issue where plugin was not alwasy loaded with old versions (v2.x) of wppizza in certain scenarios 20th January 2017 2.0.1 * fix: "Simple Discounts" - minimum order value was not checked for * fix: eliminated some possible php notices (php 7+) 17th January 2017 2.0 * update: updated to work with for forthcoming wppizza v3.x (kept backward compatible with wppizza 2.11.9+) 22nd December 2016 1.4.6.1 * fix: simple discounts set excluded menu items were not always excluded from discount calculations 30th June 2016 1.4.6 * added: used coupon code can (optionally) also now be displyed when using drag/drop print or email templates (requires wppizza 2.16.11.1+) 26th April 2016 1.4.5 * added: allow "cheapest [x]" discount to be restricted/applied to set items only * checked for WP 4.5 compatibility 13th April 2016 1.4.4 * intentionally skipped 11th April 2016 1.4.3 * tweak: added "delivery only" condition in shortcode * added: added "wppizza_cad_filter_shortcode_discount_conditions" filter to distinctly be able to filter conditions displayed in shortcodes * fix: "pickup only" condition wrongly displyed in shortcode when pickup and delivery were enabled 23rd March 2016 1.4.2 * fix: eliminated some possible (but inconsequential) php notices/warnings 21st March 2016 1.4.1 * added: option to set fixed price for cheapest x items reduced in simple discounts 15th February 2016 1.4 * fix: coupon code discount did not get applied when only applying to "selected items" * added: option to set fixed price for coupon code, when conditional set to be "selected items" * added: allow cumulative "simple discounts" * updated "howto" to account for the above 15th February 2016 1.3.1 * tweak: simple discounts - allow a minimum of just 1 itmes in cart required * fix: simple discounts - cheapest item reduced was always minimum required minus 1 as opposed to any integer below minimum required 2nd November 2015 1.3 * tweak [WPML]: reduce number of WPML related queries running in front and backend 28th October 2015 1.2.9 * tweak: improved/streamlined licence handling somewhat * upped minimum wppizza version to 2.11.9 24th September 2015 1.2.8 * added: ability to auto generate multiple dicount codes based on an already exiting one 23rd September 2015 1.2.7.1 * fix: some more php notices eliminated 13th August 2015 1.2.7 * fix: some minor errors and warnings when deleting a menu item 12th August 2015 1.2.6 * tweak: some minor css cosmetics in admin * tweak: replaced obsolete wppizzaClickEvent with plain click * tweak: stop form from submitting when using the return key in coupoon code field instead of clicking apply * fix: using minified js again (previous version was using the unminified version) 12th May 2015 1.2.5 * fix: deleted coupon codes were not always completely removed from array/options/db which could result - in certain circumstances - in erroneously applied discounts/options when the same coupon code got re-used * tweak: more reliable case in-sensitive (if enabled) coupon code check 9th April 2015 1.2.4 * added: optionally apply "cheapest x items reduced" discount multiple times, if condition is met more than once 9th April 2015 1.2.3 * added: option to make coupon codes case insensitive 19th March 2015 1.2.2 * added: option to not have to toggle/click to show coupon code input on order page * added: option (admin->coupon codes) to add a list of items to exclude from discount calculations 11th March 2015 1.2.1 * fix: admin pagination of codes / discounts seemed to have stopped working * tweak: admin pagination max per page now 25 (instead of 20) * tweak: added use of constants( WPPIZZA_CAD_MAX_DPP , WPPIZZA_CAD_MAX_CPP) to enable override admin max per page 22nd February 2015 1.2 * added containing div around coupon code input (order page) * fix: coupon code delivery charges were applied (set to free delivery in fact) even if not enabled in coupon code 21st January 2015 1.1.1 * fix: misnamed a variable on license check 10th January 2015 1.1 * added: distinct ability to decide on pickup and/or on delivery in discounts * fix: WMPL variable error 16th December 2014 1.0 * Initial Release 18th November 2014