# Show products but disable add to cart button

**URL:** <https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014>\
**Category:** Ask for Help\
**Created:** [October 13, 2021, 8:34am UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014 "2021-10-13T08:34:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [October 13, 2021, 8:34am UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014/1 "2021-10-13T08:34:27Z")

</div>

I’m trying to show products that we have or carry, but disable the ‘add to cart’ button for those not currently in stock.

Our Sheet has a simple checkbox column for stock availability, i.e true or false.

I can get Glide to show products that are in stock, but those that aren’t are simply not shown.

I can also show all products and their stock availability but cannot seem to get Glide to disable the ‘add to cart’ button.

I can hide the ‘add to cart’ button, but I can’t show it but disable it with a custom message, i.e. out of stock.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 13, 2021, 11:46am UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014/2 "2021-10-13T11:46:45Z")

</div>

Create a second button with an action that does nothing. Then conditionally show each button based on stock availability.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [October 13, 2021, 12:30pm UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014/3 "2021-10-13T12:30:31Z")

</div>

Cheers Jeff, I will try that! Thank you very much 😉

I used the hint text to show the status and conditionally hide the add to cart button, but would look better aesthetically if there was a disabled button.

---

<div class="post-metadata">

**Author:** ![garrison](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/garrison/32/22059_2.png) [@garrison](https://community.glideapps.com/u/garrison)\
**Post date:** [October 13, 2021, 1:46pm UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014/4 "2021-10-13T13:46:45Z")

</div>

Quick update: your solution worked a treat! Once again Jeff, thank you, much appreciated!

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:50pm UTC](https://community.glideapps.com/t/show-products-but-disable-add-to-cart-button/33014/5 "2024-01-17T16:50:02Z")

</div>


