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?

Was it helpful?

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
scroll top