• Resolved brettins

    (@brettins)


    Hi, when I do a CSV import through WooCommerce, it replaces my external URLs with internal ones and uploads the images locally. I have a huge # of images and the external URLs will be updated as images change, so I need the external URLs to stay as they are and not be replaced by local URLs. Is there a way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Howdy ??

    What you describe is expected behavior. Images are added to the media library and thumbnail sizes generated based on what thumbnail sizes have been defined by the theme and other plugins.

    While it may be possible to alter this behavior, that would be a major undertaking and I would advise against it.

    Kind regards,

    Thread Starter brettins

    (@brettins)

    I figured it out – it ended up being a pretty ugly hack, but it works pretty well.

    I stopped WordPress from setting the metadata during upload, blocked it from using the uploads directory, and then when it generates the URL for an image I put an “if” to check if it has a woocommerce source URL, and if it does return that URL without the usual modifications. Works pretty well, but I can’t say I’d recommend it to anyone. ??

    Just have to be careful of WordPress updates clobbering my if statement.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘External URLs replaced with local images on CSV import’ is closed to new replies.