Issue with Shopify Discount Function Applying Wrong Base Price Across Markets

I’m running into an issue with a Shopify Discount Function and could use some guidance.

Context
• We have a product that exists in multiple markets with different prices per market.
• Example:
US price: 899.95 USD
UK price: 799.99 GBP
• We’re using a Shopify Function (discount function) that applies a percentage discount when a customer has a specific tag.

The Issue
When the discount is applied in non-US markets (e.g. UK), the cart seems to always use the US base price as the reference price for the discount calculation, instead of the market-specific price. So instead of discounting:

  • 799.99 GBP (UK base price)

It appears to be discounting:

  • 899.95 (US base price)

Expected Behavior
The discount should be calculated based on the active market’s price for the product.

What We’ve Checked So Far

  • The product pricing is correctly set per market in Shopify.

  • The discount function triggers correctly based on customer tags.

Just had a test on my side, and wasn’t able to replicate the issue. Are you able to replicate this on multiple stores?

Here’s a 10% discount example:

CleanShot 2026-01-27 at 21.12.13

Hi @bkspace have you configured different fixed prices in different markets?

This is just a 10% discount as seen here:

And yea, the same product has different prices in the UK and FR markets.

After further investigation we found out that the issue was caused by the cart transform functions that we had implemented. It seems that if a product has no compareAt value in the current market it fetches the price from the default market which causes the issue since they have different currencyCode.

We’re still not sure as to why this issue just came up since the function existed a year ago. We’re suspecting that the new version of markets from shopify might’ve affected our cart transform logic.

1 Like