Skip to content

danie1k/php-wordpress-plugin-yith-woocommerce-product-add-ons

Repository files navigation

=== YITH WooCommerce Product Add-Ons ===

Contributors: yithemes
Tags: woocommerce, woocommerce product add-ons, woocommerce product add ons, woocommerce advanced product option, product add ons, product add-ons, option, radio, checkbox, text, woocommerce product addons
Requires at least: 4.5
Tested up to: 5.3
Stable tag: 1.5.23.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Increase average order value by letting your customers purchase additional options on your products
== Description ==

With YITH WooCommerce Product Add-ons you'll be able to increase your customers' propensity to spend more and you'll be able to cut off time dedicated to managing additional options for each product separately. How? Let's imagine you have a jewellery store and one of your customers is going to purchase a ring: if variations can let them decide whether they prefer it in gold, silver or copper, how can you let them have a brief sentence carved on it and associate an extra cost to this in product page? YITH Product Add-ons allows you either to add a text field where your users can enter their sentence or select the one you have already configured for them through checkboxes or radio buttons in product page. And you'll forget about long and messy email correspondences where the risk to mix up orders from different customers is just around the corner.

**Features:**

*    Create groups of options And choose to use them for all products of the shop, only for specific categories or limited on a single product
*    Choose from different options Checkbox and Radio button
*    Set dependency between the options To show a dropdown option only to users who selected the one that depends on it
*    Increase the cost of product by assigning a fixed price to any of the options selected by user
*    Specify single options By setting label and description
*    Show a tooltip for the product add-ons

== Installation ==
Important: First of all, you have to download and activate WooCommerce plugin, which is mandatory for YITH WooCommerce Product Add-Ons to be working.

1. Unzip the downloaded zip file.
2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
3. Activate `YITH WooCommerce Product Add-Ons` from Plugins page.

= Configuration =
YITH WooCommerce Product Add-Ons will add a new tab called "Products Add-Ons" in "YIT Plugins" menu item. There, you will find all Yithemes plugins with quick access to plugin setting page.

== Frequently Asked Questions ==

= Can I add options groups on variable products? =
Yes, the plugin allows to do it. Options can be configured globally on product, but not on single variation.

= Can I disable global options on single product? =
Yes, you can do it, but not singularly. From the product editing page, you can disable the use of "all" global options groups.

= I would like to show an option only when a specific combination of options chosen from users occurs. How can I do it? =
You must enable the dependency on the option you are interested in by inserting the name of options you want your users to select.

== Screenshots ==

1. Setting Options
2. YITH WooCommerce Product Add-Ons in "Add-Ons" edit page
3. YITH WooCommerce Product Add-Ons in "Single Prodcut" page

== Changelog ==

= 1.5.23.3 – Released on 12 December 2019 =

* Update: YIT Plugin Framework
* Fix: Removed YITH_REFER_ID
* Fix: Minor bugs

= 1.5.23.2 – Released on 29 November 2019 =

* Update: YIT Plugin Framework
* Fix: Minor bugs

= 1.5.23.1 – Released on 05 November 2019 =

* Update: YIT Plugin Framework
* Fix: Minor bugs

= 1.5.23 – Released on 30 October 2019 =

* New: Wordpress 5.3 support
* New: WooCommerce 3.8 support
* Update: YIT Plugin Framework
* Fix: Minor bugs

= 1.5.21 - Released on 12 August 2019 =

* New: WooCommerce 3.7 support
* New: 7up themes compatibility
* Update: YIT Plugin Framework
* Fix: Keypress problem
* Fix: AND operator
* Fix: All add-ons collapses by default
* Fix: Minor bugs

= 1.5.20 - Released on 27 June 2019 =

* New: WC Embed Product support
* New: Replace image method for Divi theme
* New: Option to disable the "labels" features
* New: Option to enable again the "add to cart" feature in loop
* New: Alternate collapse feature
* Update: YIT Plugin Framework 3.3.5
* Fix: WooCommerce attribute name conflict
* Fix: Cart numeric price error
* Fix: File validation with Request a Quote plugin
* Fix: Options position
* Fix: First X free options feature
* Fix: Replacing image size
* Fix: jQuery UI filter
* Fix: QuickView Pro support
* Fix: Minor bugs

