arya Posted March 20, 2008 Share Posted March 20, 2008 Hai All, I`ve problem with currency format...guys.. On Prestashop default for EURO = 800,000.00 it mean = 8 hundred thousand point zero EURO, but on our currency that mean 8 hundred point zero.. so that false i was try to use the dollar format but that not good too.. my question is how to change that format become 800.000,00..??? quite simple problem, and i was try all night to find it, but i can`t figure out how to change it..?? so any one can help me..??? Link to comment Share on other sites More sharing options...
Peter Wilson Posted March 20, 2008 Share Posted March 20, 2008 Hi arya, Welcome to the PrestaShop Forum! Back Office >> Payment >> Currencies >> click a currency >> Formatting drop-down list. Select "0.000,00X (as with euros)". There is currently a request pending with the PrestaShop development team to also add the following formats: X0.000,00 0,000.00X X0,000 X0.000 0.000X 0,000X These will hopefully be included in time for the v1.0 stable release. Link to comment Share on other sites More sharing options...
E Sprikkelman Posted July 18, 2008 Share Posted July 18, 2008 Hi all, there is a fairly simply hack to make the number of decimals adjustable (stored in database)Remember, before editing sources, PLEASE backup the old ones.modification instruction is available here: http://joomla.sprikkelman.nl/prestashop/presta_mod.txt(forum destroys the layout of the instruction, rendering is unreadable.)Maybe this is a simple job for the dev-team to include this in the next update.Please remember... when hacking in code / database, please do backup FIRST !!!Regards,Erik Link to comment Share on other sites More sharing options...
Pat Posted September 9, 2008 Share Posted September 9, 2008 Hi all, there is a fairly simply hack to make the number of decimals adjustable (stored in database)Remember, before editing sources, PLEASE backup the old ones.modification instruction is available here: http://joomla.sprikkelman.nl/prestashop/presta_mod.txt(forum destroys the layout of the instruction, rendering is unreadable.)Maybe this is a simple job for the dev-team to include this in the next update.Please remember... when hacking in code / database, please do backup FIRST !!!Regards,Erik Hello,it is nice and working, but in product details is again 2 decimals.Do you know where I can change it?It is crazy, that I have to do on many places (.Thank you very much.Tom Link to comment Share on other sites More sharing options...
target_locked Posted September 9, 2008 Share Posted September 9, 2008 hi,If the format is not in the selectionlist, you can modify manually as follow: In ../classes/Tools.php, search for: 'function displayPrice' (line 181)Below that, there are 4 casesFor ex if you want to use case 4 for your currency format:Search for: $ret = number_format($price, 2, '.', ',').' '.$c_sign;Replace with: $ret = number_format($price, 2, ',', '.').' '.$c_sign;After that go to Back office>>payment>>currency, select the currency you want then select the formatting to option 4. Try and tell us the result. 1 Link to comment Share on other sites More sharing options...
Pat Posted September 9, 2008 Share Posted September 9, 2008 hi,If the format is not in the selectionlist, you can modify manually as follow: In ../classes/Tools.php, search for: 'function displayPrice' (line 181)Below that, there are 4 casesFor ex if you want to use case 4 for your currency format:Search for: $ret = number_format($price, 2, '.', ',').' '.$c_sign;Replace with: $ret = number_format($price, 2, ',', '.').' '.$c_sign;After that go to Back office>>payment>>currency, select the currency you want then select the formatting to option 4. Try and tell us the result. Hello,I changed tools like here: http://joomla.sprikkelman.nl/prestashop/presta_mod.txt it is better I think and I want to change it like I wrote.Tom Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted May 13, 2014 Share Posted May 13, 2014 (edited) Hello i have question about currency formatThis is what need:Price is 49,990.00 i need to display thats like this 49900,- In my country we dont have .00 (like penny,cent etc) . Regards ----------------------------------------------------EDIT:I have now 49 990,- I want this 49990,- (without space)or this 49.990,- (49(dot)990(coma)-) Edited May 13, 2014 by ZikmaSolutions (see edit history) Link to comment Share on other sites More sharing options...
smkamal Posted January 5, 2015 Share Posted January 5, 2015 Hi I Have same problem please check attached images. in home page showing Rs:1650.00 and in summary page : 16500.00, one zero extra Thanks Summary Page.bmp Home page.bmp Link to comment Share on other sites More sharing options...
Recommended Posts