jeff8899 Posted June 24, 2016 Share Posted June 24, 2016 (edited) i am using 1.6.1.5 version. my default currency is HKD. the combination price is fine with HKD. however, when i switch to USD, the combination price is not correct. example: my unit price is HKD $499Combination1) small (+$0), 2) big (+$225) when i choose 2) then it is HK$ 724. ( no problem with HKD) however, when i switch to USD my unit price is US$64.27when i choose 2) again, it shows US$ 68. (Wrong)!!! it should be US$ 94.how can i fix this problem??? i found a post to fix this with Prestashop 1.6.0.6 but not work for me !!! any solution??? Edited June 26, 2016 by jeff8899 (see edit history) Link to comment Share on other sites More sharing options...
jeff8899 Posted June 26, 2016 Author Share Posted June 26, 2016 the problem got solved after i edit the following code. controllers/front/ProductController.php line 456: $combinations[$row['id_product_attribute']]['price'] = (float)Tools::convertPriceFull($row['price'], null, Context::getContext()->currency); change to : $combinations[$row['id_product_attribute']]['price'] = (float)$row['price']; Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2016 Share Posted June 26, 2016 thanks for sharing the information. 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