Author Topic: Display images from external server  (Read 2318 times)

spyderwebdesign

  • Jr. Member
  • **
  • Posts: 132
Display images from external server
« on: March 12, 2012, 16:39:47 pm »
My site using a datafeed to populate it's item list. The datafeed list the url of the image which is hosted on the manufacture's server. Virtuemart 2.0.3 seems to require that the image is hosted on the local server. We have over 3,000 products and I do not want to have to download each image one by one and then upload them. This will also be a nightmare for figuring out which images are new and have to be downloaded and upload.

How can I change virtuemart to allow for image paths to be http://www.externalserver.com/images/imagename.jpg

I prefer not to change core code, but if this is my only option then I have no choice.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10412
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Aerse

  • Beginner
  • *
  • Posts: 1
Re: Display images from external server
« Reply #2 on: December 16, 2012, 09:35:10 am »
The solution provided at http://forum.virtuemart.net/index.php?topic=99225.msg327903#msg327903 doesnt't cover situation when one product has multiple images. Also every image should have thumbnail.

There is already existing functionality under "Product Images" tab.

Please add support for external images there. How it could be look like:
  • Add another option under "Image Action" radio buttons groups: "External"
  • When "External" option selected:
  • Upload file hides, two inputs show. First input: "External URL", second input "External URL thumbnail (optional)"
  • After click "Save" "Used url" and "Used thumb url" show external URLs
  • Thumbnail autoresizing won't executed if "Used url" starts with "http://" or "https://"