I'd like the user to be scrolled to the top of the product page upon successfully adding a product to their cart, so that they can see the success message.
What would be the best way to accomplish this?
addtocartmagento2product-page
I'd like the user to be scrolled to the top of the product page upon successfully adding a product to their cart, so that they can see the success message.
What would be the best way to accomplish this?
Best Answer
Try this code in your custom js