Originally posted by greggc
View Post
Announcement
Collapse
No announcement yet.
Product Review by Tess - How do you set up the actual reviews?
Collapse
X
-
Originally posted by lesliekirk View Post
Not the actual reviews - just the stars (pretty much like every eCommerce store has). I think I've got something in place but I think it might be more than is needed:
Code:<mvt:item name="tgreviews" param="Product_Review_Count( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tgr_review_count )" /> <mvt:if expr="l.settings:product:customfield_values:tgreviws:tgr_review_count GT 0"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tgr_rating )" /> </mvt:if> <mvt:item name="tgreviews" param="Product_Review_Count( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tg r_review_count )" /> <mvt:if expr="l.settings:product:customfield_values:tgreviews:tgr_review_count GT 0"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tgr_rating )" /> </mvt:if> <mvt:if expr="( l.settings:product:customfield_values:tgreviews:tgr_review_count GT 0 ) AND ( NOT ISNULL l.settings:product:customfield_values:tgreviews:tgr_rating )"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:tgr:avg_rating )" /> <div class="tgreviews-average"> <mvt:assign name="l.settings:star_width" value="( l.settings:product:customfield_values:tgreviews:tgr_rating / 5 ) * 100" /> <span class="tgreviews-average__star" title="&mvte:product:customfield_values:tgreviews: tgr_rating; out of 5."> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="tgreviews-average__star-overlay" style="width:&mvte:star_width;%;"> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> </span> </span>(&mvte:product:customfield_values:tgreviews:tgr_review_count;) </div> </mvt:if>
Now to figure out how to make the stars on the product page open up the Reviews tab (I did this eons ago, now to just find the code).
Leave a comment:
-
Originally posted by Miss Kate View Post
To me, it's not logical to have the stars review on the category page but I had never thought about it before. Why does the store want reviews at the category level? It's been so long since I installed this, I can't really remember what all went into this.
Could the following code be altered to say category instead of product and duplicate that part of the code?
<mvt:if expr="l.settings:product:link">
<mvt:assign name="l.settings:tgr:link" value="l.settings:product:link" />
<mvt:else>
<mvt:assign name="l.settings:tgr:link" value="l.settings:urls:_self:auto" />
</mvt:if>
<mvt:if expr="g.TGR_Review_Success EQ 1">
<div style="color: #4F8A10;background-color: #DFF2BF;margin: 10px 0;padding: 0.75rem 1rem; font-size: 11px; text-transform: uppercase; font-weight: bold; text-align:center;">Thank you for your review!</div>
Code:<mvt:item name="tgreviews" param="Product_Review_Count( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tg r_review_count )" /> <mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tg r_rating )" /> </mvt:if> <mvt:item name="tgreviews" param="Product_Review_Count( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tg r_review_count )" /> <mvt:if expr="l.settings:product:customfield_values:tgrevi ews:tgr_review_count GT 0"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:product:customfield_values:tgreviews:tg r_rating )" /> </mvt:if> <mvt:if expr="( l.settings:product:customfield_values:tgreviews:tg r_review_count GT 0 ) AND ( NOT ISNULL l.settings:product:customfield_values:tgreviews:tg r_rating )"> <mvt:item name="tgreviews" param="Product_Rating( l.settings:product:id, l.settings:tgr:avg_rating )" /> <div class="tgreviews-average"> <mvt:assign name="l.settings:star_width" value="( l.settings:product:customfield_values:tgreviews:tg r_rating / 5 ) * 100" /> <span class="tgreviews-average__star" title="&mvte:product:customfield_values:tgreviews: tgr_rating; out of 5."> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="tgreviews-average__star-overlay" style="width:&mvte:star_width;%;"> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> <span class="u-icon-star-full"></span> </span> </span>(&mvte:product:customfield_values:tgreviews:t gr_review_count;) </div> </mvt:if>
Now to figure out how to make the stars on the product page open up the Reviews tab (I did this eons ago, now to just find the code).
Leave a comment:
-
Originally posted by lesliekirk View PostTime to circle back on this one - is there no way to display the review stars on the CTGY page with each product?
Could the following code be altered to say category instead of product and duplicate that part of the code?
<mvt:if expr="l.settings:product:link">
<mvt:assign name="l.settings:tgr:link" value="l.settings:product:link" />
<mvt:else>
<mvt:assign name="l.settings:tgr:link" value="l.settings:urls:_self:auto" />
</mvt:if>
<mvt:if expr="g.TGR_Review_Success EQ 1">
<div style="color: #4F8A10;background-color: #DFF2BF;margin: 10px 0;padding: 0.75rem 1rem; font-size: 11px; text-transform: uppercase; font-weight: bold; text-align:center;">Thank you for your review!</div>
Leave a comment:
-
Time to circle back on this one - is there no way to display the review stars on the CTGY page with each product?
Leave a comment:
-
Thanks, I have discovered that this solution may not be quite enough for the store that needs it. They are currently using a Toolkit solution with stars. I'm probably just going to implement it in the new layout and suggest moving to something like Miva's Ratings & Reviews.
Leave a comment:
-
Originally posted by eldon99 View PostIs there a simple way to assign reviews to multiple products? We have many products that are the same, just different colors.
Reviews settings5.PNGAttached Files
Leave a comment:
-
Is there a simple way to assign reviews to multiple products? We have many products that are the same, just different colors.
Leave a comment:
-
Okay, under system extensions is where the Product Reviews: Settings are so you can modify how the stars looks. The code is in the Reviews Template.
These are the only settings I used:
Reviews settings used.PNG
DON'T checkmark Auto Approve Reviews because you'll have a lot of horrible stuff posted to the website. It appears Cialis is the primary product that my spammers want to use.
Reviews settings2.PNGReviews settings3.PNGReviews settings2.PNG
If you want me to send you the Reviews Template coding I used, just let me know.
Leave a comment:
-
Here is what the actual review looks like. Once the review module is installed the tab shows up on every product page. I still can't find where I installed it but here is a picture of the one item I have had reviewed. I'll have to do a search on my website to see where I stuck the code that generates below. Might not be until tomorrow. I was unable to get the yellow bar for the 5-star to change to a darker gold but I wasn't that worried about it at the time.
Cubs album with review.PNG
Leave a comment:
-
Originally posted by lesliekirk View PostAlso - is there a way to display the stars instead of the "Rated 5/5(1 review)"?
</head>
<body class="&mvt:page:code;" id="JS_&mvt:page:code;">
<div id="site-container">
<mvt:item name="hdft" param="global_header" />
<mvt:item name="navbar" />
<mvt:item name="hdft" param="header" />
<div class="items">
<div class="content">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-3 hidden-xs">
<mvt:item name="category_tree" />
</div>
<div class="col-md-9 col-sm-9">
<mvt:item name="breadcrumbs" />
<h1 class="title">&mvt:product:name;</h1>
<mvt:item name="prod_ctgy_hdft" param="prod_header" />
<mvt:item name="product_display" />
<mvt:item name="attributemachine" param="body" />
<mvt:if expr="l.settings:related_product_count NE 0">
<div class="bor"></div>
<h4 class="title">Related Products</h4>
<mvt:item name="related_products" />
</mvt:if>
<mvt:item name="tgreviews" param="Reviews_Template(l.settings:product:id)" />
<mvt:item name="tgreviews" param="Form_Template()" />
<mvt:item name="prod_ctgy_hdft" param="prod_footer" />
</div>
</div>
</div>
</div>
</div>
<mvt:item name="hdft" param="footer" />
I'm such an idiot. Above is where the actual reviews template gets placed. I'll show the actual settings in another post.
</mvt:if>
<mvt:item name="tgreviews" param="Reviews_Template(l.settings:product:id)" />
<mvt:item name="tgreviews" param="Form_Template()" />
<mvt:item name="prod_ctgy_hdft" param="prod_footer" />Last edited by Miss Kate; 09-30-20, 02:15 PM.
Leave a comment:
-
Also - is there a way to display the stars instead of the "Rated 5/5(1 review)"?
Leave a comment:
-
Originally posted by Miss Kate View PostThank you for seeing an error in the coding. I thought I had copied & pasted it but evidently not. I've been working on it this evening & FINALLY got the reviews to show up. I'm ecstatic now!
Leave a comment:
-
Thank you for seeing an error in the coding. I thought I had copied & pasted it but evidently not. I've been working on it this evening & FINALLY got the reviews to show up. I'm ecstatic now!
Leave a comment:
Leave a comment: