Jump to content

Combinations and currency Prestashop


Recommended Posts

Hi all, I will try to highlight the problem that occurred when displaying prices in CZK. The e-shop are two currencies, the main currency is the euro in the currency you manage all the products, but e-shop is to be displayed Czech currency (CZK)

 

and I will show you the process and what came out of it.

 

1) Looking at the currency if we have them.

post-1089654-0-60751700-1443904869_thumb.png

 

2) Set the default currency in which we enter a price for the products.

post-1089654-0-08573200-1443904869_thumb.png

 

3) open the product, we set the price.

post-1089654-0-61283800-1443904868_thumb.png

 

4) Set a price increase according to the required attributes (all store)

post-1089654-0-68486300-1443904867_thumb.png

 

5) Look at the product and see the price behaves as if it were the euro, but says that it is the crown.

post-1089654-0-71172100-1443904866_thumb.png

 

6) Click on the button to buy and receive us Czech right price in the shopping cart price also appears correctly, but the product is wrong!

post-1089654-0-20736800-1443904865_thumb.jpg

 

 

What to do? How is it that the price of the product displayed incorrectly. It's somehow fix?

Link to comment
Share on other sites

Do you have some custom module that can alter the price?

Your PrestaShop was updated before or is a fresh installation?

Have you changed your default currency before?

 

Try something, in the Performance tab, disable all non native modules and overrides, as recommendation, clear the cache.

Link to comment
Share on other sites

Do you have some custom module that can alter the price?

Your PrestaShop was updated before or is a fresh installation?

Have you changed your default currency before?

 

Try something, in the Performance tab, disable all non native modules and overrides, as recommendation, clear the cache.

No, I have some custom module. Only Prestashop 1.6.1.1 and nothing else.

I've tried everything from what you wrote.
I'm sure that's not just my problem but a global problem.
Link to comment
Share on other sites

I find a problem. ProductController.php in line 456 we have product attribute but without currency rate

$combinations[$row['id_product_attribute']]['price'] = (float)$row['price'];

i replace to 

 
$combinations[$row['id_product_attribute']]['price'] = (float)$row['price']*$this->context->currency->conversion_rate;
 
AND IT WORKS!!!!!!! >D
Edited by mexis (see edit history)
  • Like 3
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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