magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.52k stars 9.31k forks source link

Minicart and customer name issue #3554

Closed devhn closed 8 years ago

devhn commented 8 years ago

Hi,

after upgrading to Magento 2.0.2. i see strange issues (theme Luma and Blank):

  1. I logged into my account on frontend as a customer and added for example five items into the cart. Minicart shows there are five items inside. After logging out the minicart then shows 0 items inside but the red square (items counter) is visible (like it has some items inside). After logging to the account again the minicart still shows 0 items. Then if I add a new product in cart the minicart updates it self with 5 old and 1 new products = 6 items total.
  2. When logging into the account the customer name doesn't show up within the header beside the dropdown arrow (Luma only).

Screenshoots:

So far I tried:

Strangely I didn't see this issues in 2.0.0. Is this a bug or some user (mine) setup error? Thanks.

ishakhsuvarov commented 8 years ago

@bb8d Thank you for reporting these issues.

the red square (items counter) is visible (like it has some items inside)

Fix for this issue is already available in the develop branch. You may use commit eec3cf1 as a hotfix.

Regarding other points, we had no luck reproducing it so far. Please try to clear browser's localStorage in addition to the caches you mentioned. Such kind of problems are sometimes observed when experimenting with the different installations on the same domain.

If the issue persists – please let us know.

devhn commented 8 years ago

Thank you, minicart square is now solved.

I've tried with your suggestions regarding the account issue but no luck, still cant get customer name to appear after logging. It appears only when i add an item to cart, go to checkout and then go back to store.

p.s. We have 4 installations on different subdomains but share the same parent domain.

ishakhsuvarov commented 8 years ago

@bb8d Do you use secure urls (https)? Any JavaScript errors in browser console?

devhn commented 8 years ago

http and no errors.

sengaigibon commented 8 years ago

Hello, I think I have the same problem, described here: https://github.com/magento/magento2/issues/3572

devhn commented 8 years ago

Hi,

yep, looks +/- all the same issues, thanks.

ishakhsuvarov commented 8 years ago

Indeed, with the preconditions described in #3572 issue may be reproduced. We are going to look into this case.

devhn commented 8 years ago

Yes, sengaigibon has the same issues - i have some custom modules, but the problem persist when i create fresh installation without them, using only custom theme.

devhn commented 8 years ago

p.s. can this issue be merged with #3572?

ishakhsuvarov commented 8 years ago

@bb8d @sengaigibon This issue seems to duplicate #3572 Closing this ticket for now.