Jump to content

Change Currency Format


Recommended Posts

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

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

  • 3 months later...

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

  • 1 month later...
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 :o(.
Thank you very much.

Tom
Link to comment
Share on other sites

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 cases
For 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.
  • Like 1
Link to comment
Share on other sites

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 cases
For 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

  • 5 years later...

Hello i have question about currency format

This 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 by ZikmaSolutions (see edit history)
Link to comment
Share on other sites

  • 7 months later...
×
×
  • Create New...