I am stuck in one problem with Magento.

When I click Addtocart button on product page of Magento, Product successfully adds in Cart and than I open the Customer Login Page in New Tab of same browser and than I Login successfully in that New Tab, But now the problem is when I go back the Product Page Tab and click AddtoCart button than product is not adding into Cart until I refresh the product page.

How I can add product in cart without refreshing the page after Login the customer account in another Tab of same browser?

Will appreciate any help please.


  • any one please help. any idea will be highly appreciated please
    – zubair
    Jul 24, 2017 at 16:40

1 Answer 1


This is not a problem the product page must be reloaded to take the new cookies and session created in the customer loggin page

For exemple if you loggin in stackexchange in a new tab but not in this tab you will see that you are still not logged in this tab.

  • thanks for the reply but many of the other ecommerce sites and even magento platform sites are not needed to be refreshed and successfully adds the product in Cart once after login in another Tab of same browser.
    – zubair
    Jul 24, 2017 at 8:37
  • if you use ajax to add product might be happened
    – M0ns1f
    Jul 24, 2017 at 9:02
  • But i have an examples of Magento Site which is using Ajax for adding product in Cart and That is also adding the product in cart after login in another Tab in same browser.
    – zubair
    Jul 24, 2017 at 10:40
  • can you share a link to see what's happend
    – M0ns1f
    Jul 24, 2017 at 10:47
  • am i allowed to share the url here?
    – zubair
    Jul 24, 2017 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.