-
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
Minicart no update with custom add to cart #3287
Comments
@quienti Thank you for your question. <action name="test/cart/add">
<section name="cart"/>
</action> This would reload customer's minicart on each |
Whoaa! |
@ishakhsuvarov - sections.xml will only work for Post request ? As in GET request it is not working. any solution for this. |
@pankaj-pareek It is designed only to be used on a state-changing requests, which |
@pankaj-pareek |
Thanks for clarification. I will make changes in the flow to add products programmatically using post request. |
Magetno 2.2.2 Xml Session doesn't work e.g is there a bug that it doesn't reload with sections.xml? |
@lano-vargas section should be enough if you access this action with post/put/delete http method. |
@orlangur Thank you. I am injecting the
Magento doesn't happen to have a method to reload customer data? E.G |
[performance] performance improvements ### Tasks: * MAGETWO-91388: Enable caching of AJAX requests on Varnish/Fastly * MAGETWO-94671: Product Export fails * MAGETWO-95412: [2.3] Add missed dependencies for catalogsearch_fulltext indexer
Hi!
I created my custom module for add a product to my cart, if I use my controller with this form :
<form action="http://*********/test/cart/add/uenc/*******/product/471/" method="post" id="product_addtocart_form" novalidate="novalidate">
My product is in my cart, but minicart is not update, and change page not resolve this problem.
But, if I change my form link with magento controller like this :
<form action="http://*********/checkout/cart/add/uenc/*******/product/471/" method="post" id="product_addtocart_form" novalidate="novalidate">
It's work fine
In my controller, I have just change this
namespace Magento\Checkout\Controller\Cart
to this
namespace Test\Test\Controller\Cart;
The text was updated successfully, but these errors were encountered: