=== WPPizza Add Ingredients=== Contributors: ollybach Author URI: https://www.wp-pizza.com/ Plugin URI: https://www.wp-pizza.com/ Tags: pizza, restaurant, order online Requires at least: 3.5 Requires PHP: 5.3 Tested up to: 6.3 Version: 5.3.3 Stable tag: 5.3.3 Extends WPPizza to allow adding of additional ingredients to any given menu item by the customer. | Requires WPPIZZA 2.11.9+ == Description == Extends WPPizza to allow adding of additional ingredients to any given menu item by the customer. | Requires WPPIZZA 2.11.9+ == Installation == 1. Upload the entire `wppizza-add-ingredients` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Add/Edit Ingredients in wppizza->settings->ingredients as required 4. set custom groups if required 5. set options as required 6. set localization as required 7. Enable the addition of ingredients and whole/halfs/quarters per menu item == Upgrade Notice == == Other Notes == == Changelog == 5.3.3 * Fix: potential php notice eliminated 16th October 2024 5.3.2 * Fix: allergens/additives not saved if only allergen/additive with ID of zero selected 15th October 2024 5.3.1 * Fix: 5.3 was broken 11th October 2024 5.3 * Added: Allow allergens/additives to be added to ingredients * Tweak: permit some more html elements in ingredients name * Tweak: minor admin layout tweaks 10th October 2024 5.2.2 * Dev: Added some globally available helper functions for 3rd party plugins to use * Compatibility: Tested with WP 6.3 23rd August 2023 5.2.1 * Compatibility: removed all deprecated jquery callbacks to avoid dependency on jquery migration script * Compatibility: Tested with WP 6.1 04th November 2022 5.2 * Fix: Some more potential fatal error with php 8 (depending on settings) * Added some helper functions for 3rd party plugins to use 17th October 2022 5.1.9 * Fix: Potential fatal error with php 8 (depending on settings) 4th March 2022 5.1.8 * Compatibility WP 5.9: jQuery UI 1.13 used by WP 5.9 (Calendar, Date/Timepickers, Spinners specifically in this plugin etc) styles/themes are not available/maintained on google CDN (as of writing). Now using css from jquery.com CDN 19th January 2022 5.1.7 * Tweak: Make sure ingredients popup accounts for retina displays on desktops when calculating popup widths 07th June 2021 5.1.6 * Fix: Licence (de)activation from WPPizza->Tools->Licences 22nd August 2019 5.1.5 * note: tested with WP 5.2 * fix: wrong td element colspan count on orderpage / user orderhistory * fix: error when trying to repurchase and item from users purchase history that had ingredients added due to depracated and removed function in WPPizza v3.9+ 29th May 2019 5.1.4 * fix: deleted erroneously left development string output (might have cuased issues in user purchase history page) * tweak: removed html entities (if defined) in ingredients choices buttons in admin custom group settings 30th April 2019 5.1.3 * fix: possible php countable warning due to typo in function * fix: possible calculation error when re-editing an item already in cart with certain free ingredients settings * tweak: license now also accessible from tools->licenses (WPPizza 3.5+) * tweak: added .pot file * note: tested up to WP 5.1.1 29th April 2019 5.1.2 * fix: orderpage potentially broken on some installations (depending on certain priority settings) in v5.1/5.1.1. 23rd January 2019 5.1.1 * fix: popup of ingredients was broken in 5.1 23rd January 2019 5.1 * added: allow "span" (including class and style attributes), "br", "em", "i" and "strong" tags in ingredients names. * tweak: add required class serverside as opposed to by js. * fix: some possible countable() warnings eliminated * fix: ensure ingredients will always be opened in a popup on orderpage. 22nd January 2019 5.0.18 * tweak: make relevant popups follow settings in wppizza->layout->miscellaneous->"Stylable javascript alerts" * tweak/fix: (re)-minified js that was left unminified in a previous version 5th December 2018 5.0.17 * tweak/fix: added parameter to menu item loop meta data to distinguish between items that have added ingredients enabled/available and items that don't 6th August 2018 5.0.16 * added: filter ('wppizza_filter_ingredients_multibutton') to allow filtering of "everywhere", "half & half", "four quarters" buttons label on a per menu item basis * tweak: added additional parameter for selected meal size to 'wppizza_filter_ingredients_price_divider' filter as 4th parameter before whole/half/quarter parameter * tweak: expose inredients id on hover over sort or delete icon in admin 2nd August 2018 5.0.15 * fix: show/hide toggle for applied ingredients / custom croups in post edit screen was broken * added: filter ('wppizza_filter_ingredients_price_divider') to allow setting of arbitrary price dividers for half/quarter slices per ingredient and menu item 30th July 2018 5.0.14 * fix: after adding item to cart when editing (if enabled), custom groups with number of items set to be free were not always correctly calculated when re-adding edited item to cart * fix/tweak: naturally grouped ingredients in non-custom groups ordered by price in ascending order * tested up to: WP 5.0 (beta) 25th July 2018 5.0.13 * intentionally skipped 5.0.12 * fix: (in conjunction with wppizza v3.x) - sticky header in popup was broken in various places (if used - although it isn't really recommended to be used in most cases as it could cause issues on small devices due to screen size constraints) * tweak: some minor css improvements for small screen devices 18th September 2017 5.0.11 * fix: (in conjunction with wppizza v3.x) - some default options were not set in some instances on new installed and had to be manually set by saving options page once 3rd September 2017 5.0.10 * fix: (in conjunction with wppizza v3.x) - quantity input was shown even if not enabled 1st August 2017 5.0.9 * tweak: added various parameters to ingredients output filters * tweak: now using minified js when used in conjunction with wppizza v.3.x * tweak: stop scrolling of background when using ingredients popup (with WPPizza v2.x. Usage with v3.x did that already) 28th July 2017 5.0.8 * tweak: minor css tweaks in popup * added: toggle option for ingredients in custom groups (admin) 12th July 2017 5.0.7 * tweak: minor css tweaks when using sticky headers in popup * NOTE: for consistency, if you have overwritten the style for '#wppizza-diy-to-cart' using #wppizza-diy-to-cart{/* my style*/} please change this to using a class selector, i.e .wppizza-diy-to-cart{/* my style*/} 12th June 2017 5.0.6 * tweak: taking advantage of some constants defined in wppizza v3.x (if used) 12th May 2017 5.0.5 * fix: "Fatal error: Can't use function return value in write context" introduced in 5.0.4 10th May 2017 5.0.4 * fix: some errors eliminated when used with wppizza v3 and php 7 * tweak: some css tweaks (for wppizza 3.x) 4th May 2017 5.0.3 * fix: some possible php notices eliminated * tweak: added specific plugin screen reader css (for thickbox/popup - close button) to fix themes that do not set it 20th April 2017 5.0.2 * fix: de-preselected did not work properly after adding item to cart when editing (if enabled) 8th February 2017 5.0.1 * fix: fatal error when used with php v7.1+ * fix: some php notices/warnings with php v7.1+ 13th January 2017 5.0 * update: updated to work with for forthcoming wppizza v3.x (although this should be backward compatible with wppizza 2.11.9+, I strongly recommend you make a backup before updating !!) * fix: several fixes when used in conjunction with wppizza v3.x for edge cases * tweaks/added: several additions when used in conjunction with wppizza v3.x (adding quantity input, improving layout somewhat such as using button styles from theme for example) * note: especially if used with wppizza 3.x please report any bugs you might find * todo: codebase tidyup as it has become a mess somewhat with all the additions added over the years and the integration for v3.x ...as soon as time allows 8th January 2017 * changelog version < v.5.0 can be found in logs/changelog.txt == Frequently Asked Questions == = Can I edit the css ? = although the css has been written so that it works with many themes out of the box (see www.wp-pizza.com - all demos/themes use the same default stylesheet) you might want to adjust some things here and there to work with your particular theme (especially if you want to support older browsers). if you do, copy the wppizza-addingredients/css/wppizza-addingredients.css to your theme directory (so it does not get overwritten by future updates of the plugin) and edit as required. alternatively - and possibly a better option - copy wppizza-addingredients-custom.css to your theme directory and only overwrite the items that need changing (in which case wppizza-addingredients.css will still be loaded before your customised wppizza-addingredients-custom.css) = additional info = if you would like to use browser native radio and checkboxes (where appropriate) have a look at the very bottom of the wppizza-addingredients.css. (just uncomment the css declarations as indicated and edit as/if required) Please note, IE7 will always display these elements (via the conditional wppizza-addingredients-ie7.css) as it does not understand certain declarations used in the main stylesheet. (Same applies here. I.e you can copy wppizza-addingredients-ie7.css to your theme directory and edit it there if you which to keep changes for future updates)