Magento2: Shopping Cart error in Magento 2.2.4

Created on 8 May 2018  路  10Comments  路  Source: magento/magento2

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

Bundled Extension Format is valid

All 10 comments

Hi,

I have this same error.

Regards
Matt

I've just reproduced this error too...

Any updates on that?

I believe this PR: https://github.com/amzn/amazon-payments-magento-2-plugin/pull/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

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 ...

@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.

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!

@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.

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.

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.

Was this page helpful?
0 / 5 - 0 ratings