Magento CE 2.1.1 without sample data is installed
PHP: 7
MySql: 5.7
1) Added test category and then test product in it.
2) Browse test product and add it to cart.
Shop minicart shows items, checkout button is working
1) Minicart at top right corner is not showing the items. Also, doesn't show cart subtotal. It only shows total items in cart with checkout button and "View & Edit Cart" link.
2) Checkout button is also not working. Nothing happens when I click it.
Please refer this screenshot http://prnt.sc/db5yzm.
@deepak-netwin thank you for your feedback.
Please, format this issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.
@veloraven I've edited the description above. Please let me know what could be the issue?
@veloraven Issue is that Magento2 is easiest way to ruin your customer's business. I haven't slept for more than 2 weeks since launch and all issues are most basic functionalities that one shopping cart should have. Magento team should be ashamed since we are eating what you cooked. And you still even have a nerv to whine about issue formating?
Instead you should have recognized one of most famous unfixed issue in your swamp software.
@deepak-netwin For your issue, do the following until anyone fix this mess up (NEVER).
Go to this file:
vendor/magento/module-customer/view/frontend/web/js/customer-data.js
Line 191 should look like:
privateContent = $.cookieStorage.get('private_content_version');
Add this.reload([], false); just below that line.
That should refresh local storage on every request, but at least it will work.
@tomasinchoo
Hey Tomas,
Thanks for your reply. But I can see my js has already than code. I've added the line this.reload([], false); below it however minicart doesn't show cart items.
Can you please make sure the js file you mentioned above? It is from customer module.
@deepak-netwin Make sure that you actually load modified version of file.
Maybe you still have it deployed in pub/static, or browser cache.
Try to alert something from that file.
@tomasinchoo Yes, for now I've directly edited file in pub/static only. But still its not showing cart items http://prntscr.com/dbm2gy
@deepak-netwin Can you at least go to checkout?
@tomasinchoo No, checkout button also not working.
For now, I've disabled cart dropdown from backend. So when I click on minicart icon its redirecting to checkout page.
This is an issue for me as well. It's a _real_ pain.
@deepak-netwin on your screenshot I see customized magento. Are you able to reproduce this issue on absolutely clean 2.1.2 installation?
I tried fresh Magento 2.1.2 installation and it worked OK.
I am having the same issue, the only thing that I did to the minicart was move it via layout xml and style it with css, no overwrites or anything that would cause the hiding of products. They aren't hidden ,they just aren't loaded.
It would be interesting to see if deepak has moved the minicart via layout xml.
@SerhiyShkolyarenko , @deepak-netwin's on screenshot is really customized using layout.
It's moved to containter "header.panel" after top.links i assume.
Default configuration works OK.
Checked on v. 2.1.4
And i also suppose that somebody will fix an issue for himself.
But how do you think, should the magento2 customization should be such painful ?
Or it shouldn't be customized?
As i remember Magento company says something about more programming speed and flexibility.
Do you job sir!
Any updates in this?? I am also facing the same issue(item list and the subtotal template not loading) in my custom theme. But everything loading fine in blank and luma theme. Please update if anyone find any fix for this.
@deepak-netwin , Is your issue solved?
If no, can you post a checkout default layout file from your theme.
@deepak-netwin Please check the below default.xml file content.
<?xml version="1.0"?>
<!--
/**
* Copyright 脗漏 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="checkout_cart_sidebar_item_renderers"/>
<update handle="checkout_cart_sidebar_item_price_renderers"/>
<update handle="checkout_cart_sidebar_total_renderers"/>
<body>
<referenceBlock name="head.components">
<block class="Magento\Framework\View\Element\Js\Components" name="checkout_page_head_components" template="Magento_Checkout::js/components.phtml"/>
</referenceBlock>
<referenceContainer name="header-wrapper">
<block class="Magento\Checkout\Block\Cart\Sidebar" name="minicart" as="minicart" after="navigation.sections" template="cart/minicart.phtml">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="types" xsi:type="array"/>
<item name="components" xsi:type="array">
<item name="minicart_content" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/minicart</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/content</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal.container" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">subtotalContainer</item>
</item>
<item name="children" xsi:type="array">
<item name="subtotal" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="template" xsi:type="string">Magento_Checkout/minicart/subtotal</item>
</item>
</item>
</item>
</item>
<item name="extra_info" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">extraInfo</item>
</item>
</item>
<item name="promotion" xsi:type="array">
<item name="component" xsi:type="string">uiComponent</item>
<item name="config" xsi:type="array">
<item name="displayArea" xsi:type="string">promotion</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
<container name="minicart.addons" label="Mini-cart promotion block"/>
</block>
</referenceContainer>
</body>
</page>
Try layout like from below as an example. Do not edit original default.xml in magento/module-checkout.
If you did it already, then restore it and use default.xml in your theme.
Good Luck ))
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="minicart" destination="CONTAINER NAME" after="BLOCK NAME"/>
</body>
</page>
@deepak-netwin thank you for your report.
We were not able to reproduce this issue by following the steps you provided. Please provide more details regarding your environment, or try to reproduce this issue on a clean installation or latest release.
@deepak-netwin, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.
Yeah everything always works for the Magento team. Be ashamed
This bug is still there in Magento 2.2.4
I have the same problem but only when using Chrome (Magento 2.2.2), I've tried everything, please, has someone fixed it already?
The solution is to remove Magento_Checkout-template and web files from your custom theme, enable all caches and clean them. After that we were able to operate with a fully working minicart in Magento 2.2.4
On 2.3.0 I came across this issue via google
Not visible individually items were missing from minicart
It is fixed with this commit https://github.com/magento/magento2/commit/341abe5bf09a5d7a1a3578121c38fe56d96474b6
Hopefully this will save someone a couple of hours debugging
Most helpful comment
@veloraven Issue is that Magento2 is easiest way to ruin your customer's business. I haven't slept for more than 2 weeks since launch and all issues are most basic functionalities that one shopping cart should have. Magento team should be ashamed since we are eating what you cooked. And you still even have a nerv to whine about issue formating?
Instead you should have recognized one of most famous unfixed issue in your swamp software.
@deepak-netwin For your issue, do the following until anyone fix this mess up (NEVER).
Go to this file:
vendor/magento/module-customer/view/frontend/web/js/customer-data.js
Line 191 should look like:
privateContent = $.cookieStorage.get('private_content_version');
Add this.reload([], false); just below that line.
That should refresh local storage on every request, but at least it will work.