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.

