Closed
Description
Steps to reproduce
- Magento 2.1
- Move a product to cart from the product page
Expected result
- Have the product in the cart without reloading the page completely
- Show the "Success message" without reloading the page
Actual result
- Product page is reloaded completely after adding product to cart and showing the "Success message"
This causes two problems:
- The webanalytics gets destroyed by reloading the page completely meaning the webanyltics like google analytics will show the product site as two time visited which destroys the analytics completely when adding a product to cart.
- On desktop it might be ok by performance to reload the product page but on mobile it is very slow to reload the product page completely just for the success message.
The best solution would be to have this behavior like in former m2 versions by adding the product to cart without reloading the page. I know that there was a bug that the site was not scrolling to top after putting a product to cart so the success message was not visible. I think the best solution would be to have this behavior like in former m2 versions without reloading the product page but scroll to top after adding product to cart.