The plugin's quantity validation (add_to_cart_validation) incorrectly triggers for product variations when the parent variable product is set to "Disable".
Note: The following technical description of the bug was generated by an AI assistant (Gemini) and should be confirmed by a developer for complete accuracy.
🐞 Observed Issue (Не встановлені обмеження)
Parent Product: _woopq_quantity is set to disable.
Variations: Have no individual settings (meta is empty).
No Limits Set: There are no explicit Max Quantity limits configured on the product, variations, or in the plugin's global settings.
Result: self::get_quantity() for the variation returns 'parent' instead of inheriting 'disable'.
Consequence: Since 'parent' !='disable', the validation proceeds, and leads to specific, unintended symptoms:
An error message is displayed when attempting to add more than 10 units to the cart. This indicates that Max Quantity is being read as 10 from an unexpected default value within the activated validation logic, even though no explicit limit was configured by the user
The plugin's quantity validation (add_to_cart_validation) incorrectly triggers for product variations when the parent variable product is set to "Disable".
Note: The following technical description of the bug was generated by an AI assistant (Gemini) and should be confirmed by a developer for complete accuracy.
🐞 Observed Issue (Не встановлені обмеження)