=== WooCommerce Bulk Variations ===
Contributors: barn2media
Tags: woocommerce, table, product, list, grid, variations
Requires at least: 6.1
Tested up to: 6.9.0
Requires PHP: 7.4
Stable tag: 2.4.7
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

== Description ==

Displays product variations in a variations order form or price matrix.

== Installation ==

1. Download the plugin from the order confirmation email or your Account. This will save a zip file to your computer.
2. Go to Plugins -> Add New -> Upload and select the plugin ZIP file.
3. Once installed, click to Activate the plugin
4. Enter your license key under WooCommerce -> Settings -> Products -> Bulk variations
5. Choose your global settings on the settings page and click Save Changes.
6. To create a bulk variations grid, either enable it globally on the settings page, enable it for individual products, or create it using a [shortcode](https://barn2.com/kb/creating-variation-grids/#use-a-shortcode-to-insert-a-variations-grid).

== Frequently Asked Questions ==

Please refer to [our support page](https://barn2.com/support-center/).

== Changelog ==

= 2.4.7 =
Release date 29 December 2025

* Fix: Bulk variations total should update on quantity input change
* Fix: Removed a deprecated function
* Dev: Tested up to WordPress 6.9.0 and WooCommerce 10.4.3.

<!--more-->

= 2.4.6 =
Release date 18 September 2025

* Dev: Updated internal libraries and tested up to WordPress 6.8.2 and WooCommerce 10.1.2.

= 2.4.5 =
Release date 9 July 2025

 * Fix: Unable to edit input field value in the grid when the WooCommerce Quantity Manager plugin is active
 * Fix: Shortcode lightbox attribute doesn't work
 * Fix: Compatibility issue with Breakdance page builder
 * Fix: Undefined array key warning and a fatal error in Grid file.
 * Dev: Tested up to WordPress 6.8.1 and WooCommerce 9.9.5

= 2.4.4 =
Release date 2 December 2024

 * Fix: Setup wizard broken style issues
 * Fix: WP 6.7.1 translation error
 * Dev: Tested up to WordPress 6.7.1 and WooCommerce 9.4.2

= 2.4.3 =
Release date 11 November 2024

 * Fix: Enhanced WooCommerce stock error message when adding multiple variations to specify the variation name for the out of stock variant product
 * Fix: Display description for more than 3 attributes on the variations grid
 * Tweak: Improved integration with WooCommerce Product Options

= 2.4.2 =
Release date 22 October 2024

 * New: Added support for block themes to display variations grid
 * Dev: Tested up to WooCommerce 9.3.3

= 2.4.1 =
Release date 25 September 2024

 * New: Added integration with Yith Request A Quote Premium
 * Fix: "vertical" shortcode attribute doesn't work with single variation attribute
 * Fix: Sticky grid header position issue when multiple variations grid presents on a page
 * Dev: Added uninstallation function to remove data upon uninstallation
 * Dev: Tested up to WordPress 6.6.2 and WooCommerce 9.3.2


= 2.4.0 =
Release date 11 September 2024

 * New: Added integration with Yith Request A Quote
 * New: Added new option to enable sticky header for bulk variations grid
 * Fix: Stock information were hidden when 'Hide prices if all variations have the same price" is checked
 * Dev: Tested up to WordPress 6.6.2 and WooCommerce 9.2.3

= 2.3.3 =
Release date 15 April 2024

 * New: Added automatic layout based on attribute count
 * Fix: Warning being thrown when variation image is not set
 * Fix: Errors in Setup Wizard during first activation
 * Tweak: Improved logic of default attribute option
 * Tweak: Improved stock information
 * Tweak: Other minor adjustments

= 2.3.2 =
Release date 25 January 2024

 * Fix: Quantity input is disabled with a default variation
 * Fix: Some settings not being stored and retrieved by the Setup Wizard
 * Dev: Updated internal libraries
 * Dev: Improved compatibility with PHP 8.2
 * Dev: Tested up to WP 6.4.2 and WooCommerce 8.5.1

= 2.3.1 =
Release date 16 August 2023

 * Fix: Resolved PHP warnings for undefined array keys
 * Tweak: "Apply to filtered variations only" checkbox is missing
 * Tweak: Improved integration with Quick View Pro
 * Dev: Added filters to alter variation images
 * Dev: Enabled HPOS compatibility
 * Dev: Updated internal libraries
 * Dev: Tested up to WP 6.3 and WooCommerce 8.0

= 2.3.0 =
Release date 16 May 2023

* Fix: Price format uses 2 decimals when number of decimals is set to zero
* Dev: Added two new filter hooks to programmatically enable or disable the variation grid
* Dev: Tested up to WooCommerce 7.7
* Dev: Updated all internal libraries

= 2.2.1 =
Release date 12 April 2023

* Fix: Variation grid not being output in Shopkeeper 2.9.991 and later
* Dev: Tested up to WordPress 6.2 and WooCommerce 7.5

= 2.2.0 =
Release date 6 March 2023

* New: Clicking the variation images now triggers the main product image change
* New: New global setting to automatically add the variation images to the product image gallery
* New: Added option to include variation description in the grid
* New: Added support for variation form generated by Elementor widgets
* Dev: Tested up to WooCommerce 7.4.1

= 2.1.6 =
Release date 12 October 2022

* Dev: Tested up to WooCommerce 6.9.4

= 2.1.5 =
Release date 27 September 2022

* Fix: Attributes with no terms not being displayed for private products
* Dev: Added integration with WooCommerce Product Options
* Dev: Tested up to WordPress 6.0.2 and WooCommerce 6.9.3

= 2.1.4 =
Release date 12 July 2022

* Fix: Draft products are not added to cart when the plugin is active (administrators only)
* Dev: Tested up to WordPress 6.0 and WooCommerce 6.6.1

= 2.1.3 =
Release date 13 April 2022

* Fix: Improved parameters passed to filter callback functions
* Fix: PHP warnings are displayed within Astra, Avada or Divi.

= 2.1.2 =
Release date 11 March 2022

* Fix: Grid not displayin when attribute use Unicode characters (e.g. Hebrew, Chinese, Arabic, etc.)
* Tweak: Added missing filter and gettext function to Price header in vertical single-attribute grids
* Dev: Added filters to allow more custom bulk actions
* Dev: Tested up to WooCommerce 6.3

= 2.1.1 =
Release date 10 February 2022

* Fix: Fixed wrong number of parameters in WooCommerce cart validation filter

= 2.1.0 =
Release date 10 February 2022

* Fix: Fixed a script error with QuickView when Fast Cart is not installed
* Tweak: Added conditional definition of global product object to shortcode
* Tweak: Added filter hook to alter the markup of the grid add-to-cart button
* Tweak: The processing of variation bulk actions was optimized
* Tweak: Improved compatibility with third-party plugins

= 2.0.5 =
Release date 26 January 2022

* Fix: Only first grid works when multiple instances are added to the same page

= 2.0.4 =
Release date 12 January 2022

* Fix: Added two missing parameters in `woocommerce_available_variation` filter

= 2.0.3 =
Release date 22 December 2021

* Fix: Minimum quantities being used instead of default quantities when the grid is cleared
* Fix: Single-attribute grids always rendered in an horizontal layout, regardless of global and product-level settings
* Dev: Improved compatibility with WooCommerce Quantity Manager and WooCommerce Default Quantity

= 2.0.2 =
Release date 8 December 2021

* New: Shortcode can now be used without any parameter
* New: Improved accessibility of the grid and all its elements
* Fix: Resolved an issue with the cart handler causing a fatal error
* Fix: Resolved an issue with the product-level enabler not being stored when disabled
* Fix: Resolved issues with default quantities not being correctly initialized
* Fix: Resolved an issue with incorrect variation images being displayed
* Tweak: Improved styling of the grid
* Tweak: Improved other minor details in the shortcode
* Dev: Added a filter hook to activate the attribute label in the top left cell

= 2.0.1 =
Release date 19 November 2021

* Fix: Shortcode returning an empty output for existing products
* Tweak: Improved back compatibility with the shortcode `variation_images` parameter

= 2.0 =
Release date 15 November 2021

* New: Support for products with 3 or more attributes
* New: Feature to filter variations before using bulk actions
* New: Option to assign variation images in bulk
* New: CSS Grid layout
* New: Option to display images horizontally
* New: Option to hide prices when all variations have the same price
* New: Option to select global attributes to display horizontally and vertically
* New: Added support for WooCommerce Fast Cart
* New: Added support for Barn2 setup wizard
* Tweak: Styling tweaks and theme improvements
* Tweak: Improved add-to-cart message
* Dev: Added several action and filter hooks
* Dev: Improved performance

= 1.2.2 =
Release date 2 November 2021

* Fix: Resolved issue with lightbox parameter ignored in shortcodes
* Fix: Resolved issue with script adding a variation after resetting its quantity to zero

= 1.2.1 =
Release date 17 September 2021

* Fix: Resolved fatal error when WooCommerce is not active

= 1.2 =
Release date 14 September 2021

* Fix: Resolved incorrect stock availability markup output
* Fix: Resolved missing columns/rows when attribute terms are equivalent in a loose comparison (e.g. "0" and "00")
* Dev: Code refactoring

= 1.1.9 =
Release date 20 May 2021

* Fix: Resolved issue with Quick View Pro lightboxes being closed unintentionally.
* Fix: Resolved issue with 'Add to Cart' button never enabling when all variation quantities default to zero.
* Fix: Resolved issue with variation grid not appearing when every variation is out of stock.

= 1.1.8 =
Release date 5 May 2021

* Fix: Resolved warning regarding photoswipe template when lightboxes are enabled and the theme does not already support photoswipe.
* Fix: Resolved issue with image lightbox while using Bulk Variations inside Quick View Pro.

= 1.1.7 =
Release date 29 March 2021

* Fix: Added translation functions to missing stock level strings.

= 1.1.6 =
Release date 22 March 2021

* Fix: Resolved issue with empty thousands separator crashing browser when total price is at or above 1,000.
* Tweak: Allow grid to display when price of product is zero.
* New: Added additional development hook to allow quantity inputs to utilize standard WooCommerce woocommerce_quantity_input_args filter.
* New: Added Bulk Variations to the WooCommerce Admin menu.

= 1.1.5 =
Release date 2 March 2021

* New: Added filter to table cell output for easier development customization of WBV grid.
* Fix: Resolved issue with zero value attributes being hidden from variations table grid.

= 1.1.4 =
Release date 10 February 2021

* Fix: Resolved issue with quantity selection on product with negative stock levels and backorders are allowed.
* Fix: Resolved conflict with default quantities in the WooCommerce Default Quantity plugin.

= 1.1.3 =
Release date 9 February 2021

* Fix: Resolved issue with taxes not being included in total amount calculation.

= 1.1.2 =
Release date 9 February 2021

* Fix: Resolved issue with displaying attribute labels that are negative numbers.

= 1.1.1 =
Release date 3 February 2021

* Fix: Resolved fatal error on versions of PHP older than 7.2.

= 1.1 =
Release date 1 February 2021

* New: Added lightbox support to grid thumbnail images (enabled by default, disable in settings).
* New: Added stock indicators to variations grid (disabled by default, enable in settings).

= 1.0.8 =
Release date 09 November 2020

* Fix: Added compatibility for OceanWP and other themes that are not using the woocommerce_template_single_add_to_cart hook.

= 1.0.7 =
Release date 15 September 2020

* Fix: Bug with non-numeric values.

= 1.0.6 =
Release date 11 September 2020

* New: Add support for alternative decimal separators in the 'Total' field.

= 1.0.5 =
Release date 9 September 2020

* Fix: Bug for quantity inputs not being displayed for vertical layouts with one attribute.

= 1.0.4 =
Release date 23 July 2020

* Tweak: Added missing strings.

= 1.0.3 =
Release date 9 July 2020

* Fix: Bug with the global option affecting other product types.

= 1.0.2 =
Release date 3 June 2020

* Dev: Fully tested with WooCommerce 4.2.

= 1.0.1 =
Release date 19 May 2020

* Tweak: Ensure that product-level settings can be saved without previously having saved the global settings.

= 1.0 =
Release date 7 May 2020

* Initial release.
