Zen Cart Logo
Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Views: 580,330

Results 1,421 to 1,440 of 2,247
6 Apr 2011, 3:26 PM
#1421
metoo avatar

metoo

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

MultiSite Module Support Thread

I have my stores configured like yours and am using a shared SSL too. That was not the problem with the templates in my case...it was something so ridiculously simple...in the domain.com_config.php files in the config_sites directory I had a url in place of the /. It should be:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

That's all...once I removed the urls, the templates and the links to other pages worked!

I guess I'm on to the next hurdle...looks like a lot of people have problems with the sidebars...<fingers crossed I won't>...

Hope this helps you too!

6 Apr 2011, 11:31 PM
#1422
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,675
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I am trouble on my second test site. The web address is http://www.mgs-test.com the problem I am having is this:

look at the categories on left has all categories its suppose to be just "Candle Holders" and the center module is showing all. What could be the problem?

Also when you click on a category or any product it shows the link to http://www.morrisgiftshop.biz

14 Apr 2011, 7:00 PM
#1423
swilliams88 avatar

swilliams88

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Re: MultiSite Module Support Thread

swilliams88:

Yes, I had the exact same progression of errors and it appears that we are in the same place now: Template issues. Mine is calling the template_default files rather than my designated templates.

My solution was: the Multisite Module could not distinguish which subdomain the user entered the site from and, as a result, displayed the template_default files.

Once I figured out the mapping of my subdomains and edited my hosts (due to working on a testing environment) I had everything up and running.

Minus the few bumps in the road initially, this is looking like it could work nicely.

14 Apr 2011, 8:42 PM
#1424
metoo avatar

metoo

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: MultiSite Module Support Thread

This is for Swilliams88 and anyone else interested regarding the way one site will have sideboxes and another they are missing.

Go into the zen cart admin area. You are able to change each template's side boxes individually but it's not readily apparent how to do this.

Go to Tools>Template Selection
You will see one of your templates listed next to default(all)...on the right is "edit". Press Edit, in the drop down choose the template you want to change the side boxes for. Press Update. Zen cart will remember which site you are working on...

Now you'll go to Tools>Layout boxes controller. Press RESET at the bottom after switching templates, and check and uncheck the boxes you want and how you want them laid out.
They should then appear the way you configure them.

For the next site, start over (tools, template selection) and pick another site's template....same thing over again.

Hope this helps everyone as confused as I was! You would think they would all be listed but they are not - it lets you configure them all - one at a time then remembers your changes somehow.:clap:

25 Apr 2011, 10:08 PM
#1427
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

So far I think I've got everything set up correctly but a step is missing somewhere. Nothing shows up on my "child" sites except the default directory listing.

Here's what I've done:

  1. Installed a clean Zen Cart on domain mainsite.com
  2. Uploaded the ADD and MODIFY files.
  3. Added the SQL command to the db.
  4. Added bl.com and sa.com - the two child stores - as add-on domains to mainsite.com via the Cpanel.
  5. Added the switch code to the configuration.
  6. Created a template file for bl.com and sa.com.
  7. Created a configuration file for all three domains.
  8. In Admin, created two categories - bl and sa - and added the comment code for each (that shows up in admin/multisite tools).

All this works in the admin of mainsite.com but how do I get the products to show up on bl.com and sa.com?

Am I supposed to upload anything to the two child domains?

Thanks for any help you can offer !

25 Apr 2011, 10:11 PM
#1428
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

There should not be any separate folders for the other domain. The names should point to the same folder as the main site.

25 Apr 2011, 11:22 PM
#1429
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Which post are you referring to fotofx? If mine, the only separate folders for the add-on domains on the main site are for the templates. The other two domains have no files or folders at all. All that shows up is the default "Index of /".

26 Apr 2011, 12:25 AM
#1430
metoo avatar

metoo

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Perhaps it's my server configuration, but I could never seem to get separate domains to work (sa.com, bl.com etc.)...all had to be SUB-domains of the main domain - in other words....sa.maindomain.com and bl.maindomain.com as well as plain ole maindomain.com.... Not saying it can't work that way, just that I couldn't get it to. I finally gave up and did the subdomains and will use htaccess to forward the domains (sa.com) to the subdomains (sa.maindomain.com). HTH

26 Apr 2011, 9:31 PM
#1431
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

It's not an option for me to use subdomains. In this instance the separate carts HAVE to be on separate domains. I have access to two servers and can move the domains as needed. Currently the main site is on one server, the two other domains on the second.

14 May 2011, 2:48 AM
#1432
pfabrick avatar

pfabrick

New Zenner

Join Date:
Jan 2006
Posts:
66
Plugin Contributions:
0

Re: MultiSite Module Support Thread

We've been using MultiSite for almost four years now:clap: and we're now in the process of upgrading to 1.3.9h. When we initially installed MS (I think it was still beta), we installed some query changes that don't seem to be included in the latest release. I've reworked them for 1.3.9h and will share if anyone is interested.

