Commit c31bd9b9 by lmf

测试购物车列表支付按钮

parent 751fa6c1
...@@ -15,7 +15,7 @@ use Magento\Framework\Escaper; ...@@ -15,7 +15,7 @@ use Magento\Framework\Escaper;
<?php if ($block->isPossibleOnepageCheckout()): ?> <?php if ($block->isPossibleOnepageCheckout()): ?>
<button type="button" <button type="button"
data-role="proceed-to-checkout" data-role="proceed-to-checkout"
title="<?= $escaper->escapeHtmlAttr(__('Proceed to Checkout')) ?>" title="<?= $escaper->escapeHtmlAttr(__('Checkout Now')) ?>"
data-mage-init='{ data-mage-init='{
"Magento_Checkout/js/proceed-to-checkout":{ "Magento_Checkout/js/proceed-to-checkout":{
"checkoutUrl":"<?= $escaper->escapeJs($block->getCheckoutUrl()) ?>" "checkoutUrl":"<?= $escaper->escapeJs($block->getCheckoutUrl()) ?>"
...@@ -25,6 +25,6 @@ use Magento\Framework\Escaper; ...@@ -25,6 +25,6 @@ use Magento\Framework\Escaper;
<?php if ($block->isDisabled()): ?> <?php if ($block->isDisabled()): ?>
disabled="disabled" disabled="disabled"
<?php endif; ?>> <?php endif; ?>>
<span><?= $escaper->escapeHtml(__('Proceed to Checkout')) ?></span> <span><?= $escaper->escapeHtml(__('Checkout Now')) ?></span>
</button> </button>
<?php endif?> <?php endif?>
...@@ -42,13 +42,15 @@ ...@@ -42,13 +42,15 @@
<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>
<!--/ko--> <!--/ko-->
<!-- ko if: (getCartParam('summary_count') === 1) --> <!-- ko if: (getCartParam('summary_count') === 1) -->
<span translate="'Item in Cart'"></span> <span translate="'Item in Cart'"></span>
<!--/ko--> <!--/ko-->
</div> </div>
<each args="getRegion('subtotalContainer')" render=""></each> <each args="getRegion('subtotalContainer')" render=""></each>
......
...@@ -34,27 +34,7 @@ ...@@ -34,27 +34,7 @@
<div class="product-item-pricing"> <div class="product-item-pricing">
<div class="details-qty qty"> <div class="details-qty qty">
<label class="label" data-bind="i18n: 'Qty', attr: { <span class="qty-wrapper" data-bind="html: qty"></span> *
for: 'cart-item-'+item_id+'-qty'}"></label>
<span class="qty-wrapper" data-bind="html: qty"></span>
<input data-bind="attr: {
id: 'cart-item-'+item_id+'-qty',
'data-cart-item': item_id,
'data-item-qty': qty,
'data-cart-item-id': product_sku
}, value: qty"
type="number"
size="4"
class="item-qty cart-item-qty"/>
<button data-bind="attr: {
id: 'update-cart-item-'+item_id,
'data-cart-item': item_id,
title: $t('Update')
}"
class="update-cart-item"
style="display: none">
<span data-bind="i18n: 'Update'"></span>
</button>
<!-- ko if: canApplyMsrp --> <!-- ko if: canApplyMsrp -->
<div class="details-map"> <div class="details-map">
<span class="label" data-bind="i18n: 'Price'"></span> <span class="label" data-bind="i18n: 'Price'"></span>
......
...@@ -1635,7 +1635,8 @@ footer{ ...@@ -1635,7 +1635,8 @@ footer{
width: 100%; width: 100%;
display: inline-block; display: inline-block;
color: #333333; color: #333333;
font-size: 12px; font-size: 10px;
line-height: 15px;
} }
...@@ -2299,11 +2300,19 @@ tr.grand.totals { ...@@ -2299,11 +2300,19 @@ tr.grand.totals {
.cart.table .actions-toolbar{ .cart.table .actions-toolbar{
margin-top: -10%; margin-top: -10%;
} }
.cart.item .item-info td.col.item {
width: 60%;
}
} }
tr.totals.discount{ tr.totals.discount{
color: #FF0000; color: #FF0000;
} }
.cart-container .checkout-methods-items li:first-child{
background-color: #ffa800 ;
}
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