Skip to content

Commit a3c38c4

Browse files
committed
ACP2E-703: Page refreshes when products are added to cart
1 parent 0e3194e commit a3c38c4

File tree

1 file changed

+9
-9
lines changed
  • app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content

1 file changed

+9
-9
lines changed

app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/widget/content/carousel.phtml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ use Magento\Framework\App\Action\Action;
100100
</div>
101101
</div>
102102
<?= ($iterator == count($items) + 1) ? '</li>' : '' ?>
103-
<script type="text/x-magento-init">
104-
{
105-
"[data-role=tocart-form], .form.map.checkout": {
106-
"catalogAddToCart": {
107-
"product_sku": "<?= $escaper->escapeJs($_item->getSku()); ?>"
108-
}
109-
}
110-
}
111-
</script>
112103
<?php endforeach ?>
113104
</ol>
105+
<script type="text/x-magento-init">
106+
{
107+
"[data-role=tocart-form], .form.map.checkout": {
108+
"catalogAddToCart": {
109+
"product_sku": "<?= $escaper->escapeJs($_item->getSku()); ?>"
110+
}
111+
}
112+
}
113+
</script>
114114
<?php endif;?>

0 commit comments

Comments
 (0)