View Single Post
  #1  
Old 05-08-2006, 01:10 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default Display customer rating on products.tpl

Hello,

I want to display the customer rating (if there is a customer rating) on my product listing page (products.tpl). Does anyone has a clue how to do this?

Found this piece of code in modules/customer_reviews/vote.tpl

Code:
<TR><TD colspan="2"> <FONT class="ProductDetailsTitle">{$lng.lbl_customers_rating}</FONT> </TD></TR> <TR><TD class="Line" height="1" colspan="2">[img]{$ImagesDir}/spacer.gif[/img]</TD></TR> {if $vote_max_cows ne ""} <TR> <TD> {$lng.lbl_customers_rating}</TD> <TD> {section name=full_cows loop=$vote_max_cows} [img]{$ImagesDir}/star_4.gif[/img] {/section} {if $vote_little_cow ne "0"} [img]{$ImagesDir}/star_{$vote_little_cow}.gif[/img] {/if} {section name=free_cows loop=$vote_free_cows} [img]{$ImagesDir}/star_0.gif[/img] {/section} </TD></TR> {/if}

But putting this in the products.tpl doesn't work.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote