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
29f1e352
Commit
29f1e352
authored
Mar 09, 2023
by
dhn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://47.99.244.21:9999/root/joshine
into developer
parents
79cdfa6b
40d3e5e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
7 deletions
+26
-7
app/code/Joshine/Review/Controller/Ajax/ReviewInfo.php
+0
-1
app/code/Joshine/Review/Helper/BlockHelper.php
+17
-0
app/code/Joshine/Review/view/frontend/templates/product/view/list.phtml
+8
-5
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
+1
-1
No files found.
app/code/Joshine/Review/Controller/Ajax/ReviewInfo.php
View file @
29f1e352
<?php
namespace
Joshine\Review\Controller\Ajax
;
use
Amasty\AdvancedReview\Model\ResourceModel\Images
as
ImagesModel
;
use
Joshine\Review\Helper\BlockHelper
;
use
Joshine\Review\Helper\ImageHelper
;
use
Magento\Catalog\Model\ProductFactory
;
...
...
app/code/Joshine/Review/Helper/BlockHelper.php
View file @
29f1e352
...
...
@@ -82,4 +82,21 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
->
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 @
29f1e352
...
...
@@ -129,7 +129,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div
class=
"joshine-foot-mark rate-fit"
>
<div
class=
"rate-fit-item"
>
<?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>
...
...
@@ -172,7 +172,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div
class=
"joshine-rating-container joshine-col-xs-8"
>
<div
class=
"joshine-rating-starts"
style=
"width:
<?=
$rating
?>
%;"
></div>
</div>
<h2
class=
"ave-rate-total"
style=
"margin-top: 0; margin-bottom: .35em;
"
>
<?=
$block
->
getRatingSummaryValue
()
?>
</h2>
<h2
class=
"ave-rate-total"
style=
"margin-top: 0; margin-bottom: .35em;
margin-left: .4em"
>
<?=
$block
->
getRatingSummaryValue
()
?>
</h2>
</div>
</div>
<div
class=
"joshine-review-item"
>
...
...
@@ -231,7 +231,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div
class=
"row joshine-foot-mark"
>
<?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
class=
"row joshine-font-w-bolder"
style=
"font-size: .9em;"
>
...
...
@@ -333,6 +333,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
}
.modal-reviews-details__des-wrap
{
...
...
@@ -499,14 +500,16 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
</div>
<div
class=
"modal-reviews-details__des-wrap joshine-col-xs-4"
>
<div
class=
"joshine-review-des-head"
>
<span
class=
"joshine-review-nickname"
data-review-js=
"nickname"
style=
"font-size: .9em;"
>
<span
class=
"joshine-review-nickname
joshine-col-xs-6
"
data-review-js=
"nickname"
style=
"font-size: .9em;"
>
</span>
<div
class=
"joshine-rating-container joshine-rating-small"
style=
"margin-bottom: 3px;"
>
<div
class=
"joshine-rating-starts"
style=
"width: 100%;"
data-review-js=
"rating"
></div>
</div>
<span
class=
"joshine-review-date joshine-font-c-darkgray joshine-font-mini-plus joshine-pull-right"
data-review-js=
"date"
>
<span
class=
"joshine-review-date joshine-font-c-darkgray joshine-font-mini-plus"
style=
"margin-top: .4em;"
data-review-js=
"date"
>
</span>
</div>
<div
class=
"joshine-review-des-title joshine-font-w-bolder joshine-font-text joshine-font-c-deepin"
data-review-js=
"title"
>
...
...
app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml
View file @
29f1e352
...
...
@@ -127,7 +127,7 @@ require(['jquery'], function ($) {
'event'
:
'add_to_cart'
,
'value'
:
<?=
$priceSum
?>
,
'items'
:
<?=
json_encode
(
$items
,
true
)
?>
);
}
);
</script>
<?=
$block
->
getChildHtml
(
'checkout.cart.order.actions'
)
?>
<?=
$block
->
getChildHtml
(
'shopping.cart.table.after'
)
?>
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