# How not to do not proceed with the purchase

**URL:** <https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566>\
**Category:** Database\
**Created:** [March 22, 2021, 7:38am UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566 "2021-03-22T07:38:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/jenny/32/6858_2.png) [@jenny](https://forum.adalo.com/u/jenny)\
**Post date:** [March 22, 2021, 7:38am UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566/1 "2021-03-22T07:38:45Z")

</div>

hi guys, I’m doing a subtraction operation between the products that I loaded into the database and those that the customer would like to buy … how can I not make the customer continue to pay if the result is negative? example: 10 pieces of glasses and the customer selects 11, I want the customer not to be able to proceed with the payment. thank you

---

<div class="post-metadata">

**Author:** ![Erik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/erik/32/7849_2.png) [@Erik](https://forum.adalo.com/u/Erik)\
**Post date:** [March 22, 2021, 7:56am UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566/2 "2021-03-22T07:56:44Z")

</div>

Hi Jenny,

If the amount is equal to or less than 0, use conditional visbility to remove the stripe component and have a proceed button. You’ll need to set up the relevant actions on the second button, similar to what you have on the stripe component, except they won’t pay.

Erik

---

<div class="post-metadata">

**Author:** ![jenny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/jenny/32/6858_2.png) [@jenny](https://forum.adalo.com/u/jenny)\
**Post date:** [March 22, 2021, 12:47pm UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566/3 "2021-03-22T12:47:23Z")

</div>

hello, i can’t understand you … can you show me an example with some photos? thanks to the availability

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 22, 2021, 2:50pm UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566/4 "2021-03-22T14:50:16Z")

</div>

So if the amount of anything is equal to 0 or less than 0 then change the visibility to not be visible.

So.

Change visibility → Sometimes Visible → If the amount of " is less than or equal to 0.

---

<div class="post-metadata">

**Author:** ![jenny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/jenny/32/6858_2.png) [@jenny](https://forum.adalo.com/u/jenny)\
**Post date:** [March 23, 2021, 5:15am UTC](https://forum.adalo.com/t/how-not-to-do-not-proceed-with-the-purchase/10566/5 "2021-03-23T05:15:01Z")

</div>

hi, thanks guys … didn’t know about this hidden folder …: :)))))
