Skip to content

Commit 6b9b50c

Browse files
committed
Roll back the changes
1 parent 7f47c10 commit 6b9b50c

File tree

1 file changed

+7
-3
lines changed
  • app/code/Magento/Checkout/view/frontend/templates/cart/item/configure

1 file changed

+7
-3
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/item/configure/updatecart.phtml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
?>
99
<?php $_product = $block->getProduct(); ?>
1010
<?php $buttonTitle = __('Update Cart'); ?>
11-
<?php if ($_product->isSaleable()):?>
11+
<?php if ($_product->isSaleable()) :?>
1212
<div class="box-tocart update">
1313
<fieldset class="fieldset">
14-
<?php if ($block->shouldRenderQuantity()):?>
14+
<?php if ($block->shouldRenderQuantity()) :?>
1515
<div class="field qty">
1616
<label class="label" for="qty"><span><?= $block->escapeHtml(__('Qty')) ?></span></label>
1717
<div class="control">
@@ -40,7 +40,11 @@
4040
<script type="text/x-magento-init">
4141
{
4242
"#product_addtocart_form": {
43-
"Magento_Catalog/js/validate-product": {}
43+
"validation": {},
44+
"addToCart": {
45+
"cartButtonId": "#product-updatecart-button",
46+
"cartForm": "#product_addtocart_form"
47+
}
4448
}
4549
}
4650
</script>

0 commit comments

Comments
 (0)