We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a7462 commit f0901f6Copy full SHA for f0901f6
app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml
@@ -40,21 +40,22 @@
40
</div>
41
42
<?php endif; ?>
43
+<?php if (!$block->isRedirectToCartEnabled()) : ?>
44
<script type="text/x-magento-init">
45
{
46
"#product_addtocart_form": {
- "Magento_Catalog/product/view/validation": {
47
- "radioCheckboxClosest": ".nested"
+ "catalogAddToCart": {
48
+ "bindSubmit": true
49
}
50
51
52
</script>
-<?php if (!$block->isRedirectToCartEnabled()) : ?>
53
+<?php else: ?>
54
55
56
- "catalogAddToCart": {
57
- "bindSubmit": true
+ "Magento_Catalog/product/view/validation": {
58
+ "radioCheckboxClosest": ".nested"
59
60
61
0 commit comments