This is a discussion on Product Image via URL within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Does anyone know of a hack or mod to add a new product image via a URL ? I have ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Does anyone know of a hack or mod to add a new product image via a URL ? I have over 25000 products and have all my images resident on a separate server, so instead of having my product image on my server, I want to add the URL to the image via the method: "http://www.somesite/images/somepic.jpg" I use Easy Populate V2.74_1 to upload my products and want to use the Tab delimited file with the V_Products_image in the url format. Please can someone help ! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| There are two ways of doing this: THE LONG BUT TESTED WAY: You need to replace DIR_WS_IMAGES with 'http://www.your remote host/your remote images folder/' in tep_image(DIR_WS_IMAGE . $product_info['products_image'] and tep_href_link('DIR_WS_IMAGE' . $product_info['products_image']) Where you replace this depends entirely on whether you are hosting all your OSC Images loacally or remotely. If for example you are only hosting product images remotely, you only need to replace this in all the files containing the line 'DIR_WS_IMAGE' . $product_info['products_image'] THE SHORT BUT UNTESTED WAY: Alternatively you can move everything in the images directory (including the OSC images and all directories)to your remote host go into includes/configure.php and change define('DIR_WS_IMAGES', '/images/'); define('DIR_WS_ICONS', '/kickasscomics/images/icons/'); to define('DIR_WS_IMAGES', 'http://www.your remote host/your remote images folder/'); define('DIR_WS_IMAGES', 'http://www.your remote host/your remote images folder/icons/'); GOOD LUCK |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make the image on product page | johnkwok | osCMax v2 Features Discussion | 0 | 05-20-2006 01:55 PM |
| Specific Product Image based on chosen product attributes? | chrisrex | osCMax v2 Customization/Mods | 0 | 11-22-2005 08:41 AM |
| Product Image Placement | sradwick | osCommerce 2.2 Modification Help | 1 | 01-27-2004 06:17 PM |
| Having 3 image sizes for a product | bradeng | osCommerce 2.2 Modification Help | 2 | 03-11-2003 10:22 PM |
| add new product, no image displayed | vanciva | osCommerce 2.2 Installation Help | 7 | 02-27-2003 06:45 PM |