View Single Post
  #4  
Old 01-21-2005, 09:53 AM
 
NuAlpha NuAlpha is offline
 

X-Adept
  
Join Date: Aug 2003
Location: US
Posts: 598
 

Default

Here is another minor improvement, though I don't know if many will get much use out of this one.

Change the contents of skin1/customer/main/alter_currency_value.tpl to the following to eliminate the {math} function:
Code:
{if $alter_currency_value eq ''}{assign var='alter_currency_value' value=0}{/if}{if $config.General.alter_currency_symbol ne ''} ({$config.General.alter_currency_symbol} {assign var='alter_price' value=$alter_currency_value*$config.General.alter_currency_rate}{$alter_price|formatprice:',':'.'|string_format:'%.2f'}){/if}

A more useful modification might be in skin1/customer/main/cart.tpl where you can also replace:
Code:
{math equation="price*amount" price=$price amount=$products[product].amount format="%.2f" assign=unformatted}{include file='currency.tpl' value=$unformatted}

With:
Code:
{assign var='unformatted' value=$price*$products[product].amount}{include file='currency.tpl' value=$unformatted|string_format:'%.2f'}

Note that these only works if you have Smarty 2.6.5 or later installed.
__________________
X-Cart Pro 4.5.5 Platinum
X-Payments 1.0.6
PHP 5.3.14
MySQL 5.1.68
Apache 2.2.23
Reply With Quote