Open the workflow run where it didn’t do what you expected. Look at the condition especially. What do you see?
Topic summary
A user created a Shopify Flow to tag orders based on variant stock levels at the time of purchase, allowing customers to order out-of-stock items that need to be manufactured. However, the flow incorrectly tagged orders because it checks inventory after the order is created and stock is already allocated.
Key Finding:
- Flow runs after order creation, when inventory has already been deducted
- This causes the stock check to show reduced quantities rather than pre-order levels
Solution Implemented:
- Adjusted the trigger to check if stock drops below 0 for any item on the order
- This post-sale check successfully identifies items requiring manufacturing
Related Issue:
- Another user faces a similar problem wanting to verify adequate inventory before allocation
- They’re exploring whether adding quantities together and comparing values could work, potentially requiring custom code
- The original solution may not fully address their specific use case
Screenshots of the Flow configurations were shared for troubleshooting.