Skip to content

Commit

Permalink
Fix product refresh when multiple elements
Browse files Browse the repository at this point in the history
  • Loading branch information
PululuK authored Sep 23, 2024
1 parent 5982d86 commit e0a6a8d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions themes/_core/js/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit e0a6a8d

Please sign in to comment.