Viewing 13 replies - 1 through 13 (of 13 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @paja33,

    When you upload a new image with the same filename as the old one, WordPress will not overwrite it, instead, it will append a number to the end of the filename in order to make it unique. This is the expected behavior.

    If, for some reason you want to replace files rather than rename them (not recommended) you can use a plugin like: https://www.ads-software.com/plugins/overwrite-uploads/ and it will not rename your files, it will replace existing files.

    Hope this helps.

    Thread Starter paja33

    (@paja33)

    @rainfallnixfig thank you for response.

    My problem is maybe different. I have uploaded images on a server with specific names. Next step was import products with specific image url. I try to import it, but WooCommerce create new image file (with -1, which I don’t want, because I already have a specific image for product).

    Hi @paja33

    I have uploaded images on a server with specific names.

    I understand you are using External URLs.

    It is possible that due to a previous attempt the images are already there in the media library, which is why they are getting renamed while attempting to import again.

    You can try clearing the images from the media library if required.

    Please note that External URLs are imported into the Media Library if used.

    Thread Starter paja33

    (@paja33)

    I using “internal” URLs. I already have imported all images in the media library, after that, I want to import products by csv file with images (by url). Everything is ok, but if I look at a product, image have name XX-XXX-1.jpg instead XX-XXX.jpg (this image is in library).

    Hi @paja33,

    Thanks for letting us know more about the issue you’re having.

    I’m not aware of a way to re-use the media library images while importing the products using the default WooCommerce product importer.

    However, I found this topic for this plugin Product Import Export for WooCommerce which seems to be re-using the images from the media library for the imported products.

    Can you please give it a try and let us know how it goes?

    Looking forward to hearing back from you.

    Thread Starter paja33

    (@paja33)

    Hello @nagdy , if I use this importer, it still makes a new image file. If I assign a product image manually, it doesn’t make a new file, but when I import it by url, I have every image new.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @paja33,

    As per the image import FAQ below.

    https://woocommerce.com/document/product-csv-import-suite-faq-troubleshooting/

    If you import images using URLs (https://), the image is copied from the URL into wp-content/uploads, added to the WP Media library and linked to the product. This can cause duplication if you import multiple times or reuse the same image for multiple products.

    If the image already exists within the wp-content/uploads instead of importing that from a URL simply reference the existing image file in your CSV.

    I hope this helps.

    Thread Starter paja33

    (@paja33)

    Thank you so much! This works!

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @paja33,

    I’m happy I could help and to hear this works for you ??

    I’m therefore going to mark this forum topic as resolved – if you have any further questions, you can reopen it again if you need be.

    If the image already exists within the wp-content/uploads path, how should the file be reference in the CSV? should it be simply the image name “myimage.jpg” or should it have the path internal path like “wp-content/uploads/2020/04/myimage.jpg”?

    I’ve actually tried both approaches without success.

    FWIW, I also find that I am only able to use an external url if it is http, not https. But since my images already exist in the media library I’d prefer to reference them and not use an external url (because of the unnecessary copies).

    Thansk!

    Mirko P.

    (@rainfallnixfig)

    Hi @bradnox,

    This thread is technically resolved and was closed a while ago. Can you please create your own topic? We’ll be happy to help you there.

    Cheers.

    hello, when I imaport csv file the products are uploaded but, images are not uploaded, while the image path is external urls. Please send the solution reguarding this.

    Hi @synapseworldwide1

    We’d be happy to check your case separately. As this thread is already closed, kindly create a new thread here: https://www.ads-software.com/support/plugin/woocommerce/#new-topic-0

    Cheers

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Import products with image’ is closed to new replies.