Jump to content

Edit History

Andrejkov

Andrejkov


Solution

Hello,

I have an issue with specific prices in my PrestaShop 8.1 store. In the previous version (1.7), we had specific prices set for products in different currencies.

I transferred the settings from PS 1.7 to PS 8.1, and unfortunately, the prices for specific currencies do not match because the specific prices are calculated based on the exchange rates (for the price to match, I need to set the currency exchange rate to 1).

In the older version, the specific price was not calculated based on the currency exchange rate. The problem is that we need to have different currency exchange rates in the store, but in the current situation, the specific product prices do not display correctly.

For example, the product XX has a price of 19 Euros (default currency).

I set a specific price for this product in USD (exchange rate is 5) to 56.097560 net.
Here are the results:

PS 1.7:

Euro: 19

USD: 69

PS 8:

Euro: 19

USD: 345 (The price matches only if I set the USD exchange rate to 1)

Any idea what might be wrong?

regards

===================================

EDIT:

I found Solution:

In file classes/Product.php

i changed this line: 
$id_currency === $specific_price['id_currency']
to: 
(int) $id_currency === (int) $specific_price['id_currency']

Andrejkov

Andrejkov

Hello,

I have an issue with specific prices in my PrestaShop 8.1 store. In the previous version (1.7), we had specific prices set for products in different currencies.

I transferred the settings from PS 1.7 to PS 8.1, and unfortunately, the prices for specific currencies do not match because the specific prices are calculated based on the exchange rates (for the price to match, I need to set the currency exchange rate to 1).

In the older version, the specific price was not calculated based on the currency exchange rate. The problem is that we need to have different currency exchange rates in the store, but in the current situation, the specific product prices do not display correctly.

For example, the product XX has a price of 19 Euros (default currency).

I set a specific price for this product in USD (exchange rate is 5) to 56.097560 net.
Here are the results:

PS 1.7:

Euro: 19

USD: 69

PS 8:

Euro: 19

USD: 345 (The price matches only if I set the USD exchange rate to 1)

Any idea what might be wrong?

regards

×
×
  • Create New...