Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I have two separate locations set up in my Shopify store - one for each warehouse. They are distinguished in Shopify with distinct location ID's and each location has its own pot of inventory - key point is that inventory is not shared across locations (aka warehouses).
I want a low stock alert when a sku's inventory level drops to 0 or below at one of the warehouse. Currently, I have a flow set up to send an alert that looks like this:
This flow works great for the entire pool of inventory and back when we had only 1 location, but we need it to only send an email when the stockout conditions are met at one of our two locations/warehouses.
Issue I'm having is that I'll have SKU 123 stock out at Warehouse 1, however Warehouse 2 might have 5 units of inventory of this SKU. I want to be notified about depletion at Warehouse 1, but Flow still sees 5 units at Warehouse 2 so it doesn't trigger an alert.
How do I add location-specific conditions? What fields do I use? THANK YOU!
You can definitely check the inventory for a given location. The hard part is that you won't know the previous value of the inventory at that location because the trigger doesn't provide it (the prior quantity is for the variant across locations). So if you want to prevent getting notifications after the inventory hits 0, you need to use variant metafields to store the previous inventory. Here's a template for the Flow part of it:
https://shopify.com/admin/apps/flow/web/v2/editor/templates/fe0ecc27-6512-42c8-8bda-b56e06d77323
If you are ok with duplicate notifications (or if you don't think you'll sell below 0), then you can remove the metafields part of the conditions and actions.
Hey Paul, I'm looking for a same solution as the original post, I tried implementing the Flow you linked, but it's not working. If I check the Run log of the Flow I see that it's not matching the condition
Location / Name is equal to store name
As the value for Location / Name includes all locations that are activated for the product, seperated by comma.
Do you know how we can cross-match the value for Location an available quantities?
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024