Discount function: The presentmentCurrencyRate parameter does not account for price adjustment

Discount function: The presentmentCurrencyRate parameter does not account for price adjustment

DanteFXX
Shopify Partner
15 2 8

The final currency rate using the price adjustment is 1 USD = 6 PLN. Prices for storefront are recalculated based on this rate. However, we cannot apply the same rate to provide a discount. This is quite strange. 

 

https://shopify.dev/docs/api/functions/reference/product-discounts/graphql/input

```

presentmentCurrencyRate (Decimal!)

The conversion rate between the shop's currency and the currency of the cart.

```

In fact, this is not true. If I add my product to the cart with a base price of $1000, I see 6000 PLN in the cart, but a $100 discount is converted to 400 PLN.

 

Is there a plan to provide the correct currency rate, or perhaps the price adjustment as a separate parameter?

Or does Shopify expect us to provide the price adjustment ourselves (I have no idea how to obtain it yet) in the discount extension using a discount function metafield or something similar?

 

P.S. The provided currency rate and price adjustment values are chosen to demonstrate the issue.

 

DanteFXX_0-1726310791365.png

 

DanteFXX_1-1726310841028.png

 

 

Replies 0 (0)