Hi!
I’m trying (without success) to understand how contextualPricing
on ProductVariant
resolves a price when i provide in ContextualPricingContext
a geography associated to multiple markets.
Does anybody knows which market is used for price resolution?
Is there any plan to enhance ContextualPricingContext
by adding an optional market ID?
Thanks in advance for your help!
Hi @mborromeo
The contextualPricing
field on ProductVariant
(and Product
) allows you to specify a context, which can include a country
, companyLocationId
, or locationId
. The most common usage is with the country
parameter. When you provide a country, Shopify will resolve the price based on the market(s) that are associated with that country.
If a geography (country) is associated with multiple markets, Shopify will use the “primary” market for that geography to resolve the price. The API does not currently allow you to specify which market to use if there are multiple matches; it will always use the default/primary market for that country as configured in your Shopify Markets settings.
Currently the contextualPricing
context does not accept a marketId
so there is no support right now for passing a market ID directly in the context object for price resolution.
Hi @Liam-Shopify
thanks a lot for your answer!
Have a great day
1 Like