-
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
[CE 2.1] Ajax cart doesn't work #5144
Comments
@asemenenko Can you make sure this one gets tested/verified? |
Today CE 2.1 release, and it have the same issue. |
Having same issue with 2.1 CE |
@asemenenko @pboisvert @stevekem , I found the issue in file: Here the fix:
Change to
|
I have the same issue with magento 2.1. @minhluan259 thanks for fix, but does somebody know about the status of this issue? |
@EugeneAinstainer @asemenenko @minhluan259 vendor\magento\module-catalog\view\frontend\templates\product\view\addtocart.phtml You simply need to change
to
The initial value in the old code was overridden by the code in the inline script. However if you actually look at the widget itself you will see nothing happens if bind is set to false. NOTHING it's like the widget doesn't exist. How this was missed is just beyond comprehension. Unbelievable Hopefully the above fix is a much better one than simply adding in the old code. Cheers |
@Zaylril |
@minhluan259 yes you are correct because the validation is not called. So this needs to be factored into the addToCart Widget. So a quick 2 liner update to the widget, need to modify the bindSubmit function
|
It is bug sirs, there is an Ajax issue in M2.1, when adding an item to the cart "Adding.." sign is not showing in the box of add to cart |
@Zaylril Hi, May i know where this _bindSubmit: function() { code locate? Thanks :D Never mind, i found it : ./vendor/magento/module-catalog/view/frontend/web/js/catalog-add-to-cart.js
After that, do bin/magento setup:static-content:deploy and clean web browser cache. Please help on this #5426 (comment) :( Update : Mini cart empty issue fixed with #5003 |
The issue was fixed, Why has it still not been updated in magento 2.1.4? |
Hi @minhluan259. |
@minhluan259, thank you for your report. |
I installed CE 2.1 with sample data.
In product page, home page, top category (landing page) : Ajax cart doesn't work.
Ajax cart only work in sub category.
The text was updated successfully, but these errors were encountered: