Forums / General Questions / 2 different sites on same server but want to use same product images

2 different sites on same server but want to use same product images

Views: 1,625

Results 1 to 11 of 11
1 Apr 2013, 7:57 AM
#1
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

2 different sites on same server but want to use same product images

I have 2 different sites on same server (one is an addon domain), but want to use the same product images for both sites so I can save space and make it easier to update since they both use the same pictures.
What do I need to do?

1 Apr 2013, 8:36 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

While this is technically possible, it is not advised. It is fairly complex to do this - there are threads dealing with this, so go search for them.

Firstly, you will LOSE a lot of additional functionality that relies on images being in a local folder - such as the extra images features, image caches that many add-ons need, etc. You will also not be abe to use image enhancing tools such as Image Handler (in my opinion a MUST-HAVE module).

Secondly, the tiny saving in space will be offset by the slower site loading speeds. (Not only do images have to be colleced remotely, but BOTH sites are using the same set of resources).

20 years a Zencart User

1 Apr 2013, 9:02 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 different sites on same server but want to use same product images

You will loose the ability to upload from the admin - images in the addon domain

But you can reference in the configure.php file of the addon domain - assuming that the other site is at the root of the account or at "/" - where "domain" is the domain of the root account

define('DIR_WS_IMAGES', 'http://domain.com/images/');

Zen-Venom Get Bitten

1 Apr 2013, 9:07 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

You may want to look at this to get a perspective on what may be required:

http://www.zen-cart.com/wiki/index.php/Contribution:Web_images

20 years a Zencart User

2 Apr 2013, 6:59 PM
#5
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

thanks for the quick answers!
I got it working, it it is eaxactly what I want, I do not need uploading in the addon site.

One other question... now if my main site is what I will do all my products changes, once I have done any changes and need to update my addon site...would the best way is to just copy the changes from my database? if so which tables on the structure do I need to export?

2 Apr 2013, 8:11 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 different sites on same server but want to use same product images

once I have done any changes and need to update my addon site...would the best way is to just copy the changes from my database?
Are these sites exactly the same as to products???

You will get nicked for duplicate content by the SE's

Best to manually add the image names to your addon site

Zen-Venom Get Bitten

3 Apr 2013, 2:55 AM
#7
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

yes, they are using the same products, images and descriptions but everything else is different. If I manually add the new products, would there be a difference from the SE's perspective?

3 Apr 2013, 3:03 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 different sites on same server but want to use same product images

If I manually add the new products, would there be a difference from the SE's perspective?
While no one knows precisely what Google uses - I would suspect NO difference if the content is exactly the same

If the same - why two sites??

Zen-Venom Get Bitten

3 Apr 2013, 6:33 PM
#9
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

the 2 sites have a different look, eventually I will have different products when I can scource more new items to put up. I just open them and do not want to leave one empty.

3 Apr 2013, 8:01 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 2 different sites on same server but want to use same product images

I would get and learn to use the easy populate addon

Zen-Venom Get Bitten

4 Apr 2013, 7:16 PM
#11
ultravires avatar

ultravires

New Zenner

Join Date:
Mar 2013
Posts:
7
Plugin Contributions:
0

Re: 2 different sites on same server but want to use same product images

I looked up and read some stuff about easy populate and it looks like a great solution, will see if I can install it to try on my site. Thanks!!!