3

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 ?

6

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

0

The link to the fix is : https://github.com/ErikPel/magento2/blob/4f1848a2351ebdd1857fb9881be2cc8d2f63c7b1/app/code/Magento/Catalog/Model/Product/Option/Type/Select.php][1].

Apologies I can't comment yet as repulation is less than 50. Anyways just create a directory structure as YourMagentoDirectory/app/code/Magento/Catalog/Model/Product/Option/Type/ and paste the above Select.php file to override the 2.3.0 version file.

  • thanks but its better to upgrade to magento 2.3.1 – Ashar Riaz May 30 at 9:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.