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
5ddf7d80
Commit
5ddf7d80
authored
Mar 30, 2023
by
halweg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://47.99.244.21:9999/root/joshine
into developer
parents
b0ce8a0a
419633ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
36 deletions
+60
-36
app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml
+27
-25
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
+10
-3
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
+16
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/summary/cart-items.html
+3
-6
app/design/frontend/Joshine/breeze/web/css/_custom.less
+4
-1
No files found.
app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml
View file @
5ddf7d80
...
...
@@ -58,7 +58,7 @@
</item>
</item>
</item>
-->
<item name="estimation" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/estimation</item>
<item name="displayArea" xsi:type="string">estimation</item>
...
...
@@ -69,6 +69,30 @@
</item>
</item>
</item>
-->
<item
name=
"cart_items"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/summary/cart-items
</item>
<item
name=
"displayArea"
xsi:type=
"string"
>
estimation
</item>
<item
name=
"children"
xsi:type=
"array"
>
<item
name=
"details"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/summary/item/details
</item>
<item
name=
"children"
xsi:type=
"array"
>
<item
name=
"thumbnail"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/summary/item/details/thumbnail
</item>
<item
name=
"displayArea"
xsi:type=
"string"
>
before_details
</item>
</item>
<item
name=
"subtotal"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/summary/item/details/subtotal
</item>
<item
name=
"displayArea"
xsi:type=
"string"
>
after_details
</item>
</item>
<item
name=
"message"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/summary/item/details/message
</item>
<item
name=
"displayArea"
xsi:type=
"string"
>
item_message
</item>
</item>
</item>
</item>
</item>
</item>
<item
name=
"steps"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
uiComponent
</item>
<item
name=
"displayArea"
xsi:type=
"string"
>
steps
</item>
...
...
@@ -399,30 +423,8 @@
</item>
</item>
<!--<item name="cart_items" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/cart-items</item>
<item name="sortOrder" xsi:type="string">2</item>
<item name="children" xsi:type="array">
<item name="details" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/item/details</item>
<item name="children" xsi:type="array">
<item name="thumbnail" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/item/details/thumbnail</item>
<item name="displayArea" xsi:type="string">before_details</item>
</item>
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/item/details/subtotal</item>
<item name="displayArea" xsi:type="string">after_details</item>
</item>
<item name="message" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/item/details/message</item>
<item name="displayArea" xsi:type="string">item_message</item>
</item>
</item>
</item>
</item>
</item>
-->
<item
name=
"itemsAfter"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
uiComponent
</item>
<item
name=
"children"
xsi:type=
"array"
>
...
...
app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
View file @
5ddf7d80
...
...
@@ -8,8 +8,9 @@ define([
'Magento_Checkout/js/model/totals'
,
'uiComponent'
,
'Magento_Checkout/js/model/step-navigator'
,
'Magento_Checkout/js/model/quote'
],
function
(
ko
,
totals
,
Component
,
stepNavigator
,
quote
)
{
'Magento_Checkout/js/model/quote'
,
'Magento_Catalog/js/price-utils'
,
],
function
(
ko
,
totals
,
Component
,
stepNavigator
,
quote
,
priceUtils
)
{
'use strict'
;
var
useQty
=
window
.
checkoutConfig
.
useQty
;
...
...
@@ -66,8 +67,14 @@ define([
totals
.
getItems
().
subscribe
(
function
(
items
)
{
this
.
setItems
(
items
);
}.
bind
(
this
));
console
.
log
(
totals
.
totals
())
},
getFormattedPrice
:
function
(
price
)
{
return
priceUtils
.
formatPrice
(
price
,
quote
.
getPriceFormat
());
},
getGrandTotal
:
function
(){
return
this
.
getFormattedPrice
(
this
.
totals
[
'grand_total'
]);
},
/**
* Set items to observable field
*
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage.phtml
View file @
5ddf7d80
...
...
@@ -377,7 +377,7 @@ $full_free_ship = $_helper->currency($full_free, true, false);
gap
:
0rem
;
}
.checkout-index-index
.block.items-in-cart
{
border-bottom
:
1px
solid
#ddd
;
display
:
none
;
}
.checkout-index-index
table
tr
,
.checkout-index-index
table
tr
.mark
.title
{
border
:
none
;
...
...
@@ -503,6 +503,7 @@ $full_free_ship = $_helper->currency($full_free, true, false);
}
.checkout-index-index
.authentication-wrapper
{
padding
:
5px
20px
;
border-bottom
:
1px
solid
#ddd
;
}
.button-fix
{
width
:
100%
!important
;
...
...
@@ -518,6 +519,20 @@ $full_free_ship = $_helper->currency($full_free, true, false);
#checkout_place_order
.fix-content.button-fix
.now-order-total
{
display
:
block
;
}
.checkout-index-index
.block.items-in-cart
{
border-bottom
:
1px
solid
#ddd
;
background-color
:
#fff
;
margin-bottom
:
1rem
;
padding
:
0.35rem
0rem
;
display
:
block
;
}
.checkout-index-index
.block.items-in-cart
.title
{
padding-left
:
1rem
;
}
/***************payment end******************/
}
#checkout_place_order
.fix-content
.now-order-total
{
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/summary/cart-items.html
View file @
5ddf7d80
...
...
@@ -4,14 +4,11 @@
* See COPYING.txt for license details.
*/
-->
<div
class=
"block items-in-cart"
data-bind=
"mageInit: {'collapsible':{'closeOnOuter':false,'openedState': '
active', 'active': isItemsBlockExpanded()
}}"
>
<div
class=
"block items-in-cart"
data-bind=
"mageInit: {'collapsible':{'closeOnOuter':false,'openedState': '
false', 'active': false
}}"
>
<div
class=
"title"
data-role=
"title"
>
<strong
role=
"heading"
aria-level=
"1"
>
<translate
args=
"maxCartItemsToDisplay"
if=
"maxCartItemsToDisplay < getCartLineItemsCount()"
></translate>
<translate
args=
"'of'"
if=
"maxCartItemsToDisplay < getCartLineItemsCount()"
></translate>
<span
data-bind=
"text: getCartSummaryItemsCount()"
></span>
<translate
args=
"'Item in Cart'"
if=
"getCartSummaryItemsCount() === 1"
></translate>
<translate
args=
"'Items in Cart'"
if=
"getCartSummaryItemsCount() > 1"
></translate>
<span
class=
"estimated-label"
data-bind=
"i18n: 'Estimated Total'"
></span>
<span
class=
"estimated-price"
data-bind=
"text: getGrandTotal()"
></span>
</strong>
</div>
<div
class=
"content minicart-items"
data-role=
"content"
>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
5ddf7d80
...
...
@@ -1045,7 +1045,10 @@ p.shopbycate-title {
max-width:60%;
}
.checkout-index-index .authentication-wrapper {
padding: 6px 20px!important;
padding: 0.23px 20px!important;
}
.checkout-index-index .minicart-items-wrapper > .minicart-items{
padding: 0 0.45rem 0.375rem;
}
}
...
...
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