= 1.5.19 - Released on 28 May 2019 =

* New: WordPress 5.2 support
* Update: Italian language
* Update: YIT Plugin Framework 3.2.1
* Fix: Calculate quantity by values amount
* Fix: Request a Quote error message
* Fix: Undefined offset notice
* Fix: Minor bugs

= 1.5.18 - Released on 11 April 2019 =

* New: WordPress 5.1 support
* New: WooCommerce 3.6 support
* New: WooCommerce bundle products support
* New: Filter to change the add-ons title HTML tag
* New: Scroll product page when required options are not selected
* New: "Replace Image" method sent by the customer Paul McWalters
* Update: YIT Plugin Framework 3.1.28
* Dev: Tax included string
* Fix: Collapsed feature in Quick View
* Fix: Add-ons negative percentage values and variations
* Fix: Missing description-field.php template notice
* Fix: Image replacement
* Fix: Options images size
* Fix: Minor bugs

= 1.5.17 - Released on 20 February 2019 =

* New: TheGem theme support
* Tweak: Add-ons panel loading speed optimization
* Update: YITH Plugin Framework 3.1.21
* Fix: Missing variation-gallery.php template
* Fix: Grouped products support
* Fix: Minor bugs

= 1.5.16 - Released on 28 January 2019 =

* New: WooCommerce Currency Switcher support
* Update: Language file
* Update: YIT Plugin Framework 3.1.15
* Dev: Allow external plugins to save custom options array
* Fix: Composite Product component variation price reset
* Fix: Required options
* Fix: Admin menu
* Fix: Minor bugs

= 1.5.15 - Released on 5 December 2018 =

* New: WordPress 5.0 support
* New: Plugin options to enable compatibiliy
* Dev: Improved Woo Layout Injector support
* Fix: Minor bugs

= 1.5.14 - Released on 5 December 2018 =

* New: Divi theme support
* New: Woo Layout Injector plugin support
* Update: All .po files
* Update: YIT Plugin Framework 3.1.5
* Dev: Improved WPML support with required variations
* Fix: Number add-ons "min" value problem
* Fix: Variations and attributes disappear after saving
* Fix: Minor bugs

= 1.5.13 - Released on 7 November 2018 =

* New: Alternative "Replace Image" method for non standard themes support
* Update: YIT Plugin Framework 3.0.35
* Update: Dutch language
* Fix: Elementor support
* Fix: Deprecated .size() method of jQuery 1.8
* Fix: Quick View
* Fix: Minor bugs

= 1.5.12 - Released on 23 October 2018 =

* Update: YIT Plugin Framework 3.0.27
* Fix: Required options
* Fix: Minor bugs

= 1.5.11 - Released on 18 October 2018 =

* New: WordPress 4.9.8 support
* New: WooCommerce 3.5 support
* Update: YIT Plugin Framework 3.0.24
* Dev: New "wapo_print_option_price" filter
* Fix: Hide Label option in add-ons type "labels" and "multi labels"
* Fix: Required "select" add-ons
* Fix: Add-on types in "new" form
* Fix: Minor bugs

= 1.5.10 - Released on 28 September 2018 =

* New: Portuguese translation
* Fix: Table columns in ThickBox
* Fix: Undefined variable "collapsed"

= 1.5.9 - Released on 25 September 2018 =

* Fix: Fatal error adding to cart a gift card product
* Dev: Double price in percentage amount
* Update: YIT Plugin Framework 3.0.23
* Update: Language files
* Fix: Missing options problem
* Fix: Minor bugs

= 1.5.8 - Released on 14 September 2018 =

* Fix: Activation function
* Fix: Free version compatibility
* Fix: Minor bugs

= 1.5.7 - Released on 6 September 2018 =

