Forums / General Questions / Pull product images from another server?

Pull product images from another server?

Locked

Views: 3,456

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Nov 2006, 2:55 AM
#1
dwalk83 avatar

dwalk83

New Zenner

Join Date:
Jun 2006
Location:
St. Louis
Posts:
30
Plugin Contributions:
0

Pull product images from another server?

Is there anyway I can pull the product images from another server. The server my product images are on is a different server than the server my zen-cart store is on. Is this doable?

Thanks
Dan

28 Nov 2006, 4:41 AM
#2
dwalk83 avatar

dwalk83

New Zenner

Join Date:
Jun 2006
Location:
St. Louis
Posts:
30
Plugin Contributions:
0

Re: Pull product images from another server?

I have tried setting the DIR_WS_IMAGES in the includes/configure.php file to the path of the images on the other server, but this does not seem to work? Any explanation or solution would be appreciated. :smile:

Thank you,
Dan

28 Nov 2006, 4:59 AM
#3
dwalk83 avatar

dwalk83

New Zenner

Join Date:
Jun 2006
Location:
St. Louis
Posts:
30
Plugin Contributions:
0

Re: Pull product images from another server?

I guess that the DIR_WS_IMAGES has a full path associated with it ie var/www/vhosts/hostname.com/zencart/

So if I am putting a url in after the define, it is doing something like:
var/www/vhosts/hostname.com/zencart/http://otherserver.com/images/

so I guess my question is, can I somehow overwrite this path, and instead put in a URL to another server?

Thanks,
Dan

2 Apr 2008, 12:33 AM
#4
twistedxcomputers avatar

twistedxcomputers

New Zenner

Join Date:
Oct 2007
Posts:
1
Plugin Contributions:
0

Re: Pull product images from another server?

is there a way to make zen cart get images from another server because all my products i import use a csv file, which says: http://sjgksbgjsgsgsgsdghsjgd/images/whatever.jpg/

and i can download the images from my dropshipper and put them on my server but this is time consuming and a waste of space, can i just make zen cart set the product image path to the url i provide in the csv i import?
so instead of myshop/images/
it just gets them direct.

25 Oct 2008, 12:34 AM
#5
highjump avatar

highjump

New Zenner

Join Date:
Oct 2008
Posts:
4
Plugin Contributions:
0

Re: Pull product images from another server?

Greetings Zen Heads,

How can I go about changing the source path to where product images are stored? I am going to invoke a process of submitting/updating products and images on a separate server than which zen-cart resides.

Can I expect any security or permission settings within zen-cart prohibit me from fetching product images from a different web server?

Much Thanks,

HJ

25 Oct 2008, 1:48 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Pull product images from another server?

Zen Cart's infrastructure is presently written in such a way that it expects the file to exist on the local filesystem. It doesn't currently support externally-stored files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.