Skip to content

Commit 2194c62

Browse files
author
Stanislav Idolov
authored
ENGCOM-1165: [Forwardport] Disable add to cart button when redirect to cart enabled #14437
2 parents 9bec41d + fa73aaa commit 2194c62

File tree

1 file changed

+0
-12
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/view

1 file changed

+0
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,10 @@
4040
</div>
4141
</div>
4242
<?php endif; ?>
43-
<?php if ($block->isRedirectToCartEnabled()) : ?>
44-
<script type="text/x-magento-init">
45-
{
46-
"#product_addtocart_form": {
47-
"Magento_Catalog/product/view/validation": {
48-
"radioCheckboxClosest": ".nested"
49-
}
50-
}
51-
}
52-
</script>
53-
<?php else : ?>
5443
<script type="text/x-magento-init">
5544
{
5645
"#product_addtocart_form": {
5746
"Magento_Catalog/js/validate-product": {}
5847
}
5948
}
6049
</script>
61-
<?php endif; ?>

0 commit comments

Comments
 (0)