WorDym Posted August 27, 2018 Share Posted August 27, 2018 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. Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2018 Share Posted August 27, 2018 You cannot change it in that version of Prestashop. Link to comment Share on other sites More sharing options...
WorDym Posted August 28, 2018 Author Share Posted August 28, 2018 (edited) 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 August 28, 2018 by WorDym Found a solution (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now