Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
3969bae9
Commit
3969bae9
authored
Apr 07, 2023
by
dhn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改结算按钮上不价格及结算页上部商品总价
parent
84ad8771
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
+3
-1
app/code/Magento/Checkout/view/frontend/templates/cart/methods-new.phtml
+1
-1
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
+1
-1
app/code/Magento/Checkout/view/frontend/web/js/view/summary/grand-total.js
+3
-1
No files found.
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
View file @
3969bae9
...
@@ -221,7 +221,9 @@ require(['jquery'], function ($) {
...
@@ -221,7 +221,9 @@ require(['jquery'], function ($) {
var
fixHeight
=
$
(
'.area-blk-notitle'
).
height
();
var
fixHeight
=
$
(
'.area-blk-notitle'
).
height
();
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
$
(
window
).
scroll
(
function
()
{
if
(
$
(
'.area-blk-notitle'
).
length
<
1
){
return
false
;
}
var
scrollTop
=
$
(
document
).
scrollTop
();
var
scrollTop
=
$
(
document
).
scrollTop
();
var
fixTop
=
$
(
'.area-blk-notitle'
).
offset
().
top
;
var
fixTop
=
$
(
'.area-blk-notitle'
).
offset
().
top
;
var
tableTop
=
$
(
'#shopping-cart-table'
).
offset
().
top
;
var
tableTop
=
$
(
'#shopping-cart-table'
).
offset
().
top
;
...
...
app/code/Magento/Checkout/view/frontend/templates/cart/methods-new.phtml
View file @
3969bae9
...
@@ -54,7 +54,7 @@ $subtotalStr = $block->escapeHtml(
...
@@ -54,7 +54,7 @@ $subtotalStr = $block->escapeHtml(
<div class="
now
-
grand
-
total
" style="
font
-
size
:
18
px
;
width
:
100
%
;
">
<div class="
now
-
grand
-
total
" style="
font
-
size
:
18
px
;
width
:
100
%
;
">
<div style="
float
:
left
;
text
-
align
:
left
;
"><strong>Order Total:</strong></div>
<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>
</div>
...
...
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
View file @
3969bae9
...
@@ -72,7 +72,7 @@ define([
...
@@ -72,7 +72,7 @@ define([
return
priceUtils
.
formatPrice
(
price
,
quote
.
getPriceFormat
());
return
priceUtils
.
formatPrice
(
price
,
quote
.
getPriceFormat
());
},
},
getGrandTotal
:
function
(){
getGrandTotal
:
function
(){
return
this
.
getFormattedPrice
(
this
.
totals
[
'
grand_
total'
]);
return
this
.
getFormattedPrice
(
this
.
totals
[
'
base_sub
total'
]);
},
},
/**
/**
* Set items to observable field
* Set items to observable field
...
...
app/code/Magento/Checkout/view/frontend/web/js/view/summary/grand-total.js
View file @
3969bae9
...
@@ -38,7 +38,9 @@ define([
...
@@ -38,7 +38,9 @@ define([
* @return {*|String}
* @return {*|String}
*/
*/
getValue
:
function
()
{
getValue
:
function
()
{
return
this
.
getFormattedPrice
(
this
.
getPureValue
());
var
price
=
this
.
getFormattedPrice
(
this
.
getPureValue
());
$
(
'#now-grand-total'
).
html
(
price
)
return
price
;
}
}
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment