Disable Buy It Now button for Out Of Stock Products

We do this automatically in our pre-order app (Early Bird) using Javascript (when we show a back-order or “Notify me” button), but I think it’d be simpler to do this in Liquid if you have some theme coding knowledge.

You can find the conditions used to show the Sold out button, and copy that logic to wrap around the Buy it Now button, so it only renders it if the product is in stock.