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
9acae16e
Commit
9acae16e
authored
Sep 16, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化主页最新产品模块
parent
2c319244
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
+25
-1
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
+0
-1
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/widget/new/content/home_news_product.phtml
View file @
9acae16e
...
...
@@ -34,7 +34,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
<?php
if
(
$exist
)
:?>
<
div
class
="
block
widget
block
-
new
-
products
<?=
/* @noEscape */
$mode
?>
">
<div
class=
"block-title"
>
<strong
role=
"heading"
aria-level=
"2"
>
NEW ARRIVALS
</strong>
<strong
role=
"heading"
aria-level=
"2"
class=
"flashsale-title"
>
NEW ARRIVALS
</strong>
</div>
<div
class=
"block-content home-new-product"
>
<?=
/* @noEscape */
'<!-- '
.
$image
.
'-->'
?>
...
...
@@ -143,6 +143,15 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
text-align
:
center
;
font-size
:
x-large
;
}
.product-item-name
.product-item-link
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
cursor
:
pointer
;
width
:
100%
;
display
:
inline-block
;
color
:
#222222
;
}
.block-title
>
sto
{
background
:
#fff
;
font-size
:
24px
;
...
...
@@ -157,4 +166,19 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
justify-content
:
space-around
;
align-items
:
flex-end
;
}
strong
.flashsale-title
:hover
{
text-decoration
:
underline
;
}
strong
.flashsale-title
{
background
:
#fff
;
font-size
:
24px
;
font-weight
:
bold
;
color
:
#000000
;
margin
:
0px
;
padding
:
40px
;
text-align
:
center
;
}
button
.tocart
{
background
:
#000
;
}
</style>
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
View file @
9acae16e
...
...
@@ -57,7 +57,6 @@
</div>
<?php
//<p>{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="new_products" show_pager="0" products_count="3" template="product/widget/new/content/new_list.phtml"}}</p>
echo
$this
->
getLayout
()
->
createBlock
(
"Magento\Catalog\Block\Product\Widget\NewWidget"
)
->
setDisplayType
(
"all_products"
)
->
setProductsCount
(
"4"
)
->
setTemplate
(
"product/widget/new/content/home_news_product.phtml"
)
->
toHtml
();
?>
...
...
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