Jump to content

Wrong star ratings in Crosshatch skin


kab

Recommended Posts

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?

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...