Skip to main content
Question

Add to Cart Button with Product Count

  • September 16, 2023
  • 0 replies
  • 765 views

Dnyelux

Hello community!

I just want your help with this prototype using variables.

  • The prototype is, that I can select multiple tiles/boxes, and the number of items in the “Add to Cart” button will increase by 1.
  • The button will only appear when I click/add items.
    (These all work perfectly fine)

However, the problem occurs here:

  • When I unclick an item, the button disappears, which should not happen. It should only disappear when ProductCount reaches 0.
  • The button should stay and only subtract the value until it reaches 0 then disappears.

And this is where I’m having a problem:

I don’t know what I’m doing wrong. I’m still learning variables and prototypes. Would love to learn more about this. Thank you!

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings