-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento2 Mini Cart Items Issue #4170
Comments
@wclansar Thank you for reporting. Could you please provide more precise steps to reproduce? Which Magento version are you using? Any errors in browser console? |
Hello i am using magento 2.0.4 There is not error in console. |
Hello @wclansar and @ansarhusain, we tried to reproduce this issue by next case:
Result:
Could you pls provide more information about Your Magento 2 and server settings, like
|
Having the same issues here - https://utilitnetworks.com/ - item added to cart, but the mini-cart is not displaying any contents.
|
Anyone else having this issue? we are unable to replicate. Do you see any errors in the browser console or any failed AJAX requests? |
Yes. On 2.1.0-RC1, not sure what it was like on 2.0.6 as I upgraded right away. Chrome console says the following, along with the screen capture. Hopefully that is sorta helpful.
|
Internal issue MAGETWO-53432 |
I have the same issue: Magento 2.0.7 |
Thanks for reporting issue. Internal ticket MAGETWO-53766 |
@longbeachjamie, I tried it on your store and minicart worked properly. |
Can confirm that this bug happens in 2.0.7. as well. We have a Magento installation where we had huge problems after update yesterday. Since then the mini cart only shows the amount of products (if it does it anyway...). MIni cart is empty, even with 20 Items in Cart. Maybe a Update-Bug? |
@kingalca, yes, it may be. |
@SerhiyShkolyarenko we updated from 2.0.4. iirc. (So .0.4 => .0.7) |
Just an observation, as I am having this same issue. Landing on /checkout/cart after adding a product from a page that doesn't use the product widget to add it, then navigating back to the home page and trying to add a product using the product widget fixes the bug until the cookies are cleared. I suspect there is some JavaScript that isn't running correctly on the home page regarding the cookie generation. As a side note, landing on checkout/cart with no products in the cart, will not fix the bug, a product must be added from a page with (for example a category page (layout: catalog_category_view.xml)) before landing on checkout/cart. Hopefully this information is helpful. |
I can confirm this @thills03! |
Hello BeniSt , can you check is your cache disable ? Because it seems that issue comes when cache off . Thanks |
We have cache on and the issue, so disabled caching can't really be the issuer here. |
Yes, in my case you are right. If I enable cache, the minicart works as it should. Cool. Thanks! |
Welcome Brother BeniSt !!!!!!!! |
@thills03 what do you mean by words "adding a product from a page that doesn't use the product widget to add it" ? |
I mean that if you add a product to your cart from a page with a built in product list and not a product widget added in the cms through content->pages to your home page then you navigate to yoursite/checkout/cart and then navigate back to where you do have a product widget added through content->pages to your homepage and start adding more products, the cart will work fine. Until you clear your cookies. |
@BeniSt @wclansar @kingalca @thills03 I cannot reproduce the issue. Part 1. Pure 2.0.4 installation with caching enabled.
Minicart worked properly. Part 2. The same 2.0.4 with disabled cache.
Minicart worked properly, but much slower(because of disabled cache) Part 3. Upgrage to 2.0.7(enabled cache).
Minicart worked properly. Part 4. CE 2.0.7 with disabled cache.
Minicart worked properly, but much slower(because of disabled cache) What am I doing wrong? Do you have any extensions installed? Please, hint me on reproducing the issue. |
is there a known fix for this? |
If you have the problem where the minicart shows a blank white box, the solution is as @karmalis mentions. You should perform a diff on your overidden minicart.phtml template and the base version you're inheriting from (e.g. Magento/blank). Magento version updates are routinely changing functions in these files without warning. As far as the minicart not showing products you just added (always empty), we have not found the cause of this problem but as others have mentioned, enabling the Block, Page, and Layout cache seems to fix it for whatever reason. |
I have not overridden the
Edit: If I enable the cache, above problem does not occur. Strange. Tested in M2.1.1 |
Do you have all of the caches enabled or all of them disabled? I had this On Sep 6, 2016 2:59 AM, "Giel Berkers" notifications@github.com wrote:
|
When all the cached are enabled the problem does not occur. |
The commit for the fix is here: 861f596 |
If cache is disabled then this issue is happen in 2.1.x
|
The same for 2.0.10 |
@wojciechowskid I disabled the cache, but the same error happens too. |
I'm encountering the same Issue with a disabled FPC as well. While manually applying the fix commit above all works out. Is there any ETA on when this is getting into a "real version"? How do you guys apply those workarounds? I mean it's fixed in this git repro code. I don't really get that. |
Enable caching is working for me. Thanks @wclansar |
I have found this to help me. I was having a similar problem from multiple situations (customer login/logout, reordering functionality, etc.) and this seemed to fix them all. I found this online and from what I understand (and please correct me if I'm wrong) it's invalidating the minicart to force revalidation of the minicart via ko. I added this in my .phtml file right after the html of my minicart has ended.
|
This issue was fixed to me when I upgrade my PHP version from 7.0.9 to 7.0.15. |
Yes, I enable cache, the minicart works as it should. Thanks... |
My Solution for refresh Problem: You simply need to change |
Still happens on 2.1.6, how to fix this? |
I see it in 2.1.6 too. |
Joining in here, tried all the fixes mentioned in this thread, all of them. Still have my issue, which is to be precise.: Land on home page, and add to cart from products displayed from widget. So basically, first producted is added but minicart is not populated. Magento 2.1.4, Porto theme, using Varnish, Redis, all caches enabled |
…te minicart info (cherry picked from commit 861f596)
…te minicart info test fix (cherry picked from commit 9efb5ad)
Internal ticket to track issue progress: MAGETWO-70218 |
If this is being worked on, should this still be closed? |
Hello ,
Can you please help ?
Thanks
The text was updated successfully, but these errors were encountered: