- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2015
01:21 AM
12-23-2015
01:21 AM
Hi !
I need a little help
I have create a custom module and with this module, I add a product to my cart with no problem.
But, impossible to update my minicart in header
I have my product to my cart, but my minicart is always empty...
Anybody have a idea to help me ?
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2016
09:57 AM
02-25-2016
09:57 AM
Find myself
10 REPLIES 10
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2015
04:25 AM
12-23-2015
04:25 AM
Re: Update Minicart after add product in cart programmatically
did you customised the minicart ?
_______________________________________________
An Expert in Anything Was Once a Beginner
An Expert in Anything Was Once a Beginner
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2015
06:22 AM
12-23-2015
06:22 AM
Re: Update Minicart after add product in cart programmatically
No, this is the default minicart
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2016
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2016
01:07 AM
03-02-2016
01:07 AM
Re: Update Minicart after add product in cart programmatically
Hi,
Have you found the issue with this, i have the same problem
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016
01:14 PM
03-03-2016
01:14 PM
Re: Update Minicart after add product in cart programmatically
can you please share how you fixed this?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2016
12:32 AM
03-04-2016
12:32 AM
Re: Update Minicart after add product in cart programmatically
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2016
06:33 AM
05-18-2016
06:33 AM
Re: Update Minicart after add product in cart programmatically
Hi Could you please let me know how to add product to cart programatically?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2018
08:10 AM
02-16-2018
08:10 AM
Re: Update Minicart after add product in cart programmatically
what did you find?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2018
11:38 PM
02-18-2018
11:38 PM
Re: Update Minicart after add product in cart programmatically
There are two day to that first is js
require(['jquery','Magento_Customer/js/customer-data'], function ($,customerData) { var sections = ['cart']; customerData.invalidate(sections); customerData.reload(sections, true); });
Second this using the section.xml
NameSpace/ModuleName/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="frontname/controller/action"> <section name="cart"/> </action> </config>
Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti
Problem solved? Click Accept as Solution!"
Qaisar Satti