Author Topic: Round total price  (Read 182 times)


  • Beginner
  • *
  • Posts: 1
Round total price
« on: June 30, 2020, 14:19:53 pm »
is it possible to round total order price to integers? I know there is very complex section for rounding of product prices in virtuemart settings, but i didnt found rounding total price.
I need to round final product prices to 2 decimal place, which works fine, and total price to 0 decimal places (whitch i dont know how to set).

I have 2 products, each 2 pieces in cart, 1st one cost 22.29 and 2nd one cost 10.29.
Now total is 2*22.29 + 2*10.29 = 65,16
i need to round it to 65.

It has to be really rounded (not only front-end displayed number), because when customer pays online, i need him to pay exactly 65, not 65,16.

Thanks for help


  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 31
  • 15 years php developer , focus in eccommerce
    • vm2x
  • Skype Name: widcater
  • VirtueMart Version: VM3
Re: Round total price
« Reply #1 on: July 01, 2020, 06:13:15 am »
      Basically,  You need to customize the codes of cart part  ,  But you still need to consider how to deal with the tax and shipping fee and make sure the invoice in backend is same fee .

Pinterest Rich Pin Plugin Extension For VM3
Adyen Card payment plugin for VM3
Facebook Commerce Catalog CSV Creator For VM3
Saferpay Payment Plugin for VM3