|
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://images.website.com/somefolder/image.jpg
|