1

I have created products in magento site. Now I want to load product images from external url.. how I will do this?

2

You need to build a module, because Magento not support external images "out the box". As advice, you need to download images localy and after import.

As fast and simple one time solution use wget and load from file. For example:

  1. Save all your urls to file (for example urls.txt)
  2. Create folder media/import and copy urls.txt to this folder
  3. Go to this folder and run the command
wget -i urls.txt

Wget download all your files to the folder and you can import them from local source.

If you need to run this process periodically, you definitely need to build a module or find free solution

If you want to show images directly from remote url, do the following:

  1. Create custom attribute (for example custom_image) with input type text and put external link to this attribute.
  2. Update your theme template (find template, where your images displayed and change <img src="<?php echo $_product->getSmallImage() ?>" /> to <img src="<?php echo $_product->getCustomImage() ?>" />
  • when I run the command wget -i urls.txt getting an error like -bash: wget: command not found – Sruthi Jun 27 '16 at 10:58
  • You need to install wget. Run cat /etc/*-release and tell me you OS – Andrew Sh Jun 27 '16 at 11:00
  • ok.. i am using mac os x 10.7 – Sruthi Jun 27 '16 at 11:01
  • 1
    Is there any way to load images directly from external url, instead of importing images in to the server – Sruthi Jun 27 '16 at 11:05
  • check this or this links to know, how to install wget on Mac OS. Or you can try this solution – Andrew Sh Jun 27 '16 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.