Jump to content

Multiplying the product's specific price in non-default currencies by the currency exchange rate.


Oktawian_IT

Recommended Posts

Describe the bug and add attachments

Hello everyone,
We have discovered a bug with the specific pricing feature that prevents us from setting different prices in non-default currencies for products. We want to set fixed prices for one of our manufacturers, but we can't due to the rate multiplier.

Even after setting a stiff specific price in a different currency, the price is still multiplied by the exchange rate.

For example, the normal price in EUR:
image.thumb.png.e15d344c527e510464fbf2acd29a1d91.png

 

Here, it should be 10 USD, but it is multiplied by the exchange rate:
image.thumb.png.a3821b976b52561a80cb5fece1e763fc.png

 

Currencies:
image.png.6d3714e489eb148942a3cb2eab841924.png

 

Product specific price:
image.thumb.png.5effd2a65ecb58d3034811d2dcd27677.png

 

Expected behavior

A fixed specific price should be as we set it, for example, 5 USD, not "5 USD * exchange rate". It works okay when you add a specific price in the default currency as it is supposed to be multiplied by the exchange rate.
 

Steps to reproduce

Back Office:

  1. Go to International > Localization > Currencies.
  2. Set up an additional currency with an exchange rate, in my case x2.
  3. Go to Products > Catalog > Add new product.
  4. In the product "Pricing" tab, add a price (in my case it will be 5 EUR).
  5. Scroll to the bottom > Specific prices > Add a Specific Price.
  6. In "Apply to," choose the additional currency and then scroll to the bottom.
  7. Turn on "Set specific price" and enter a value, in my case 10 USD

Front Office:

  1. Go to the added product and check the price.
  2. Verify the price.
  3. Change the currency to the second one.
  4. Check the price again.

 

PrestaShop version(s) where the bug happened

8.1.7

 

PHP version(s) where the bug happened

8.1

 

If your bug is related to a module, specify its name and its version

ps_currencyselector (possible)

 

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