Zen Cart Logo
Forums / General Questions / 2 stores... share the same image folder??

2 stores... share the same image folder??

Locked

Views: 1,021

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Jul 2010, 9:43 AM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

2 stores... share the same image folder??

I have 2 stores. One is online sales room and other is online catolog for the shop (no sales through this site)

is it possible to have both site to share the same image folder ie the image folder from the online store site... or the onlien catolog.

basically my online prices and store prices are different so what i would like to do is create the items on one of the carts then using easy populate populare the second site with prices changes.

This would require me to copy the image folder over from first site... where i would like to just make the other site look at the image folder of the other site. Both sites are on the same server just with subdomains/addon domains.

Also IH2 installed on both.

Cheers

16 Jul 2010, 12:58 PM
#2
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: 2 stores... share the same image folder??

could i not change the config file to something like...

define('DIR_WS_IMAGES', 'http://www.mystore.co.uk/images/');

or even

define('DIR_WS_IMAGES', '/home/account/public_html/images/');

16 Jul 2010, 1:07 PM
#3
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: 2 stores... share the same image folder??

tried define('DIR_WS_IMAGES', 'http://www.mystore.co.uk/images/'); and it works to a degree but only brings in a tiny image.

16 Jul 2010, 1:18 PM
#4
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: 2 stores... share the same image folder??

well it seem to work fine, turn off both sites IH2 and this made no difference... however the second site which is grabbing the images from the first site is only displaying the small image size for all images... if i change small image size in admin on the second size it increase the product image on the product image display screen but also changes all the catogy images etc also.

the pop up images is also showing only the small image 80x100 and when i check the image url it is linking to the large image on site one....

Any one have any ideas???

19 Jul 2010, 8:29 AM
#5
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: 2 stores... share the same image folder??

no one have any ideas???

or does anyone know a code that will copy the contence of a folder to another folder on a sever??

19 Jul 2010, 2:14 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 2 stores... share the same image folder??

I have a Zen Cart in two locations on 1 domain where one is in:
/golfing

and the other is in:
/soccer

So I edited the file:
/includes/configure.php

to use for the images in /includes/configure.php:
define('DIR_WS_IMAGES', '../golfing/images/');

and for the images in /admin/includes/configure.php
define('DIR_FS_CATALOG_IMAGES', '/home/my_username/public_html/golfing/' . 'images/');

and keep the images in the:
/golfing/images

directory for both sites ...

I have not tested this for everything but it does seem to work for what I have tested so far ...

22 Jul 2010, 8:56 AM
#7
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: 2 stores... share the same image folder??

cheers fella... mine are on the same server but differernt domains (as my online store prices are different to instore prices and dont want customers to know we have online store as well as store website..... there is a good reason for this)

i tried changing the the to use for the images in /includes/configure.php:
define('DIR_WS_IMAGES', '../golfing/images/');

this worked but for some reason rescaled all the images on the other site to small.

didn't change the admin config though will try this later and see if this will help.