View Single Post
  #3  
Old 04-14-2009, 03:30 AM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Re: Weird smarty error about currency?

Quote:
Originally Posted by Asiaplay
It will not be 2nd language based error (as currency symbol and exchange rate is not defined in language packs).

This alternative currency should be set in X-Cart Admin -> General Settings -> General Options using box next to "Alternative currency symbol (empty to disable). Note that credit card charges are made using primary currency: " (is stored in a config settings SQL table from memory).

At a guess it appears maybe your "alternative currency" exchange rate is not set in your store - so perhaps check X-Cart Admin -> General Settings -> General Options (and make sure that you do not have zero in "Alternative currency exchange rate: " and that it is a decimal e.g. 1.34 - do not use a comma)

Hope helps - cheers, Asiaplay

well my friend asiaplay thank you for answering to all my posts. The problem was cauing unfortunatelly by a code i found in your post about utf-8

first of all in your post you have that code : setlocale(LC_ALL, 'en_US.■UTF-8■');
it has to be : setlocale (LC_ALL, 'en_US.UTF8'); (you used this " isntead of this ')

but anyway both of them are causing problems, when i saw your post i corrected it but the problem was still there, quality team told me to change it with that :
setlocale (LC_COLLATE | LC_CTYPE | LC_MONETARY | LC_TIME | LC_MESSAGES, 'el_GR.UTF8');

by the way the code have to be changed on init.php and languages.php
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote