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
2d3946f7
Commit
2d3946f7
authored
Nov 17, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整购物车界面
parent
2d6aedf2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
181 additions
and
1 deletions
+181
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
+25
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart.phtml
+56
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
+71
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/footer.phtml
+28
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+1
-1
No files found.
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
0 → 100644
View file @
2d3946f7
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<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=
"header.container"
remove=
"true"
/>
<referenceBlock
name=
"global_notices"
remove=
"true"
/>
<referenceContainer
name=
"page.bottom.container"
remove=
"true"
/>
<referenceContainer
name=
"footer-container"
remove=
"true"
/>
<referenceContainer
name=
"content"
>
<block
class=
"Magento\Theme\Block\Html\Header\Logo"
name=
"logo"
before=
"checkout.cart"
>
<arguments>
<argument
name=
"logoPathResolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver
</argument>
<argument
name=
"logo_size_resolver"
xsi:type=
"object"
>
Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver
</argument>
</arguments>
</block>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"checkout.cart.footer"
template=
"Magento_Checkout::footer.phtml"
/>
</referenceContainer>
</body>
</page>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart.phtml
0 → 100644
View file @
2d3946f7
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<style>
.logo
{
margin-left
:
40%
;
margin-top
:
10%
;
}
a
.logo
>
img
{
margin-top
:
5%
;
width
:
155px
;
height
:
auto
;
}
.cart-class
{
margin-top
:
3%
;
margin-left
:
9%
;
margin-bottom
:
2%
;
}
.activation
{
font-size
:
20px
;
font-width
:
600
;
margin-right
:
20px
;
margin-left
:
20px
;
}
.activation-no
{
font-size
:
14px
;
margin-right
:
20px
;
margin-left
:
20px
;
color
:
#1b1b1b
;
}
</style>
<div
class=
"cart-class"
>
<span
class=
"activation"
>
Shopping Cart
</span>
>
<span
class=
"activation-no"
>
Information
</span>
>
<span
class=
"activation-no"
>
Shipping
</span>
>
<span
class=
"activation-no"
>
Payment
</span>
</div>
<?php
/**
* Shopping cart template
*
* @var $block \Magento\Checkout\Block\Cart
*/
if
(
$block
->
getItemsCount
())
{
// phpcs:ignore Magento2.Security.LanguageConstruct.DirectOutput
echo
$block
->
getChildHtml
(
'with-items'
);
}
else
{
// phpcs:ignore Magento2.Security.LanguageConstruct.DirectOutput
echo
$block
->
getChildHtml
(
'no-items'
);
}
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/coupon.phtml
0 → 100644
View file @
2d3946f7
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var \Magento\Framework\View\Element\AbstractBlock $block
*/
// We should use strlen function because coupon code could be "0", converted to bool will lead to false
$hasCouponCode
=
(
bool
)
strlen
(
$block
->
getCouponCode
());
?>
<div
class=
"block discount"
id=
"block-discount"
data-mage-init=
'{"collapsible":{"active":
<?=
$hasCouponCode
?
'true'
:
'false'
?>
, "openedState": "active", "saveState": false}}'
>
<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'
))
?>
"
method=
"post"
data-mage-init=
'{"discountCode":{"couponCodeSelector": "#coupon_code",
"removeCouponSelector": "#remove-coupon",
"applyButton": "button.action.apply",
"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: 65%;"
>
<label
for=
"coupon_code"
class=
"label"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Enter discount code'
))
?>
</span></label>
<div
class=
"control"
style=
"float: left;margin-top: 0px;margin-right: 2px;"
>
<input
type=
"text"
class=
"input-text"
id=
"coupon_code"
name=
"coupon_code"
value=
"
<?=
$block
->
escapeHtmlAttr
(
$block
->
getCouponCode
())
?>
"
placeholder=
"
<?=
$block
->
escapeHtmlAttr
(
__
(
'Enter discount code'
))
?>
"
<?php
if
(
$hasCouponCode
)
:?>
disabled
=
"disabled"
<?
php
endif
;
?>
/>
</div>
</div>
<div
class=
"actions-toolbar"
style=
"clear: none;"
>
<?php
if
(
!
$hasCouponCode
)
:?>
<
div
class
="
primary
">
<button class="
action
apply
primary
" type="
button
" value="
<?=
$block
->
escapeHtmlAttr
(
__
(
'Apply Discount'
))
?>
">
<span>
<?=
$block
->
escapeHtml
(
__
(
'Apply Discount'
))
?>
</span>
</button>
</div>
<?php
else
:?>
<
div
class
="
primary
">
<button type="
button
" class="
action
cancel
primary
" value="
<?=
$block
->
escapeHtmlAttr
(
__
(
'Cancel Coupon'
))
?>
">
<span>
<?=
$block
->
escapeHtml
(
__
(
'Cancel Coupon'
))
?>
</span></button>
</div>
<?php
endif
;
?>
</div>
</div>
<?php
if
(
!
$hasCouponCode
)
:
?>
<?=
/* @noEscape */
$block
->
getChildHtml
(
'captcha'
)
?>
<?php
endif
;
?>
</form>
</div>
</div>
<script>
require
([
'jquery'
],
function
(
$
)
{
setTimeout
(
function
(){
$
(
".page.messages"
).
hide
();
},
5000
);
});
</script>
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/footer.phtml
0 → 100644
View file @
2d3946f7
<style>
.cat-footer
{
border-top
:
1px
solid
#1b1b1b
;
width
:
100%
;
margin-top
:
5px
;
}
.cat-footer-tk
{
margin-top
:
10px
;
margin-left
:
9%
;
margin-bottom
:
2%
;
}
.cat-footer-tk
>
span
{
margin-right
:
10px
;
margin-left
:
10px
;
font-size
:
14px
;
}
</style>
<div
class=
"cat-footer"
>
<div
class=
"cat-footer-tk"
>
<span>
Refund Policy
</span>
<span>
Shipping policy
</span>
<span>
Privacy Policy
</span>
<span>
Terms of service
</span>
</div>
</div>
\ No newline at end of file
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
2d3946f7
...
...
@@ -920,7 +920,7 @@ footer{
@media(min-width: 640px){
.switcher.currency{
position: absolute;
top:
3
0px;
top:
2
0px;
right: 145px;
z-index: 1;
font-size: 13px;
...
...
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