Can't have 2 add to cart button on the same page?

When you have more than one products on page, clicking on the first button opens the cart and shows it’s added. If you don’t close the cart, but click on a second button, the item is not added, instead the cart is closed. This is confusing for users.

You can see this behaviour on the SnipCart Demo page https://demo.snipcart.com/.

  • Click on add to cart under “Starry Night” (don’t close the cart)
  • Scroll down to " Rosy-Fingered…" and click on add to cart. (the cart will disappear and the item won’t be added, until you click again.)

This looks to me like a bug. If the cart is open and a second item is clicked on, the cart should stay open and the second item should show up on it.

Anyone has a solution?

1 Like