Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 5 of 5
Using Remote Image URLs
 
miley2nd
Jr. Member
 
Total Posts:  4
Joined:  2009-05-04
 

does this work in 1.5.1.0?

 
Magento Community Magento Community
Magento Community
Magento Community
 
VanGilsWeb
Sr. Member
 
Total Posts:  97
Joined:  2010-03-26
 
miley2nd - 14 September 2011 12:06 PM

does this work in 1.5.1.0?

We also like to know this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
d3n5
Jr. Member
 
Total Posts:  1
Joined:  2011-06-21
 

Here is the *solution*, when you already have image paths in the DB (populated DB by your own script, not by Magento Import).

For Magento v.1.6.1 two lines added in the file:
\app\code\core\Mage\Catalog\Model\Product\Image.php

public function setBaseFile($file)
    {
        $orig_file 
$file;

and at the end of the function

$this->_newFile $orig_file;
        return 
$this;

Then create new text file named getimage.php in /media/ folder with contents:

<?php
header
("Location: " $_GET['url']);
exit;
?>

And copy this file also to the folder \media\catalog\product\

Now you can have URL in the following form in DB table catalog_product_entity_varchar (HTTP path URL-encoded):

/getimage.php?url=http&#x3a;&#x2f;&#x2f;images.website.com&#x2f;somefolder&#x2f;image.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 5 of 5