sakiri Posted September 25, 2013 Share Posted September 25, 2013 (edited) Hi, not sure if this is a real bug with the PS coding or just a problem with my site, so I'm asking here first... My shop's standard currency is Euro, but via the blockcurrency module I allow to convert/display currencies in USD and GBP as well. When setting up a voucher with fixed value of 2 EUR I'd expect the amount to be automatically converted and displayed correclty to USD or GBP: 2EUR --> approx. USD 2.70 / GBP 1,70 But in the cart the values are rounded to USD 3.00 / GBP 2.00, instead of showing comma-values. (Round mode is set to classic in BO) So, how do I get voucher amounts converted to other currencies with correct amounts, not rounded? I first experienced these problems in 1.5.4, and they still exist in 1.5.5. Any ideas / help? Thank you! Edited October 15, 2013 by sakiri (see edit history) Link to comment Share on other sites More sharing options...
sakiri Posted September 30, 2013 Author Share Posted September 30, 2013 Any hints where to manipulate the rounding method applied to vouchers? Help please! Link to comment Share on other sites More sharing options...
tuk66 Posted October 1, 2013 Share Posted October 1, 2013 What is your shop? Link to comment Share on other sites More sharing options...
sakiri Posted October 7, 2013 Author Share Posted October 7, 2013 Anyone please? Link to comment Share on other sites More sharing options...
sakiri Posted October 15, 2013 Author Share Posted October 15, 2013 found it finally: in classes/CartRule.php around line 850 change line $reduction_amount = Tools::ps_round($reduction_amount); to $reduction_amount = Tools::ps_round($reduction_amount, 2); 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