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

Show List Price in Bestsellers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 02:09 AM.

   

 
X-Cart forums © 2001-2020