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
2b6deff4
Commit
2b6deff4
authored
Apr 03, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:商品列表封面切换压缩/淡入淡出
parent
f3964d27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/list.phtml
+15
-3
app/design/frontend/Joshine/breeze/i18n/es_ES.csv
+5
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/list.phtml
View file @
2b6deff4
...
@@ -55,6 +55,8 @@ $_helper = $block->getData('outputHelper');
...
@@ -55,6 +55,8 @@ $_helper = $block->getData('outputHelper');
}
}
}
}
$googleGtmName
=
is_null
(
$pos
)
?
'view_item_list'
:
'view_search_results'
;
$googleGtmName
=
is_null
(
$pos
)
?
'view_item_list'
:
'view_search_results'
;
$_objectManager
=
\Magento\Framework\App\ObjectManager
::
getInstance
();
$imageHelper
=
$_objectManager
->
get
(
'\Magento\Catalog\Helper\Image'
);
?>
?>
<style>
<style>
.mode-list
{
.mode-list
{
...
@@ -68,10 +70,20 @@ $_helper = $block->getData('outputHelper');
...
@@ -68,10 +70,20 @@ $_helper = $block->getData('outputHelper');
width
:
100%
;
width
:
100%
;
opacity
:
0
;
opacity
:
0
;
height
:
100%
;
height
:
100%
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
}
.hoverImg
:hover
{
.hoverImg
:hover
{
opacity
:
1
;
opacity
:
1
;
-webkit-transition
:
opacity
.5s
;
-moz-transition
:
opacity
.5s
;
-ms-transition
:
opacity
.5s
;
-o-transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
}
</style>
</style>
<div
class=
"products wrapper
<?=
/* @noEscape */
$viewMode
?>
products-
<?=
/* @noEscape */
$viewMode
?>
"
>
<div
class=
"products wrapper
<?=
/* @noEscape */
$viewMode
?>
products-
<?=
/* @noEscape */
$viewMode
?>
"
>
...
@@ -87,10 +99,10 @@ $_helper = $block->getData('outputHelper');
...
@@ -87,10 +99,10 @@ $_helper = $block->getData('outputHelper');
$baseImageUrl
=
$productImage
->
getImageUrl
();
$baseImageUrl
=
$productImage
->
getImageUrl
();
$allImage
=
$_product
->
getMediaGalleryImages
()
->
getItems
();
$allImage
=
$_product
->
getMediaGalleryImages
()
->
getItems
();
$h
a
verImg
=
''
;
$h
o
verImg
=
''
;
foreach
(
$allImage
as
$img
){
foreach
(
$allImage
as
$img
){
if
(
basename
(
$baseImageUrl
)
!=
basename
(
$img
->
getUrl
())){
if
(
basename
(
$baseImageUrl
)
!=
basename
(
$img
->
getUrl
())){
$h
averImg
=
$img
->
getUrl
();
$h
overImg
=
$imageHelper
->
init
(
$_product
,
'product_page_image_large'
)
->
setImageFile
(
$img
->
getFile
())
->
resize
(
400
,
500
)
->
getUrl
();
break
;
break
;
}
}
}
}
...
@@ -105,7 +117,7 @@ $_helper = $block->getData('outputHelper');
...
@@ -105,7 +117,7 @@ $_helper = $block->getData('outputHelper');
class
="
product
photo
product
-
item
-
photo
"
class
="
product
photo
product
-
item
-
photo
"
tabindex="
-
1
">
tabindex="
-
1
">
<?=
$productImage->toHtml
() ?>
<?=
$productImage->toHtml
() ?>
<img class="
hoverImg
" w
hidth="
<?=
$productImage
->
getWidth
()
?>
" height="
<?=
$productImage
->
getHeight
()
?>
" src="
<?=
$ha
verImg
?>
">
<img class="
hoverImg
" w
idth="
<?=
$productImage
->
getWidth
()
?>
" height="
<?=
$productImage
->
getHeight
()
?>
" src="
<?=
$ho
verImg
?>
">
</a>
</a>
<div
class=
"product details product-item-details"
>
<div
class=
"product details product-item-details"
>
<?php
$_productNameStripped
=
$block
->
stripTags
(
$_product
->
getName
(),
null
,
true
);
?>
<?php
$_productNameStripped
=
$block
->
stripTags
(
$_product
->
getName
(),
null
,
true
);
?>
...
...
app/design/frontend/Joshine/breeze/i18n/es_ES.csv
View file @
2b6deff4
...
@@ -15632,6 +15632,11 @@ Shopping Now,Ahora de compras
...
@@ -15632,6 +15632,11 @@ Shopping Now,Ahora de compras
"Subscribe to get your exclusive offer.","Suscríbase para obtener su oferta exclusiva."
"Subscribe to get your exclusive offer.","Suscríbase para obtener su oferta exclusiva."
"Thank your Subscribe!","¡ gracias por su suscripción!"
"Thank your Subscribe!","¡ gracias por su suscripción!"
invalid email address,Dirección de correo electrónico no válida
invalid email address,Dirección de correo electrónico no válida
"Order Total:", "Total del pedido:"
Free Over,Gratis sobre
"10-15 Working Days -","10-15 días laborables-"
SECURE CHECKOUT,PAGO SEGURO
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