Skip to content

Commit 9a007f0

Browse files
author
Alex Bomko
committed
Merge remote-tracking branch 'origin/MAGETWO-39682' into develop
2 parents 0d24f1c + 2cffc59 commit 9a007f0

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,21 @@
4545
<?php endif; ?>
4646
<button type="submit"
4747
name="update_cart_action"
48+
data-cart-empty=""
4849
value="empty_cart"
4950
title="<?php echo $block->escapeHtml(__('Clear Shopping Cart')); ?>"
5051
class="action clear" id="empty_cart_button">
5152
<span><?php echo __('Clear Shopping Cart'); ?></span>
5253
</button>
5354
<button type="submit"
5455
name="update_cart_action"
56+
data-cart-item-update=""
5557
value="update_qty"
5658
title="<?php echo $block->escapeHtml(__('Update Shopping Cart')); ?>"
5759
class="action update">
5860
<span><?php echo __('Update Shopping Cart'); ?></span>
5961
</button>
60-
<input type="hidden" value="" id="update_cart_action_container" />
62+
<input type="hidden" value="" id="update_cart_action_container" data-cart-item-update=""/>
6163
</div>
6264
</form>
6365
<?php echo $block->getChildHtml('checkout.cart.order.actions') ?>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
9393
<div class="control qty">
9494
<input id="cart-<?php echo $_item->getId() ?>-qty"
9595
name="cart[<?php echo $_item->getId() ?>][qty]"
96+
data-cart-item-id="<?php echo $_item->getSku() ?>"
9697
value="<?php echo $block->getQty() ?>"
9798
type="number"
9899
size="4"

app/code/Magento/Downloadable/view/frontend/templates/checkout/cart/item/default.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
8787
<?php endif; ?>
8888
<td class="col qty" data-th="<?php echo $block->escapeHtml(__('Qty')); ?>">
8989
<div class="control qty">
90-
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $block->getQty() ?>" type="number" size="4" title="<?php echo __('Qty') ?>" class="input-text qty" maxlength="12" data-validate="{'required-number':true,'validate-greater-than-zero':true}" data-role="cart-item-qty"/>
90+
<input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $block->getQty() ?>" type="number" size="4" title="<?php echo __('Qty') ?>" class="input-text qty" data-cart-item-id="<?php echo $block->escapeHtml(__($_item->getSku())) ?>" maxlength="12" data-validate="{'required-number':true,'validate-greater-than-zero':true}" data-role="cart-item-qty"/>
9191
</div>
9292
<?php $cols++; ?>
9393
</td>

app/code/Magento/Multishipping/view/frontend/templates/checkout/addresses.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<span><?php echo __('Qty') ?></span>
4343
</label>
4444
<div class="control">
45-
<input type="number" id="ship-<?php echo $_index ?>-<?php echo $_item->getQuoteItemId() ?>-qty" name="ship[<?php echo $_index ?>][<?php echo $_item->getQuoteItemId() ?>][qty]" value="<?php echo $block->escapeHtml($_item->getQty()) ?>" size="2" class="input-text qty" data-validate="{number: true}"/>
45+
<input type="number" data-multiship-item-id="<?php echo $_item->getSku() ?>" id="ship-<?php echo $_index ?>-<?php echo $_item->getQuoteItemId() ?>-qty" name="ship[<?php echo $_index ?>][<?php echo $_item->getQuoteItemId() ?>][qty]" value="<?php echo $block->escapeHtml($_item->getQty()) ?>" size="2" class="input-text qty" data-validate="{number: true}"/>
4646
</div>
4747
</div>
4848
</td>
@@ -61,7 +61,7 @@
6161
<?php endif; ?>
6262
</td>
6363
<td class="col actions" data-th="<?php echo $block->escapeHtml(__('Actions'));?>">
64-
<a href="<?php echo $block->getItemDeleteUrl($_item) ?>" title="<?php echo __('Remove Item') ?>" class="action delete">
64+
<a href="<?php echo $block->getItemDeleteUrl($_item) ?>" title="<?php echo __('Remove Item') ?>" class="action delete" data-multiship-item-update="">
6565
<span><?php echo __('Remove item') ?></span>
6666
</a>
6767
</td>
@@ -76,7 +76,7 @@
7676
<button type="submit" title="<?php echo __('Go to Shipping Information') ?>" class="action primary continue<?php if ($block->isContinueDisabled()):?> disabled<?php endif; ?>" data-role="can-continue" data-flag="1"<?php if ($block->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><?php echo __('Go to Shipping Information') ?></span></button>
7777
</div>
7878
<div class="secondary">
79-
<button type="submit" class="action update" data-role="can-continue" data-flag="0"><span><?php echo __('Update Qty &amp; Addresses') ?></span></button>
79+
<button type="submit" data-multiship-item-update="" class="action update" data-role="can-continue" data-flag="0"><span><?php echo __('Update Qty &amp; Addresses') ?></span></button>
8080
<button type="button" title="<?php echo __('Enter a New Address') ?>" class="action add" data-role="add-new-address"><span><?php echo __('Enter a New Address') ?></span></button>
8181
<a href="<?php echo $block->getBackUrl() ?>" class="action back"><span><?php echo __('Back to Shopping Cart') ?></span></a>
8282
</div>

0 commit comments

Comments
 (0)