VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: jarlu on May 11, 2022, 14:26:22 pm

Title: Order toral price rounding
Post by: jarlu on May 11, 2022, 14:26:22 pm
Hello, please I need to round order_total price to cash on delivery to 0,05 cents, because in my country have new law, when prices are rounding:
For exampe order total price:

from 1,01 to 1,02 to -> 1,00
from 1,03 to 1,07 to -> 1,05
from 1,08 to 1,09 to -> 1,10

Do you have some idea how I can do it?
Title: Re: Order toral price rounding
Post by: jarlu on June 13, 2022, 13:54:16 pm
Hello, do you have any advice for me? Thank you
Title: Re: Order toral price rounding
Post by: GJC Web Design on June 13, 2022, 14:08:13 pm
Have u tried setting the VM config -> Prices -> Rappenrundung for Swiss CHF

the total value of the document should be divisible by 0,05  (5-Rappen-rounding in Switzerland).
Title: Re: Order toral price rounding
Post by: jarlu on June 19, 2022, 21:09:38 pm
yes, i tried it but it's not a good solution for me.
Title: Re: Order toral price rounding
Post by: pinochico on June 20, 2022, 10:46:25 am
then you need custom round function.
I remember we add custom rounding for one shop, because core rounding was not ok for customer too.
Title: Re: Order toral price rounding
Post by: roman5527 on July 08, 2022, 08:24:55 am
Good day . this function will be needed for EU developers and eshop owners, because from 1.7.2022 this rounding is required for cash payment.
Title: Re: Order toral price rounding
Post by: GJC Web Design on July 08, 2022, 10:04:30 am
please supply link to this...
Title: Re: Order toral price rounding
Post by: roman5527 on July 08, 2022, 10:34:01 am
Hi, sorry in Slovakia this rule applies from 1.7.2022 .

https://ec.europa.eu/info/law/better-regulation/have-your-say/initiatives/12566-Uniform-rounding-rules-for-cash-payments-in-euro-assessment_en (https://ec.europa.eu/info/law/better-regulation/have-your-say/initiatives/12566-Uniform-rounding-rules-for-cash-payments-in-euro-assessment_en)

https://www.crowe.com/sk/en-us/news/change-in-the-rounding-of-cash-payments (https://www.crowe.com/sk/en-us/news/change-in-the-rounding-of-cash-payments)

example Belgium have it from 2019 , France 2020 ....

I think that if not all EU countries have it, they will eventually. It would therefore be good to introduce it as an option in Virtuemart as well.