View Single Post
  #1  
Old 11-04-2006, 04:10 PM
  girlsbits's Avatar 
girlsbits girlsbits is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 77
 

Default Show List Price in Bestsellers

Here is how to show the list price above the retail price in bestsellers.tpl.

Add the following code to modules/bestsellers.php:

Code:
foreach ($bestsellers as $key=>$value) $bestsellers[$key]["list_price"]=func_query_first_cell("SELECT list_price from $sql_tbl[products] WHERE productid='$value[productid]'");

just above $smarty->assign("bestsellers",$bestsellers);

Add the following code to skin1/modules/Bestsellers/bestsellers.tpl:

Code:
{if $bestsellers[num].list_price gt 0}<S>{include file="currency.tpl" value=$bestsellers[num].list_price}</S><br>{/if}

just above {$lng.lbl_our_price}: {include file="currency.tpl" value=$bestsellers[num].price}
__________________
X-Cart Gold | v 4.0.18 | Unix | php 4.3 | phpMyAdmin 2.8.0.3 |
Reply With Quote