Results 1 to 2 of 2

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

      
  1. #1
    Lurker
    Join Date
    Jun 2005
    Posts
    1
    Rep Power
    0


    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 !

  2. #2
    Lurker
    Join Date
    Jun 2005
    Posts
    1
    Rep Power
    0


    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

Similar Threads

  1. how to make the image on product page
    By johnkwok in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 05-20-2006, 02:55 PM
  2. Specific Product Image based on chosen product attributes?
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 09:41 AM
  3. Product Image Placement
    By sradwick in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-27-2004, 07:17 PM
  4. Having 3 image sizes for a product
    By bradeng in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-11-2003, 11:22 PM
  5. add new product, no image displayed
    By vanciva in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 02-27-2003, 07:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •