Commit 3969bae9 by dhn

修改结算按钮上不价格及结算页上部商品总价

parent 84ad8771
......@@ -221,7 +221,9 @@ require(['jquery'], function ($) {
var fixHeight = $('.area-blk-notitle').height();
$(window).scroll(function () {
$(window).scroll(function () {
if($('.area-blk-notitle').length < 1){
return false;
}
var scrollTop = $(document).scrollTop();
var fixTop = $('.area-blk-notitle').offset().top;
var tableTop = $('#shopping-cart-table').offset().top;
......
......@@ -54,7 +54,7 @@ $subtotalStr = $block->escapeHtml(
<div class="now-grand-total" style="font-size: 18px;width:100%;">
<div style="float: left;text-align: left;"><strong>Order Total:</strong></div>
<div style="float: right;text-align: right;"><?= $subtotalStr ?></div>
<div style="float: right;text-align: right;" id="now-grand-total"><?= $subtotalStr ?></div>
</div>
......
......@@ -72,7 +72,7 @@ define([
return priceUtils.formatPrice(price, quote.getPriceFormat());
},
getGrandTotal:function(){
return this.getFormattedPrice(this.totals['grand_total']);
return this.getFormattedPrice(this.totals['base_subtotal']);
},
/**
* Set items to observable field
......
......@@ -38,7 +38,9 @@ define([
* @return {*|String}
*/
getValue: function () {
return this.getFormattedPrice(this.getPureValue());
var price = this.getFormattedPrice(this.getPureValue());
$('#now-grand-total').html(price)
return price;
}
});
});
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