Jump to content
Sign in to follow this  
greatdeals_007

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

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?

Share this post


Link to post
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...?

Share this post


Link to post
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

Share this post


Link to post
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

 

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×