From e0a6a8d8cde01e531d25ad4348ab8c8d9a3afc2a Mon Sep 17 00:00:00 2001 From: PululuK Date: Mon, 23 Sep 2024 11:51:35 +0200 Subject: [PATCH] Fix product refresh when multiple elements --- themes/_core/js/product.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/themes/_core/js/product.js b/themes/_core/js/product.js index 9bb81e761083f..9e1eae2b50d41 100644 --- a/themes/_core/js/product.js +++ b/themes/_core/js/product.js @@ -223,10 +223,8 @@ function updateProduct(event, eventType, updateUrl) { ); } $(prestashop.selectors.product.prices) - .first() .replaceWith(data.product_prices); $(prestashop.selectors.product.customization) - .first() .replaceWith(data.product_customization); // refill customizationId input value when updating quantity or combination @@ -240,19 +238,15 @@ function updateProduct(event, eventType, updateUrl) { } $(prestashop.selectors.product.variantsUpdate) - .first() .replaceWith(data.product_variants); $(prestashop.selectors.product.discounts) - .first() .replaceWith(data.product_discounts); $(prestashop.selectors.product.additionalInfos) - .first() .replaceWith(data.product_additional_info); $(prestashop.selectors.product.details).replaceWith( data.product_details, ); $(prestashop.selectors.product.flags) - .first() .replaceWith(data.product_flags); replaceAddToCartSections(data); const minimalProductQuantity = parseInt(