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
bbf13145
Commit
bbf13145
authored
Sep 19, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页最新产品去掉购物车按钮
顶部banner页面边距设置为0
parent
3ec7ffcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
38 deletions
+1
-38
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
+0
-38
app/design/frontend/Joshine/breeze/web/css/_custom.less
+1
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
View file @
bbf13145
...
...
@@ -63,44 +63,6 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
<?php
if
(
$showWishlist
||
$showCompare
||
$showCart
)
:?>
<
div
class
="
product
-
item
-
actions
">
<?php if (
$showCart
) :?>
<div class="
actions
-
primary
">
<?php if (
$_item->isSaleable
()) :?>
<?php if (!
$_item->getTypeInstance
()->isPossibleBuyFromList(
$_item
)) :?>
<button class="
action
tocart
primary
"
data-mage-init='{"
redirectUrl
":{"
url
":"
<?=
$block
->
escapeUrl
(
$block
->
getAddToCartUrl
(
$_item
))
?>
"}}'
type="button"
title="
<?=
$block
->
escapeHtmlAttr
(
__
(
'Add to Cart'
))
?>
">
<span>
<?=
$block
->
escapeHtml
(
__
(
'Add Cart'
))
?>
</span>
</button>
<?php
else
:?>
<?
php
$postDataHelper
=
$this
->
helper
(
Magento\Framework\Data\Helper\PostHelper
::
class
);
$postData
=
$postDataHelper
->
getPostData
(
$block
->
escapeUrl
(
$block
->
getAddToCartUrl
(
$_item
)),
[
'product'
=>
(
int
)
$_item
->
getEntityId
()]
)
?>
<button
class=
"action tocart primary"
data-post=
'
<?=
/* @noEscape */
$postData
?>
'
type=
"button"
title=
"
<?=
$block
->
escapeHtmlAttr
(
__
(
'Add to Cart'
))
?>
"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Add Cart'
))
?>
</span>
</button>
<?php
endif
;
?>
<?php
else
:?>
<?
php
if
(
$_item
->
isAvailable
())
:?>
<
div
class
="
stock
available
">
<span><?=
$block->escapeHtml
(__('In stock')) ?></span>
</div>
<?php else :?>
<div class="
stock
unavailable
">
<span><?=
$block->escapeHtml
(__('Out of stock')) ?></span>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (
$showWishlist
||
$showCompare
) :?>
<div class="
actions
-
secondary
" data-role="
add
-
to
-
links
">
<?php if (
$this->helper
(Magento\Wishlist\Helper\Data::class)->isAllow() &&
$showWishlist
) :?>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
bbf13145
...
...
@@ -265,6 +265,7 @@ footer a{
.page-main > .columns{
margin-top: 20px;
position: inherit;
}
footer .footer_link .logo_img{
...
...
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