Jump to content

Rounded total price in checkout 1.7


Recommended Posts

Hi,

I need to have the total price in my shop checkout rounded to whole number (in case of the screen to 206). I do need to have 2 decimal places with products, and only the total checkout price as whole number. I've tried all rounding settings at general settings, but it does not affect this value.

Does anybody know how to do this? I'm using 1.7.3.3.

Screenshot 2018-08-27 22.57.37.png

Link to comment
Share on other sites

Not possible even by editing some code?

EDIT:

It looks like if I edit these 2 lines at classes/Cart.php, it works.

line 3757
$product['total'] = Tools::ps_round($product['total'] - $product['price'], 0);

line 2034
return Tools::ps_round((float)$order_total, 0);

 

Edited by WorDym
Found a solution (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...