• Resolved jaapv66

    (@jaapv66)


    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?

    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?

    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

    (@shameemreza)

    Hi @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 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. 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:

    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

    (@shameemreza)

    Hi @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.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.