Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding Star Rating to Products_t.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-05-2005, 06:53 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Adding Star Rating to Products_t.tpl

Below is my code for the Products_t.tpl page and I would like to add the star rating to it but I have not been able to figure it out.

Code:
{* $Id: products_t.tpl,v 1.10.2.7 2005/09/05 09:11:59 lld Exp $ *} <TABLE border="0" width="100%" cellpadding="0" cellspacing="0"><TR><TD class="TableThumbnailBorder"> <TABLE border="0" width="100%" cellpadding="5" cellspacing="1"> {math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"} {section name=product loop=$products} {assign var="discount" value=0} {if %product.index% is div by $config.Appearance.products_per_row} <TR> {assign var="cell_counter" value=0} {/if} {math equation="x+1" x=$cell_counter assign="cell_counter" } <TD align="center" valign="top" class="DialogBox"> <table background="{$ImagesDir}/top.gif" border="0" cellpadding="0" cellspacing="0" height="5" width="100%"> <tbody><tr> <td align="left" valign="top">[img]{$ImagesDir}/ctl.gif[/img]</td> <td align="right">[img]{$ImagesDir}/ctr.gif[/img]</td> </tr> </tbody></table> <table class="menutable" align="center" border="0" cellpadding="2" cellspacing="2" width="100%" height="140px"> <tbody><tr> <td align="center" valign="top"> <TABLE cellpadding="4" cellspacing="6" border="0"><TR> <TD valign="top" align="center" colspan="3"> <p align="left"> <A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}" class="ProductTitle"> {$products[product].product}</A><hr></td> </TR> <TR> <TD height="100" valign="top" align="center"> {include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url} {$lng.lbl_see_details}</td> <td valign="top"></TD> <td valign="top" align="left"><table border="0" width="100%" id="table1" cellpadding="4" style="border-collapse: collapse"> <tr> <td> <p align="left">{$lng.lbl_sku}: {$products[product].productcode} {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} {if $products[product].taxed_price > 49.95} [img]{$ImagesDir}/freeship4.gif[/img]{/if} <p align="left">{if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%d" assign=discount} {if $discount gt 0} <FONT class="MarketPrice">{*{$lng.lbl_market_price}:*} <S> {include file="currency.tpl" value=$products[product].list_price} </S></FONT> {/if} {/if} <FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT> <FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT>{if $discount gt 0}, {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes}{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if} {else} <FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT> {/if} {/if} </td> </tr> </table> </TD> </TR> </TABLE> </td> </tr> </tbody> </table> <table background="{$ImagesDir}/bottom.gif" border="0" cellpadding="0" cellspacing="0" height="5" width="100%"> <tbody> <tr> <td align="left" valign="top">[img]{$ImagesDir}/cbl.gif[/img]</td> <td align="right">[img]{$ImagesDir}/cbr.gif[/img]</td> </tr> </tbody> </table> </TD> {capture name=prod_index} {math equation="index+x+1" index=%product.index% x=$config.Appearance.products_per_row} {/capture} {if $smarty.capture.prod_index is div by $config.Appearance.products_per_row } </TR> {/if} {/section} {if $cell_counter lt $config.Appearance.products_per_row} {section name=rest_cells loop=$config.Appearance.products_per_row start=$cell_counter} {/section} </TR> {/if} </TABLE> </TD></TR></TABLE> {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {/if}

Any help would be GREATLY appreciated.

Thanks,
Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #2  
Old 09-05-2005, 07:53 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

http://forum.x-cart.com/viewtopic.php?t=17341&highlight=star+rating
http://forum.x-cart.com/viewtopic.php?t=13046&highlight=star+rating
Reply With Quote
  #3  
Old 09-05-2005, 08:06 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

I've looked at both of those....and don't see what I am looking for. If you send a link, could you at least explain what I am supposed to look for.

I don't want a complete mod, just the code to add the star rating.

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:07 PM.

   

 
X-Cart forums © 2001-2020