-
Notifications
You must be signed in to change notification settings - Fork 246
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
Unable to add configurable product to cart on any non-default store view #3264
Conversation
@magento give me test instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento instance for you. |
Hi @shikhamis11, here is your Magento Instance: https://63c1672e2d16772535726f23c083e6e9.instances.magento-community.engineering |
@magento run all tests |
@magento run all tests |
@magento give me test instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento instance for you. |
Hi @shikhamis11, here is your Magento Instance: https://63c1672e2d16772535726f23c083e6e9.instances.magento-community.engineering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @shikhamis11. Thank you for your contribution.
The solution provided is not acceptable: due to these changes the $scopeId parameter is always ignored making it impossible to check the QTY for a non-current website.
I would recommend to research commit 1cc26fa instead. More likely reverting it is a preferable way.
As another solution, we might pass websiteId
instead of storeId
in https://github.com/magento/magento2/blob/45ff6359d82a761562aa4a56782e1c262ab8bb33/app/code/Magento/ConfigurableProductGraphQl/Model/Cart/BuyRequest/SuperAttributeDataProvider.php#L96
hi @novikor , |
@shikhamis11 you are right, more likely getting a current website will cover all frontend and GraphQL usage cases, but As I can see, the plugin affected expects to get Looks like it should be resolved on |
Thanks @shikhamis11 . Please add api-functional test coverage for this fix. |
thanks @novikor |
Description (*)
Note: Simple Products work across website/store code, this bug is specific to configurable products
PWA Repro:
URL - https://integration-5ojmyuq-jnz3dtiuj77ca.us-4.magentosite.cloud/montana-wind-jacket.html
Steps -
Expected - Product should get added.
Actual - User gets error "Could not add item to cart. Please check required options and try again."
GQL Repro:
// Query
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)