Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Started by gerome on 23 Apr 2007, 10:24 AM · Views: 581,870

Results 681 to 700 of 2,247
19 Jan 2009, 1:13 AM
#681
jkovar avatar

jkovar

New Zenner

Join Date:
Dec 2008
Location:
Cypress, Texas
Posts:
4
Plugin Contributions:
0

MultiSite Module Support Thread

Thanks, I got the paypal thing worked out.

Is there a DEFINE type command for order confirmation e-mails. I was hoping to have a custom logo at the top of the confirmation e-mails for each site.

My site sends orders to restaurants and I would like the order confirmations to have their Logo.

If not, I guess I can use the generic one for my site that sells them the service.

Thanks for a great mod.

19 Jan 2009, 5:18 AM
#682
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Getting there, but I have no categories appearing in the categories box. Everything else seems to work though! I have reset the sideboxes, but no effect. I have the site name in every category description. What can I be missing?

19 Jan 2009, 7:12 AM
#683
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I think I found my problem:

following the instructions provided by loop4ever:

In admin/includes/configure.php, insert the following code at the beginning of the file

$site_name = explode('/', $_SERVER['REQUEST_URI']);
if ($site_name[1] == '' || $site_name[1] == 'primarystorename') {
define('DIR_WS_ADMIN', '/primarystorename/admin/');
define('DIR_WS_CATALOG', '/primarystorename/');
define('DIR_WS_HTTPS_ADMIN', '/primarystorename/admin/');
define('DIR_WS_HTTPS_CATALOG', '/primarystorename/');
define('SITE_NAME', 'primarystorename');
} else {
define('DIR_WS_ADMIN', '/'. $site_name[1] . '/admin/');
define('DIR_WS_CATALOG', '/'. $site_name[1] . '/');
define('DIR_WS_HTTPS_ADMIN', '/' . $site_name[1] . '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/' . $site_name[1] . '/');
define('SITE_NAME', $site_name[1]);
}
unset($site_name);

Does this replace

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('CATEGORIES_ROOT','0'); //root categories for multi site
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/phpBB2/');

or go above it?

19 Jan 2009, 5:08 PM
#684
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: MultiSite Module Support Thread

I am just about to go live with 3 sites on multi-site and just thought about an issue that I have not been able to find an answer for. Perhaps I am using the wrong search keywords, but I have not been able to answer this.

> What about customized eMail letters, order confirmations and such. How are they handled. Are there separate template files for each domains eMail handling?
I tried searching the Wiki, Tutorials and FAQ to see if the email folder had over-rides, but did not find an answer there either.

I know that Store Name, Owner's Name, Store email, URL, etc; all come from the config files.

What are you using for or how are you defining custom email header graphics for each site?

JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

19 Jan 2009, 8:43 PM
#685
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: MultiSite Module Support Thread

My test sites don't seem to be picking up the /includes/languages/english/store_template/meta_tags.php

www.liberty-flag.com/ xstore/
www.americasflag.com/ xstore/

I added spaces to the urls so the search engines don't find us.

I get no Title, Description, Keywords - meta tags.
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

20 Jan 2009, 2:42 PM
#686
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

jkovar,
The solution I used for this was to create an email_header.gif (or whatever name you want) in each store's templates/[template_name]/images folder.

Then in the includes/config_sites/[site config file] include this line:
define('EMAIL_HEADER_IMAGE','includes/templates/'. $template_dir. '/images/email_header.gif');

20 Jan 2009, 3:06 PM
#687
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

stuff4Toys,

The override system in ZenCart doesn't apply to the emails as of yet. I've come up with a couple solutions to use store custom graphics and to customize the variables that are used in the emails, but this does not allow you to use your own email template for each store. That being said it wouldn't be too difficult to hack that into the system. In case your interrested in my solutions though:

For the "front-end" emails such as the welcome email, and order confirmation I used the technique I just posted to jkovar.

For the order confirmations it's a bit more tricky. I posted a solution however in post#659 that works well for me.


