Hello,
I am trying to set ADD TO CART button that will change to BACKORDER when product inventory management is continue and product variant stock is <=0 or when ordered quantity is bigger than current quantity in stock.
I have tried to use javascript which I added to the bottom of product.liquid:
If I use only first 2 conditions (variant && variant.available == true) it shows for all variants of course but it works.
I am assuming that the issue is probably in the next 2 conditions when I want to work with current stock quantity.
The shop url is www.volleyballshop.com.au
Please, would anyone be able to help me make this working and even improve it that it would be able to compare the selected quantity with the current available quantity?
Thank you in advance for all comments and tips.