How do I make the Add to Cart button active for only one click?

Hi all. Tell me please how to make the add to cart button active for one click. After reloading the page, everything returns to its previous state. I have a button of type yes/no and two button states. I write the state of the button to the database. But I can’t figure out what condition to prescribe so that if the current user puts the button in the state “yes”, it will not be reset. Thanks

Hi @bluesun440!

Custom States will ALWAYS reset when the page is reset. They’re supposed to.

What it sounds like you want to do is if the user has an item in their cart they shouldn’t be able to add the same item again. If that’s the case you can put a conditional on the button to say “When parent group’s item is in user’s cart, then make this item disabled”


This topic was automatically closed after 70 days. New replies are no longer allowed.