Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I need to see if each location has active inventory so that Flow will automatically update the metafield "Shipping Template" based on active inventory and whether or not the item is Prime. So with this specific workflow, all 3 locations need to have active inventory and Prime needs to be "Yes." The problem is, even if one of the 3 locations is at 0 inventory, it is coming back as true. What might be wrong? It seems to be combining inventory at all locations and putting "true" on all of them even if only one location has inventory.
Yes, productVariant.inventoryQuantity is a total for all locations if you're using this one.
I'd be trying this as a starter:
This is the right variable, but do not use "all of" because that will check that all locations have inventory of 0.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024