Discussing APIs and development related to customers, discounts, and order management.
I have created a discount that follows the documentation and gives 10% off for orders with a minimum subtotal of over 100 USD. This works.
Next, change the store currency from USD to JPY.
If the exchange rate is 150 JPY/USD, the minimum subtotal must be 10% off for orders exceeding 15,000 JPY.
However, the 10% discount will be applied to orders with a minimum subtotal of more than 100 JPY.
Do I have to do currency conversion in the Discount Function logic to create a multi-currency discount?
Solved! Go to the solution
This is an accepted solution.
The `Input.presentmentCurrencyRate` is a ratio from the store's currency to the local currency.
Line item price / presentmentCurrencyRate = Line item price in store currency
15,000 JPY * presentmentCurrencyRate = Amount in the customer's currency
This is an accepted solution.
The `Input.presentmentCurrencyRate` is a ratio from the store's currency to the local currency.
Line item price / presentmentCurrencyRate = Line item price in store currency
15,000 JPY * presentmentCurrencyRate = Amount in the customer's currency