I am trying to import the custom options with price 0 via backend. But it failed to save the price value with 0 and it throws an error like below.
Notice: Undefined offset: 6336 in /var/www/html/xx/vendor/magento/module-catalog-import-export/Model/Import/Product/Option.php on line 1474
By referring this link https://github.com/magento/magento2/commit/4c76f9a441a564ade8e904cd99eed0827162ff9c
I have replaced the code as shown in the below image.
Then the option is imported correctly.
Can you tell me is this the right way to edit the core file?
By doing this, will it cause any issue in custom options?
Please guide me in the right way. Thanks in advance.