The "path-to-image" is nothing more than a REFERENCE in the database, RELATIVE to the CORE PATH defined for a resource's LOCATION.
For "external" images, what you are having to do is OVER-RIDE core behaviour, with CUSTOM behaviour.
CORE behaviour assumes that product images are going to reside in the images folder (or possibly a SUB-folder in the images folder).
The PATH to this folder is established in the configure.php file, and CORE behaviour states that it is whatever-folder-name in the DIR_WS_IMAGES define statement.
Now... once you have made all the edits to the CORE FILES that use "DIR_WS_IMAGES" as the key referencing point for INTERNAL images, you are going to have to MANUALLY ADD the URL to the path for every product image you add.
So... what you need to do is this.
When you ADD a product in your admin console (admin>>>catalog>categories/products>>> add a product), when you get to the part which asks you to add an image, you need to TYPE INTO the field that says:-
Or, select an existing image file from server, filename:
domain.com/images/image1.jpg
WHERE:
domain.com (is the domain of your supplier... do not enter "http://")
/images (is the DIRECTORY on their server where the images live)
/image1.jpg (is the name of the image for the product in question)
20 years a Zencart User
Hi schoolboy, tried that but image still tries to et image from location mydomain.com/images/domains want.com/images/image1.jpg
Can u help, I'm so frustrated lol
If you try to link to external images you will spend MONTHS manually entering the URL for each product. It looks like you have not successfully made the required edits to all the PHP files either... and as I said, that "module" was designed for ZC 1.3.8. If you are using a later version of ZC, there is a possibility that it needs further attention.
You have two options...
1. Pursue the external images "solution" by making sure your PHP contains ALL the edits indicated in the module.
2. revert to CORE behaviour, and ask your supplier to provide you with the product images.
I have built three pet products websites in the last 2 years - one of which uses a drop-shipper, and this drop shipper provides all the images. They are made available as a download (zip) file, so my client just has to go fetch the zip.
If your supplier provides a SPREADSHEET containing the URL's to the images, then you might be able to "scrape" them using a utility like W-Get. You create a TXT file from the column showing the URL's to the images, and W-Get runs each line in turn, collecting and saving each image to your hard drive.
I have successfully used W-Get to scrape several thousand images off a supplier's site. Takes an hour or two, but you can just let it run in the background.
20 years a Zencart User
Thanks for that, think I'll try wget. Have an issue thought that I have an individual URL for every image ie domain.com/img/1.jpg, domain.com/img/2.jpg
So how would I create the txt file and what command woul I use In wget to download them all.
Thanks again
I believe you would just put each URL on a separate line in your txt file. Schoolboy will have to advise you on how to use W-get... or you could go get it and read its instructions.
Your supplier's spreadsheet is likely to have a column that lists the paths to the images - something like:
Copy this column and paste it into a plain text editor (notepad++), then save it as a .txt file .Code:http://www.supplier.com/images/1234567.jpg http://www.supplier.com/images/2345678.jpg http://www.supplier.com/images/3456789.jpg
Save this file in the root (c:) of your hard drive.
Get wget from:-
http://sourceforge.net/project/downl...se_mirror=garr
install it
open a cmd prompt e.g. start | run | type: cmd
in the command prompt type cd.. press enter
type this again till you get to just the c:
(The program may be located in a BIN folder, and if so, the likely path will be: C:\Program Files\GnuWin32\bin. At the c: prompt, type cd Program Files\GnuWin32\bin)
When you reach this location...
type wget -i c:\textfile.txt (replace textfile.txt with the name of the textfile you created)
let it run till it downloads all your images. (They will be saved into the bin folder, because that's where WGET is located, so later you can move them to another folder).
you will now have a folder with all the images as they were on the remote server.
You can then FTP the images to your own server.
20 years a Zencart User