Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I would like to tag orders with a pre-order tag using shopify flow when -
any item on the order has available quantity <=0 for a specific location.
Our current flow is not working correctly as it is looking at quantity across all locations.
My Flow trigger is order created.
Attached screenshot of current flow.
Solved! Go to the solution
This is an accepted solution.
You have a loop in that condition (order / lineItems / variant / inventoryItem / variant), which you should remove. That is NOT checking location inventory. Instead you should check:
order / lineItems / variant / inventoryItem / inventoryLevels / available (its under deprecated)
Overall your condition should look close to this:
if at least one of order / lineItems
if at least one of variant / inventoryItem / inventoryLevels
level_item.available <= 0
AND
location.name == "Warehouse"
This is an accepted solution.
You have a loop in that condition (order / lineItems / variant / inventoryItem / variant), which you should remove. That is NOT checking location inventory. Instead you should check:
order / lineItems / variant / inventoryItem / inventoryLevels / available (its under deprecated)
Overall your condition should look close to this:
if at least one of order / lineItems
if at least one of variant / inventoryItem / inventoryLevels
level_item.available <= 0
AND
location.name == "Warehouse"
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