From 4bbca3ef0358d640ba9f5ecf6f514ad86d322753 Mon Sep 17 00:00:00 2001 From: PapsOu Date: Thu, 19 Oct 2017 17:19:28 +0200 Subject: [PATCH] Add more accurate select jQuery selector --- .../ShopBundle/Resources/private/js/sylius-variants-prices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sylius/Bundle/ShopBundle/Resources/private/js/sylius-variants-prices.js b/src/Sylius/Bundle/ShopBundle/Resources/private/js/sylius-variants-prices.js index ddfb6bdf19c..fde9cca8aab 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/private/js/sylius-variants-prices.js +++ b/src/Sylius/Bundle/ShopBundle/Resources/private/js/sylius-variants-prices.js @@ -25,7 +25,7 @@ function handleProductOptionsChange() { $('[name*="sylius_add_to_cart[cartItem][variant]"]').on('change', function() { var $selector = ''; - $('#sylius-product-adding-to-cart select').each(function() { + $('#sylius-product-adding-to-cart select[data-option]').each(function() { var option = $(this).find('option:selected').val(); $selector += '[data-' + $(this).attr('data-option') + '="' + option + '"]'; });