Title: Import csv, replace image when not found
Last modified: June 25, 2024

---

# Import csv, replace image when not found

 *  Resolved [jaapv66](https://wordpress.org/support/users/jaapv66/)
 * (@jaapv66)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/import-csv-replace-image-when-not-found/)
 * Using basic woocommerce csv import, I get an import error when the product-image
   is not found. What I’d want is that not-found images are replaced by a default
   image and that all products will show up in the shop. Either with the proper 
   product-image or if that can’t be found, with the default image. It’s a very 
   basic shop with thousands of products.
 * F.i. when I try to import this csv row:
 * _00001,simple,GRO12345,”V-Neck T-Shirt”,1,1,visible,”Bla bla”,”bla blabla bla
   bla bla blablabla bla”,taxable,Testcategory,[https://groka.biz/wp-content/uploads/2024/05/GRO12345.jpg](https://groka.biz/wp-content/uploads/2024/05/GRO12345.jpg)_
 * the product is not imported. I want it to be imported using a different image
   url, like
 * _00001,simple,GRO12345,”V-Neck T-Shirt”,1,1,visible,”Bla bla”,”bla blabla bla
   bla bla blablabla bla”,taxable,Testcategory,[https://groka.biz/wp-content/uploads/2024/05/defaultimage.jpg](https://groka.biz/wp-content/uploads/2024/05/defaultimage.jpg)_
 * Is there a plugin or a function that will do this trick? Thx

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/import-csv-replace-image-when-not-found/#post-17848302)
 * Hi [@jaapv66](https://wordpress.org/support/users/jaapv66/)
 * Unfortunately, WooCommerce’s basic CSV importer has no built-in feature to replace
   not-found images with a default image. However, you can achieve this using a 
   custom code or a third-party plugin.
 * Like the [Import Export Suite for WooCommerce](https://woocommerce.com/products/import-export-suite-for-woocommerce/)
   plugin, it allows setting a default image when the product image URL is not found
   during import.
 * Please note that, here at WooCommerce.com, we’ve got you covered with a a 30-
   day [**money-back guarantee**](https://woocommerce.com/refund-policy/#requesting-a-refund).
   Feel free to cancel if the extension doesn’t meet your expectations, and we’ll
   happily refund your money.
 * If you prefer custom code, you can use the `woocommerce_product_import_pre_insert_product_object`
   filter hook. This hook allows you to modify the product data before it is inserted.
   For example, you can check if the image URL is accessible and, if not, replace
   it with your default image URL.
 * If you need, you can also seek help from the following:
    - A local web developer
    - [Codeable.io](https://woocommerce.com/codeable/)
    - [WooExperts](https://partners.woocommerce.com/English/marketplace/)
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get the job done.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/import-csv-replace-image-when-not-found/#post-17873317)
 * Hi [@jaapv66](https://wordpress.org/support/users/jaapv66/)
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, you were able to find a solution to your problem!
 * If you have further questions, please feel free to [open a new topic](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Import csv, replace image when not found’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/import-csv-replace-image-when-not-found/#post-17873317)
 * Status: resolved