I am trying to import the custom options with price 0 via backend. But it failed to save the price value with 0. Throws 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 refering the link https://github.com/magento/magento2/commit/4c76f9a441a564ade8e904cd99eed0827162ff9c

I have replace the code as shown in below image enter image description here

Then the option is imported correctly.

Can you tell me is this a write way to edit core file ? By doing this, will cause issue in cusom options, Please guide me in a right way.

Thanks in advance

  • id recommend u take a look to line 6335 and 6336 as that is were the issue lies – Dava Gordon Mar 15 at 9:27

Your Answer

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

Browse other questions tagged or ask your own question.