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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024