You need to choose options for your item even if option is chosen - Magento 2
-
25-01-2021 - |
Question
I get this error on all configurable products "You need to choose options for your item" when i try to add a product to cart even if size and color option are chosen
Magento 2.2.5
This error is only on product detail, in product list add to cart works fine
How can i degub?
Solution
You need to check what parameters we are sending in post data.when we select color and size so it select their option id and these option id sent in post data.So you need to check Post data in addProduct function.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange