Skip to content
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

Mini Cart return no items #6265

Closed
sstar297 opened this issue Aug 22, 2016 · 25 comments
Closed

Mini Cart return no items #6265

sstar297 opened this issue Aug 22, 2016 · 25 comments
Labels
bug report Component: Catalog Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@sstar297
Copy link

I have a bug with magento 2.1 but i think it is from base. when i add to cart from product detail: ajax is loaded and everything is good, mini cart show 1 item but the bug appear when i add to cart from homepage or extension have button not ajax. minicart does not update and return "No items"

Now, miniCart have a trigger call function load minicart after add to cart by ajax so if i code a button add to cart not run ajax but product is added, no wrong. the trigger is not called so minicart return wrong.

Can you help me to fix it?

@veloraven
Copy link
Contributor

@Sonnh290791 thank you for your report.
Please, format this issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.

@soragan
Copy link

soragan commented Aug 22, 2016

  1. Magento CE 2.1.0 without sample data installed, Multiple Website/Store on single Magento Instance.
  2. Installation on a subfolder
  3. Running 2.4.6 CentOS 7, MySQL 5.5.5-10.1.14-MariaDB Centos 7, PHP 5.6.24
  4. Tested on multiple fresh installation, problem persist

To reproduce problem:

  1. Click on Category in navigation
  2. Click on any product to go into product details.
  3. Click on "Add to Cart" button
  4. The message "You added XXXXX to your shopping cart." appears on top in green colour
  5. Top right hand Cart icon shows shopping cart is empty.

There is no problem for clicking on "Add to Cart" button in product list. In fact, after above step, when we click the button in product list, the Shopping Cart will shows all products added previously.

@slopukhov
Copy link
Contributor

@soragan thank you for your feedback.

I can't reproduce this issue.
I have fresh installation with one product and one category.
I use these steps:

  1. Click on Category in navigation
  2. Click on any product to go into product details.
  3. Click on "Add to Cart" button
  4. The message "You added XXXXX to your shopping cart." appears on top in green colour
  5. Top right hand Cart icon shows shopping cart with this product (these data are loaded after a short delay).

Can you check this issue on 2.1.last version?
What browser do you use?

@soragan
Copy link

soragan commented Aug 23, 2016

i am on 2.1.0 downloaded from magento.com, does this make any different? tried both safari and chrome on macbook.

i have 13 categories (only 4 are filled), 43 products, 3 websites with each 1 store, 1 store view.

additionally, whenever i browse to other pages, the green message persisted from page to page.

@slopukhov
Copy link
Contributor

slopukhov commented Aug 23, 2016

Hi @soragan

Thank you for reporting the issue. It is reported as MAGETWO-57430 internally.

@slopukhov slopukhov added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed Progress: needs update labels Aug 23, 2016
@soragan
Copy link

soragan commented Aug 23, 2016

thanks for the bug confirmation, hopefully this is fixed soon as it's the only thing stopping us from pushing 2.1.0 to replace 1.9

@developer-lindner
Copy link

Update to 2.1.1. and report back or close ticket otherwise.

@soragan
Copy link

soragan commented Aug 31, 2016

problem still exist in 2.1.1

perform update from 2.1.0 using compose update and recompile magento. tested on both safari and chrome, on os x 10.11.6

@deepthit57
Copy link

I face the same issue. I also have the latest version 2.1.1 and did a fresh installation.

@soragan
Copy link

soragan commented Sep 17, 2016

multiple website installation with different URLs?

@slopukhov slopukhov removed their assignment Sep 30, 2016
@soragan
Copy link

soragan commented Oct 13, 2016

problem still exist in latest 2.1.2, minicart is not updated after adding product using the button in product details page.

@RishabhRkRai
Copy link

RishabhRkRai commented Oct 14, 2016

I face the same issue. If i added the product from product page, mini cart shows no item in cart but if i added product from category page mini cart shown product with previously added product items.
I use Magento 2.1.1.
Is there any fix for that??

@PieterCappelle
Copy link
Contributor

Bug still exists in 2.1.2.

@TwassistantKeith
Copy link

I have this problem as well. Magento 2.1.2.

@anisagrebi
Copy link

i have the same issu Magento ver. 2.1.2
the mini cart doesnt refresh
please is there any fix for this???

@lietzmk
Copy link

lietzmk commented Nov 15, 2016

You can disable the mini cart completely until this is fixed.

Stores > Configuration > Sales > Checkout > Shopping Cart Sidebar and change "Display Shopping Cart Sidebar" to No

@steverobbins
Copy link
Contributor

steverobbins commented Jan 27, 2017

Still seeing this issue in 2.1.3. It seems to be that the mage-cache-storage local storage isn't getting set correctly.

"After Adding a Product Redirect to Shopping Cart" set to "No", using Safari on Mac.

@josefbehr
Copy link
Contributor

Still experiencing this in 2.1.5

@scommercemage
Copy link

Any idea when this is going to be fixed?

@FloWord
Copy link

FloWord commented Mar 16, 2017

I have the same issu in magento version 2.1.2, the mini cart doesnt refresh correctly. Have anybody a fix or workaround for that problem?

@mohsinahmed22
Copy link

Facing this issue any fix on this? Anyone?

@FloWord
Copy link

FloWord commented Mar 17, 2017

My Solution for refresh Problem:
#5377

You simply need to change
"bindSubmit": false
to
"bindSubmit": true

@rafaelstz
Copy link
Member

This issue is fixed to me when I upgrade my PHP version from 7.0.9 to 7.0.15.

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 12, 2017
@magento-engcom-team
Copy link
Contributor

@Sonnh290791, thank you for your report.
The issue is already fixed in develop branch, 2.2.0, 2.1.9

@magento-engcom-team magento-engcom-team added Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Oct 12, 2017
@ghost
Copy link

ghost commented Feb 15, 2018

Same problem in magento 2.2.2
Fixed in 2.2x is not true.

If i add a product from the homepage or a category it is the same.
Also this green bar.

@FloWord

You simply need to change
"bindSubmit": false
to
"bindSubmit": true__

Is not working because this code is not in the file of magento 2.2.2 version.
Is there a workaround or solution for this?
minicart issues

magento-engcom-team pushed a commit that referenced this issue Oct 22, 2020
[Arrows] MC-34292: AdminCreateUserRoleWithReportsActionGroup needs to be refactored to be based in CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests