Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I'm looking to add metafields to a product based on the variant product inventory levels. The metafield will be for sizes, which will be used for customers to filter with.
Basically, if a variant product inventory level is = 0, then I want to remove the size from the metafield, and if its >0 then add the size to the metafield. In my mind the metafield should be a list of values, so it can store multiple values such as S, M, L, XL.
However I am having trouble figuring out how to do this on shopify flow. Does anyone have any pointers?
You would probably use inventory quantity changed as the trigger. It's not clear how you would go about figuring out which size to remove from the metafield. Probably I would use Run code as it makes it easier to work with the list that is required to set the metafield. There's an example that is pretty close to this here:
https://github.com/Shopify/flow-code-examples/tree/main/run-code-examples/product-tags-to-metafields
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024