Skip to content

Commit 95fcaa8

Browse files
committed
Revert "Fix Add to Cart"
This reverts commit f0901f6.
1 parent f0901f6 commit 95fcaa8

File tree

1 file changed

+5
-6
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/view

1 file changed

+5
-6
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,21 @@
4040
</div>
4141
</div>
4242
<?php endif; ?>
43-
<?php if (!$block->isRedirectToCartEnabled()) : ?>
4443
<script type="text/x-magento-init">
4544
{
4645
"#product_addtocart_form": {
47-
"catalogAddToCart": {
48-
"bindSubmit": true
46+
"Magento_Catalog/product/view/validation": {
47+
"radioCheckboxClosest": ".nested"
4948
}
5049
}
5150
}
5251
</script>
53-
<?php else: ?>
52+
<?php if (!$block->isRedirectToCartEnabled()) : ?>
5453
<script type="text/x-magento-init">
5554
{
5655
"#product_addtocart_form": {
57-
"Magento_Catalog/product/view/validation": {
58-
"radioCheckboxClosest": ".nested"
56+
"catalogAddToCart": {
57+
"bindSubmit": true
5958
}
6059
}
6160
}

0 commit comments

Comments
 (0)