Magento 2.3.0 – Fix Customizable Options Error: Required Option Not Entered

customizable-optionserrormagento2.3.0

On Magento 2.3.0 i created simple product
Then i added 1 customizable option with checkbox not required.
After saving product when i click on Add to cart button without selecting checkbox (Because it is not required field) it shows me this error

The product's required option(s) weren't entered. Make sure the options are entered and try again.

enter image description here

I searched for this error and i found that someone raised this issue before on github

https://github.com/magento/magento2/issues/19267

Definitely this is critical bug on magento 2.3.0 version and still not fixed by them.
We updated our store from 2.2 to 2.3 on dev server for testing.After facing this error it seems like its not good solution to update to magento 2.3 version. Can anyone provide me quick fix of this error ?

Best Answer

There is a fix submitted for 2.3.1, but you could manually apply it to 2.3.0.

Depending on how you installed Magento, the path could also be

vendor/magento/module-catalog/Model/Product/Option/Type/Select.php

https://github.com/magento/magento2/pull/19272/files/55d1e26d2e174d7e10823821bbdaa7c081fceae5

Related Topic