cancel
Showing results for 
Search instead for 
Did you mean: 

Cart count not updating in every page except cart page. magento 2 ?

Cart count not updating in every page except cart page. magento 2 ?

Hi guys,

                 Cart count is not updating in every page except cart page. i don't why. Can anyone guide me ?

4 REPLIES 4

Re: Cart count not updating in every page except cart page. magento 2 ?

Hi @bharath553,

 

Simply create a file using following code inside your extension folder.
app\code\Vendor\Extension\etc\frontend\section.xml


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Customer:etc/sections.xsd">
<action name="extension/controller/action">
<section name="cart"/>
</action>
</config> 


For more information click here

Prema M

Re: Cart count not updating in every page except cart page. magento 2 ?

once the values are updated in the cart did u click the update cart button which saves the updated item in the session

Re: Cart count not updating in every page except cart page. magento 2 ?

When am trying to add product to the cart from category page. The product is addiing but i could not see number on cart logo . why it not updating ?

Re: Cart count not updating in every page except cart page. magento 2 ?

when ever i open cart page its showing perfect . But remaining pages its not . why ?