Add product to cart without page refresh
I am setting up a website for ONE specific product. I would like to be able to press a call to action button, which adds 1 product to the invisible cart, and then shows a modal with a customer registration form.
Button > 1 item in cart > Pop up modal > Fill in registration form > Buy now > Gateway
My problem is that when an item is added to the cart, the page is refreshed, so a modal toggle attribute on the submit button is not working.
What could be a possible solution?