Author Topic: Order toral price rounding  (Read 1525 times)

jarlu

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
Order toral price rounding
« 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?

jarlu

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
Re: Order toral price rounding
« Reply #1 on: June 13, 2022, 13:54:16 pm »
Hello, do you have any advice for me? Thank you

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10638
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Order toral price rounding
« Reply #2 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).
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jarlu

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
Re: Order toral price rounding
« Reply #3 on: June 19, 2022, 21:09:38 pm »
yes, i tried it but it's not a good solution for me.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1603
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Order toral price rounding
« Reply #4 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

roman5527

  • Jr. Member
  • **
  • Posts: 237
  • VirtueMart Version: 4.0.6
Re: Order toral price rounding
« Reply #5 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10638
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Order toral price rounding
« Reply #6 on: July 08, 2022, 10:04:30 am »
please supply link to this...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

roman5527

  • Jr. Member
  • **
  • Posts: 237
  • VirtueMart Version: 4.0.6
Re: Order toral price rounding
« Reply #7 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://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.