|
10 | 10 | ?> |
11 | 11 | <?php $mergedCells = ($this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?> |
12 | 12 | <?= $block->getChildHtml('form_before') ?> |
13 | | -<form action="<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>" |
| 13 | +<form action="<?= $block->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>" |
14 | 14 | method="post" |
15 | 15 | id="form-validate" |
16 | 16 | 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"} |
20 | 19 | }' |
21 | 20 | class="form form-cart"> |
22 | 21 | <?= $block->getBlockHtml('formkey') ?> |
|
30 | 29 | class="cart items data table" |
31 | 30 | data-mage-init='{"shoppingCart":{"emptyCartButton": ".action.clear", |
32 | 31 | "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> |
34 | 33 | <thead> |
35 | 34 | <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> |
40 | 39 | </tr> |
41 | 40 | </thead> |
42 | 41 | <?php foreach ($block->getItems() as $_item): ?> |
|
52 | 51 | <div class="cart main actions"> |
53 | 52 | <?php if ($block->getContinueShoppingUrl()): ?> |
54 | 53 | <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> |
58 | 57 | </a> |
59 | 58 | <?php endif; ?> |
60 | 59 | <?php if ($block->getViewModel()->isClearShoppingCartEnabled()): ?> |
61 | 60 | <button type="button" |
62 | 61 | name="update_cart_action" |
63 | 62 | data-cart-empty="" |
64 | 63 | value="empty_cart" |
65 | | - title="<?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?>" |
| 64 | + title="<?= $block->escapeHtml(__('Clear Shopping Cart')) ?>" |
66 | 65 | class="action clear" id="empty_cart_button"> |
67 | | - <span><?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?></span> |
| 66 | + <span><?= $block->escapeHtml(__('Clear Shopping Cart')) ?></span> |
68 | 67 | </button> |
69 | 68 | <?php endif ?> |
70 | 69 | <button type="submit" |
71 | 70 | name="update_cart_action" |
72 | 71 | data-cart-item-update="" |
73 | 72 | value="update_qty" |
74 | | - title="<?= $escaper->escapeHtml(__('Update Shopping Cart')) ?>" |
| 73 | + title="<?= $block->escapeHtml(__('Update Shopping Cart')) ?>" |
75 | 74 | class="action update"> |
76 | | - <span><?= $escaper->escapeHtml(__('Update Shopping Cart')) ?></span> |
| 75 | + <span><?= $block->escapeHtml(__('Update Shopping Cart')) ?></span> |
77 | 76 | </button> |
78 | 77 | <input type="hidden" value="" id="update_cart_action_container" data-cart-item-update=""/> |
79 | 78 | </div> |
|
0 commit comments