Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello everybody,
I am trying to build a flow that runs every one hour and tags the orders if all order items inventory is greater than 0. Basically if all the products in the order are in stock.
I made this but it is not working.
Very appreciated your help.
Thanks
Razvan
What is not working?
The inventory check likely needs to be inside of the for each loop
But you could also potentially run this when the order is created (thus once per order, avoiding need to query/loop)
I also have a flow that runs when order is created and tags the order. That one is working well.
I also receive inventory from my suppliers every day and i need to run the flow to tag the orders that were not tagged by the first flow.
Thanks, but what is not working?
I don't know where the problem is. It just won't tag the orders. What info do you need me to give you in order to give me a hint?
Open the workflow run. It likely tells you why it didn't tag. If you are confused, include an image of what is confusing here.
Here is the run:
I see that it added and order tag for that first order. If you aren't seeing the tag, then you have another app that is overwriting tags.
Your condition logic is basically:
If any of the returned orders (from Get order data) has all variants in stock
Then you loop over all of the orders, regardless of whether they met the condition and add a tag
So at the very least, you need to put the condition instead inside the "for each" loop like I said above. Then choose the individual order item from that loop, something like (if all of getOrderData__item / lineitems has an lineItem_item / variant / inventoryQuantity > 0)
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