|
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="<?= $block->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>" |
| 13 | +<form action="<?= $escaper->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" : "<?= $block->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>", |
18 | | - "updateCartActionContainer": "#update_cart_action_container"} |
| 17 | + {"validationURL" : "<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>", |
| 18 | + "updateCartActionContainer": "#update_cart_action_container"}, |
| 19 | + "Magento_Checkout/js/cart/ensure-subtotal-sync": {} |
19 | 20 | }' |
20 | 21 | class="form form-cart"> |
21 | 22 | <?= $block->getBlockHtml('formkey') ?> |
|
29 | 30 | class="cart items data table" |
30 | 31 | data-mage-init='{"shoppingCart":{"emptyCartButton": ".action.clear", |
31 | 32 | "updateCartActionContainer": "#update_cart_action_container"}}'> |
32 | | - <caption class="table-caption"><?= $block->escapeHtml(__('Shopping Cart Items')) ?></caption> |
| 33 | + <caption class="table-caption"><?= $escaper->escapeHtml(__('Shopping Cart Items')) ?></caption> |
33 | 34 | <thead> |
34 | 35 | <tr> |
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> |
| 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> |
39 | 40 | </tr> |
40 | 41 | </thead> |
41 | 42 | <?php foreach ($block->getItems() as $_item): ?> |
|
51 | 52 | <div class="cart main actions"> |
52 | 53 | <?php if ($block->getContinueShoppingUrl()): ?> |
53 | 54 | <a class="action continue" |
54 | | - href="<?= $block->escapeUrl($block->getContinueShoppingUrl()) ?>" |
55 | | - title="<?= $block->escapeHtml(__('Continue Shopping')) ?>"> |
56 | | - <span><?= $block->escapeHtml(__('Continue Shopping')) ?></span> |
| 55 | + href="<?= $escaper->escapeUrl($block->getContinueShoppingUrl()) ?>" |
| 56 | + title="<?= $escaper->escapeHtml(__('Continue Shopping')) ?>"> |
| 57 | + <span><?= $escaper->escapeHtml(__('Continue Shopping')) ?></span> |
57 | 58 | </a> |
58 | 59 | <?php endif; ?> |
59 | 60 | <?php if ($block->getViewModel()->isClearShoppingCartEnabled()): ?> |
60 | 61 | <button type="button" |
61 | 62 | name="update_cart_action" |
62 | 63 | data-cart-empty="" |
63 | 64 | value="empty_cart" |
64 | | - title="<?= $block->escapeHtml(__('Clear Shopping Cart')) ?>" |
| 65 | + title="<?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?>" |
65 | 66 | class="action clear" id="empty_cart_button"> |
66 | | - <span><?= $block->escapeHtml(__('Clear Shopping Cart')) ?></span> |
| 67 | + <span><?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?></span> |
67 | 68 | </button> |
68 | 69 | <?php endif ?> |
69 | 70 | <button type="submit" |
70 | 71 | name="update_cart_action" |
71 | 72 | data-cart-item-update="" |
72 | 73 | value="update_qty" |
73 | | - title="<?= $block->escapeHtml(__('Update Shopping Cart')) ?>" |
| 74 | + title="<?= $escaper->escapeHtml(__('Update Shopping Cart')) ?>" |
74 | 75 | class="action update"> |
75 | | - <span><?= $block->escapeHtml(__('Update Shopping Cart')) ?></span> |
| 76 | + <span><?= $escaper->escapeHtml(__('Update Shopping Cart')) ?></span> |
76 | 77 | </button> |
77 | 78 | <input type="hidden" value="" id="update_cart_action_container" data-cart-item-update=""/> |
78 | 79 | </div> |
|
0 commit comments