diff --git a/plugins/woocommerce/changelog/issues-36086-more-specific-variation-qty-selector b/plugins/woocommerce/changelog/issues-36086-more-specific-variation-qty-selector new file mode 100644 index 00000000000..7a67eec9fa3 --- /dev/null +++ b/plugins/woocommerce/changelog/issues-36086-more-specific-variation-qty-selector @@ -0,0 +1,4 @@ +Significance: patch +Type: enhancement + +Improves handling of the single product page quantity selector, in relation to variable products. diff --git a/plugins/woocommerce/client/legacy/js/frontend/add-to-cart-variation.js b/plugins/woocommerce/client/legacy/js/frontend/add-to-cart-variation.js index eb28659f96e..24e32dbe3a3 100644 --- a/plugins/woocommerce/client/legacy/js/frontend/add-to-cart-variation.js +++ b/plugins/woocommerce/client/legacy/js/frontend/add-to-cart-variation.js @@ -245,7 +245,7 @@ $dimensions = form.$product.find( '.product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value' ), - $qty = form.$singleVariationWrap.find( '.quantity' ), + $qty = form.$singleVariationWrap.find( '.quantity input[name="quantity"]' ), purchasable = true, variation_id = '', template = false,