• Resolved barrex

    (@barrex)


    I have a script that automates the creation of CSV files for bulk uploads of products.

    Column with images with external urls looks like this (example): url.image1.jpg, url.image2.jpg, url.image3.jpg, url.image4.jpg, url.image5.jpg
    There is no problem if I have all the images.

    Sometimes image1, image2 and image5 exist and image3 and image4 don’t exist. The script still creates urls for all 5 images even if image3 and image4 don’t exist. Upload of a product fails in this case.

    Is there a way to upload a product with images when some images (3 and 4 for example) don’t exist but the script still creates a URL (that leads to no image)?

    Is there a way to still upload images with valid urls while ignoring nonexistant urls?

    Thanks in advance.

    • This topic was modified 1 year, 1 month ago by barrex.
    • This topic was modified 1 year, 1 month ago by barrex.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter barrex

    (@barrex)

    This is how error failed import looks like:

    Import complete! Failed to import 77 products. View import log. File uploaded: a5.csvProductReason for failure

    FRANCE 50 sols 1793 VF, SKU 13.000.071Error getting remote image https://monetalis.hr/riad/wp-admin/images/13.000.078(4).jpg. Error: Not Found

    FRANCE 5 livres 1793 XF, SKU 13.000.072Error getting remote image https://monetalis.hr/riad/wp-admin/images/13.000.072(1).jpg. Error: Not Found

    FRANCE 5 livres 1793 XF, SKU 13.000.073Error getting remote image https://monetalis.hr/riad/wp-admin/images/13.000.073(1).jpg. Error: Not Found


    Instead of uploading only images that are found (have correct url) and ignores urls without images, entire import fails.

    Is it possible to change it to: If 1 image not found on remote – Do not import that one image and Import rest of the images and import that product without missing image?

    • This reply was modified 1 year, 1 month ago by barrex. Reason: clarification
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @barrex

    Currently, WooCommerce does not support the partial import of images where some URLs are invalid or non-existent. When WooCommerce encounters a non-existent URL during the import process, it will fail the entire import.

    However, you can modify your script to check if the images exist before creating the CSV file. This way, you can ensure that only valid URLs are included in the CSV file for import. You can use PHP’s function file_exists() or get_headers() to check if an image URL is valid or not.

    Just so you know, our support staff, including myself, are not developers who could help create custom code according to our Support Policy related to customizations. Therefore, if you need help with custom development tasks, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.

    Alternatively, you can use an additional plugin like WooCommerce Product CSV Import Suite or WP All Import plugin. This extension allows the import of thousands of products and supports complex products and custom data from plugins. This might help you to automate the product upload process more effectively and handle errors better.

    I hope this provides some clarity on the matter. If you have any other questions or need further assistance, please don’t hesitate to ask.

    @barrex and @shameem, I just want to share that our Ultimate CSV importer plugin also supports WooCommerce data import. Kindly check the below link,

    https://www.smackcoders.com/documentation/wp-ultimate-csv-importer-pro/woocommerces

    You can import WooCommerce products, Variations, orders, customers, subscription products and coupons.

    Thread Starter barrex

    (@barrex)

    Thank you all for the answers.

    hrn1995 (woo-hc)

    (@aguinaldodarla)

    Hi @barrex

    We’re happy that we’re able to assist you!

    I’m going to mark this thread as resolved, but please don’t hesitate to start a new topic if you have any more questions down the line.

    Hi, I have a similar problem, For me it says that the image is not found, in the Excel cell, I added the 2 picture separatate with a | sign.
    But it seem that woo dont see both image so it generate an error.

    Any chance you know how to import multiple image for single products?

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @mmmediterranean,

    I understand you’re facing a similar issue, but please if you can, open a new thread so we can provide the necessary help for you there, as each site is unique, we’d need to learn more about your site and your configuration so we can assist you further.

    You can start a new thread and include all the relevant details, such as if you’re trying to import your products using the built-in importer or a third-party tool and share a sample of the template you’re using for your Excel file to upload your products.

    Please also include an uncropped screenshot of the error you receive and where you receieve it, so we’re able to learn more.

    Thanks!
    -OP

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘importing multiple product images’ is closed to new replies.