I have added custom product option value to below interface ProductCustomOptionValuesInterface.php
and Value.php
model file.
File path: magento2/vendor/magento/module-catalog/Api/Data/ProductCustomOptionValuesInterface.php
File path:
magento2/vendor/magento/module-catalog/Model/Product/Option/Value.php
But how to override above vendor file code to custom module.
Any help would be appreciated. Thanks!
Best Answer
Magento 2 does not allow us to override the interfaces.
You can use Extension attributes for these things you can get help from online docs how to create Extension attributes in Magento 2 for interfaces.