* New: German translation
* Tweak: Improved Multi Vendor compatibility
* Update: YIT Plugin Framework 3.0.21
* Fix: Avoid undefined "first_options_free_container" variable
* Fix: Add-ons position in variable products
* Fix: Required single textarea
* Fix: Strings translation bug
* Fix: Vendor in group settings
* Fix: Data js error
* Fix: Minor bugs

= 1.5.6 - Released on 17 August 2018 =

* New: "First X options free" feature
* New: "Hide Label" setting for add-on options
* New: Support to "Variable subscription" products
* Update: YIT Plugin Framework 3.0.20
* Tweak: Improved WPML compatibility
* Fix: Add-ons position in variable products
* Fix: Vendor settings in groups
* Fix: Show Options shortcode
* Fix: Main image replacement
* Fix: Filter to disable the plugin init
* Fix: Groups categories with WPML
* Fix: Minor bugs

= 1.5.5 - Released on 22 June 2018 =

* New: Option to enable/disable general "collapse" feature
* New: Option to collapse each single add-on
* Dev: New filter to disable the plugin init
* Dev: New filter to disable the jQuery UI loading
* Dev: New filter to hide add-ons group container
* Dev: New filter "yith_wapo_show_group_container"
* Update: Dutch language file
* Fix: Check for catalog mode hiding price
* Fix: Fatal error after update
* Fix: Minor bugs

= 1.5.4 - Released on 24 May 2018 =

* New: WordPress 4.9.6 support
* New: WooCommerce 3.4 support
* New: Support to GDPR compliance
* New: Privacy class
* Update: Spanish translation
* Update: Italian translation
* Update: Dutch translation
* Fix: Options image placeholder
* Fix: "Required" title in add-on name
* Fix: Add-ons image replacement
* Fix: Plugin localization loading
* Fix: Price percentage of a variable product with "Select" type
* Fix: Translation required title
* Fix: Minor bugs

= 1.5.3 - Released on 30 April 2018 =

* Fix: Dashicons in frontend
* Fix: Add-ons taxes calculation
* Fix: "class.divi-et-builder_module.php" include error
* Fix: "function.yith-wccl-activation.php" include error
* Fix: Minor bugs

= 1.5.2 - Released on 23 April 2018 =

* New: Textarea Editor feature
* New: Add-ons type number style
* New: Alt tag in options images
* Update: YIT Plugin Framework 3.0.15
* Fix: Upload fields without labels problem
* Fix: Upload problems with Request a Quote
* Fix: Wrong upload extension notice
* Fix: Add-on type number with value "0"
* Fix: Variations attributes type label
* Fix: Tax calculation for Price Suffix
* Fix: Tooltip bottom margin
* Fix: WPML Variations Requirements select
* Fix: Group creation in product edit page
* Fix: Error required fields
* Fix: Minor bugs

= 1.5.1 - Released on 13 April 2018 =

* New: WooCommerce 3.3.5 support
* New: Show add-ons collapsed option
* Tweak: Improved add-ons admin open/close
* Update: YIT Plugin Framework 3.0.14
* Fix: Tooltip, placeholder and description fields
* Fix: WPML translation and missing strings
* Fix: Duplication of deleted components
* Fix: Variations Requirements with WPML
* Fix: New add-on "Cancel" button
* Fix: Price sign position
* Fix: Minor bugs

= 1.5.0 - Released on 5 April 2018 =

* New: WordPress 4.9.5 support
* New: WooCommerce 3.3.4 support
* New: Group duplication feature
* New: Add-on duplication feature
* New: Option duplication feature
* New: Placeholder and Tooltip fields
* New: Divi ET Builder Module integration
* New: Unero theme support
* Tweak: Improved options table
* Update: Language files
* Fix: Tooltip options
* Fix: SelectWoo error
* Fix: Docs URL
* Fix: Minor bugs

= 1.3.5 - Released on 15 May 2018 =

