I want to create automatic pre-order when item out of stock.
I have read the instruction change item template from default to pre order one which you have to create. However, this is basically just change from "add-to-cart" to "pre-order "which you have to do it manually.
I'm looking for a way to make automatic switch from "add-to-cart" to "pre-order " when the stock turn to zero.
Anyone have any idea how to edit those code or any other option?
Thank you very much in advance.
sorry for any issue can you please try this code
Thank you for your solution. I've follow the instruction.
My problem is that i want shopify to change from "add to cart" to "Pre order" when the stock is 0.
i just don't want to go changing product template every time for every product when it run out of stock.
My point is when item A has more than 0 , the button should be "Add to Card"; when the same item is sold out, the button turn automatically to "Pre order".
I hope you get my problem.
sorry for that issue yes is possible to custom code work at same template doesn't change
It can be done by doing some code customization. please send me a personal message and we can discuss what you'd like
thanks i will sent