osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Product Image via URL

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-23-2005, 01:22 AM
Lurker
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mwdesigns
Default Product Image via URL

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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-24-2005, 03:56 AM
Lurker
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Rudi
Default RE: Product Image via URL

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax