Why does my Add to Cart button disappear when inventory is zero?

Hi Team

My Add to Cart button disappears when the inventory of first variant (like size, colour) in the drop menu become zero. When I delete the first variant it shows up because the following variants have inventory. Please help me to fix this issue.

1 Like

@AvantCrystal

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.

https://www.avantcrystal.com.au/

Here is an example of one of those products

https://www.avantcrystal.com.au/collections/stellux-austrian-crystal-flat-back-hotfix/products/stellux-austrian-crystal-2058-flat-back-hotfix-crystal-goldhoney

Hi,

To show the Add to cart button, please add the code below to assets/styles.scss file.

.add_to_cart {
    display: block !important;
}

Hope it helps.

Thanks.

1 Like

Thanks David

That really worked. You are amazing.