* New: WooCommerce 3.3.3 support
* New: Filters to edit price table strings
* New: Fields placeholders
* New: Addons price suffix
* Update: YIT Plugin Framework 3.0.13
* Fix: YITH WooCommerce Role Based Prices integration
* Fix: Compatibility with Frontend Manager
* Fix: Minor bugs

= 1.3.4 - Released on 21 February 2018 =

* New: WordPress 4.9.4 support
* New: WooCommerce 3.3.2 support
* New: [yith_wapo_show_options] shortcode
* Dev: New "wapo_wpml_default_language" filter
* Fix: Uploaded files link in order details
* Fix: Subscription support
* Fix: Add-ons for WPML translations
* Fix: Options price calculated in cart
* Fix: Fields style

= 1.3.3 - Released on 5 February 2018 =

* Update: YIT Plugin Framework 3.0.12
* Fix: Options are not shown after vendor check
* Fix: Missing options after the update to version 1.3.2
* Fix: Image replacement with standard WooCommerce template

= 1.3.2 - Released on 30 January 2018 =

* New: WordPress 4.9.2 support
* New: WooCommerce 3.3.x support
* New: Filter 'yith_wapo_show_uploaded_file_name' to show the uploaded file name in cart and order details
* Update: YIT Plugin Framework 3.0.11
* Tweak: New options sign filters
* Fix: Multi Vendor support
* Fix: Booking post type support
* Fix: Minor bugs

= 1.3.1 - Released on 18 January 2018 =

* New: Filter 'wapo_select_variations_in_loop' to manage the variations in loop
* Tweak: Template yith-wapo-form-option-type.php loaded by wc_get_template function
* Tweak: Added the add-on $title to the "ywapo_empty_option_text" filter
* Update: YIT Plugin Framework 3.0.9
* Fix: Group doesn't saving
* Fix: Image replacement
* Fix: WooCommerce 2.6 compatibility
* Fix: And operator dependencies
* Fix: Minor bugs

= 1.3.0 - Dec 12, 2017 =

* New: AND/OR operators for Options Requirements
* New: Negative value in options price
* New: Possibility to reset add-ons type file
* New: Unero theme quick view support
* New: 'yith_wapo_allow_frontend_free_price' filter to show free options price "+ $0.00"
* New: HTML options container
* New: French translation
* Update: YIT Plugin Framework 3
* Fix: Deprecated 'woocommerce_add_order_item_meta' action
* Fix: Options not shown in checkout
* Fix: Options not shown in order details
* Fix: Options not shown in order emails
* Fix: Options not shown in order again
* Fix: Variations fields in shop page
* Fix: Options textarea freeze after press enter key
* Fix: Product Bundles plugin compatibility
* Fix: Select2 and SelectWoo problems
* Fix: Product attributes types
* Fix: Multi Vendor user error
* Fix: Minor bugs

= 1.2.8 - Oct 12, 2017 =
* New: WooCommerce 3.2.0 support
* New: Flatsome product lightbox compatibility
* Update: language file
* Fix: Removed 'Color and Label Variations' item from YITH Plugins menu in admin
* Fix: Illegal string offset in order again feature
* Fix: Quick View compatibility
* Fix: Minor bugs

= 1.2.7 - Aug 31, 2017 =

* New: es_ES translations files
* New: nl_NL translations files
* Update: Core files
* Fix: Increased Type Description length
* Fix: Minor bugs

= 1.2.6 - Jul 21, 2017 =

