karas9999 Posted November 24, 2013 Share Posted November 24, 2013 HI! Is there a way to disable round price option in prestashop? I want prices stay stable without rounding in any direction at all. Link to comment Share on other sites More sharing options...
NemoPS Posted November 25, 2013 Share Posted November 25, 2013 I might be mistaken, but I think you should remove every single instance of Tools:ps_round(), and other rounding functions you find in every file Link to comment Share on other sites More sharing options...
Enoteca Posted March 29, 2014 Share Posted March 29, 2014 no other solutions without modifying the code? Link to comment Share on other sites More sharing options...
NemoPS Posted March 31, 2014 Share Posted March 31, 2014 As far as I know (at the moment) no. Link to comment Share on other sites More sharing options...
mjpl Posted April 23, 2014 Share Posted April 23, 2014 Hi Nemo, as you said, for example for this line of code : $product['total_wt'] = Tools::ps_round($product['total_wt'] - $product['price_wt'], (int)$currency->decimals * _PS_PRICE_DISPLAY_PRECISION_); how will it be at the end ? Regards, Link to comment Share on other sites More sharing options...
NemoPS Posted April 25, 2014 Share Posted April 25, 2014 I just thought that it might be enough to modify the core function and simply return the same content it's inputted, so you don't have to change every occurrence. THis way there will never be any rounding though Link to comment Share on other sites More sharing options...
bhavesh.khatri Posted June 20, 2014 Share Posted June 20, 2014 I just thought that it might be enough to modify the core function and simply return the same content it's inputted, so you don't have to change every occurrence. THis way there will never be any rounding though Hi ! In Prestashop 1.6. go into localization->Currencies. Pick up your currency and edit it. You need to enable decimal. For Prestashop 1.5.x go into localization->Currencies. Pick up your currency and edit it. Please select appropriate Currency Format. Thanks Bhavesh www.digitalmodule.net 2 Link to comment Share on other sites More sharing options...
zanfeld Posted October 9, 2014 Share Posted October 9, 2014 (edited) Sorry, this message was for another thread. Edited October 9, 2014 by zanfeld (see edit history) Link to comment Share on other sites More sharing options...
newbie87 Posted March 31, 2015 Share Posted March 31, 2015 Hello, Will you please elaborate on how to disable the rounding feature in the cart? Which files need to be edited? Will commenting out the line of code be sufficient? How will this line of code look after it is edited? $product['total_wt'] = Tools::ps_round($product['total_wt'] - $product['price_wt'], (int)$currency->decimals * _PS_PRICE_DISPLAY_PRECISION_); Rounding up the weight is fine because carriers will do this when they calculate the shipping cost. I only want to disable rounding up/down the product pricing and product discounts. Thanks in advance for your reply. Link to comment Share on other sites More sharing options...
trandinhhong Posted June 26, 2015 Share Posted June 26, 2015 Hello, Will you please elaborate on how to disable the rounding feature in the cart? Which files need to be edited? Will commenting out the line of code be sufficient? How will this line of code look after it is edited? $product['total_wt'] = Tools::ps_round($product['total_wt'] - $product['price_wt'], (int)$currency->decimals * _PS_PRICE_DISPLAY_PRECISION_); Rounding up the weight is fine because carriers will do this when they calculate the shipping cost. I only want to disable rounding up/down the product pricing and product discounts. Thanks in advance for your reply. you can access admin. localization->currency ==>edit you currency(ex: dolla,vnd...) then check at Decimals. i'm sorry,my english very bad, '.() Link to comment Share on other sites More sharing options...
coloralp Posted January 5, 2017 Share Posted January 5, 2017 I want to disable round prices. Can anyone help me without disabling the decimal price. Link to comment Share on other sites More sharing options...
szilaszlo Posted January 25, 2017 Share Posted January 25, 2017 We have to disable rounding because we use prices like 35,37 Ft (Tax Excluded) but the presta show just 35 Ft.The customer see if he buy 100 pieces: 3537 Ft. We think this is frustrating for the customers. Can any one explain how to disable it in 1.6.1.4? Thank you! Link to comment Share on other sites More sharing options...
Rui-PS Posted July 20, 2017 Share Posted July 20, 2017 HI! Is there a way to disable round price option in prestashop? I want prices stay stable without rounding in any direction at all. Hello, did you find a solution for this? Having the same problem... Link to comment Share on other sites More sharing options...
NemoPS Posted July 22, 2017 Share Posted July 22, 2017 Some kind of rounding is inevitable, prices cannot display like 3.438593476958 Link to comment Share on other sites More sharing options...
Rui-PS Posted July 22, 2017 Share Posted July 22, 2017 Some kind of rounding is inevitable, prices cannot display like 3.438593476958 Hello NemoPS, I agree with you, but how do we explain the situation to the costumer? In our case for ex: Product A -> price per unit -> 1.38€ -> qtd 12 -> 16.56€ Product B -> price per unit -> 1.22€ -> qtd 6 -> 7.32€ Total should be 16.56€ + 7.32€ = 23.88€ We are getting 16.56€ + 7.32€ = 23.91€ Any advise on this? Or how should it be configured to at least be as accurate as possible Tks Link to comment Share on other sites More sharing options...
NemoPS Posted July 24, 2017 Share Posted July 24, 2017 I understand your frustration. Unfortunately, rounding has always been an issue with prestashop. What I did in a few cases was going through the code, especially for PriceCalculation of the Product.php class, and remove all instances manually, then use it at the very end of the function Link to comment Share on other sites More sharing options...
Rui-PS Posted July 24, 2017 Share Posted July 24, 2017 I understand your frustration. Unfortunately, rounding has always been an issue with prestashop. What I did in a few cases was going through the code, especially for PriceCalculation of the Product.php class, and remove all instances manually, then use it at the very end of the function Hummm.... Well, thanks for the feedback! Since i'm not a programmer this will be an impossible task for me. Thank you! Link to comment Share on other sites More sharing options...
HairMaker.Gr Posted November 4, 2019 Share Posted November 4, 2019 (edited) Same problem and for me. I want the prices stay stable and to disable round price option in 1.7.6.1. Any solution or any module to do this? Edited November 4, 2019 by hairmania (see edit history) Link to comment Share on other sites More sharing options...
Autostore Posted November 9, 2019 Share Posted November 9, 2019 Hi, I also have an issue with rounded numbers. Prestashop 1.7.6.1 using "Round up to nearest value" "Number of decimals: 0". In product pages the price is show ok, like 18,00. The problem is, when a client click "Add to cart" in the windows that pops-up, right under the item the not-rounded price is displayed. Then also in the email that the client receives with that table containing his order, the Prier per Unit is displayed as not-rounded price. And because of this we are still unable to go live with the shop. Anybody have any idea on how to fix this? Thanks Link to comment Share on other sites More sharing options...
HairMaker.Gr Posted November 10, 2019 Share Posted November 10, 2019 Hello I updated the module shopping cart to the latest version and the prices comes again to normal. Giannis Link to comment Share on other sites More sharing options...
Autostore Posted November 10, 2019 Share Posted November 10, 2019 22 minutes ago, hairmania said: Hello I updated the module shopping cart to the latest version and the prices comes again to normal. Giannis Just did that. Issue is still there. Link to comment Share on other sites More sharing options...
yasir517 Posted November 25, 2020 Share Posted November 25, 2020 That's it. 1 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