0

Running Magento 2.3.2 on PHP 7.2

CSV being uploaded has one image for base_image, small_image, thumbnail_image, swatch_image, additional_images.

When products are imported, product images are getting duplicated both in the backend and on the front end as follows.

BACKEND

enter image description here

FRONTEND

enter image description here

I found a possible solution at github https://github.com/magento/magento2/pull/21855

And used this file (there are more than 3000 lines of code, too long to post here)

I replaced the product.php file at

/vendor/magento/module-catalog-import-export/Model/Import

with the file mentioned above

But when I try and import I get the following error.

Warning: hash_file(/home/xyz/abc/pub/media/catalog/product/v/v/vvg.jpg): failed to open stream: No such file or directory in /home/xyz/abc/vendor/magento/module-catalog-import-export/Model/Import/Product.php on line 1778

How can I fix this issue of image duplication on import.

  • When you import product select option insert/update product ? – Vishal Baraiya Aug 28 at 15:59
  • Using option Add/Update – user2240778 Aug 28 at 16:02

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.