-
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
Quantity change of Cart-Item clears Cart #22137
Comments
Hi @akimo. 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. @akimo do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.3.1 instance |
Hi @akimo. Thank you for your request. I'm working on Magento 2.3.1 instance for you |
Hi @akimo, here is your Magento instance. |
@magento-engcom-team Yes, i can confirm that the bug is reproducible on the vanilla Magento instance |
Reason: The "return" key invokes the submit action of the Form. The "submit" action is bound to the Button "Clear Shopping Cart". |
Hi @shikhamis11. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @shikhamis11, here is your Magento instance. |
@akimo I am not able to reproduce this issue based on provided steps on current magento 2.3-develop instance let me know if it requires any additional step to reproduce the issue |
This issue is new in 2.3.1 and not present in 2.3.0 (I don't know which version "2.3-develop" is based on). You need to press the return key while the cursor is still in the quantity field. |
I have exactly the same issue! I installed a fresh copy of Magento 2.3.1 with sample data just to test and like you mentioned, the cart empties after hitting the "ENTER" key. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @Mobecls. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @Mobecls, here is your Magento instance. |
@akimo - wasn't able to reproduce it neither on 2.3-develop, nor on 2.3.1 latest official release.
The shopping cart had 5pcs (no products were flushed from a cart)... |
Hi, this is weird. Is this 2.3.1? I have a website upgraded from 2.2.6 to 2.3.1 that does that. So I installed a fresh copy of the magento 2.3.1 with sample data and it also does the same. Am I able to message someone with the the cpanel and admin credentials to see? |
@chichitsai0517 please, see if you can reproduce it here - https://i-22137-2-3-develop.instances.magento-community.engineering it's still up and running. |
Hi Mobecls, I tried on yours and it does not do the same as mine. I don't understand because my test website has no extensions and no themes. It is the original 2.3.1 with sample data. |
@chichitsai0517 - that's our latest environment, so if it is not getting reproduced there - it's either an environment issue. If you don't have any additional info on how to reproduce it here - please, close the issue. |
Do you think this is a PHP Version issue? I just checked on my hosting account and they only have PHP 7.1.27 or 7.2.16. |
I can very easily reproduce this as well on a vanilla Magento 2.3.1 installed using composer. This isn't an environment issue. |
If you still have this issue you have to know that on a html form the first element witch has type submit on it will be called when "enter" is hit. So in magento the first element on the form with type submit is the clear button. To solve this issue you can modify the order of the buttons in Magento_Checkout/templates/cart/form.phtml ( put update button before clear button) |
Preconditions (*)
Upgraded from 2.3.0 - version without this issue
Steps to reproduce (*)
This is reproducible, also when removing client storage and cookies. As Guest or Logged in Customer.
Expected result (*)
The cart-page should be reloaded with the modified quantities of items.
Actual result (*)
Your Cart is empty and a Message is displayed, which tells you that you don't have any items in your cart.
The text was updated successfully, but these errors were encountered: