-
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
Cart is emptied when enter is pressed after changing product quantity #21499
Comments
Hi @wojtekn. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @wojtekn do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @wojtekn. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @wojtekn, here is your Magento instance. |
I reproduced the issue on provided instance. |
✅ Confirmed by @rogyar Issue Available: @rogyar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@magento-engcom-team give me 2.2-develop instance |
Hi @lfluvisotto. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @lfluvisotto, here is your Magento instance. |
@lfluvisotto it's still better to adjust their position to have primary button first in the DOM, also, if issue can be clearly fixed by using better HTML, we don't need to add JS hacks. |
Hi @lfluvisotto. Thank you for working on this issue.
|
It isn't a JS hack it's a JS fix, since magento 1 and now with magento 2 that button to clear/empty the cart comes before the update cart button. For example: your fix is about changing the position of buttons, but if the user want to keep in their layout/template without CSS hack, the clear/empty cart button button before update cart button, your fix it's going to fail. |
Hi @magento-engcom-team. Thank you for working on this issue.
|
Hi @wojtekn. Thank you for your report. The fix will be available with the upcoming 2.3.2 release. |
Hi @wojtekn. Thank you for your report.
The fix will be available with the upcoming 2.2.9 release. |
Hi @wojtekn. Thank you for your report. The fix will be available with the upcoming 2.3.4 release. |
Preconditions
Steps to reproduce
jQuery("#empty_cart_button").show();
Expected result
Actual result
This happens because there are two submit buttons in the cart form, and when enter is pressed, the first one is executed. First one is "Clear Shopping Cart", so cart is cleared instead of updated. The simplest fix is to change order of those elements in source code.
The text was updated successfully, but these errors were encountered: