How to edit Venture template for conditional 'Add to Cart' button?

So im curious. How would one go about editing code to make the add to cart button or a new button function as follows:

If product variant is not available: display button that says out of stock
If product variant is available: Hide the button

Using the Venture template.

1 Like

@gtwholesale

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.