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
b1beb2d2
Commit
b1beb2d2
authored
Nov 07, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改空购物车logo
测试mini购物车内容
parent
68114f4c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
106 deletions
+23
-106
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/minicart.phtml
+5
-4
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/noItems.phtml
+2
-2
app/design/frontend/Joshine/breeze/Magento_Checkout/web/images/empty-cart.svg
+2
-2
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/minicart/content.html
+0
-98
app/design/frontend/Joshine/breeze/web/css/_custom.less
+12
-0
app/design/frontend/Joshine/breeze/web/images/shopping-cart-thin.bf9c05b6.svg
+2
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/minicart.phtml
View file @
b1beb2d2
...
...
@@ -11,6 +11,7 @@
<div
data-block=
"minicart"
class=
"minicart-wrapper"
>
<a
class=
"action showcart"
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getShoppingCartUrl
())
?>
"
data-bind=
"scope: 'minicart_content'"
>
<span
class=
"text"
></span>
<span
class=
"counter qty empty"
data-bind=
"css: { empty: !!getCartParam('summary_count') == false && !isLoading() },
blockLoader: isLoading"
>
...
...
@@ -19,7 +20,7 @@
<!-- ko if: getCartParam('summary_count') -->
<!-- ko text: getCartParam('summary_count') --><!-- /ko -->
<!-- ko i18n: 'items' --><!-- /ko -->
<!-- /ko -->
<!-- /ko -->
</span>
</span>
</a>
...
...
@@ -52,7 +53,7 @@ script;
<?= /* @noEscape */
$secureRenderer->renderTag
('script', [],
$scriptString
, false); ?>
<?php endif ?>
<?= /* @noEscape */
$secureRenderer->renderTag
('script', [], 'window.checkout = ' .
/* @noEscape */
$block->getSerializedConfig
(), false); ?>
/* @noEscape */
$block->getSerializedConfig
(), false); ?>
<script type="
text
/
x
-
magento
-
init
">
{
"
[
data
-
block
=
'minicart'
]
": {
...
...
@@ -60,8 +61,8 @@ script;
},
"
*
": {
"
Magento_Ui
/
js
/
block
-
loader
": "
<?=
$block
->
escapeJs
(
$block
->
escapeUrl
(
$block
->
getViewFileUrl
(
'images/loader-1.gif'
))
)
?>
"
$block
->
escapeUrl
(
$block
->
getViewFileUrl
(
'images/loader-1.gif'
))
)
?>
"
}
}
</script>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/noItems.phtml
View file @
b1beb2d2
...
...
@@ -9,10 +9,10 @@
<div
class=
"cart-empty"
>
<?=
$block
->
getChildHtml
(
'checkout_cart_empty_widget'
)
?>
<div
class=
"empty-img"
><img
src=
"
<?=
$block
->
getViewFileUrl
(
'Magento_Checkout::images/empty-cart.svg'
);
?>
"
/></div>
<p
>
<?=
$block
->
escapeHtml
(
__
(
'You have no items in your shopping cart
.'
))
?>
</p>
<p
class=
"empty-message"
>
<?=
$block
->
escapeHtml
(
__
(
'You shopping cart is currently empty
.'
))
?>
</p>
<p>
<?=
$block
->
escapeHtml
(
__
(
'
Click <a href="%1">here</a> to continue shopping.
'
,
'
<a href="%1">CONTINUE SHOPPING >></a>
'
,
$block
->
escapeUrl
(
$block
->
getContinueShoppingUrl
())
),
[
'a'
]
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/web/images/empty-cart.svg
View file @
b1beb2d2
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1666333165025"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"13278"
width=
"200"
height=
"200"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><path
d=
"M725.333333 981.333333a42.666667 42.666667 0 1 1 42.666667-42.666666 42.713333 42.713333 0 0 1-42.666667 42.666666z m0-42.666666z m-384 42.666666a42.666667 42.666667 0 1 1 42.666667-42.666666 42.713333 42.713333 0 0 1-42.666667 42.666666z m0-42.666666z m382.313334-128H347.146667a85.333333 85.333333 0 0 1-82.146667-62.226667L90.506667 128H21.333333a21.333333 21.333333 0 0 1 0-42.666667h85.333334a21.333333 21.333333 0 0 1 20.533333 15.56L170.826667 256h766.086666a37.333333 37.333333 0 0 1 34.953334 50.44l-168.32 448.853333a85.333333 85.333333 0 0 1-79.9 55.373334zM182.826667 298.666667l123.246666 438.22a42.82 42.82 0 0 0 41.073334 31.113333h376.5a42.873333 42.873333 0 0 0 39.953333-27.686667L929.213333 298.666667z"
fill=
"#bfbfbf"
p-id=
"13279"
></path></svg>
\ No newline at end of file
<svg
width=
"24"
height=
"24"
xmlns=
"http://www.w3.org/2000/svg"
fill-rule=
"evenodd"
clip-rule=
"evenodd"
><path
d=
"M13.5 21c-.276 0-.5-.224-.5-.5s.224-.5.5-.5.5.224.5.5-.224.5-.5.5m0-2c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5m-6 2c-.276 0-.5-.224-.5-.5s.224-.5.5-.5.5.224.5.5-.224.5-.5.5m0-2c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5m16.5-16h-2.964l-3.642 15h-13.321l-4.073-13.003h19.522l.728-2.997h3.75v1zm-22.581 2.997l3.393 11.003h11.794l2.674-11.003h-17.861z"
/></svg>
\ No newline at end of file
app/design/frontend/Joshine/breeze/Magento_Checkout/web/template/minicart/content.html
View file @
b1beb2d2
...
...
@@ -4,103 +4,5 @@
* See COPYING.txt for license details.
*/
-->
<div
class=
"block-title"
>
<strong>
<span
class=
"text"
translate=
"'My Cart'"
></span>
<span
class=
"qty empty"
text=
"getCartParam('summary_count')"
data-bind=
"css: { empty: !!getCartParam('summary_count') == false },
attr: { title: $t('Items in Cart') }"
>
</span>
</strong>
</div>
<div
class=
"block-content"
>
<button
type=
"button"
id=
"btn-minicart-close"
class=
"action close"
data-action=
"close"
data-bind=
"
attr: {
title: $t('Close')
},
click: closeMinicart()
"
>
<span
translate=
"'Close'"
></span>
</button>
<if
args=
"getCartParam('summary_count')"
>
<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>
<!-- ko if: (getCartParam('summary_count') > 1) -->
<span
translate=
"'Items in Cart'"
></span>
<!--/ko-->
<!-- ko if: (getCartParam('summary_count') === 1) -->
<span
translate=
"'Item in Cart'"
></span>
<!--/ko-->
</div>
<each
args=
"getRegion('subtotalContainer')"
render=
""
></each>
<each
args=
"getRegion('extraInfo')"
render=
""
></each>
<div
class=
"actions"
if=
"getCartParam('possible_onepage_checkout')"
>
<div
class=
"primary"
>
<button
id=
"top-cart-btn-checkout"
type=
"button"
class=
"action primary checkout"
data-action=
"close"
data-bind=
"
attr: {
title: $t('Proceed to Checkout')
},
click: closeMinicart()
"
translate=
"'Proceed to Checkout'"
>
</button>
<div
data-bind=
"html: getCartParamUnsanitizedHtml('extra_actions')"
></div>
</div>
</div>
</if>
<if
args=
"getCartParam('summary_count')"
>
<strong
class=
"subtitle"
translate=
"'Recently added item(s)'"
></strong>
<div
data-action=
"scroll"
class=
"minicart-items-wrapper"
>
<ol
id=
"mini-cart"
class=
"minicart-items"
data-bind=
"foreach: { data: getCartItems(), as: 'item' }"
>
<each
args=
"$parent.getRegion($parent.getItemRenderer(item.product_type))"
render=
"{name: getTemplate(), data: item, afterRender: function() {$parents[1].initSidebar()}}"
></each>
</ol>
</div>
</if>
<ifnot
args=
"getCartParam('summary_count')"
>
<strong
class=
"subtitle empty"
translate=
"'You have no items in your shopping cart.'"
></strong>
<if
args=
"getCartParam('cart_empty_message')"
>
<p
class=
"minicart empty text"
text=
"getCartParam('cart_empty_message')"
></p>
<div
class=
"actions"
>
<div
class=
"secondary"
>
<a
class=
"action viewcart"
data-bind=
"attr: {href: shoppingCartUrl}"
>
<span
translate=
"'View and Edit Cart'"
></span>
</a>
</div>
</div>
</if>
</ifnot>
<div
class=
"actions"
if=
"getCartParam('summary_count')"
>
<div
class=
"secondary"
>
<a
class=
"action viewcart"
data-bind=
"attr: {href: shoppingCartUrl}"
>
<span
translate=
"'View and Edit Cart'"
></span>
</a>
</div>
</div>
<div
id=
"minicart-widgets"
class=
"minicart-widgets"
if=
"regionHasElements('promotion')"
>
<each
args=
"getRegion('promotion')"
render=
""
></each>
</div>
</div>
<each
args=
"getRegion('sign-in-popup')"
render=
""
></each>
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
b1beb2d2
...
...
@@ -2193,6 +2193,18 @@ text-transform: none;
.cart.table-wrapper .cart.table td{vertical-align: middle;}
.checkout-cart-index .cart-empty{text-align: center;margin-top: 50px;}
.checkout-cart-index .cart-empty .empty-img{margin-bottom: 20px;}
.checkout-cart-index .cart-empty .empty-message{
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
color: #272727;
font-size: 20px;
}
strong.subtitle.empty{
font-size: 14px;
}
.checkout-cart-index .cart-empty .empty-img img{width: 120px;}
.checkout-cart-index .cart-empty a{
background: #ffa800;
...
...
app/design/frontend/Joshine/breeze/web/images/shopping-cart-thin.bf9c05b6.svg
0 → 100644
View file @
b1beb2d2
<svg
width=
"24"
height=
"24"
xmlns=
"http://www.w3.org/2000/svg"
fill-rule=
"evenodd"
clip-rule=
"evenodd"
><path
d=
"M13.5 21c-.276 0-.5-.224-.5-.5s.224-.5.5-.5.5.224.5.5-.224.5-.5.5m0-2c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5m-6 2c-.276 0-.5-.224-.5-.5s.224-.5.5-.5.5.224.5.5-.224.5-.5.5m0-2c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5m16.5-16h-2.964l-3.642 15h-13.321l-4.073-13.003h19.522l.728-2.997h3.75v1zm-22.581 2.997l3.393 11.003h11.794l2.674-11.003h-17.861z"
/></svg>
\ No newline at end of file
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