View Single Post
  #2  
Old 11-28-2012, 11:39 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Review Stars on Product Page

Try this in customer/main/product_details.tpl:
Code:
{if $active_modules.Advanced_Customer_Reviews and $product.general_rating.rating gt 0} {include file="modules/Advanced_Customer_Reviews/acr_product_details.tpl" break_line="Y"} {else} {include file="main/visiblebox_link.tpl" mark="1" title="Be the first to Rate This Product"} <div style="display: none;" id="box1"> {include file="modules/Advanced_Customer_Reviews/acr_product_details.tpl" break_line="Y"} </div> {/if}
Or you could dive deeper into modules/Advanced_Customer_Reviews/acr_product_details.tpl and use the same logic {if $product.general_rating.rating gt 0} to hide just the stars and be left with just the link or nothing.

I think the point of displaying the stars is to draw attention and inspire reviews, but this should have the same effect.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote