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
de92525c
Commit
de92525c
authored
Sep 27, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化收藏列表样式
parent
5c704f93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
app/design/frontend/Joshine/breeze/Magento_Wishlist/templates/view.phtml
+64
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Wishlist/templates/view.phtml
0 → 100644
View file @
de92525c
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
/** @var \Magento\Wishlist\Block\Customer\Wishlist $block */
?>
<style
type=
"text/css"
>
.action.primary.tocart
{
height
:
42px
;
}
button
,
.action.primary
,
input
[
type
=
'submit'
],
input
[
type
=
'reset'
],
input
[
type
=
'button'
],
.pagebuilder-button-primary
,
.pagebuilder-button-secondary
,
.pagebuilder-button-link
{
background
:
#000000
;
color
:
#ffffff
;
}
</style>
<?php
if
(
$this
->
helper
(
\Magento\Wishlist\Helper\Data
::
class
)
->
isAllow
())
:
?>
<div
class=
"toolbar wishlist-toolbar"
>
<?=
$block
->
getChildHtml
(
'wishlist_item_pager'
);
?>
</div>
<?=
(
$block
->
getChildHtml
(
'wishlist.rss.link'
))
?>
<form
class=
"form-wishlist-items"
id=
"wishlist-view-form"
data-mage-init=
'{"wishlist":{
"addToCartUrl":
<?=
/* @noEscape */
$block
->
getItemAddToCartParams
(
"%item%"
)
?>
,
"addAllToCartUrl":
<?=
/* @noEscape */
$block
->
getAddAllToCartParams
()
?>
,
"commentString":""},
"validation": {}}'
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getUrl
(
'wishlist/index/update'
,
[
'wishlist_id'
=>
$block
->
getWishlistInstance
()
->
getId
()]))
?>
"
method=
"post"
>
<?=
$block
->
getChildHtml
(
'top'
)
?>
<?php
if
(
$block
->
hasWishlistItems
())
:
?>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<?php
$block
->
getChildBlock
(
'items'
)
->
setItems
(
$block
->
getWishlistItems
());
?>
<?=
$block
->
getChildHtml
(
'items'
)
?>
<?php
else
:
?>
<div
class=
"message info empty"
><span>
<?=
$block
->
escapeHtml
(
__
(
'You have no items in your wish list.'
))
?>
</span></div>
<?php
endif
?>
<?=
$block
->
getChildHtml
(
'bottom'
)
?>
<div
class=
"actions-toolbar"
>
<div
class=
"primary"
>
<?=
$block
->
getChildHtml
(
'control_buttons'
)
?>
</div>
<div
class=
"secondary"
>
<a
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getBackUrl
())
?>
"
class=
"action back"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Back'
))
?>
</span>
</a>
</div>
</div>
</form>
<script
id=
"form-tmpl"
type=
"text/x-magento-template"
>
<
form
id
=
"wishlist-hidden-form"
method
=
"post"
action
=
"<%- data.url %>"
class
=
"no-display"
>
<%
if
(
data
.
qty
)
{
%>
<
input
name
=
"qty"
value
=
"<%- data.qty %>"
>
<%
}
%>
<%
if
(
data
.
item
)
{
%>
<
input
name
=
"item"
value
=
"<%- data.item %>"
>
<%
}
%>
<%
if
(
data
.
entity
)
{
%>
<
input
name
=
"entity"
value
=
"<%- data.entity %>"
>
<%
}
%>
<
/form
>
</script>
<div
class=
"toolbar wishlist-toolbar"
><br>
<?=
$block
->
getChildHtml
(
'wishlist_item_pager'
);
?>
</div>
<?php
endif
?>
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