This patch adds one field to the salemaker table, and small changes to two core files. Right now, you have to edit the salemaker table directly for the extra field....but I'm planning on adding that to the admin directory after we get our site live.

Once I get the admin files finished, I may submit them packaged together as a "mod" of the MS mod. But I'll give you guys dibs on them now if you want:D

MultiSite is a core component to our business and we love it!!!

27 May 2011, 1:55 PM
#1433
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi all

Been using MS for a while now.. Loving it! Greatest tool!!!!!

I have a template that i would like to use for two different domains, no problems here, but the challenge is that i would like to use a different logo image for each domain without having to use a different template.

Is there a define (or similar) to use for the logo image?

thanks in advance

Brit

27 May 2011, 2:10 PM
#1434
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

PS... Ive tried the following:
define('HEADER_LOGO_IMAGE', 'logo.png');
in one and
define('HEADER_LOGO_IMAGE', 'logo2.png');
in the other..

but this doesnt seem to work. perhaps there is some code that needs to go into the header.php file?? Any idea where or what and if this is the case?

27 May 2011, 3:48 PM
#1435
pfabrick avatar

pfabrick

New Zenner

Join Date:
Jan 2006
Posts:
66
Plugin Contributions:
0

Re: MultiSite Module Support Thread

britneycook:

PS... Ive tried the following:
define('HEADER_LOGO_IMAGE', 'logo.png');
in one and
define('HEADER_LOGO_IMAGE', 'logo2.png');
in the other..

but this doesnt seem to work. perhaps there is some code that needs to go into the header.php file?? Any idea where or what and if this is the case?

Try commenting out the "HEADER_LOGO_IMAGE" define in the following file:

includes/languages/english/YOUR_TEMPLATE/header.php

I have a feeling that you're defining them once in the config file and then overwriting that value with this file. If you don't have this file in your template, take includes/languages/english/header.php and modify it. Then copy that up to your template directory.

You'll also want to define the HEADER_ALT_TEXT in each of your config files to be "site1" or "site2."

27 May 2011, 6:24 PM
#1436
pfabrick avatar

pfabrick

New Zenner

Join Date:
Jan 2006
Posts:
66
Plugin Contributions:
0

Re: MultiSite Module Support Thread

OK, so something about this was bothering me so I went out to my testsite and set up 2 sites both pointing to the same template. I then made the logo defines in the both config_siteName files and it worked. I have the same template on two different sites, but using logo1.png for the first site and logo2.png for the second. Everything seems to be working correctly....they way you want it to.

Maybe there's something else wrong with your setup. Do you have the firebug extension installed on firefox? Try inspecting the logo for both sites and see where the file is pointing to.

BTW, it makes sense that you should define the following as well in the config files if your logos are different sizes:

define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');

Gotta admit, for some reason it never occurred to me that you could use the same template (all of our stores are dissimilar), but it makes sense maintenance & upgrade-wise if your stores only vary by a logo.

29 May 2011, 11:54 PM
#1437
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi pfabrick

Thanks so much for your comments. It lead me to discover that there were problems with my template (typical of template monster!!!!!!!) pre definition of the logo... So, if there are other that have stumbled or will stumble upon this problem in the future, the resolve for mine was in the file:
/includes/templates/YOUR_TEMPLATE/common/tpl_header.php
Once the following code had been replaced, the defining of the HEADER_LOGO_IMAGE worked perfectly.

Thanks again for your reply. Was excellent ...

I replaced:

<a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.jpg'); ?></a>

With this

<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

pfabrick:

OK, so something about this was bothering me so I went out to my testsite and set up 2 sites both pointing to the same template. I then made the logo defines in the both config_siteName files and it worked. I have the same template on two different sites, but using logo1.png for the first site and logo2.png for the second. Everything seems to be working correctly....they way you want it to.

Maybe there's something else wrong with your setup. Do you have the firebug extension installed on firefox? Try inspecting the logo for both sites and see where the file is pointing to.

BTW, it makes sense that you should define the following as well in the config files if your logos are different sizes:

define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');

Gotta admit, for some reason it never occurred to me that you could use the same template (all of our stores are dissimilar), but it makes sense maintenance & upgrade-wise if your stores only vary by a logo.

30 May 2011, 12:15 AM
#1438
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

my apologies.. the above was incorrectly pasted..

Its the HEADER_LOGO_IMAGE thats of importance in this example.

<a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT); ?></a>

30 May 2011, 8:08 AM
#1439
oberheimer avatar

oberheimer

Zen Follower

Join Date:
Feb 2009
Posts:
108
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Can anyone install this for me, i'm having trouble with it
My shop is version 1.3.8a. When i downloaded the files it says for 1.3.8a but in the readme and install files it says 1.3.7

31 May 2011, 1:29 PM
#1440
swilliams88 avatar

swilliams88

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I am having the same issue as was posted previously. I was unable to find a solution:

The issue I am having is the order invoices and packing slips do not show the SITE_NAME, STORE_NAME or STORE_NAME_ADDRESS as defined in the config_site file. It only shows the street address and the city/state, but not the top line with the business name. Is there a trick to this?