Page 1 of 1
Rounding price to prettier value for multi-currency store
Posted: Mon Feb 03, 2014 3:33 am
by chll
Suppose a website run in 4 currencies: USD, EURO, Japan YEN and South Korean won. USD is the default currency
For Product A, I set the USD price to be 19.90 USD, the opencart convert it to 14.75EURO, 2031.6 Yen and 21549 Won
Is it possible that the price to be rounded to 14.99EURO, 2099Yen and 21999 Won?
Thank you
Re: Rounding price to prettier value for multi-currency stor
Posted: Mon Feb 03, 2014 4:00 am
by tarheit
Yes, you can define how many decimal places you want for each under currency in the System->Localization menu.
Re: Rounding price to prettier value for multi-currency stor
Posted: Mon Feb 03, 2014 4:48 am
by chll
tarheit wrote:Yes, you can define how many decimal places you want for each under currency in the System->Localization menu.
However, if it is rounded up to 2032 yen, it is still not a pretty value
Re: Rounding price to prettier value for multi-currency stor
Posted: Mon Feb 03, 2014 5:04 am
by tarheit
I'm not aware of any mod that does that (ie. round up to nearest euro -1, nearest 100 yen -1, etc.)
Should be reasonably easy to do though by modifying the currency calculation.
Re: Rounding price to prettier value for multi-currency stor
Posted: Mon Feb 03, 2014 4:29 pm
by chll
tarheit wrote:I'm not aware of any mod that does that (ie. round up to nearest euro -1, nearest 100 yen -1, etc.)
Should be reasonably easy to do though by modifying the currency calculation.
Yes, it is useful for multi-currency site and is relatively easy, I hope there is one extension like that soon
Re: Rounding price to prettier value for multi-currency stor
Posted: Wed Feb 05, 2014 12:54 am
by chll
there are 2 additional value to configure for each currency
1: to determine the currency to be round to nearest 0.01,0.1,1,10 or 100
2: to determine what value to minus to the rounded value by step 1
for example:
To round the Japanese Yen from 2031.6 to 2099, it means that the yen should be rounded to nearest 100, and minus 1 upon that