Jump to content

[solved]Combination price goes wrong when select other currency


jeff8899

Recommended Posts

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 $499
Combination
1) 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.27
when 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 by jeff8899 (see edit history)
Link to comment
Share on other sites

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

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...