Hey folks,
New markets has been out for a while, but there’s still some unknowns across the platform:
In Shopify functions (Discount Function API), we have access to a deprecated ‘market’ field, which provides access to the closest regional market and also market metafields:
For discount(s) specifically, there is now an API/top level level ‘context’ that includes all types of market (which is fantastic). However, new market information is still needed/required inside function input for backwards compatibility and also for access across different function types (e.g cart transforms).
In Liquid (Liquid objects: market), we have the same problem - only the regional market are accessible via the liquid object. I don’t know what would actually be involved to determine the correct market or if it would be possible.
In the Storefront API (Country - Storefront API) - we again see the deprecation notice, with no replacement(s).
It would be great to get an update on what the short, medium and long term plan(s) are for accessing markets/handling across the ecosystem (functions, storefront, checkout/POS extensions)!
The same issue exists with Customer Segments, but I’ll start another thread for that!