Global expansion, localizing content, and selling in multiple currencies and languages
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I'm trying to create a dynamic system on Shopify where the market(s) where a product can be sold is determined by a specific metafield value that I've set up. Essentially, I want to control which regions or markets each product is available in by utilizing custom or original metafields, so that if a product's variant contains 'US-SHIP,' for instance, it should be available only in the US.
Has anyone done something similar or have any suggestions on the best way to implement this? I'm open to using automations, third-party apps, or even custom solutions, but ideally looking for an efficient and scalable way to set up market restrictions based on metafields.
Thanks in advance for your help!
Hi @ophi3341
It sounds like you're trying to dynamically control product availability across different Shopify Markets using metafields, which is a smart and efficient way to manage regional restrictions. I totally get why you’d want an automated and scalable solution for this, so let’s dive into the best approach.
Shopify Flow currently doesn’t have a built-in way to directly change market availability based on metafields, but you can still achieve this with a combination of Shopify Flow, Shopify APIs, and custom automation.
Since Shopify Flow allows you to trigger workflows based on metafields, you can use it to update product availability by calling the Shopify Admin API.
Create a Metafield for Market Availability
Set Up a Shopify Flow Automation
Use Shopify Admin API to Update Product Market Availability
You’ll need to send a GraphQL API request to update the product’s availability in different markets.
Example API Request:
Alternative: Using a Third-Party App
This setup allows your products to dynamically update availability based on metafields, making it scalable and automated. If you need extra help, just let me know asap. Thanks!
Daisy.