Skip to content
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

Shopping Cart error in Magento 2.2.4 #15052

Closed
ritschi72 opened this issue May 8, 2018 · 10 comments
Closed

Shopping Cart error in Magento 2.2.4 #15052

ritschi72 opened this issue May 8, 2018 · 10 comments
Labels
Component: Bundled Extension Issue is caused by one of the bundled extensions Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@ritschi72
Copy link

Preconditions

Magento 2.2.4 (upgraded from Magento 2.2.3 successfully)

Steps to reproduce

Go to configurable product in Frontend and add it to Shopping Cart (e.g. 1 x T-Shirt in Size L and colour white )
In the same product, add another one (e.g. 1 x T-Shirt in Size M and colour red) to Shopping Cart

Expected result

There are two products (1 x T-Shirt in size L and colour white and 1 x T-Shirt in size M and colour red)
in Mini-Shopping Cart and normal Shopping Cart

Actual result

By adding 1 x T-Shirt (L, white) everything is ok.
But if I add a second T-Shirt (M, red) within the same product, in the shopping carts is shown 1 x T-Shirt in L, white and 2 x T-Shirts in M, red, although I only added one product each.
The strange thing is, that if I refresh the site between adding the two T-Shirts, everything is shown correctly.
That means:
Adding first T-Shirt (L, white) to cart -> ok -> refresh the product site in frontend-> adding second T-Shirt (M, red) to cart -> everything is ok.

Can somebody reproduce this error?

Thanks a lot for your help!
Best regards

Linda

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label May 8, 2018
@mattkrupnik
Copy link
Contributor

Hi,

I have this same error.

Regards
Matt

@dudzio12
Copy link
Member

dudzio12 commented May 9, 2018

I've just reproduced this error too...

@ritschi72
Copy link
Author

Any updates on that?

@keithbentrup
Copy link
Contributor

keithbentrup commented May 16, 2018

I believe this PR: amzn/amazon-payments-magento-2-plugin#227 will fix the issue. In my testing on 2.2.4, the Amazon module would always bind the submit event even when the original Magento widget that it was overriding would not, so I simply added the condition back.

Incidentally, you may also see this "Back" link issue with the installed Amazon module

@ritschi72
Copy link
Author

Thanks for your answer, I had a look at the magento2/app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js , but there is already the code as you proposed ...

@keithbentrup
Copy link
Contributor

@ritschi72 You're misunderstanding. I'm saying you should be looking at the catalog-add-to-cart.js in the Amazon module included in 2.2.4.

@ritschi72
Copy link
Author

Thanks a lot for your quick response, I had a look at the catalog-add-to-cart.js in the Amazon module and made the changes and it works! Thanks a lot!

@keithbentrup
Copy link
Contributor

keithbentrup commented May 17, 2018

@ritschi72 Please leave this issue open until it's fully resolved, so that others can more easily find it (the default filter excludes closed), and that it's handled by the Magento team.

@joebusby
Copy link

joebusby commented Jun 2, 2018

I made the code changes, recompiled / cleared all caches and the problem persisted. Eventually I changed from production mode to developer mode and back to production mode and that did the trick. Thanks for posting a solution, it was a big help.

@magento-engcom-team
Copy link
Contributor

Hi @ritschi72
Closing this issue, as it relates to a bundled extension and not core itself. Please refer to links in the comments above for more references.

@magento-engcom-team magento-engcom-team added the Component: Bundled Extension Issue is caused by one of the bundled extensions label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bundled Extension Issue is caused by one of the bundled extensions Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

6 participants