Regarding your second post. I just tested out the meta_tags.php override and it's working fine on my sites. For a test, try setting the HOME_PAGE variables specifically and see if they change your homepage title/description/keywords.
HOME_PAGE_TITLE
HOME_PAGE_META_DESCRIPTION
HOME_PAGE_META_KEYWORDS

20 Jan 2009, 7:02 PM
#688
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi. I tried to install multi site on a fresh install of zencart. When i open my site it says domain local host doesnt exist. What have i done wrong?
Posted via Mobile Device

20 Jan 2009, 7:19 PM
#689
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Doddsey_65,
Sounds to me like you didn't create a includes/config_sites/[config_file] for the domain your trying to reach

20 Jan 2009, 7:27 PM
#690
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

cablesimple:

Doddsey_65,
Sounds to me like you didn't create a includes/config_sites/[config_file] for the domain your trying to reach

I have a site1_config and site2_config and they have in them the $template_dir SITE_NAME HTTP_SERVER HTTPS_SERVER CATEGORIES_ROOT.
Posted via Mobile Device

20 Jan 2009, 7:36 PM
#691
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

they need to be named based on your domain. So if your hosting site1.mydomain.com then your config file should be site1.mydomain.com_config.php

20 Jan 2009, 8:17 PM
#692
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Okay i did one called localhost_config and it loaded. But nw im confused. Al i want is to add a shop to my existing one like: localhost/site1/site2
Posted via Mobile Device

20 Jan 2009, 8:45 PM
#693
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Is it also posible to have seperate admins for the shops
Posted via Mobile Device

20 Jan 2009, 9:22 PM
#694
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

No. Unfortunately not.

20 Jan 2009, 9:24 PM
#695
kobra avatar

kobra

Black Belt

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

Re: MultiSite Module Support Thread

Doddsey_65:

Is it also posible to have seperate admins for the shops
This would defeat the purpose of one DB & One admin

Zen-Venom Get Bitten

20 Jan 2009, 9:38 PM
#696
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Okay i did one called localhost_config and it loaded. But nw im confused. Al i want is to add a shop to my existing one like: localhost/site1/site2I'm don't know what you mean by localhost/site1/site2.
Multisite is so that you can have:
www.mysite1.com
www.mysite2.com
--OR--
site1.mysite.com
site2.mysite.com
or a mixture of both all hosted from one install of Zencart.

One of the things that Multisite changes in Zencart is to move the site specific stuff from includes/configure.php to config_sites/[site config file]. That's why you need to configure every site you want multisite to host, even if you already had it setup on Zencart before you installed it.

20 Jan 2009, 9:39 PM
#697
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I want to make a shop that has several shops that have their own admin cos i want customers to hav their own shops within my main one. Is this posible with zencart? If not is there anything else i cud use?
Posted via Mobile Device

20 Jan 2009, 9:42 PM
#698
doddsey_65 avatar

doddsey_65

New Zenner

Join Date:
Jan 2009
Posts:
51
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Something like https://www.etsy.com
Posted via Mobile Device

20 Jan 2009, 9:47 PM
#699
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I want to make a shop that has several shops that have their own admin cos i want customers to hav their own shops within my main one. Is this posible with zencart? If not is there anything else i cud use?

I actually am using Multisite to do what you are explaining, except I manage the sites for the customer. They just make a percentage off the sales they push to us. I know what you mean about the admin bit. Basically you want it so that you can only see the orders your login has rights to. As far as I know Multisite is the only mod of it's type for Zencart, and this mod definately doesn't have that capability. It certainly could be written, but it would take some work.

I highly doubt any other open source store has that capability, but you never know, have a look.

20 Jan 2009, 9:51 PM
#700
kobra avatar

kobra

Black Belt

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

Re: MultiSite Module Support Thread

I want to make a shop that has several shops that have their own admin cos i want customers to hav their own shops within my main one.
ZenCart is not designed as a "Mall Script" and is meant to sell your items.

Zen-Venom Get Bitten