Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bradnox

    (@bradnox)

    Yes, I have tried the full path with no success (at least using https – see below)

    And yes, I first set up a few variations via the UI, then exported the products to csv. Then copied the desired image path to the rest of the variations, changing the filenames to be correct of course., e.g.

    https://yourdomain.com/wp-content/uploads/2020/04/myimage1.jpg
    https://yourdomain.com/wp-content/uploads/2020/04/myimage2.jpg

    When I import these back in, woocommerce tries to set the variation image, but something is failing because the html generated for the image variation is <img src="">. Note this is different than a variation which does not yet have an image set, as the html for that has a placeholder <img src="https://yourdomain.com/wp-content/uploads/woocommerce-placeholder-300x300.png">

    If I do the exact same thing above but use http instead of https then the process works, but the images get re-created in the library.

    • This reply was modified 3 years, 2 months ago by bradnox. Reason: remove url

    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!

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