kab Posted June 8, 2015 Share Posted June 8, 2015 Noticed that the Crosshatch skin gives wrong star ratings when displaying products. The note says 2 stars but it shows 4 gray stars. I am assuming that unlike other skins, Crosshatch does not show 'golden' stars. Can someone please help? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted June 8, 2015 Share Posted June 8, 2015 What CC version are you on? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 8, 2015 Share Posted June 8, 2015 The skin should show 2 'lit' stars and three 'unlit' stars. Please make this edit in the template content.product.php:From: <div class="rating"> {for $i = 1; $i < 5; $i++} {if $product.review_score>= $i} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star.png" alt="" /> {elseif $PRODUCT.review_score > ($i - 1) && $PRODUCT.review_score < $i} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="" /> {else} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_off.png" alt="" /> {/if} {/for} </div> To: <div class="rating"> {for $i = 1 to 5} {if $product.review_score gte $i} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star.png" alt="" /> {elseif $PRODUCT.review_score gt ($i - 1) && $PRODUCT.review_score lt $i} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="" /> {else} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_off.png" alt="" /> {/if} {/for} </div> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.