Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I add product images that are hosted on another site?


greatdeals_007

Recommended Posts

my vendor provided me a product feed unfortunately the product images are on a hosted server. is there a way to upload easy populate file with the images as a URL? normally I would upload the files to my server. in this case this particular vendor has the files stored on their server so I am unable to download. is there a way to reference the url?

Link to comment
Share on other sites

my vendor provided me a product feed unfortunately the product images are on a hosted server. is there a way to upload easy populate file with the images as a URL? normally I would upload the files to my server. in this case this particular vendor has the files stored on their server so I am unable to download. is there a way to reference the url?

How about simply putting the url to the product in the product description using an <img> tag?

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

I don't know if you found a solution. But I had the same problem. Here is what I did I did. I went to this website www.httrack.com. It is a very cool easy to use program that gets everything off a website including images. Assuming you have some type of .cvs file that you are getting from your supplier that has the image urls on it. Just copy all the image urls into a html file. Example;

 

<html>

 

<head>

<title>No title</title>

 

</head>

 

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<img src="http//www.blblalb.com/images/products/sku/big/63997M.jpg">

<img src="http://www.blblabla.com/images/products/sku/big/598M.jpg">

</body>

 

</html>

 

Now save the file and upload it to your server.

 

now open the program listed above and simply type in the url you just put on your server tell it where you want to save the images and hit finish. Bammm Now you have all your images associated with you products.

 

You can use ftp to upload them to your store

you can use easy populate to upload your products

and I recommend Select Product Image Directory & Instant Update - Multilanguage V1.15

 

Hope this helps you out.

 

Lexxie

Link to comment
Share on other sites

  • 8 months later...

I don't know if you found a solution. But I had the same problem. Here is what I did I did. I went to this website www.httrack.com. It is a very cool easy to use program that gets everything off a website including images. Assuming you have some type of .cvs file that you are getting from your supplier that has the image urls on it. Just copy all the image urls into a html file. Example;

 

<html>

 

<head>

<title>No title</title>

 

</head>

 

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<img src="http//www.blblalb.com/images/products/sku/big/63997M.jpg">

<img src="http://www.blblabla.com/images/products/sku/big/598M.jpg">

</body>

 

</html>

 

Now save the file and upload it to your server.

 

now open the program listed above and simply type in the url you just put on your server tell it where you want to save the images and hit finish. Bammm Now you have all your images associated with you products.

 

You can use ftp to upload them to your store

you can use easy populate to upload your products

and I recommend Select Product Image Directory & Instant Update - Multilanguage V1.15

 

Hope this helps you out.

 

Lexxie

 

I would like to thanks Lexxie for this post. It has helped me greatly. However, there is now another program which is very easy to use which will do the same thing as httrack and is used on Firefox browser. It is called "downthemall" i.e. down them all. It is an add-on in firefox and is so easy to use its incredible. Just follow the steps mentioned by Lexxie in creating your HTML file, I just called my file saveimages, and then call the page into your browser and then down them all. very easy, just downloaded 420 large images from my suppliers server in about 2 minutes.

 

Offie

Link to comment
Share on other sites

from your example:

<img src="http//www.blblalb.com/images/products/sku/big/63997M.jpg">
<img src="http://www.blblabla.com/images/products/sku/big/598M.jpg">

and oscommerce located on different domain.

 

very easy can be done using the php curl and storing in the database the following ( nstead of image names for products):

get_image.php?image_name=63997M.jpg
get_image.php?image_name=598M.jpg

 

get_image.php file should be on the same server as oscommerce application.

get_image.php code:

<?php

header("Content-type: image/jpeg");

 

// image name from the URL

$image_name = $_GET['image_name'];

 

// Location for images

$url = "http://www.blblabla.com/images/products/sku/big/";

 

// Insert image name

$url .= $image_name;

 

$ch = curl_init();

curl_setopt($ch, CURLOPT_TIMEOUT, 4);

curl_setopt($ch, CURLOPT_URL, $url);

curl_exec($ch);

?>

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...