Commit 751fa6c1 by lmf

测试购物车列表数量

parent 59a2b063
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<button type="submit" <button type="submit"
title="<?= $block->escapeHtmlAttr($buttonTitle) ?>" title="<?= $block->escapeHtmlAttr($buttonTitle) ?>"
class="action primary tocart" class="action primary tocart"
id="product-updatecart-button"> id="product-updatecart-button" style="width: 100%;background: #000;">
<span><?= $block->escapeHtml($buttonTitle) ?></span> <span><?= $block->escapeHtml($buttonTitle) ?></span>
</button> </button>
<?= $block->getChildHtml('', true) ?> <?= $block->getChildHtml('', true) ?>
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
<if args="getCartParam('summary_count')"> <if args="getCartParam('summary_count')">
<div class="items-total"> <div class="items-total">
<span class="count" if="maxItemsToDisplay < getCartLineItemsCount()" text="maxItemsToDisplay"></span>
<translate args="'of'" if="maxItemsToDisplay < getCartLineItemsCount()"></translate>
<span class="count" text="getCartParam('summary_count')"></span> <span class="count" text="getCartParam('summary_count')"></span>
<!-- ko if: (getCartParam('summary_count') > 1) --> <!-- ko if: (getCartParam('summary_count') > 1) -->
<span translate="'Items in Cart'"></span> <span translate="'Items in Cart'"></span>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<div class="details-qty qty"> <div class="details-qty qty">
<label class="label" data-bind="i18n: 'Qty', attr: { <label class="label" data-bind="i18n: 'Qty', attr: {
for: 'cart-item-'+item_id+'-qty'}"></label> for: 'cart-item-'+item_id+'-qty'}"></label>
<span class="qty-wrapper" data-bind="html: qty"></span>
<input data-bind="attr: { <input data-bind="attr: {
id: 'cart-item-'+item_id+'-qty', id: 'cart-item-'+item_id+'-qty',
'data-cart-item': item_id, 'data-cart-item': item_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment