File tree 3 files changed +12
-10
lines changed
app/code/Magento/Checkout 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ protected function _construct()
107
107
}
108
108
109
109
/**
110
- * {@inheritdoc}
110
+ * @inheritdoc
111
+ *
111
112
* @since 100.2.0
112
113
*/
113
114
protected function _prepareLayout ()
@@ -151,7 +152,8 @@ public function getItemsForGrid()
151
152
}
152
153
153
154
/**
154
- * {@inheritdoc}
155
+ * @inheritdoc
156
+ *
155
157
* @since 100.2.0
156
158
*/
157
159
public function getItems ()
@@ -187,7 +189,7 @@ private function isPagerDisplayedOnPage()
187
189
*/
188
190
public function isClearShoppingCartEnabled ()
189
191
{
190
- return (bool ) $ this ->_scopeConfig ->getValue (
192
+ return (bool )$ this ->_scopeConfig ->getValue (
191
193
self ::XPATH_CONFIG_ENABLE_CLEAR_SHOPPING_CART ,
192
194
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
193
195
);
Original file line number Diff line number Diff line change 20
20
class="form form-cart">
21
21
<?= $ block ->getBlockHtml ('formkey ' ) ?>
22
22
<div class="cart table-wrapper<?= $ mergedCells == 2 ? ' detailed ' : '' ?> ">
23
- <?php if ($ block ->getPagerHtml ()) : ?>
23
+ <?php if ($ block ->getPagerHtml ()): ?>
24
24
<div class="cart-products-toolbar cart-products-toolbar-top toolbar"
25
25
data-attribute="cart-products-toolbar-top"><?= $ block ->getPagerHtml () ?>
26
26
</div>
38
38
<th class="col subtotal" scope="col"><span><?= $ block ->escapeHtml (__ ('Subtotal ' )) ?> </span></th>
39
39
</tr>
40
40
</thead>
41
- <?php foreach ($ block ->getItems () as $ _item ) : ?>
41
+ <?php foreach ($ block ->getItems () as $ _item ): ?>
42
42
<?= $ block ->getItemHtml ($ _item ) ?>
43
43
<?php endforeach ?>
44
44
</table>
45
- <?php if ($ block ->getPagerHtml ()) : ?>
45
+ <?php if ($ block ->getPagerHtml ()): ?>
46
46
<div class="cart-products-toolbar cart-products-toolbar-bottom toolbar"
47
47
data-attribute="cart-products-toolbar-bottom"><?= $ block ->getPagerHtml () ?>
48
48
</div>
49
49
<?php endif ?>
50
50
</div>
51
51
<div class="cart main actions">
52
- <?php if ($ block ->getContinueShoppingUrl ()) : ?>
52
+ <?php if ($ block ->getContinueShoppingUrl ()): ?>
53
53
<a class="action continue"
54
54
href="<?= $ block ->escapeUrl ($ block ->getContinueShoppingUrl ()) ?> "
55
55
title="<?= $ block ->escapeHtml (__ ('Continue Shopping ' )) ?> ">
56
56
<span><?= $ block ->escapeHtml (__ ('Continue Shopping ' )) ?> </span>
57
57
</a>
58
58
<?php endif ; ?>
59
- <?php if ($ block ->isClearShoppingCartEnabled ()) : ?>
59
+ <?php if ($ block ->isClearShoppingCartEnabled ()): ?>
60
60
<button type="button"
61
61
name="update_cart_action"
62
62
data-cart-empty=""
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ define([
63
63
* Display confirmation modal for clearing the cart
64
64
* @private
65
65
*/
66
- _clearCartConfirmation : function ( ) {
66
+ _clearCartConfirmation : function ( ) {
67
67
var self = this ;
68
68
69
69
confirm ( {
@@ -80,7 +80,7 @@ define([
80
80
* Prepares the form and submit to clear the cart
81
81
* @public
82
82
*/
83
- clearCart : function ( ) {
83
+ clearCart : function ( ) {
84
84
$ ( this . options . emptyCartButton ) . attr ( 'name' , 'update_cart_action_temp' ) ;
85
85
$ ( this . options . updateCartActionContainer )
86
86
. attr ( 'name' , 'update_cart_action' ) . attr ( 'value' , 'empty_cart' ) ;
You can’t perform that action at this time.
0 commit comments