Hi all! I am looking for a code for my impulse theme that I can use that will automaticaly change my inventory varients when they reach 3 to a 0 so my product varient is triggered to show not available for that product in my store when it sells down to 3- not 0. I need this for each varient, not total inventory amount of a product. Example–for sm, med ,large…ect. I may have 12 larges left for a product but only a few left in small. I can see in shopfiy total inventory of a product on hand when it reaches a low level, but not when just one or two of the varients for a particular product reachs a low level. Shopfiy does not currently have the ability to perform this (I have asked) and I have over 1500k products with multiple varients, so checking this daily is a nay. Bonus points if someone can tell me where I put that code too!! Thanks in advance.
Hi Dana,
Your best bet would be to use Shopify Flow to change inventory when they reach a certain threshold. The flow would go like:
a. When product variant inventory quantity changed
b. Check if the inventory is equal to or lower than 3
c. Change the variant’s inventory into 0
Personally, I don’t know how to create the entire flow myself. Just been learning to. But Kalen is an expert with Shopify Flow. He knows it like the back of his hand. I’d recommend you contact him at Shopify Automation As A Service | Flow (flow-helper.com). You can find his details there and ask him questions. If you happen to contact him, tell him I sent you.
Hope this helps!
Hi, thank you for this, but I don’t believe it will work because this is based on total inventory and I need inventory changes bases on what is left for each size varient, not total inventory on hand, I already control that part daily for my store, but it leads to problems when I have orders for an item that has one left in a certain size (but it looks like I have 15 left for total inventory because I have a full run of all other sizes still) and by the time the order reaches my warehouse platfom the item has already been sold to someone else because in the cross-fire that platform had not updated my inventory amount in time, which has happened a few times with the difference of just minutes. Shopify needs to allow their retailers to control this on all ends. I appreciate the feed back!
Hi Sandra, thank you for this! That’s a heavy order and It’s more advanced than I am familiar with but I will def look into it. Is this the only option, or can a code be placed somewhere that could just see a product varient as 3 and then change it to 0?
Why not just add stock in with 3 less than you have, eg, you get 100 of a variant add 97 to Shopify? Won’t help with any stock you currently have but will save having this issue with future stock
Hi, not an option. I am not the only one pulling from stock and stock levels change by the minute and updated by the warehouse (s), not me. I wish it was that simple, it would save me a lot of hassle! ![]()
Hi Dana,
The trigger, as stated here, starts when the inventory level changes for a specific product variant.
![]()
So, I think it should work for what you’re needing which is inventory changes based on what is left for a specific variant (size etc.).
Hi, I am actually on it right now and you may be right! Thank you.
I’ll go over it and reach out to your friend if I need assitance. Many thanks!
You’re welcome! Say hi to Kalen for me if you happen to contact him ![]()
will do! ![]()
Second part is easy enough too
but for the third part I’m only finding a way to delete the variant completely which I doubt would be useful as it’ll be needed in the future if more stock comes in. Might need to code the deleting the stock levels part and that’s beyond me.
Yes! just put that first part in place so I am atleast updated on this. Looking for an option on second part myself-without having to go in and manually set the low inventory varient at 3 to 0. That’s where I need a code in my theme, I believe. There has to be one or an app that will do it.
The theme cannot control inventory levels and change it, unfortunately. The theme only controls what the store looks like.
Only Shopify flow or apps can control or change inventory levels.
Hi, yes, got it, looking into this now. I can see how to be updated by flow via email when varients reaches a certain amouint, but can it actually trigger a change to inventory amounts without an app or assistance? Do you know?
I think so. I’m not really sure. I wish I could tell you. The only thing I know is that the option to update the inventory is right there. We just need the code for it.
I think Kalen knows, but I haven’t contacted him yet. Best bet for us would just to ask him for help.
I reached out to an app that is working on this for me. They think they can do this and hopefully problem solved. If you hear anything different keep me posted! Thanks again for all the info. Huge help!
Hi, I just had an app just develop a solution for this, just in case you need to know. It’s called Delist Automation and we began using it a little over a week ago, so far so good, they go right down to the variant now, not just total inventory. Also, do you know if you can use flow to update you if a shipment that has been placed by customer has not had a tracking update after for x amount of days through my tracking app? I know I could do this manually to check but need the update brought to my attention if no tracking inforamtion is provided to customer by day 4 so I can address. Any insight to that or should I reach out to your friend?
Hi Gypsy!
That’s awesome that you’ve found an app to solve your previous issue?
As for the question, hmmm, I’m not really sure to be honest, so yeah, do try to email Kalen about it, here’s the link: https://www.flow-helper.com/
Ok, great! I’m going to play around with it for a bit and if I get stuck I will reach out. Thank you!


