Skip to content

Commit 63bd53b

Browse files
committed
Revert - AC-15304:Price of product in cart affected by catalog price rule does not change when rule is adjusted by the staging update
1 parent ccb75ca commit 63bd53b

File tree

2 files changed

+15
-125
lines changed

2 files changed

+15
-125
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
?>
1111
<?php $mergedCells = ($this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?>
1212
<?= $block->getChildHtml('form_before') ?>
13-
<form action="<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>"
13+
<form action="<?= $block->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>"
1414
method="post"
1515
id="form-validate"
1616
data-mage-init='{"Magento_Checkout/js/action/update-shopping-cart":
17-
{"validationURL" : "<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>",
18-
"updateCartActionContainer": "#update_cart_action_container"},
19-
"Magento_Checkout/js/cart/ensure-subtotal-sync": {}
17+
{"validationURL" : "<?= $block->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>",
18+
"updateCartActionContainer": "#update_cart_action_container"}
2019
}'
2120
class="form form-cart">
2221
<?= $block->getBlockHtml('formkey') ?>
@@ -30,13 +29,13 @@
3029
class="cart items data table"
3130
data-mage-init='{"shoppingCart":{"emptyCartButton": ".action.clear",
3231
"updateCartActionContainer": "#update_cart_action_container"}}'>
33-
<caption class="table-caption"><?= $escaper->escapeHtml(__('Shopping Cart Items')) ?></caption>
32+
<caption class="table-caption"><?= $block->escapeHtml(__('Shopping Cart Items')) ?></caption>
3433
<thead>
3534
<tr>
36-
<th class="col item" scope="col"><span><?= $escaper->escapeHtml(__('Item')) ?></span></th>
37-
<th class="col price" scope="col"><span><?= $escaper->escapeHtml(__('Price')) ?></span></th>
38-
<th class="col qty" scope="col"><span><?= $escaper->escapeHtml(__('Qty')) ?></span></th>
39-
<th class="col subtotal" scope="col"><span><?= $escaper->escapeHtml(__('Subtotal')) ?></span></th>
35+
<th class="col item" scope="col"><span><?= $block->escapeHtml(__('Item')) ?></span></th>
36+
<th class="col price" scope="col"><span><?= $block->escapeHtml(__('Price')) ?></span></th>
37+
<th class="col qty" scope="col"><span><?= $block->escapeHtml(__('Qty')) ?></span></th>
38+
<th class="col subtotal" scope="col"><span><?= $block->escapeHtml(__('Subtotal')) ?></span></th>
4039
</tr>
4140
</thead>
4241
<?php foreach ($block->getItems() as $_item): ?>
@@ -52,28 +51,28 @@
5251
<div class="cart main actions">
5352
<?php if ($block->getContinueShoppingUrl()): ?>
5453
<a class="action continue"
55-
href="<?= $escaper->escapeUrl($block->getContinueShoppingUrl()) ?>"
56-
title="<?= $escaper->escapeHtml(__('Continue Shopping')) ?>">
57-
<span><?= $escaper->escapeHtml(__('Continue Shopping')) ?></span>
54+
href="<?= $block->escapeUrl($block->getContinueShoppingUrl()) ?>"
55+
title="<?= $block->escapeHtml(__('Continue Shopping')) ?>">
56+
<span><?= $block->escapeHtml(__('Continue Shopping')) ?></span>
5857
</a>
5958
<?php endif; ?>
6059
<?php if ($block->getViewModel()->isClearShoppingCartEnabled()): ?>
6160
<button type="button"
6261
name="update_cart_action"
6362
data-cart-empty=""
6463
value="empty_cart"
65-
title="<?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?>"
64+
title="<?= $block->escapeHtml(__('Clear Shopping Cart')) ?>"
6665
class="action clear" id="empty_cart_button">
67-
<span><?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?></span>
66+
<span><?= $block->escapeHtml(__('Clear Shopping Cart')) ?></span>
6867
</button>
6968
<?php endif ?>
7069
<button type="submit"
7170
name="update_cart_action"
7271
data-cart-item-update=""
7372
value="update_qty"
74-
title="<?= $escaper->escapeHtml(__('Update Shopping Cart')) ?>"
73+
title="<?= $block->escapeHtml(__('Update Shopping Cart')) ?>"
7574
class="action update">
76-
<span><?= $escaper->escapeHtml(__('Update Shopping Cart')) ?></span>
75+
<span><?= $block->escapeHtml(__('Update Shopping Cart')) ?></span>
7776
</button>
7877
<input type="hidden" value="" id="update_cart_action_container" data-cart-item-update=""/>
7978
</div>

app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)