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

Wholesale pricing mod.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-13-2004, 11:35 AM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default Wholesale pricing mod.

Hello I have the need to modify the wholesale pricing table.
Where and how do I multiply the price in the cell by 1,000 ..for display purposes only.
customer/main/product.tpl

example : column one has a quantity of 1-250 with a price of $0.16 I would like to display (0.16 X 1000) or $160.00 instead of $0.16. This is just the display of the cell and not the real value of $0.16
Thanks
Reply With Quote
  #2  
Old 10-13-2004, 02:19 PM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default i figured it out.

/customer/main/product_prices.tpl

Code:
{section name=wi loop=$product_wholesale} {if $smarty.section.wi.first} <TD align=right>{$lng.lbl_price} : </TD>{/if} <TD nowrap> {* {include file="currency.tpl" value=$product_wholesale[wi].price} *} {math equation="price*amount" price=$product_wholesale[wi].price amount=1000 assign=new_wprice} {include file="currency.tpl" value=$new_wprice} </TD> {/section}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:01 PM.

   

 
X-Cart forums © 2001-2020