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
40d3e5e1
Commit
40d3e5e1
authored
Mar 09, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复翻页空白bug
parent
ca60b27a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
app/code/Joshine/Review/Helper/BlockHelper.php
+17
-0
app/code/Joshine/Review/view/frontend/templates/product/view/list.phtml
+2
-2
No files found.
app/code/Joshine/Review/Helper/BlockHelper.php
View file @
40d3e5e1
...
@@ -82,4 +82,21 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
...
@@ -82,4 +82,21 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
->
setReviewId
(
$reviewId
);
->
setReviewId
(
$reviewId
);
}
}
public
function
translateSizeFits
(
$value
)
{
$default
=
__
(
'True to Size'
);
if
(
intval
(
$value
)
==
1
)
{
return
__
(
'Small'
);
}
if
(
intval
(
$value
)
==
2
)
{
return
__
(
'True to Size'
);
}
if
(
intval
(
$value
)
==
3
)
{
return
__
(
'Large'
);
}
return
$default
;
}
}
}
app/code/Joshine/Review/view/frontend/templates/product/view/list.phtml
View file @
40d3e5e1
...
@@ -129,7 +129,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
...
@@ -129,7 +129,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div
class=
"joshine-foot-mark rate-fit"
>
<div
class=
"joshine-foot-mark rate-fit"
>
<div
class=
"rate-fit-item"
>
<div
class=
"rate-fit-item"
>
<?php
$fitsValue
=
$review
->
getSizeFits
();
?>
<?php
$fitsValue
=
$review
->
getSizeFits
();
?>
<span><strong
class=
"joshine-font-w-bolder"
>
Size Fits:
</strong>
<?=
$
t
[
$fitsValue
]
?>
</span>
<span><strong
class=
"joshine-font-w-bolder"
>
Size Fits:
</strong>
<?=
$
helper
->
translateSizeFits
(
$fitsValue
);
?>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -231,7 +231,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
...
@@ -231,7 +231,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div
class=
"row joshine-foot-mark"
>
<div
class=
"row joshine-foot-mark"
>
<?php
$fitsValue
=
$review
->
getSizeFits
();
?>
<?php
$fitsValue
=
$review
->
getSizeFits
();
?>
<span><strong
class=
"joshine-font-w-bolder"
>
Size Fits:
</strong>
<?=
$t
[
$fitsValue
]
?>
</span>
<span><strong
class=
"joshine-font-w-bolder"
>
Size Fits:
</strong>
<?=
$helper
->
translateSizeFits
(
$fitsValue
);
?>
</span>
</div>
</div>
<div
class=
"row joshine-font-w-bolder"
style=
"font-size: .9em;"
>
<div
class=
"row joshine-font-w-bolder"
style=
"font-size: .9em;"
>
...
...
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