* New: "Toggle" function on options group (frontend)
* New: HTML code in option label
* New: 'yith_wapo_frontend_price_html' filter
* New: 'yith_wapo_cart_item_addon_price' filter
* Update: Core files
* Update: Language files
* Fix: Blank page with WooCommerce 3.0
* Fix: Type "Color" attributes and variations problem
* Fix: "Mixed Content" error with SSL images
* Fix: "Sold individually" cart price
* Fix: WooCommerce select2 error
* Fix: Order again errors
* Fix: Hidden variations in options editor
* Fix: Base price before options in variable products
* Fix: JavaScript errors in backend
* Fix: Prevent "add to cart" at the press "enter" in product options fields
* Fix: Call to undefined method WC_Product_Variable::get_default_attributes()
* Fix: Compatibility with YITH WooCommerce Role-based Prices Premium
* Fix: Deprecated 'woocommerce_add_order_item_meta' hook
* Fix: Limit selectable elements with Multi Labels type
* Fix: Fatal error: Cannot unset string offsets in class.yith-wapo-frontend.php
* Fix: Prevent "Manage" popup open in other tab
* Fix: Type text "max length"
* Fix: Fatal error after activation
* Fix: Minor bugs

= 1.2.5 - Apr 07, 2017 =

* New: WooCommerce 3.0.x support
* New: Dutch language files
* Dev: Added yith_wapo_product_price_updated trigger
* Dev: Added query operator for category filter
* Dev: Added product id in group list
* Fix: Special chars in label
* Fix: Change featured image problem
* Fix: Minor bugs
* Fix: Variations query when categories are filtered in the edit group
* Fix: Flolat value for sum + avada style for dropdown
* Fix: Add to cart layout with Avada
* Fix: Variation query with categories

= 1.2.4 =

* New: Add-Ons options "Minimum and Maximum sum value amount"
* Fix: Featured image does not changed when an add-on was hided by a dependence
* Fix: Calculate totals after quantity value is changed by minum and maximum rules
* Fix: Calculate totals after product quantity changed.

= 1.2.3 =

* New: Add-Ons type "Multiple Labels".
* New: Option "Always show the price table" allows the admin to always show the price table even if the amount of the add-ons is 0 in the single product page.
* Fix: "Limit selectable elements" now works with "Number" Add-On.
* Fix: Integration with "YITH WooCommerce Product Bundle Premium".

= 1.2.1.1 =

* New: Option "All options required" that allow the admin to decide if a required add-on must have all options required or just one.
* Fix: Dependece conflict between add-ons and variations requirements.
* Fix: Some price types not shown in the "new option" template.

= 1.2.1 =

* New: Added two price type "Price multiplied by value" and "Price multiplied by string length".
* New: Now the options list are sortable with drag & drop in the back-end.
* New: Option "calculate quantity by values amout" that allow the user to set the quantity value as the sum of the total amount of the add-on options.
* Fix: Mobile layout in single product page

= 1.2.0.9 =

* New: Product Add-Ons is now integrated with YITH WooCommerce Product Bundle Premium(with versions grather than 1.1.3).
* New: Add-Ons option "replace the product image" works now with YITH WooCommerce Zoom Magnifier.
* Fix: Error with category field on variation requirements.
* Fix: Output error after plugin activation.
* Fix: Wrong arguments using the filter 'woocommerce_cart_item_thumbnail'.
* Fix: Argument missed with YITH WooCommerce Catalog mode.
* Fix: If more then one add-on checked "replace the product image" option the product image was reset.

= 1.2.0.8 =

* New: WordPress 4.7 support.
* New: Product Add-Ons is now integrated with YITH Composite Products for WooCommerce Premium(with versions grather than 1.0.3).
* New: Product Add-Ons is now integrated with YITH WooCommerce Subscrition Premium(with versions grather than 1.1.6).
* Fix: Total box was duplicated with Avada theme and variable product.
* Fix: Prevent variations limit for the "Variation Requirements" field.

= 1.2.0.7 =

* Fix: The Add-ons order can' t be saved in the backend.
* Fix: The Add-ons price get 0 when decimal separator is not the point.

= 1.2.0.6 =

* New: Option "Replace the product image" that allows the customer to replace the product featured image when the add-on is selected.
* Fix: Min and Max option values doesn' t appear in the administration panel after saving.
* Fix: Required field not works for checkboxes when the option "max item selected" is set.

= 1.2.0.5 =

* Fix: Add option doesn' t work with some configurations.

= 1.2.0.4 =

* New: Administration restyling.
* Fix: Add to cart button was disabled with Flatsome theme.

