X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Wholesale pricing mod. (https://forum.x-cart.com/showthread.php?t=9827)

roblen 10-13-2004 11:35 AM

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

roblen 10-13-2004 02:19 PM

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}



All times are GMT -8. The time now is 05:50 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.