i’m trying to find a solution to display the theme template “pre-order” when a product is at a stock of 0 or below.
currently, the process to change “continue selling when out of stock” is not possible to toggle manually across 40,000 products in my store.
I’ve been trying to achieve this with the shopify flow for hiding products when out of stock without success.
any help is greatly appreciated.
Hi @jmaybach this is simple please share the main-product template file.
Hello! I am one of the founders of Stock In Motion, an app that does exactly what you are looking for plus much more. Our pre-sale automation not only handles all of the manual tasks for you, it allows you to display an ETA either manually or tied to an inbound tracking number.
Stock In Motion App
Feel free to contact me directly at mike@simplicityandvelocity.com and I will assist in any way and provide you a code to get a 3 month free trial!!
Hey,
Shopify Flow can automate “Continue selling when out of stock” toggling: create a workflow with trigger Product inventory level changed, condition Inventory quantity is less than or equal to 0, action Set product continue selling when out of stock to true. For restocking, add a second workflow with condition Inventory quantity is greater than 0 that sets it back to false. See the Shopify Flow product actions guide.
However, Shopify doesn’t natively switch theme templates based on inventory - you’d need Liquid conditionals in your theme code (Online Store → Themes → Edit code) to check stock and display a pre-order section when inventory ≤ 0.
Alternatively, an app like K1 PreOrder (I’m the founder) automates both: it replaces “Add to cart” with a “Pre-order” button when stock hits zero and manages “Continue selling” for all 40,000 products via collection rules - no manual toggling or coding needed. The app is specifically designed for high volume stores, allowing to operate huge amount of products in queue. Here is K1 PreOrder listing if relevant.
Happy to help with the theme customization if needed.
Best regards,
Yauheni