# Adding quantity for a purchase

**URL:** <https://community.glideapps.com/t/adding-quantity-for-a-purchase/16313>\
**Category:** Feature Requests\
**Created:** [September 24, 2020, 6:43pm UTC](https://community.glideapps.com/t/adding-quantity-for-a-purchase/16313 "2020-09-24T18:43:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frenat](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@frenat](https://community.glideapps.com/u/frenat)\
**Post date:** [September 24, 2020, 6:43pm UTC](https://community.glideapps.com/t/adding-quantity-for-a-purchase/16313/1 "2020-09-24T18:43:28Z")

</div>

I’m selling pumpkins for a school fundraiser. I want people to be able to choose how many they want, and then it will take that number x $5 and pass that into the buy button. Can’t for the life of me figure it out! I’ve searched the forum and can’t find any other threads. What am I doing wrong?!

---

<div class="post-metadata">

**Author:** ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)\
**Post date:** [September 24, 2020, 7:04pm UTC](https://community.glideapps.com/t/adding-quantity-for-a-purchase/16313/2 "2020-09-24T19:04:49Z")

</div>

I had this issue last week. Basically you need to add another tab that will almost act like a shopping cart. The purpose of the tab is to calculate the values and then pass them along to your actual purchase page. It’s a pain.

Here is my original post

> [@Why is there Buy Button limitations?](https://community.glideapps.com/t/why-is-there-buy-button-limitations/16030):
>
> We need the ability to map a math field to the buy button. Looking to simply multiply the quantity by the cost to come up with the total and map it to the buy button. But that is not an option. Anyone know any solutions? What am I missing?

---

<div class="post-metadata">

**Author:** ![frenat](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@frenat](https://community.glideapps.com/u/frenat)\
**Post date:** [September 24, 2020, 7:09pm UTC](https://community.glideapps.com/t/adding-quantity-for-a-purchase/16313/3 "2020-09-24T19:09:15Z")

</div>

Hmmm… can you share an example of the solution you found?
