# Change of price of the button will buy

**URL:** <https://community.glideapps.com/t/change-of-price-of-the-button-will-buy/25604>\
**Category:** Ask for Help\
**Created:** [April 15, 2021, 8:18pm UTC](https://community.glideapps.com/t/change-of-price-of-the-button-will-buy/25604 "2021-04-15T20:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoundRoute](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roundroute/32/14140_2.png) [@RoundRoute](https://community.glideapps.com/u/RoundRoute)\
**Post date:** [April 15, 2021, 8:18pm UTC](https://community.glideapps.com/t/change-of-price-of-the-button-will-buy/25604/1 "2021-04-15T20:18:54Z")

</div>

I am currently working on the possibility of offering a price depending on the user has a discount code or not. What happens to me is that in the variables of the buy button I cannot add the price conditioned by whether it has a discount or not. This condition is carried out by means of an if then else and at the moment of selecting the price variable of the button I can only select fixed variables. Attached video, although it is in Spanish, it can still be understood.

Have you encountered this problem? How have they solved it?

---

<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:** [April 15, 2021, 8:59pm UTC](https://community.glideapps.com/t/change-of-price-of-the-button-will-buy/25604/2 "2021-04-15T20:59:45Z")

</div>

The built in Stripe Buy Button cannot use computed glide columns. You either need to do the calculations in a google sheet, or have multiple basic columns with different prices, and then show different buy buttons with visibility based on if a discount applies or not.
