Skip to content

Magento 2.1 Ad product to cart reloads page --> Webanalytics and page load time #5266

Closed
@andidhouse

Description

@andidhouse

Steps to reproduce

  1. Magento 2.1
  2. Move a product to cart from the product page

Expected result

  1. Have the product in the cart without reloading the page completely
  2. Show the "Success message" without reloading the page

Actual result

  1. Product page is reloaded completely after adding product to cart and showing the "Success message"

This causes two problems:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CheckoutFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions