# Using Buy Button for booking on calendar

**URL:** <https://community.glideapps.com/t/using-buy-button-for-booking-on-calendar/8330>\
**Category:** Ask for Help\
**Created:** [May 2, 2020, 1:30am UTC](https://community.glideapps.com/t/using-buy-button-for-booking-on-calendar/8330 "2020-05-02T01:30:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmst60](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rmst60/32/587_2.png) [@rmst60](https://community.glideapps.com/u/rmst60)\
**Post date:** [May 2, 2020, 1:30am UTC](https://community.glideapps.com/t/using-buy-button-for-booking-on-calendar/8330/1 "2020-05-02T01:30:55Z")

</div>

Is there a way to show that something that was purchased is now unavailable for the next person to Buy? It seems like Strip can easily accept the payment but how to now mark the item in the listing as nto available? Think of it as a booking calendar type purchase.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 2, 2020, 2:58am UTC](https://community.glideapps.com/t/using-buy-button-for-booking-on-calendar/8330/2 "2020-05-02T02:58:47Z")

</div>

I have a booking calendar demo here:

> **[Meet with Me](https://meetwithme.glideapp.io/)**
>
> A personalized booking app

Would this meet your needs if it had a buy button?

---

<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:** [May 2, 2020, 12:39pm UTC](https://community.glideapps.com/t/using-buy-button-for-booking-on-calendar/8330/3 "2020-05-02T12:39:20Z")

</div>

I think you would need to create another sheet that will duplicate the App: Sales sheet. Then create a relation from the products to that new sheet. Then you can create a rollup to count the number of items sold and subtract it from your inventory for that item using a math column. You can then set visibility or filtering based on that math column. The only problem is you will possibly have a few minute delay in all of this updating because once the item is purchased, it is written to the App: Sales sheet, then the new sheet is updated, then it needs to sync back up to Glide before the inventory count is updated.