= 1.2.0.3 =

* Fix: Total preview was not updated right after variations was changed.
* Fix: First element with the add-ons "select" was not stored in the cart.

= 1.2.0.2 =

* New: Hide price feature with YITH WooCommerce Catalog Mode Premium and YITH WooCommerce Requeste a Quote Premium.
* Fix: Labels and descriptions of the Add-Ons were not translated on the customer email even if translation was complete on WPML String Translations.

= 1.2.0.1 =

* Fix: Add-on with dependence doesn' t appear even if the correct variation was selected.
* Fix: Prevent notice in the back-end when a new add-on was inserted.

= 1.2.0 =

= Add-Ons =

* New: Possibility to hide add-ons until a specified option or variation is selected.
* New: Integration with YITH WooCommerce Role Based Price.
* New: Flatsome quick view compatibility.
* New: Exclude products field on group
* Fix: Click doesn' t fire on radio button label.
* Fix: Error was printed when a customer receives YITH WooCommerce Request a quote email.
* Fix: Add-ons name and value was not translated by WPML on the Cart

= Variations =

* New: Change product image on hover (only for one attirbute).
* New: Option to show custom attributes style also on "Additional Information" Tab.
* New: Compatibility with WooCommerce Products Filter.
* New: Compatibility with YITH Composite Products For WooCommerce.
* New: Compatibility with WooCommerce Quick View by WooThemes.
* Fix: Reset attribute type on plugin deactivation.
* Fix: Description and default variations on archive pages.
* Update: Language files.
* Update: Core plugin.

= 1.1.4 = Released on Jul 08, 2016

* Update:  Language files.
* Fix: Wrong total price preview when variation is changed
* Fix: Default variation on single product pages for products with only one attribute
* Fix: Issue when there were two labels in two different group

= 1.1.3 =

* New:  WooCommerce 2.6 support.
* New:  Option "Max Items Selected" for checkboxes add ons

= 1.1.2 =

* Update:  Language files.
* Fix:    jQuery event not triggered with "The Edge / Internet Explorer" browser
* Fix:    Product Add-On Group is not saved because of mysql error

= 1.1.1 =

* Fix: error on add to cart when add-on is not "sold individually"

= 1.1.0 =

* New: Support to WordPress 4.5.2.
* New: Support to WooCommerce 2.6 Beta2.

= Add-Ons =

* New: "Sold individually" add-ons option that allow user to sell an add-on lonely(* the price will not increases by cart quantity)
* New: "Upoad File size" option on settings that allow the administrator to set max uploaded file size
* New: "Vendor" option on group that allow administrator to change the vendor previously store
* New: Option "Show product price on 'cart page'" that allow you to show the product base price on the cart item
* Fix: minor bugs

= Variations =

* New: Compatibility with YITH WooCommerce Added to Cart Popup.
* New: Set dual color such as blue-white (half box blue and half box white).
* New: Show a preview of the attribute image in the tooltip (available only for image attributes).
* Fix: Variations now work with Owl Carousel 2 when infinite loop option is set.
* Fix: Clicking on selected attribute before selecting another one is no longer necessary.
* Update: Language files.
* Update: Core plugin.

= 1.0.9 =

* Fix: prevent localize domain issue

= 1.0.8 =

* New: support to YITH WooCommerce Request a Quote - 1.4.7 version

= 1.0.7 =

* Update: Text Domain
* Fix: minor bugs

= 1.0.6 =

* Fix: Prevent notice on products loop

= 1.0.5 =

* New: WordPress 4.5 support

= 1.0.4 =

* Fix: Request a quote button not working in the products loop
* Fix: Removed unuseless query execution

= 1.0.3 =

* New: WPML support
* Fix: Options total price was not correct when user change quantity on single product page

= 1.0.2 =

* Fix: Options are not saved when a quote was inserted inside a label

= 1.0.1 =

* Fix: Price total doesn' t change after option is selected on quick view

= 1.0.0 =

Initial Release