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
b090b618
Commit
b090b618
authored
Apr 26, 2023
by
dhn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车改版
parent
a4d666a8
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
635 additions
and
606 deletions
+635
-606
app/code/Magento/Checkout/view/frontend/layout/checkout_cart_index.xml
+1
-1
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
+10
-234
app/code/Magento/Checkout/view/frontend/templates/cart/methods-new.phtml
+2
-1
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/catalog_product_view.xml
+2
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
+22
-42
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
+3
-5
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/form.phtml
+413
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
+2
-277
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/methods.phtml
+53
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/totals.phtml
+50
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage/link.phtml
+8
-4
app/design/frontend/Joshine/breeze/Magento_Paypal/templates/express/shortcut.phtml
+18
-11
app/design/frontend/Joshine/breeze/etc/view.xml
+2
-2
app/design/frontend/Joshine/breeze/web/css/_custom.less
+49
-28
No files found.
app/code/Magento/Checkout/view/frontend/layout/checkout_cart_index.xml
View file @
b090b618
...
...
@@ -176,7 +176,7 @@
</block>
</container>
<block
class=
"Magento\Checkout\Block\Cart\Coupon"
name=
"checkout.cart.coupon"
as=
"coupon"
template=
"Magento_Checkout::cart/coupon.phtml"
after=
"checkout.cart.summary.title"
/>
<block
class=
"Magento\Checkout\Block\Cart"
name=
"checkout.cart.methods.bottom"
template=
"Magento_Checkout::cart/methods
-new
.phtml"
>
<block
class=
"Magento\Checkout\Block\Cart"
name=
"checkout.cart.methods.bottom"
template=
"Magento_Checkout::cart/methods.phtml"
>
<container
name=
"checkout.cart.methods"
as=
"methods"
label=
"Payment Methods After Checkout Button"
>
<block
class=
"Magento\Checkout\Block\Onepage\Link"
name=
"checkout.cart.methods.onepage.bottom"
template=
"Magento_Checkout::onepage/link.phtml"
/>
<block
class=
"Magento\Checkout\Block\QuoteShortcutButtons"
name=
"checkout.cart.shortcut.buttons"
/>
...
...
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
View file @
b090b618
...
...
@@ -7,140 +7,18 @@
// phpcs:disable Magento2.Templates.ThisInTemplate
/** @var $block \Magento\Checkout\Block\Cart\Grid */
$objectManager
=
\Magento\Framework\App\ObjectManager
::
getInstance
();
$_cart
=
$objectManager
->
get
(
'\Magento\Checkout\Model\Cart'
);
$items
=
[];
$priceSum
=
0
;
$_items
=
$block
->
getItems
();
if
(
count
(
$_items
)
>
0
)
{
foreach
(
$_items
as
$key
=>
$value
)
{
$_item
[
'google_business_vertical'
]
=
'retail'
;
$_item
[
'id'
]
=
$value
->
getSku
();
$items
[]
=
$_item
;
$priceSum
+=
$value
->
getPrice
()
*
$value
->
getQty
();
}
}
$subtotal
=
$_cart
->
getSubtotal
();
$_shipping
=
$objectManager
->
get
(
'\Magento\Checkout\Block\Cart\Shipping'
);
$free_shipping_subtotal
=
$_shipping
->
getNoFormatFreeShippingSubtotal
();
$is_free_shipping
=
false
;
$difference_price
=
0
;
if
(
$subtotal
>=
$free_shipping_subtotal
)
{
$is_free_shipping
=
true
;
}
else
{
$difference_price
=
$free_shipping_subtotal
-
$subtotal
;
}
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
?>
<style>
.free_message
{
margin-left
:
.7rem
;
text-align
:
left
;
}
.free_message.tddiv
{
margin-left
:
1.3rem
;
}
.free-shipping-area
.cart-icon
{
float
:
left
;
}
.free-shipping-area
.content-wrap
{
float
:
left
;
}
.free-shipping-area
{
width
:
100%
!important
;
order
:
-3
;
padding
:
15px
;
background-color
:
#FFFFFF
;
color
:
#000
;
}
@media
(
min-width
:
768px
){
.free-shipping-area
{
padding
:
10px
10px
10px
20px
;
}
.area-blk-notitle
{
display
:
none
;
}
}
@media
(
max-width
:
768px
){
.free-shipping-area
{
padding
:
0px
;
}
.free-shipping-area
.content-wrap
{
padding
:
10px
0px
;
background-color
:
#f2f2f2
;
width
:
100%
;
}
.area-blk
{
display
:
none
;
}
.area-fix
{
position
:
fixed
;
left
:
0
;
z-index
:
1
;
border-top
:
1px
solid
#fff
;
}
.cart.table-wrapper
{
border-top
:
1px
solid
#ddd
;
}
}
</style>
<?php
$mergedCells
=
(
$this
->
helper
(
Magento\Tax\Helper\Data
::
class
)
->
displayCartBothPrices
()
?
2
:
1
);
?>
<?=
$block
->
getChildHtml
(
'form_before'
)
?>
<?php
if
(
!
$is_free_shipping
)
:
?>
<div
class=
"free-shipping-area area-blk"
>
<img
alt=
""
class=
"cart-icon"
src=
"/media/wysiwyg/free-shipping-cart.png"
>
<div
class=
"content-wrap"
>
<div
class=
"free_message"
>
<div
class=
"msg-title"
>
<p
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'Shipping Fee'
))
?>
</p>
</div>
<div
class=
"msg-content"
>
<?=
$block
->
escapeHtml
(
__
(
'Spend'
))
?>
<span
style=
"color:#EB001B;font-size: 16px;font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$difference_price
),
[
'span'
]
)
?>
</span>
<?=
$block
->
escapeHtml
(
__
(
'more and get'
))
?>
<span
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'FREE SHIPPING'
))
?>
</span>
!
</div>
</div>
</div>
</div>
<?php
endif
?>
<?php
if
(
!
$is_free_shipping
)
:
?>
<div
class=
"free-shipping-area area-blk-notitle"
>
<div
class=
"content-wrap"
>
<div
class=
"free_message"
>
<div
class=
"msg-content"
>
<?=
$block
->
escapeHtml
(
__
(
'Spend'
))
?>
<span
style=
"color:#EB001B;font-size: 18px;"
>
<?=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$difference_price
),
[
'span'
]
)
?>
</span>
<?=
$block
->
escapeHtml
(
__
(
' more and get'
))
?>
<span
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'FREE SHIPPING'
))
?>
</span>
</div>
</div>
</div>
</div>
<?php
endif
?>
<?php
if
(
!
$mobileDetect
->
isMobile
())
:
?>
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
method=
"post"
id=
"form-validate"
data-mage-init=
'{"Magento_Checkout/js/action/update-shopping-cart":
method=
"post"
id=
"form-validate"
data-mage-init=
'{"Magento_Checkout/js/action/update-shopping-cart":
{"validationURL" : "
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updateItemQty'
))
?>
",
"updateCartActionContainer": "#update_cart_action_container"}
}'
class=
"form form-cart"
>
class=
"form form-cart"
>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<div
class=
"cart table-wrapper
<?=
$mergedCells
==
2
?
' detailed'
:
''
?>
"
>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-top toolbar"
...
...
@@ -152,13 +30,14 @@ $mobileDetect = $objectManager->get(\Joshine\Common\Lib\MobileDetect\MobileDetec
data-mage-init=
'{"shoppingCart":{"emptyCartButton": ".action.clear",
"updateCartActionContainer": "#update_cart_action_container"}}'
>
<caption
class=
"table-caption"
>
<?=
$block
->
escapeHtml
(
__
(
'Shopping Cart Items'
))
?>
</caption>
<thead>
<td
colspan=
"4"
><div
class=
"item-summary"
>
<?=
$block
->
escapeHtml
(
__
(
'Item Summary'
))
?>
</div></td></thead>
<thead>
<tr>
<t
d
class=
"col item first"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Item'
))
?>
</span></td
>
<t
d
class=
"col price"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Price'
))
?>
</span></td
>
<t
d
class=
"col qty"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Qty'
))
?>
</span></td
>
<t
d
class=
"col subtotal"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Subtotal'
))
?>
</span></td
>
<t
h
class=
"col item"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Item'
))
?>
</span></th
>
<t
h
class=
"col price"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Price'
))
?>
</span></th
>
<t
h
class=
"col qty"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Qty'
))
?>
</span></th
>
<t
h
class=
"col subtotal"
scope=
"col"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Subtotal'
))
?>
</span></th
>
</tr>
</thead>
<?php
foreach
(
$block
->
getItems
()
as
$_item
)
:
?>
<?=
$block
->
getItemHtml
(
$_item
)
?>
<?php
endforeach
?>
...
...
@@ -187,7 +66,6 @@ $mobileDetect = $objectManager->get(\Joshine\Common\Lib\MobileDetect\MobileDetec
<span>
<?=
$block
->
escapeHtml
(
__
(
'Clear Shopping Cart'
))
?>
</span>
</button>
<?php
endif
?>
<!--
<button
type=
"submit"
name=
"update_cart_action"
data-cart-item-update=
""
...
...
@@ -196,110 +74,8 @@ $mobileDetect = $objectManager->get(\Joshine\Common\Lib\MobileDetect\MobileDetec
class=
"action update"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Update Shopping Cart'
))
?>
</span>
</button>
-->
<input
type=
"hidden"
value=
""
id=
"update_cart_action_container"
data-cart-item-update=
""
/>
</div>
</form>
<?php
else
:
?>
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
method=
"post"
id=
"form-validate"
data-mage-init=
'{"Magento_Checkout/js/action/update-shopping-cart":
{"validationURL" : "
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updateItemQty'
))
?>
",
"updateCartActionContainer": "#update_cart_action_container"}
}'
class=
"form form-cart"
>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<div
class=
"cart table-wrapper
<?=
$mergedCells
==
2
?
' detailed'
:
''
?>
"
>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-top toolbar"
data-attribute=
"cart-products-toolbar-top"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
<?php
foreach
(
$block
->
getItems
()
as
$_item
)
:
?>
<?=
$block
->
getItemHtml
(
$_item
)
?>
<?php
endforeach
?>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-bottom toolbar"
data-attribute=
"cart-products-toolbar-bottom"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
</div>
</form>
<?php
endif
?>
<script>
require
([
'jquery'
],
function
(
$
)
{
$
(
'.add-qty'
).
click
(
function
(){
var
input
=
$
(
this
).
prev
().
find
(
'.input-text'
);
if
(
input
.
val
())
{
var
current
=
parseInt
(
input
.
val
());
input
.
val
(
current
+
1
);
// submit
$
(
"#form-validate"
).
submit
();
}
else
{
return
false
;
}
});
$
(
'.lower-qty'
).
click
(
function
(){
var
input
=
$
(
this
).
next
().
find
(
'.input-text'
);
if
(
input
.
val
()
>
1
)
{
var
current
=
parseInt
(
input
.
val
());
input
.
val
(
current
-
1
);
// submit
$
(
"#form-validate"
).
submit
();
}
else
{
return
false
;
}
});
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
if
(
isMobile
)
{
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
;
var
tableHeight
=
$
(
'#shopping-cart-table'
).
height
();
var
headerHeight
=
$
(
'.page-header'
).
height
();
if
(
scrollTop
>=
fixTop
-
headerHeight
)
{
if
(
scrollTop
<
tableTop
+
tableHeight
-
fixHeight
)
{
$
(
'.area-blk-notitle .content-wrap'
).
addClass
(
"area-fix"
);
$
(
'.area-blk-notitle .content-wrap'
).
css
({
"top"
:
headerHeight
});
}
else
{
$
(
'.area-blk-notitle .content-wrap'
).
removeClass
(
"area-fix"
);
}
}
else
{
$
(
'.area-blk-notitle .content-wrap'
).
removeClass
(
"area-fix"
);
}
});
});
}
});
</script>
<script>
dataLayer
=
[];
dataLayer
.
push
({
'event'
:
'add_to_cart'
,
'value'
:
<?=
$priceSum
?>
,
'items'
:
<?=
json_encode
(
$items
,
true
)
?>
});
</script>
<?=
$block
->
getChildHtml
(
'checkout.cart.order.actions'
)
?>
<?=
$block
->
getChildHtml
(
'shopping.cart.table.after'
)
?>
app/code/Magento/Checkout/view/frontend/templates/cart/methods-new.phtml
View file @
b090b618
...
...
@@ -105,7 +105,7 @@ $subtotalStr = $block->escapeHtml(
</div>
</div>
</div>
<!--
<style>
#we-accept{
text-align: center;
...
...
@@ -122,6 +122,7 @@ $subtotalStr = $block->escapeHtml(
<div class="title">
<?=
__
(
'We Accept'
)
?>
</div>
<img src="/media/wysiwyg/we_accept.png" alt="">
</div>
-->
</div>
<?php
endif
;
?>
<script>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/catalog_product_view.xml
View file @
b090b618
...
...
@@ -13,11 +13,12 @@
<body>
<referenceBlock
name=
"product.info.description"
remove=
"true"
/>
<referenceBlock
name=
"product.attributes"
remove=
"true"
/>
<referenceBlock
name=
"catalog.product.related"
remove=
"true"
/>
<referenceContainer
name=
"content"
>
<block
class=
"Magento\Catalog\Block\Product\View"
name=
"product.recently_viewed.collector"
template=
"Magento_Catalog::product/view/recently_viewed/collector.phtml"
after=
"product.info.details"
/>
</referenceContainer>
<referenceContainer
name=
"content.aside"
>
<block
class=
"Magento\Cms\Block\Block"
name=
"checkout.cart.empty.recently"
before=
"
catalog.product.related
"
>
<block
class=
"Magento\Cms\Block\Block"
name=
"checkout.cart.empty.recently"
before=
"
product.info.upsell
"
>
<arguments>
<argument
name=
"block_id"
xsi:type=
"string"
>
recently_viewed
</argument>
</arguments>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
View file @
b090b618
...
...
@@ -8,51 +8,31 @@
<page
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
layout=
"1column"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
<update
handle=
"checkout_cart_item_renderers"
/>
<body>
<referenceContainer
name=
"page.bottom.container"
remove=
"true"
/>
<referenceBlock
name=
"checkout.cart.addtocart"
remove=
"true"
/>
<referenceContainer
name=
"footer-container"
remove=
"true"
/>
<referenceContainer
name=
"nav.main.box"
remove=
"true"
/>
<referenceBlock
name=
"catalog.topnav"
remove=
"true"
/>
<referenceBlock
name=
"top.search"
remove=
"true"
/>
<referenceBlock
name=
"header.search.bar"
remove=
"true"
/>
<referenceBlock
name=
"header.account"
remove=
"true"
/>
<referenceBlock
name=
"header.wishlist"
remove=
"true"
/>
<referenceBlock
name=
"minicart"
remove=
"true"
/>
<referenceBlock
name=
"checkout.cart.crosssell"
remove=
"true"
/>
<referenceContainer
name=
"header.container"
>
<block
class=
"Magento\Cms\Block\Block"
name=
"cart.payment.top"
>
<arguments>
<argument
name=
"block_id"
xsi:type=
"string"
>
cart_payment_top
</argument>
</arguments>
</block>
</referenceContainer>
<referenceContainer
name=
"columns.top"
>
<block
class=
"Magento\Cms\Block\Block"
name=
"progress.bar"
before=
"-"
>
<arguments>
<argument
name=
"block_id"
xsi:type=
"string"
>
progress_bar
</argument>
</arguments>
</block>
</referenceContainer>
<referenceContainer
name=
"content"
>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"checkout.cart.footer"
template=
"Magento_Checkout::footer.phtml"
/>
<referenceBlock
name=
"checkout.cart.summary.title"
remove=
"true"
/>
<!-- -->
<!-- <referenceBlock name="checkout.cart.totals">-->
<!-- <arguments>-->
<!-- <argument name="jsLayout" xsi:type="array">-->
<!-- <item name="components" xsi:type="array">-->
<!-- <item name="block-totals" xsi:type="array">-->
<!-- <item name="children" xsi:type="array">-->
<!-- <item name="shpping-get" xsi:type="array">-->
<!-- <item name="component" xsi:type="string">Magento_Checkout/js/view/address-get</item>-->
<!-- </item>-->
<!-- </item>-->
<!-- </item>-->
<!-- </item>-->
<!-- </argument>-->
<!-- </arguments>-->
<!-- </referenceBlock>-->
<referenceContainer
name=
"checkout.cart.totals.container"
>
<block
class=
"Magento\Checkout\Block\Cart\Totals"
name=
"checkout.cart.totals"
template=
"Magento_Checkout::cart/totals.phtml"
/>
</referenceContainer>
<referenceBlock
name=
"checkout.cart.totals"
>
<arguments>
<argument
name=
"jsLayout"
xsi:type=
"array"
>
<item
name=
"components"
xsi:type=
"array"
>
<item
name=
"block-totals"
xsi:type=
"array"
>
<item
name=
"children"
xsi:type=
"array"
>
<item
name=
"shpping-get"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
Magento_Checkout/js/view/address-get
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>
<referenceContainer
name=
"checkout.cart.noitems"
>
<block
class=
"Magento\Cms\Block\Block"
name=
"checkout.cart.empty.recently"
>
<arguments>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
View file @
b090b618
...
...
@@ -13,10 +13,6 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
?>
<style>
.checkout-cart-index
.cart-container
.block.discount.active
{
border-bottom
:
1px
solid
#ddd
;
}
.checkout-cart-index
.cart-container
.block.discount.active
.content
{
padding
:
0px
1rem
;
}
...
...
@@ -40,9 +36,11 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
id=
"block-discount"
data-mage-init=
'{"collapsible":{"active":"true", "openedState": "active", "saveState": false}}'
>
<!--
<div class="title" data-role="title" aria-controls="block-summary" role="tab" aria-selected="true" aria-expanded="true" tabindex="0">
<strong id="block-shipping-coupon" role="heading" aria-level="2">
<?=
__
(
"Coupon Code"
)
?>
</strong>
</div>
-->
<div
class=
"content"
data-role=
"content"
aria-labelledby=
"block-discount-heading"
style=
"display: block;"
>
<form
id=
"discount-coupon-form"
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/couponPost'
))
?>
"
...
...
@@ -53,7 +51,7 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
"cancelButton": "button.action.cancel"}}'
>
<div
class=
"fieldset coupon
<?=
$hasCouponCode
?
' applied'
:
''
?>
"
>
<input
type=
"hidden"
name=
"remove"
id=
"remove-coupon"
value=
"0"
/>
<div
class=
"field"
style=
"width:
5
0%;"
>
<div
class=
"field"
style=
"width:
7
0%;"
>
<label
for=
"coupon_code"
class=
"label"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Enter discount code'
))
?>
</span></label>
<div
class=
"control"
style=
"float: left;margin-top: 0px;width: 100%;"
>
<input
type=
"text"
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/form.phtml
0 → 100644
View file @
b090b618
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// phpcs:disable Magento2.Templates.ThisInTemplate
/** @var $block \Magento\Checkout\Block\Cart\Grid */
$objectManager
=
\Magento\Framework\App\ObjectManager
::
getInstance
();
$_cart
=
$objectManager
->
get
(
'\Magento\Checkout\Model\Cart'
);
$items
=
[];
$priceSum
=
0
;
$_items
=
$block
->
getItems
();
if
(
count
(
$_items
)
>
0
)
{
foreach
(
$_items
as
$key
=>
$value
)
{
$_item
[
'google_business_vertical'
]
=
'retail'
;
$_item
[
'id'
]
=
$value
->
getSku
();
$items
[]
=
$_item
;
$priceSum
+=
$value
->
getPrice
()
*
$value
->
getQty
();
}
}
$subtotal
=
$_cart
->
getSubtotal
();
$_shipping
=
$objectManager
->
get
(
'\Magento\Checkout\Block\Cart\Shipping'
);
$free_shipping_subtotal
=
$_shipping
->
getNoFormatFreeShippingSubtotal
();
$is_free_shipping
=
false
;
$difference_price
=
0
;
if
(
$subtotal
>=
$free_shipping_subtotal
)
{
$is_free_shipping
=
true
;
}
else
{
$difference_price
=
$free_shipping_subtotal
-
$subtotal
;
}
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
?>
<style>
.free_message
{
margin-left
:
.7rem
;
text-align
:
left
;
}
.free_message.tddiv
{
margin-left
:
1.3rem
;
}
.free-shipping-area
.cart-icon
{
float
:
left
;
}
.free-shipping-area
.content-wrap
{
float
:
left
;
}
.free-shipping-area
{
width
:
100%
!important
;
order
:
-3
;
padding
:
15px
;
background-color
:
#FFFFFF
;
color
:
#000
;
}
@media
(
min-width
:
768px
){
.free-shipping-area
{
padding
:
10px
10px
10px
20px
;
}
.area-blk-notitle
{
display
:
none
;
}
.cart-title
{
order
:
-4
;
margin-top
:
50px
;
color
:
#444
;
width
:
100%
!important
;
text-align
:
center
;
font-weight
:
normal
;
font-family
:
monospace
;
font-size
:
48px
;
}
}
@media
(
max-width
:
768px
){
.free-shipping-area
{
padding
:
0px
;
}
.free-shipping-area
.content-wrap
{
padding
:
10px
0px
;
background-color
:
#f2f2f2
;
width
:
100%
;
}
.area-blk
{
display
:
none
;
}
.area-fix
{
position
:
fixed
;
left
:
0
;
z-index
:
1
;
border-top
:
1px
solid
#fff
;
}
.cart-title
{
order
:
-4
;
margin-top
:
1rem
;
color
:
#444
;
width
:
100%
!important
;
text-align
:
center
;
font-weight
:
normal
;
font-size
:
26px
;
}
}
.item-options-line
span
{
display
:
inline-block
;
}
.item-options-line
span
:first-child
{
width
:
30%
;
}
@media
(
max-width
:
1024px
){
.cart-container
.cart.table-wrapper
.item-options
{
min-width
:
100px
;
}
.product-image-photo
{
border
:
1px
solid
#ddd
;
}
}
.is_mobile
.item-info
{
display
:
table
;
font-family
:
Futura
,
sans-serif
;
table-layout
:
fixed
;
margin
:
15px
0
;
width
:
100%
;
}
.is_mobile
.item-info
{
display
:
table
;
table-layout
:
fixed
;
margin
:
3rem
0
;
width
:
100%
;
}
.item-info-left
{
width
:
150px
;
min-width
:
150px
;
text-align
:
center
;
display
:
table-cell
;
vertical-align
:
middle
;
padding-bottom
:
10px
;
}
.item-info-left
.item-image
{
position
:
relative
;
margin-left
:
auto
;
margin-right
:
auto
;
}
.item-info-right
{
padding-left
:
25px
;
display
:
table-cell
;
padding-bottom
:
10px
;
}
.item-info-right
.item-name
{
width
:
100%
;
font-size
:
16px
;
font-weight
:
400
;
font-style
:
normal
;
color
:
#5c5c5c
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
display
:
-webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
word-break
:
break-word
;
}
.item-info-right
.item-options-meta
{
font-size
:
16px
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
margin-top
:
1rem
;
}
.item-info-right
.item-price
{
margin-top
:
1rem
;
font-size
:
10px
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
}
.checkout-cart-index
.price-final_price
.price
{
font-size
:
16px
;
}
.item-info-right
.item-price
.price-box.price-final_price
{
float
:
none
;
}
.item-info-right
.item-price
.product-info-promotion-span
,
.item-info-right
.item-price
.price-label
{
display
:
none
;
}
.item-info-right
.item-price
.no-display
{
display
:
inline-block
!important
;
}
.item-info-right
.item-handle
{
text-align
:
center
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
justify
;
-ms-flex-pack
:
justify
;
justify-content
:
space-between
;
-ms-flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
font-family
:
Futura
,
sans-serif
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
font-size
:
12px
;
}
.item-info-right
.item-quantity
{
display
:
-webkit-inline-box
;
display
:
-ms-inline-flexbox
;
display
:
inline-flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
border
:
1px
solid
#e7e7e7
;
white-space
:
nowrap
;
}
.checkout-cart-index
.item-info-right
.new-qty
.input-text
{
border
:
none
;
width
:
1rem
;
padding
:
0
;
font-size
:
12px
;
}
.checkout-cart-index
.item-info-right
.qty-change
{
padding
:
2px
15px
;
}
.checkout-cart-index
.item-info-right
.actions-toolbar
{
margin-top
:
0px
;
margin-bottom
:
0px
;
}
.checkout-cart-index
.item-info-right
.action-delete
span
{
color
:
#0a0a0a
;
}
@media
(
min-width
:
768px
)
{
.item-info-right
.item-name
{
width
:
80%
;
font-size
:
18px
;
margin-bottom
:
1rem
}
.item-info-right
.item-options-meta
{
font-size
:
18px
;
margin-bottom
:
1rem
;
}
.price-final_price
.price
{
font-size
:
18px
;
}
.is_mobile
.item-info
:first-child
{
margin
:
0px
0px
3rem
0
;
}
}
.item-info-right
,
.item-info-left
{
padding-bottom
:
0px
;
position
:
relative
;
}
.item-handle
{
width
:
80%
;
position
:
absolute
;
bottom
:
0
;
}
</style>
<?php
$mergedCells
=
(
$this
->
helper
(
Magento\Tax\Helper\Data
::
class
)
->
displayCartBothPrices
()
?
2
:
1
);
?>
<?=
$block
->
getChildHtml
(
'form_before'
)
?>
<h1
class=
"cart-title"
>
Shipping Cart
</h1>
<?php
if
(
!
$is_free_shipping
)
:
?>
<div
class=
"free-shipping-area area-blk"
>
<img
alt=
""
class=
"cart-icon"
src=
"/media/wysiwyg/free-shipping-cart.png"
>
<div
class=
"content-wrap"
>
<div
class=
"free_message"
>
<div
class=
"msg-title"
>
<p
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'Shipping Fee'
))
?>
</p>
</div>
<div
class=
"msg-content"
>
<?=
$block
->
escapeHtml
(
__
(
'Spend'
))
?>
<span
style=
"color:#EB001B;font-size: 16px;font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$difference_price
),
[
'span'
]
)
?>
</span>
<?=
$block
->
escapeHtml
(
__
(
'more and get'
))
?>
<span
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'FREE SHIPPING'
))
?>
</span>
!
</div>
</div>
</div>
</div>
<?php
endif
?>
<?php
if
(
!
$is_free_shipping
)
:
?>
<div
class=
"free-shipping-area area-blk-notitle"
>
<div
class=
"content-wrap"
>
<div
class=
"free_message"
>
<div
class=
"msg-content"
>
<?=
$block
->
escapeHtml
(
__
(
'Spend'
))
?>
<span
style=
"color:#EB001B;font-size: 18px;"
>
<?=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$difference_price
),
[
'span'
]
)
?>
</span>
<?=
$block
->
escapeHtml
(
__
(
' more and get'
))
?>
<span
style=
"font-weight: bold;"
>
<?=
$block
->
escapeHtml
(
__
(
'FREE SHIPPING'
))
?>
</span>
</div>
</div>
</div>
</div>
<?php
endif
?>
<form
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updatePost'
))
?>
"
method=
"post"
id=
"form-validate"
data-mage-init=
'{"Magento_Checkout/js/action/update-shopping-cart":
{"validationURL" : "
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'checkout/cart/updateItemQty'
))
?>
",
"updateCartActionContainer": "#update_cart_action_container"}
}'
class=
"form form-cart"
>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<div
class=
"cart table-wrapper
<?=
$mergedCells
==
2
?
' detailed'
:
''
?>
"
>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-top toolbar"
data-attribute=
"cart-products-toolbar-top"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
<?php
foreach
(
$block
->
getItems
()
as
$_item
)
:
?>
<?=
$block
->
getItemHtml
(
$_item
)
?>
<?php
endforeach
?>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"cart-products-toolbar cart-products-toolbar-bottom toolbar"
data-attribute=
"cart-products-toolbar-bottom"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
</div>
</form>
<script>
require
([
'jquery'
],
function
(
$
)
{
$
(
'.add-qty'
).
click
(
function
(){
var
input
=
$
(
this
).
prev
().
find
(
'.input-text'
);
if
(
input
.
val
())
{
var
current
=
parseInt
(
input
.
val
());
input
.
val
(
current
+
1
);
// submit
$
(
"#form-validate"
).
submit
();
}
else
{
return
false
;
}
});
$
(
'.lower-qty'
).
click
(
function
(){
var
input
=
$
(
this
).
next
().
find
(
'.input-text'
);
if
(
input
.
val
()
>
1
)
{
var
current
=
parseInt
(
input
.
val
());
input
.
val
(
current
-
1
);
// submit
$
(
"#form-validate"
).
submit
();
}
else
{
return
false
;
}
});
var
isMobile
=
window
.
matchMedia
(
"(pointer:coarse)"
).
matches
;
if
(
isMobile
)
{
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
;
var
tableHeight
=
$
(
'#shopping-cart-table'
).
height
();
var
headerHeight
=
$
(
'.page-header'
).
height
();
if
(
scrollTop
>=
fixTop
-
headerHeight
)
{
if
(
scrollTop
<
tableTop
+
tableHeight
-
fixHeight
)
{
$
(
'.area-blk-notitle .content-wrap'
).
addClass
(
"area-fix"
);
$
(
'.area-blk-notitle .content-wrap'
).
css
({
"top"
:
headerHeight
});
}
else
{
$
(
'.area-blk-notitle .content-wrap'
).
removeClass
(
"area-fix"
);
}
}
else
{
$
(
'.area-blk-notitle .content-wrap'
).
removeClass
(
"area-fix"
);
}
});
});
}
});
</script>
<script>
dataLayer
=
[];
dataLayer
.
push
({
'event'
:
'add_to_cart'
,
'value'
:
<?=
$priceSum
?>
,
'items'
:
<?=
json_encode
(
$items
,
true
)
?>
});
</script>
<?=
$block
->
getChildHtml
(
'shopping.cart.table.after'
)
?>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
View file @
b090b618
...
...
@@ -19,280 +19,6 @@ $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$mobileDetect
=
$objectManager
->
get
(
\Joshine\Common\Lib\MobileDetect\MobileDetect
::
class
);
$priceBlock
=
$objectManager
->
get
(
\Magento\Catalog\Block\Product\AbstractProduct
::
class
);
?>
<style>
.item-options-line
span
{
display
:
inline-block
;
}
.item-options-line
span
:first-child
{
width
:
30%
;
}
@media
(
max-width
:
1024px
){
.cart-container
.cart.table-wrapper
.item-options
{
min-width
:
100px
;
}
}
.is_mobile
.item-info
{
display
:
table
;
table-layout
:
fixed
;
margin
:
15px
0
;
width
:
100%
;
}
.is_mobile
.item-info
{
display
:
table
;
table-layout
:
fixed
;
margin
:
15px
0
;
width
:
100%
;
border-bottom
:
1px
solid
#ddd
;
}
.item-info-left
{
width
:
90px
;
min-width
:
90px
;
text-align
:
center
;
display
:
table-cell
;
vertical-align
:
middle
;
padding-bottom
:
10px
;
}
.item-info-left
.item-image
{
position
:
relative
;
margin-left
:
auto
;
margin-right
:
auto
;
}
.item-info-right
{
padding-left
:
25px
;
display
:
table-cell
;
padding-bottom
:
10px
;
}
.item-info-right
.item-name
{
width
:
100%
;
font-size
:
12px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
font-weight
:
400
;
font-style
:
normal
;
color
:
#5c5c5c
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
}
.item-info-right
.item-options-meta
{
font-size
:
10px
;
font-family
:
Futura
,
sans-serif
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
}
.item-info-right
.item-price
{
font-size
:
10px
;
font-family
:
Futura
,
sans-serif
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
}
.item-info-right
.item-price
.price-box.price-final_price
{
float
:
none
;
}
.item-info-right
.item-price
.product-info-promotion-span
,
.item-info-right
.item-price
.price-label
{
display
:
none
;
}
.item-info-right
.item-price
.no-display
{
display
:
inline-block
!important
;
}
.item-info-right
.item-handle
{
text-align
:
center
;
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
justify
;
-ms-flex-pack
:
justify
;
justify-content
:
space-between
;
-ms-flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
font-family
:
Futura
,
sans-serif
;
font-weight
:
400
;
font-style
:
normal
;
-webkit-transition
:
color
.2s
ease-in-out
;
transition
:
color
.2s
ease-in-out
;
font-size
:
12px
;
}
.item-info-right
.item-quantity
{
display
:
-webkit-inline-box
;
display
:
-ms-inline-flexbox
;
display
:
inline-flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
border
:
1px
solid
#e7e7e7
;
white-space
:
nowrap
;
}
.checkout-cart-index
.item-info-right
.new-qty
.input-text
{
border
:
none
;
width
:
1rem
;
padding
:
0
;
font-size
:
12px
;
}
.checkout-cart-index
.item-info-right
.qty-change
{
padding
:
2px
15px
;
}
.checkout-cart-index
.item-info-right
.actions-toolbar
{
margin-top
:
0px
;
margin-bottom
:
0px
;
}
.checkout-cart-index
.item-info-right
.action-delete
span
{
color
:
#0a0a0a
;
}
</style>
<?php
if
(
!
$mobileDetect
->
isMobile
())
:
?>
<tbody
class=
"cart item"
>
<tr
class=
"item-info"
>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Item'
))
?>
"
class=
"col item"
>
<?php
if
(
$block
->
hasProductUrl
())
:?>
<
a
href
=
"<?=
$block->escapeUrl
(
$block->getProductUrl
()) ?>"
title
=
"<?=
$block->escapeHtml
(
$block->getProductName
()) ?>"
tabindex
=
"-1"
class
="
product
-
item
-
photo
">
<?php else :?>
<span class="
product
-
item
-
photo
">
<?php endif;?>
<?=
$block->getImage
(
$block->getProductForThumbnail
(), 'cart_page_product_thumbnail')->toHtml() ?>
<?php if (
$block->hasProductUrl
()) :?>
</a>
<?php else :?>
</span>
<?php endif; ?>
<div class="
product
-
item
-
details
">
<strong class="
product
-
item
-
name
">
<?php if (
$block->hasProductUrl
()) :?>
<a href="
<?=
$block
->
escapeUrl
(
$block
->
getProductUrl
())
?>
">
<?=
$block
->
escapeHtml
(
$block
->
getProductName
())
?>
</a>
<?php
else
:?>
<?=
$block
->
escapeHtml
(
$block
->
getProductName
())
?>
<?php
endif
;
?>
</strong>
<?php
if
(
$_options
=
$block
->
getOptionList
())
:?>
<
div
class
="
item
-
options
" >
<?php foreach (
$_options
as
$_option
) :?>
<div class="
item
-
options
-
line
">
<?php
$_formatedOptionValue
=
$block->getFormatedOptionValue
(
$_option
) ?>
<span style="
margin
-
top
:
0
px
;
"><?=
$block->escapeHtml
(
$_option['label']
) ?></span>
<?php
$objectManager
= \Magento\Framework\App\ObjectManager::getInstance();
$resource
=
$objectManager->get
('Magento\Framework\App\ResourceConnection');
$connection
=
$resource->getConnection
();
?>
<span>
<?php if (
$_option['label']
!= 'Size'){ ?>
<?php
$tableName
=
$resource->getTableName
('eav_attribute_option_value');
$sql
= "
Select
*
FROM
" .
$tableName
."
where
store_id
=
0
AND
option_id
=
".
$_option['option_value']
;
$result
=
$connection->fetchRow
(
$sql
);
?>
<?=
$block->escapeHtml
(
$result['value']
) ?>
<?php }else{
$tableName
=
$resource->getTableName
('eav_attribute_option_swatch');
$sql
= "
Select
*
FROM
" .
$tableName
."
where
store_id
=
0
AND
option_id
=
".
$_option['option_value']
;
$result
=
$connection->fetchRow
(
$sql
);
echo
$result['value']
;
} ?>
</span>
</div>
<?php endforeach; ?>
</div>
<?php endif;?>
<?php if (
$messages
=
$block->getMessages
()) :?>
<?php foreach (
$messages
as
$message
) :?>
<div class= "
cart
item
message
<?=
$block
->
escapeHtmlAttr
(
$message
[
'type'
])
?>
">
<div>
<?=
$block
->
escapeHtml
(
$message
[
'text'
])
?>
</div>
</div>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?php
$addInfoBlock
=
$block
->
getProductAdditionalInformationBlock
();
?>
<?php
if
(
$addInfoBlock
)
:?>
<?=
$addInfoBlock
->
setItem
(
$_item
)
->
toHtml
()
?>
<?php
endif
;
?>
</div>
</td>
<?php
if
(
$canApplyMsrp
)
:?>
<
td
class
="
col
msrp
" data-th="
<?=
$block
->
escapeHtml
(
__
(
'Price'
))
?>
">
<span
class=
"pricing msrp"
>
<span
class=
"msrp notice"
>
<?=
$block
->
escapeHtml
(
__
(
'See price before order confirmation.'
))
?>
</span>
<?php
$helpLinkId
=
'cart-msrp-help-'
.
$_item
->
getId
();
?>
<a
href=
"#"
class=
"action help map"
id=
"
<?=
(
$block
->
escapeHtmlAttr
(
$helpLinkId
))
?>
"
data-mage-init=
'{"addToCart":{
"helpLinkId": "#
<?=
$block
->
escapeJs
(
$block
->
escapeHtml
(
$helpLinkId
))
?>
",
"productName": "
<?=
$block
->
escapeJs
(
$block
->
escapeHtml
(
$product
->
getName
()))
?>
",
"showAddToCart": false
}
}'
>
<span>
<?=
$block
->
escapeHtml
(
__
(
"What's this?"
))
?>
</span>
</a>
</span>
</td>
<?php
else
:?>
<
td
class
="
col
price
" data-th="
<?=
$block
->
escapeHtml
(
__
(
'Price'
))
?>
">
<?=
$block
->
getUnitPriceHtml
(
$_item
)
?>
</td>
<?php
endif
;
?>
<td
class=
"col qty"
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Qty'
))
?>
"
>
<?php
if
(
$block
->
escapeHtmlAttr
(
$block
->
getQty
())
>
1
)
:?>
<
strong
class
="
lower
-
qty
qty
-
change
">-</strong>
<?php else :?>
<strong class="
lower
-
qty
qty
-
change
no
-
enabled
">-</strong>
<?php endif; ?>
<div class="
field
qty
new
-
qty
">
<div class="
control
qty
">
<label for="
cart
-<?=
$block
->
escapeHtmlAttr
(
$_item
->
getId
())
?>
-qty">
<span
class=
"label"
>
<?=
$block
->
escapeHtml
(
__
(
'Qty'
))
?>
</span>
<input
id=
"cart-
<?=
$block
->
escapeHtmlAttr
(
$_item
->
getId
())
?>
-qty"
name=
"cart[
<?=
$block
->
escapeHtmlAttr
(
$_item
->
getId
())
?>
][qty]"
data-cart-item-id=
"
<?=
$block
->
escapeHtmlAttr
(
$_item
->
getSku
())
?>
"
value=
"
<?=
$block
->
escapeHtmlAttr
(
$block
->
getQty
())
?>
"
type=
"number"
size=
"4"
step=
"any"
title=
"
<?=
$block
->
escapeHtmlAttr
(
__
(
'Qty'
))
?>
"
class=
"input-text qty"
data-validate=
"{required:true,'validate-greater-than-zero':true}"
data-role=
"cart-item-qty"
readonly=
"readonly"
/>
</label>
</div>
</div>
<strong
class=
"add-qty qty-change"
>
+
</strong>
</td>
<td
class=
"col subtotal"
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Subtotal'
))
?>
"
>
<?php
if
(
$canApplyMsrp
)
:?>
<
span
class
="
cart
msrp
subtotal
">--</span>
<?php else :?>
<?=
$block->getRowTotalHtml
(
$_item
) ?>
<?php endif; ?>
</td>
</tr>
<tr class="
item
-
actions
">
<td colspan="
4
">
<div class="
actions
-
toolbar
">
<?= /* @noEscape */
$block->getActions
(
$_item
) ?>
</div>
</td>
</tr>
</tbody>
<?php else: ?>
<div
class=
"cart item is_mobile"
>
<div
class=
"item-info"
>
...
...
@@ -402,5 +128,4 @@ $priceBlock = $objectManager->get(\Magento\Catalog\Block\Product\AbstractProduct
</div>
</div>
</div>
<?php
endif
;
?>
\ No newline at end of file
</div>
\ No newline at end of file
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/methods.phtml
0 → 100644
View file @
b090b618
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?php
/** @var $block \Magento\Checkout\Block\Cart */
?>
<?php
if
(
!
$block
->
hasError
())
:?>
<?
php
$methods
=
$block
->
getMethods
(
'methods'
)
?:
$block
->
getMethods
(
'top_methods'
)
?>
<ul
class=
"checkout methods items checkout-methods-items"
>
<?php
foreach
(
$methods
as
$code
=>
$method
)
:
?>
<?php
$methodHtml
=
$block
->
getMethodHtml
(
$method
);
?>
<?php
if
(
trim
(
$methodHtml
)
!==
''
)
:?>
<?
php
if
(
trim
(
$method
)
===
'checkout.cart.shortcut.buttons'
)
:?>
<
li
class
="
item
" style="
order
:
0
;
"><?= /* @noEscape */
$methodHtml
?></li>
<?php else : ?>
<li class="
item
" style="
order
:
1
;
"><?= /* @noEscape */
$methodHtml
?></li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if (
$block->getContinueShoppingUrl
()): ?>
<div class="
continue
-
content
" style="
height
:
40
px
;
">
<button class="
action
continue
" style="
width
:
100
%
;
" onclick="
window
.
location
.
href
=
'<?= $block->escapeUrl($block->getContinueShoppingUrl()) ?>'
">Continue shopping</button>
</div>
<?php endif; ?>
<div class="
shipping
-
msg
" style="
text
-
align
:
center
;
margin
:
1
rem
0
px
;
">Taxes and shipping fee will be calculated at checkout
</div>
<script>
require(['jquery'], function ($) {
var isMobile = window.matchMedia("
(
pointer
:
coarse
)
").matches;
if (isMobile) {
$(window).scroll(function () {
var positionUl = $('.cart-container .checkout-methods-items li:first-child')
if (window.outerHeight + $(document).scrollTop() < $(positionUl).parent().offset().top + 50) {
$(positionUl).removeClass("
button
-
static
");
} else {
$(positionUl).addClass("
button
-
static
");
}
});
}
});
</script>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/totals.phtml
0 → 100644
View file @
b090b618
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<?php
/**
* Shopping cart totals template
* @var $block \Magento\Checkout\Block\Cart\Totals
*/
$code
=
$block
->
getQuote
()
->
getCouponCode
();
$subtotal
=
0
;
if
(
$code
==
null
)
{
$subtotal
=
$block
->
getQuote
()
->
getSubtotalWithDiscount
();
}
else
{
$subtotal
=
$block
->
getQuote
()
->
getBaseSubtotalWithDiscount
();
}
//获取商品总价格
$total
=
$block
->
getQuote
()
->
getSubtotal
();
$discount
=
0
;
if
(
$total
>
$subtotal
)
{
$discount
=
$total
-
$subtotal
;
$discountStr
=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$discount
),
[
'span'
]
);
}
$subtotalStr
=
$block
->
escapeHtml
(
$this
->
helper
(
Magento\Checkout\Helper\Data
::
class
)
->
formatPrice
(
$subtotal
),
[
'span'
]
);
?>
<div
id=
"cart-totals"
class=
"cart-totals"
data-bind=
"scope:'block-totals'"
>
<?php
if
(
$discount
>
0
)
:
?>
<div
class=
"discount-area"
>
<div
class=
"discount-title"
>
discount
</div>
<div
class=
"discount-price"
>
-
<?=
$discountStr
?>
</div>
</div>
<?php
endif
;
?>
<div
class=
"total-area"
>
<div
class=
"total-title"
>
Total
</div>
<div
class=
"total-price"
>
<?=
$subtotalStr
?>
</div>
</div>
</div>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/onepage/link.phtml
View file @
b090b618
...
...
@@ -15,7 +15,7 @@ use Magento\Framework\Escaper;
<?php
if
(
$block
->
isPossibleOnepageCheckout
())
:
?>
<button
type=
"button"
data-role=
"proceed-to-checkout"
title=
"
<?=
$escaper
->
escapeHtmlAttr
(
__
(
'Checkout
Now
'
))
?>
"
title=
"
<?=
$escaper
->
escapeHtmlAttr
(
__
(
'Checkout'
))
?>
"
data-mage-init=
'{
"Magento_Checkout/js/proceed-to-checkout":{
"checkoutUrl":"
<?=
$escaper
->
escapeJs
(
$block
->
getCheckoutUrl
())
?>
"
...
...
@@ -24,8 +24,12 @@ use Magento\Framework\Escaper;
class=
"action primary checkout
<?=
(
$block
->
isDisabled
())
?
' disabled'
:
''
?>
"
<?php
if
(
$block
->
isDisabled
())
:
?>
disabled=
"disabled"
<?php
endif
;
?>
style=
" background: #0000; height: 40px;font-size: 22px;text-transform: uppercase;font-weight: 400;"
>
<span
data-v-20221108=
""
class=
"secure"
><img
data-v-b14bd780=
""
alt=
""
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAA3CAYAAAClxaIBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMyODNDODA2MkIwNTExRUNCNUFCRkFGMzY4RjkyOTdCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMyODNDODA3MkIwNTExRUNCNUFCRkFGMzY4RjkyOTdCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzI4M0M4MDQyQjA1MTFFQ0I1QUJGQUYzNjhGOTI5N0IiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzI4M0M4MDUyQjA1MTFFQ0I1QUJGQUYzNjhGOTI5N0IiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7niMRCAAAEKklEQVR42tSaW0gVQRjHt01SwiyTJKuHiugiEVIUVhBlPRRBN7ppUCT2EGVB0A2SoB6iJ596iPJBLJPM7B5SdDXNyjIxy0iLIsEoNYuu1vb/8DuwnM7OzszZPR7/8FNxZ3b2f+ab2ZlvTj/LsgyPlQhWgvlgNkgAXaAS3ABnQIenLZIJj0gGB8EHSyy6fgCM9KptL24yCOwFbZaaPnG9xN40EQ+2gxYrPL0DO/l+Ws/ST2NMDAM5YBMY42Fkt4BCUADeq1RUMTELrAVZIMnwT1/AKTZU5YWJiWAxWAOmG5HXA1AKroM6WRNxIJ1ZAqaCWKP3RQ9ZDS6AGnAf/LCbSMPvuWAeSAXjjOhXM2jk984tMvEUf0wx+q7qTX6b9mV9Nu2x1Uf1g0z8jsYQAY9AJq+/RPpp8rwcbQYaeEovAfEu5btMz1eU4RugN/Y62/9GuNRpj8GPzigx8Bjs5hebXaNc6nWQidYoMbCReyLUWk2k92TiXRQYoPB54XB9iEv9t6bqitGHMbBdYIBkCq79okgyOZxae8nAYd62Cgeu4NqbQE+08lo+0gbOgWKJsq9dTHSQib/gVYRNvAT7JctWOQx40nN7vNVFeI+QqVj+l8O1WruJ2giGUR7oVqgzQ7BIrbGnbAaCdstfPQVHFBIA48FVrhdKTYGyMezoG7taqPnpdvMsskC02gRbJO+5A2xw2efcCzUH39U0cAtM40brBeXyJe9ZIGGAdDNUBjBNMTQucpfb75HvUL5cMoTOC8LHru8gySl51ijx8NVghcND0Nh6EqLOOAkD1yQNkM7Z6wa/0ktdQqcMzARnHcrQ2CoPCqtKiffQNZCssNcvESWUJwvcD1WYWWptveCWnqxQ6AFSJ+d/HXuigfM7obReYcAXcm9cAV8F5S6D4YrZlqL/dqMhPplMwXh4CHIke4PGToLgepFiDwQ0SSYrPgC8kZiZkl1MjBVcy9c0UKGS2t8qcUOahVZrpOKzNQ2QMlRMxEqc+AR65ZCCgbQwDNzmKVzpkGWbwovvpISBATxOdJUOTFUT/UGzgpHzLibKwzBwTHRv0f71D8iVnPZoihwNrjpc3wPGai7fKS+2S5z4dw+DYsU11eWg+qlhjANLZvKQMTEYdCgaKQtaE+nqksyEESOTOgeb+RxNNrRIR/kwJFkzjGg3ly13jiQ/PR63IqtFfpxjm7zsiITy/DzHTuHMiG6IyIjCNkulgs5hfBqvdON8MEBb5DmqlUyNhqgnlvlgoMnoOTM3ImGCVKGYAHMTpVEzdE+tzDAapi3iKg8MPDN6ztG1k9pmmA9AX8CiQ/w2zfp32EB4ZyQefXGKshn1itPoSSuKvrRlX/UWShrY52G7npoIkMvJrVD6CJZ43aYfJogJ4HSQgRMgxY/2dF52KloOlnKy7YJfjfwTYAD0328CQiS8EQAAAABJRU5ErkJggg=="
></span>
<span>
<?=
$escaper
->
escapeHtml
(
__
(
'Checkout Now'
))
?>
</span>
<?php
endif
;
?>
style=
"background: #7E6452; height: 40px;font-size: 16px;font-weight: 400;"
>
<!--
<span data-v-20221108="" class="secure">
<img data-v-b14bd780="" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAA3CAYAAAClxaIBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMyODNDODA2MkIwNTExRUNCNUFCRkFGMzY4RjkyOTdCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMyODNDODA3MkIwNTExRUNCNUFCRkFGMzY4RjkyOTdCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzI4M0M4MDQyQjA1MTFFQ0I1QUJGQUYzNjhGOTI5N0IiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzI4M0M4MDUyQjA1MTFFQ0I1QUJGQUYzNjhGOTI5N0IiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7niMRCAAAEKklEQVR42tSaW0gVQRjHt01SwiyTJKuHiugiEVIUVhBlPRRBN7ppUCT2EGVB0A2SoB6iJ596iPJBLJPM7B5SdDXNyjIxy0iLIsEoNYuu1vb/8DuwnM7OzszZPR7/8FNxZ3b2f+ab2ZlvTj/LsgyPlQhWgvlgNkgAXaAS3ABnQIenLZIJj0gGB8EHSyy6fgCM9KptL24yCOwFbZaaPnG9xN40EQ+2gxYrPL0DO/l+Ws/ST2NMDAM5YBMY42Fkt4BCUADeq1RUMTELrAVZIMnwT1/AKTZU5YWJiWAxWAOmG5HXA1AKroM6WRNxIJ1ZAqaCWKP3RQ9ZDS6AGnAf/LCbSMPvuWAeSAXjjOhXM2jk984tMvEUf0wx+q7qTX6b9mV9Nu2x1Uf1g0z8jsYQAY9AJq+/RPpp8rwcbQYaeEovAfEu5btMz1eU4RugN/Y62/9GuNRpj8GPzigx8Bjs5hebXaNc6nWQidYoMbCReyLUWk2k92TiXRQYoPB54XB9iEv9t6bqitGHMbBdYIBkCq79okgyOZxae8nAYd62Cgeu4NqbQE+08lo+0gbOgWKJsq9dTHSQib/gVYRNvAT7JctWOQx40nN7vNVFeI+QqVj+l8O1WruJ2giGUR7oVqgzQ7BIrbGnbAaCdstfPQVHFBIA48FVrhdKTYGyMezoG7taqPnpdvMsskC02gRbJO+5A2xw2efcCzUH39U0cAtM40brBeXyJe9ZIGGAdDNUBjBNMTQucpfb75HvUL5cMoTOC8LHru8gySl51ijx8NVghcND0Nh6EqLOOAkD1yQNkM7Z6wa/0ktdQqcMzARnHcrQ2CoPCqtKiffQNZCssNcvESWUJwvcD1WYWWptveCWnqxQ6AFSJ+d/HXuigfM7obReYcAXcm9cAV8F5S6D4YrZlqL/dqMhPplMwXh4CHIke4PGToLgepFiDwQ0SSYrPgC8kZiZkl1MjBVcy9c0UKGS2t8qcUOahVZrpOKzNQ2QMlRMxEqc+AR65ZCCgbQwDNzmKVzpkGWbwovvpISBATxOdJUOTFUT/UGzgpHzLibKwzBwTHRv0f71D8iVnPZoihwNrjpc3wPGai7fKS+2S5z4dw+DYsU11eWg+qlhjANLZvKQMTEYdCgaKQtaE+nqksyEESOTOgeb+RxNNrRIR/kwJFkzjGg3ly13jiQ/PR63IqtFfpxjm7zsiITy/DzHTuHMiG6IyIjCNkulgs5hfBqvdON8MEBb5DmqlUyNhqgnlvlgoMnoOTM3ImGCVKGYAHMTpVEzdE+tzDAapi3iKg8MPDN6ztG1k9pmmA9AX8CiQ/w2zfp32EB4ZyQefXGKshn1itPoSSuKvrRlX/UWShrY52G7npoIkMvJrVD6CJZ43aYfJogJ4HSQgRMgxY/2dF52KloOlnKy7YJfjfwTYAD0328CQiS8EQAAAABJRU5ErkJggg==">
</span>
-->
<span>
<?=
$escaper
->
escapeHtml
(
__
(
'Checkout'
))
?>
</span>
</button>
<?php
endif
?>
app/design/frontend/Joshine/breeze/Magento_Paypal/templates/express/shortcut.phtml
View file @
b090b618
...
...
@@ -26,8 +26,24 @@ if ($block->getIsInCatalogProduct()) {
$isInCatalogProduct
=
$block
->
getIsInCatalogProduct
();
}
?>
<?php
if
(
strpos
(
$block
->
escapeUrl
(
$block
->
getImageUrl
()),
'checkout-logo-medium'
)
!==
false
){
$imgsrc
=
$block
->
getViewFileUrl
(
'Magento_Paypal::images/paypal-color.svg'
);
$class
=
'checkout-logo-medium'
;
$classFirst
=
''
;
}
else
{
$imgsrc
=
$block
->
getViewFileUrl
(
'Magento_Paypal::images/paypal-credit.png'
);
$class
=
'paypal-credit displayno'
;
$classFirst
=
'displayno'
;
}
?>
<div
data-label=
"
<?=
$block
->
escapeHtml
(
__
(
'or'
))
?>
"
class=
"paypal checkout
<?=
/* @noEscape */
$labelPosition
?>
paypal-logo
class=
"paypal checkout
<?=
/* @noEscape */
$labelPosition
?>
<?=
/* @noEscape */
$classFirst
?>
paypal-logo
<?=
/* @noEscape */
$shortcutHtmlId
?>
"
data-mage-init=
'{
"paypalCheckout": {
...
...
@@ -36,15 +52,6 @@ if ($block->getIsInCatalogProduct()) {
}
}'
>
<?php
if
(
strpos
(
$block
->
escapeUrl
(
$block
->
getImageUrl
()),
'checkout-logo-medium'
)
!==
false
){
$imgsrc
=
$block
->
getViewFileUrl
(
'Magento_Paypal::images/paypal-color.svg'
);
$class
=
'checkout-logo-medium'
;
}
else
{
$imgsrc
=
$block
->
getViewFileUrl
(
'Magento_Paypal::images/paypal-credit.png'
);
$class
=
'paypal-credit displayno'
;
}
?>
<div
class=
"
<?=
$class
?>
"
>
<input
type=
"image"
data-action=
"checkout-form-submit"
data-checkout-url=
"
<?=
$block
->
escapeUrl
(
$block
->
getCheckoutUrl
())
?>
"
...
...
@@ -57,6 +64,6 @@ if ($block->getIsInCatalogProduct()) {
<img
src=
"
<?=
$block
->
escapeHtml
(
$linkImage
[
'src'
])
?>
"
/>
</a>
<?php
endif
;
?>
<div
class=
"checkout-txt"
>
Checkout
</div>
<div
class=
"checkout-txt"
style=
"display:contents;"
>
</div>
</div>
</div>
app/design/frontend/Joshine/breeze/etc/view.xml
View file @
b090b618
...
...
@@ -12,8 +12,8 @@
<height>
375
</height>
</image>
<image
id=
"cart_page_product_thumbnail"
type=
"small_image"
>
<width>
96
</width>
<height>
1
20
</height>
<width>
150
</width>
<height>
1
99
</height>
</image>
<image
id=
"category_page_grid"
type=
"small_image"
>
<width>
400
</width>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
b090b618
...
...
@@ -731,6 +731,10 @@ p.shopbycate-title {
cursor:pointer;
color: #0000ff;
}
.checkout-cart-index #maincontent{
background-color:#FFFFFF;
border-top:1px solid #ddd;
}
.checkout-cart-index #maincontent .columns #block-shipping{
margin-top:0;
}
...
...
@@ -752,6 +756,10 @@ p.shopbycate-title {
height: 40px;
display: inline-block;
}
.checkout-cart-index .checkout.checkout-methods-items div,.checkout-cart-index .checkout-logo-medium input{
height:40px;
width:100%;
}
@media (min-width: 1024px){
.cart.item .item-info td.col.item {
width: 50%;
...
...
@@ -773,11 +781,9 @@ p.shopbycate-title {
background: url("../images/icons-pc.png");
background-position-x: -160px;
}
.checkout-cart-index .checkout.checkout-methods-items div{
height:auto;
}
.checkout-cart-index #cart-totals {
padding-bottom:
2rem
;
padding-bottom:
0
;
}
.checkout-cart-index #cart-totals .table-wrapper table tr {
border-bottom:none;
...
...
@@ -832,7 +838,11 @@ p.shopbycate-title {
.checkout-cart-index .cart-container .checkout-methods-items .checkout-now button{
height: 50px;
}
.checkout-cart-index #maincontent,.checkout-onepage-success #maincontent{
.checkout-cart-index .cart-container .checkout-methods-items{
padding:0px 1rem;
}
.checkout-onepage-success #maincontent{
background-color: #f4f4f4;
border-top:1px solid #ddd;
}
...
...
@@ -864,24 +874,9 @@ p.shopbycate-title {
padding: 18px 15px;
border-bottom: 1px solid #ddd;
}
.checkout-cart-index .column.main .block .title
{
border-bottom: 1px solid #ddd;
}
.checkout-cart-index .column.main .block .title {
padding: 0.6rem 1rem;
}
.checkout-cart-index .cart-container .cart-summary > .title,
.checkout-cart-index .column.main .block .title,
.checkout-cart-index .cart-container .cart-summary #block-summary,
.checkout-cart-index .cart-container #cart-totals,
.checkout-cart-index .cart-container #block-discount,
.checkout-cart-index .checkout-methods-items .item
{
background-color: #ffffff;
}
.block-minicart .subtotal {
margin-right: 1rem;
}
...
...
@@ -893,14 +888,24 @@ p.shopbycate-title {
animation-play-state: paused;
top: 45%;
left: 45%;
}
.checkout-cart-index .checkout-methods-items {
background-color: #fff;
}
.free-over{
font-size: 16px;
color: #000;
}
}
.checkout-cart-index .total-area,.checkout-cart-index .discount-area {
display: flex;
font-weight: 400;
justify-content: space-between;
width: 100%;
padding: 10px 0px;
}
.discount-area{
color:#fa320f;
}
.recently-viewed .product-info-promotion-span{
position: absolute;
...
...
@@ -910,10 +915,13 @@ p.shopbycate-title {
}
.checkout-cart-index .cart-container .cart-summary {
gap: 0px;
background-color: rgba(0,0,0,.03);
padding-bottom: 1rem;
}
@media (max-width: 768px){
.checkout-cart-index .cart-container .cart-summary {
margin:0;
background-color: #ffffff;
}
.checkout-index-index .method-content .method-msg{
padding: 5px 0 5px 2.2rem;
...
...
@@ -947,6 +955,9 @@ p.shopbycate-title {
padding: 0px!important;
gap: 0.5rem;
}
.checkout-cart-index .button-static{
margin-bottom:0rem!important;
}
.checkout-now.button-static .now-grand-total{
display: none;
}
...
...
@@ -954,10 +965,10 @@ p.shopbycate-title {
border: none;
}
.checkout-cart-index .cart-container .checkout-methods-items{
margin-top:
2rem
;
margin-top:
0
;
}
.checkout-cart-index .cart-container .checkout-methods-items .checkout-now{
z-index:
1
;
z-index:
2
;
gap: 0rem;
margin-bottom: 0px;padding: 0px 10px 10px;
}
...
...
@@ -1018,6 +1029,7 @@ p.shopbycate-title {
position: absolute;
right: 7%;
}
@media (max-width: 768px){
.checkout-index-index .product-item-details .product-item-inner .subtotal {
right: 13.5%;
...
...
@@ -1062,7 +1074,7 @@ p.shopbycate-title {
}
}
.checkout-index-index .page-footer
,.checkout-cart-index .page-footer
{
.checkout-index-index .page-footer{
background-color: #FFFFFF;
}
.checkout-onepage-success #maincontent{
...
...
@@ -1177,7 +1189,7 @@ p.shopbycate-title {
}
}
@media(max-width: 768px){
.checkout-index-index .page-footer
,.checkout-cart-index .page-footer
{
.checkout-index-index .page-footer{
padding-top:0;
margin-top:10px;
}
...
...
@@ -1188,14 +1200,23 @@ p.shopbycate-title {
{
border-left: none;
}
}
.checkout-cart-index .checkout-logo-medium {
margin-bottom:0px;
}
.checkout-cart-index .shipping-msg {
font-size:14px;
}
}
@media(min-width: 790px){
.baozhang_before_footer{
margin-top: 30px;
}
.baozhang_before_footer .image_first {margin-top: 10px;}
.checkout-cart-index .continue-content{
padding:0px 1rem;
}
}
@media(max-width:789px){
.col-md-3.col-xs-12.social_block {
...
...
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