I am working on a project in which we have upgraded from Magento2.1.8 to Magento2.2.0.

Customization Options were working fine and now on Magento2.2.0 we are facing an issue.

For example: we have 2 options

  • a
  • b

We have 3 option values for each option

  • a -- a1 -- a2 -- a3
  • b -- b1 -- b2 -- b3

when we edit product, if we delete a2 or a3 all options of B will be wiped out.

While it was working fine on Magento2.1.8.

Any clue or guideline to fix this.

Thanks in advance


You need to change app/code/Magento/Catalog/Model/Product/Option/Value.phpor vendor/magento/module-catalog/Model/Product/Option/Value.php file at around line 211.

Just remove or comment $this->delete(); inside saveValues() function and it will work properly. Hope it helps you thanks

  • I haven't try that and I think in this way, when we will be going to delete it will not work ? am i right ? Feb 5 '18 at 10:32

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.