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 f0901f6 commit 95fcaa8Copy full SHA for 95fcaa8
app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml
@@ -40,22 +40,21 @@
40
</div>
41
42
<?php endif; ?>
43
-<?php if (!$block->isRedirectToCartEnabled()) : ?>
44
<script type="text/x-magento-init">
45
{
46
"#product_addtocart_form": {
47
- "catalogAddToCart": {
48
- "bindSubmit": true
+ "Magento_Catalog/product/view/validation": {
+ "radioCheckboxClosest": ".nested"
49
}
50
51
52
</script>
53
-<?php else: ?>
+<?php if (!$block->isRedirectToCartEnabled()) : ?>
54
55
56
57
- "Magento_Catalog/product/view/validation": {
58
- "radioCheckboxClosest": ".nested"
+ "catalogAddToCart": {
+ "bindSubmit": true
59
60
61
0 commit comments