• Resolved Ali

    (@golali)


    hi! i’m using woocommerce import product feature. my product images are labled as “C385712.jpg” and similar naming algorithm. in my csv I only put file name+extention e.g. C385712.jpg
    *
    I have uploaded images to upload directory in the folder of this month “…uploads/2020/07”
    *
    when I import products I get the message “Unable to use image”. I’ve read many forums but couldn’t find a working solution.
    *
    I have tried disabling all plugins and switching to 2020 theme, also my woocommerce is latest version
    *
    Any suggestions on how to fix this?

    thank you

    • This topic was modified 4 years, 4 months ago by Ali.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ali

    (@golali)

    I’m using latest version woocommerce

    Plugin Contributor Niels Lange

    (@nielslange)

    Hello @golali,

    It’s possible that you’re unable to use the images as the destination folder is the same as the origin folder. I suggest that you add all images to a separate folder, e.g. /uploads/import, and then adjust your CSV file accordingly.

    Please let us know if that works as expected.

    Thread Starter Ali

    (@golali)

    Hi @nielslange
    Thank you for responding, I tried your suggestion and here’s the result:
    *
    first I only put image names in csv and the .jpg; I got the “Unable to use image “C10552203.jpg” error.
    *
    then I put the full path of image and the products imported but there was no image.
    *
    I uploaded images using cpanel.

    any other suggestions?

    Hey @golali !

    Based on the documentation for CSV importing you will need to either use the full URL for the images if you have not already uploaded them to your media library. However, if they have been uploaded to your media library, then you can use the image name. Here is what it says in the documentation:


    – Images need to be pre-uploaded or available online to import to your store.
    – External URLs are supported and imported into the Media Library if used.
    – You can define the filename if the image already exists in the Media Library.

    So just to clarify, if images are in the media library you can use image file names such as “test.jpg”. If not, then you need to use the full URL and the image needs to be available to be seen. For example: https://you-domain.com/wp-contents/uploads/test.jpg.

    Thread Starter Ali

    (@golali)

    thank you @arcangelini
    you are absolutely correct, but since I’m having issues with woocommerce I tried every single possibility.
    Anyways the main issue is that images are not loaded (assigned) to the products and any help is highly appreciated.

    Regards

    Hey @golali !

    OK lets see what could be happening : )

    – Can you clarify if the images have been uploaded to the media library?
    – Can you share a link to one of the images you are trying to add to a product?
    – Can you also share a sample of your CSV so I can test this on my site. To share files I generally suggest using https://www.file.io/ – you can upload the file then share the URL they give you. That will allow me to download it on my end.Or dropbox/Google drive work too.

    Thread Starter Ali

    (@golali)

    @arcangelini Thank you for the quick response, I’m quite excited to see you dive into this.
    so I was typing a big reply here explaining everything and suddenly an idea popped into my mind and here’s what happened:
    *
    I have used cpanel to upload images to the “/uploads/import” folder as recommended by @nielslange; and I have also uploaded to “uploads/2020/07” as recommended by woocommerce documentation, and neither has worked. One thing to consider is that simply uploading an image to these directories through cpanel won’t add it to wordpress media library! so I tried to add images through wordpress library and Voila! it worked
    *
    I had never read that the images should be uploaded through wordpress library, so is this the solution?
    *
    btw I’m glad I realized what I’m doing wrong and responding to your questions lead me to the solution, so big thanks!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Unable to use image” csv import’ is closed to new replies.