How To Setup Multiple Magento Stores
by Kyle on · Posted in Howto, Magento · 65 Comments
There are numerous ways to setup multiple Magento stores that all share the same codebase and backend, but what method you use depends on your needs.
This article is written with cPanel in mind, though the methodologies listed below apply no matter what control panel you're using.
Jump To Section
- URL Structure
- Shared Hosting Caveat
- Adding Another Store In Magento
- Parked Domain Method
- Addon Domain Method
- Subdomain Method
- Subdirectory Method
- Managing Multiple Stores
- Secure Checkout For Each Domain
URL Structure
The actual URL structure of your stores is a matter of personal preference. You can, for example, have two entirely different stores running on the same domain that share the same instance of Magento:
mall.com/shoesmall.com/shirts
These stores could also be setup on their own domain and still share the same instance of Magento:
shoes.comshirts.com
Another example would be a mall type setup, where your primary domain is the portal to access various stores:
mall.comshoes.mall.comshirts.mall.com
Regardless of the URL structure, the method for setting this up will pretty much be the same, and the result is what we're really after, which is to have one codebase for all of your stores, and one backend to manage all of these stores from.
Shared Hosting Caveat
If you want each store to have it's own SSL certificate and don't want to share a single checkout, e.g. you don't want visitors leaving domainA.com to checkout on domainB.com, then you will not be able to do this in a shared hosting environment.
The reason why you cannot do this is simple. In order for a website to have an SSL certificate, it requires a dedicated IP address.
There's no way to allow an addon or parked domain in cPanel to have its own IP address. Instead, it shares the IP address of the primary domain.
You probably think you could sign up for two shared hosting accounts, so each one has its own dedicated IP address, but that won't work either.
Since it's shared hosting, there are security measures in place to prevent one user from reading the files of another user.
So for shared hosting clients, you're limited to the following scenarios:
- All of your stores do not have a secure checkout, which is fine if you're using PayPal, Google Checkout, or a similar third-party service that handles the processing of card data on their website. For example, visitors to any of your stores are redirected to a third-party website for card processing.
- All of your stores share a secure checkout point. For example, you own three domains: mall.com, shoes.com, and shirts.com You use mall.com as your primary domain and have an SSL certificate associated with it. The other two domains would be either addon or parked domains, and visitors to those sites would be redirected to mall.com to checkout.
- All of your stores are setup as subdomains, and you've purchased a wildcard SSL certificate, which is roughly $1000/year and is for legally registered businesses.
If you do need an SSL certificate for all of your domains, you will need to be in a dedicated hosting environment, such as our Split-Dedicated platform. In this type of environment, all domains will be able to access the same set of files.
Adding Another Store In Magento
The first thing we need to do is setup our second store in Magento.
If you don't know how to install Magento, read our tutorial or submit a ticket to the Magento department.
We're going to do a hypothetical here for the naming conventions, and assume we own shirts.com. Adjust the values accordingly for your own store.
- Login to the Magento admin.
- Go to the Catalog tab, and select Manage Categories.
- Click on the Add Root Category button on the left.
- On the right, for the Name, we'll enter
Shoes.com. Set the dropdown toYesfor both Is Active and Is Anchor. - Click the Save Category button.
- Go to the System tab and select Manage Stores.
- Click on the Create Website button.
- For the Name, we'll enter
Shoes.com, and for the Code, we'll entershoes. We'll use this value later, so don't forget this! - Click the Save Website button.
- Click on the Create Store button.
- For the Website, select
Shoes.comfrom the dropdown. For the Name, we'll enterMain Store. For the Root Category, select theShoes.comfrom the dropdown. - Click on the Save Store button.
- Click on the Create Store View button.
- For the Store, select
Main Storefrom the dropdown, making sure it's for theShoes.comwebsite. For the Name, we'll enterEnglish. For the Code, we'll entershoes_en. For the Status, selectEnabledfrom the dropdown. - Click the Save Store View button.
- Go to the System tab and select Configuration.
- For the Current Configuration Scope (located on the top left), change the dropdown menu from
Default ConfigtoShoes.com. - Select Web from the sidebar on the left under the General heading.
- For both the Unsecure and Secure sections, uncheck the Use default box next to the Base URL item, and enter the URL for your store, e.g.
http://www.shoes.com/. Don't forget the trailing slash! - Click the Save Config button.
Now that we have our second store setup, you'll need to choose one of the following methods for actually setting up the store on the server-side so visitors can access it.
If the URL structure you've chosen will have different domains for each store, the parked domain method is the fastest and easiest method.
Parked Domain Method
For this method, we'll pretend we own shirts.com and shoes.com. The shirts.com domain is our primary domain, and Magento is already installed on it. Here's how we would set this up for the shoes.com domain:
- Login to cPanel for your domain and click on the Parked Domains icon.
- In the input field, enter the domain name that you'll be setting up as a second store, e.g.
shoes.com. - Click on the Add Domain button.
- Open up the
index.phpfile for Magento and replace the last line of code:Mage::run();…with the following code:
switch($_SERVER['HTTP_HOST']) { case 'shoes.com': case 'www.shoes.com': Mage::run('shoes', 'website'); break; default: Mage::run(); break; }If you have more than two stores, you will need to add additional cases to the above code block, e.g.:
switch($_SERVER['HTTP_HOST']) { // Shoes.com case 'shoes.com': case 'www.shoes.com': Mage::run('shoes', 'website'); break; // Hats.com case 'hats.com': case 'www.hats.com': Mage::run('hats', 'website'); break; // Shirts.com (default store) default: Mage::run(); break; }
Addon Domain Method
This is the same scenario as above, except it takes a little longer to setup. This method might be more useful to you if, for example, you wanted to have a blog on one domain, but not on the other. You couldn't do that with a parked domain. Here's how we would set this up for the shoes.com domain:
- Login to cPanel for your domain, and click on the Addon Domains icon.
- For the New Domain Name, we'll enter
shoes.com. cPanel will automatically fill in the next two fields, so removepublic_html/from the Document Root field, leaving us with justshoes.com. This step isn't required, but for organizational purposes, it makes more sense. - Set a password for this domain and click on the Add Domain button.
- Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when adding our domain. In our case, we would do the following:
cd shoes.com/ - Copy the
index.phpand.htaccessfile from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess . - Open up the
index.phpfile that we just copied over and replace the following line of code:$mageFilename = 'app/Mage.php';…with the following:
$mageFilename = '../public_html/app/Mage.php'; - With the
index.phpfile still open, replace the following line of code:Mage::run();…with the following:
Mage::run('shoes', 'website'); - Lastly, we need to create symbolic links to point to a few directories:
ln -s ../public_html/404/ ./404 ln -s ../public_html/app/ ./app ln -s ../public_html/includes/ ./includes ln -s ../public_html/js/ ./js ln -s ../public_html/media/ ./media ln -s ../public_html/report/ ./report ln -s ../public_html/skin/ ./skin ln -s ../public_html/var/ ./var
Subdomain Method
For this method, we'll pretend we own mall.com, and it's setup as a portal that links to the various shops within the mall. Magento will be installed on the mall.com domain, and all of the shops will be in subdomains, e.g.:
shoes.mall.comshirts.mall.com
Here's how we would set this up for the shoes subdomain:
- Login to cPanel for your domain, and click on the Subdomains icon.
- For the Subdomain, we'll enter
shoes. cPanel will automatically fill in the next field, so removepublic_html/from the Document Root field, leaving us with justshoes. This step isn't required, but for organizational purposes, it makes more sense. - Click the Create button.
- Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when creating our subdomain. In our case, we would do the following:
cd shoes/ - Copy the
index.phpand.htaccessfile from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess . - Open up the
index.phpfile that we just copied over and replace the following line of code:$mageFilename = 'app/Mage.php';…with the following:
$mageFilename = '../public_html/app/Mage.php'; - With the
index.phpfile still open, replace the following line of code:Mage::run();…with the following:
Mage::run('shoes', 'website'); - Lastly, we need to create symbolic links to point to a few directories:
ln -s ../public_html/404/ ./404 ln -s ../public_html/app/ ./app ln -s ../public_html/includes/ ./includes ln -s ../public_html/js/ ./js ln -s ../public_html/media/ ./media ln -s ../public_html/report/ ./report ln -s ../public_html/skin/ ./skin ln -s ../public_html/var/ ./var
Subdirectory Method
This is the same scenario as above, except all of the shops will be in subdirectories, e.g.:
mall.com/shoesmall.com/shirts
Here's how we would set this up for the shoes subdirectory:
- Login to your site via SSH, and create a subdirectory where your second store will be:
cd public_html mkdir shoes/ cd shoes/ - Copy the
index.phpand.htaccessfile from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess . - Open up the
index.phpfile that we just copied over and replace the following line of code:$mageFilename = 'app/Mage.php';…with the following:
$mageFilename = '../public_html/app/Mage.php'; - With the
index.phpfile still open, replace the following line of code:Mage::run();…with the following:
Mage::run('shoes', 'website');
Managing Multiple Stores
It's very important to remember that now that you have multiple stores to manage from one admin panel, that you make sure you're changing the configuration for the appropriate store.
In the System → Configuration section, if you leave the dropdown menu for Current Configuration Scope set to Default Config, it will globally change the values for all of your stores, assuming you haven't removed the checkmark next to Use default throughout the configuration sections.
You can change the configuration values globally, for each website, and for individual store views.
Secure Checkout For Each Store
For those of you in dedicated hosting environments, you can follow either the addon or parked domain method from above, and edit the httpd.conf file to give the addon or parked domain a dedicated IP address.
However, this is not advised. Your changes will most likely be overwritten with a control panel upgrade, Apache or PHP rebuild, or even simple maintenance.
Your best bet would be to setup each store as a separate account, which can be done in WHM if you have access to it, or in the case of our Split-Dedicated product, something we will be able to set up for you.
Once you have all of your domains setup as individual accounts, you would follow steps 5-8 for the addon domain method, except you're going to use absolute paths instead of relative paths, e.g.:
$mageFilename = '/home/username/public_html/app/Mage.php';
…and for symbolic links:
ln -s /home/username/public_html/404/ ./404
ln -s /home/username/public_html/app/ ./app
ln -s /home/username/public_html/includes/ ./includes
ln -s /home/username/public_html/js/ ./js
ln -s /home/username/public_html/media/ ./media
ln -s /home/username/public_html/report/ ./report
ln -s /home/username/public_html/skin/ ./skin
ln -s /home/username/public_html/var/ ./var
Lastly, in order for the above to work, you will need suEXEC disabled. This won't be a problem in a dedicated hosting environment, since you don't have to worry about other people being able to access your files.
This is just one of the many advantages of running your online business in a more secure and flexible hosting environment like this. If you're on our Split-Dedicated product, this is something we'll have to disable for you.
Once you've done the above, all of your stores will have their own secure checkout and IP address, but will still share the same codebase and backend for management purposes.
Updates
Multi-Store Setup For 1.4.x
Please refer to the following blog post for changes on setting this up on the 1.4.x version of Magento:
Wildcard SSL Certificate
If you're having trouble installing a wildcard SSL certificate with cPanel and setting it up on all your subdomains, please refer to knowledge base article for help.
![]()
Comments
Don't Be Shy…
You can leave a new comment or reply to one of the comments below.
Kal_El
I have followed instructions to a ‘T’, yet no matter what I do the index file can not see Mage.php
basically i have set it up using the ‘Subdirectory Method’ which is “../public_html/store/euro/”
the mage file is located “../public_html/store/app/Mage.php yet when i redirect the index.php file (within the euro subdirectory) it says “../public_html/store/app/Mage.php was not found”
the address is definately correct….
basically im trying to build a new store for each currency - using the same products, the currency is the only change.
I have tried editing the .HTaccess file with no luck…
Tony Connery
This is the best guide i have found on how to get this up and running. And i am nearly there
Just struggling a bit with the last part
I followed the instructions to the letter, the only change i had to make was
$mageFilename = '../public_html/app/Mage.php';
When i set up the add-on domain i put it in public_html/secondwebsite.com so i changed it to:
$mageFilename = '../app/Mage.php';
And it pointed accross ok.
The functionality worked fine, but the website was unstyled, the only final part i need to do is the symlinks which i am struggling with
Is there anyway to do these symlinks with htaccess.
The server blocks the php symlink function so i cannot use that,
I am struggling with setting up SSH and connecting in to run the right functions,
I found on the internet to try doing it through cron. so i tried this
I have tried every combination i can think of (replacing the home/username with the right settings)
1) ln -s /home/username/public_html/js/ ./js
2) ln -s /home/username/js/ ./js
ln -s /home/username/public_html/js/ /home/username/public_html/secondwebsite.com/js
I am also not sure whether i should have been randomly trying one option after the other… hope that will have no bad effects .....
Because of the deviation from the tutorial, i am not sure i am on the right track anymore. Some help to get me back on track would be very appreciated
Thanks
Zac
I may be having a similar issue to Tony. It seems that no matter what combination I use for paths in the symlinks, it consistently tells me that there was an unexpected ‘.’
I always change the first couple when i make a change, and yet the error always happens on the same line, which is the first line of the symlinks.
My parent site is the magento directory, and the child is test1.
public_html/magento/test1
ln -s ../../magento/404/ ./404 ln -s ../../magento/app/ ./app ln -s ../public_html/magento/includes/ ./includes ln -s ../public_html/magento/js/ ./js ln -s ../public_html/magento/media/ ./media ln -s ../public_html/magento/report/ ./report ln -s ../public_html/magento/skin/ ./skin ln -s ../public_html/magento/var/ ./var
Any Help?
Kyle
While I haven’t tested this yet, I see no reason why it would not. Please let me know if it doesn’t and I will make a new blog article on how to do this.
Richard E. Poulin III
No. 1.4 you do not have to do all of these steps. This link describes the new steps how to do it for the newer version of Magento: http://blog.baobaz.com/en/blog/setting-up-magento-with-multiple-websites-or-stores
Magento Developer
Thank you for providing detail information on how to setup multiple store in magento. Your instruction work for me and save my lots of time and efforts. Nice post.
irvinelmo
Hi,
I have a Magento site and its traffic is high. http://www.accounts-merchant.com/Lately, the site has been becoming slow approximately once a day. About a month ago, it used to become slow about one time every 3 weeks.
As soon as I restart the Apache web server, the site becomes fast again.
Do you think that this is a bandwidth issue? If I increase the bandwidth on my server, will I solve this problem?
Thanks in advance.
josephniva
I am in need of Magento Developers for my site.
http://www.accounts-merchant.com/
Where can I find experienced Magento Developers?Can anyone please help me.Thanks.
ProContractors
@irvinelmo
Looks like a memory issue. - When your memory is filled up. The starts to swap memory in/out to disk. Hence a bad performance.
When you restart your Apache. The memory is cleaned. And no more need to swap memory to and from disk.
just my 50 cent.
Yoza
Hello,
I tried the subdirectory method and I get a 404 error when I am trying the new store (the first store is still working).
Any ideas ?
By the way the doc say :
replace in index.php $mageFilename = ‘app/Mage.php’; by
$mageFilename = ‘../public_html/app/Mage.php’;
Shouldn’t it be $mageFilename = ‘../app/Mage.php’;
since index.php is already in public_html directory ?
Thanks
Dansksun
I had some issues hosting my solution in Media Temple Grid service,
and after plying with it it turned out that the way to write this line was ../../maindomain.com/html/app/Mage.php
so for you it may be ../../maindomain.com/public_html/app/Mage.php
andrew
Hello. I am using Magento version 1.4.0.1. I am able to access a second Website in a subdirectory after changing the following code in the copied over index.php:
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'my_code'; $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';
but none of my js or css files are loading. How can I set the paths for those? The instruction for adding the symbolic links is vague above for someone who has never done so before. Where do I add the symbolic link code?
andrew
Really quick follow up. My js and css load fine now but I had to update the paths in System > Configuration > Web for each subdirectory store. I had to type out the full paths to my skin, media, and js folders rather than use the variables, e.g. {{unsecure_base_url}}. Though I would like to use the variables.
Everything works fine now. I did not add anything to my .htaccess to achieve this.
Johnny
I’m using magento 1.4 on Kinderkleding, but is working properly, didn’t need to change the code at all?
Dansksun
I am also using I am using Magento version 1.4.0.1.
All is working fine but like andrew none of my js or css files are loading.
Have tried to specify the exact path for those (like Andrew in this post) but it did not work.
Again, the instruction for adding the symbolic links is vague. Can you better explain where do I add the symbolic link code?
Required
You create those links via SSH. Ask your hosting provider if your package has access to that.
Mike
Sorry, that is my question. I thought that all the folder structure was using the Root folder. I guess I don’t understand what a symbolic link is doing in Magento.
Beginner here… wasn’t questioning your knowledge. Just didn’t want to create extra work.
Required
np.
Just try to create the symbolic links and see what it can do. I could describe it, but you learn a lot more by doing it yourself and see the results. Also check out the folder structure after creating those links. Use “rm [linkname]” to remove the links afterwards.
mike
Version 1.4- I’m using 1 SSL on my main website. I set my other 3 websites to use the main domain as the SSL for my cart. I created the 3 url’s as add on domains in my Cpanel with folders outside my root.
I believe I have everything set up right because I can go to the 3 websites and the domain names stays in the browser. I’m able to add items to my cart fine.
My PROBLEM…. if I click ‘Proceed to Checkout’ it takes me to the main website with my SSL on it but the url doesn’t change to the https. The other issue is that it tells me that my cart is empty. I then go back to my website that I had a item in my cart and the item is in the cart. I confirm with the 3 websites, under the web section of config, that my secure website was set to my main site.
I believe this is a simple fix (setting) so can someone please help me out. I’m thinking this is a 1.4 issue but I can’t find any other articles.
Ste
I wonder if anyone can help. I have a second site set up using the above method which works fine, but I it doesn’t seem to work with url rewrites turned on in magento. Does anyone know how to fix this?
luc
I would set up a multiple shop in the Parked Domain Method with following scenario:
Main website: firstdomain.ext
second website : seconddomain.com (alias of the first domain on the plesk panel)
I have the main website installed in the firstdomain.ext root.
The question is:
Have I to install another magento? if yes, where ?
——
My target is having two different shop with different articles, different checkout, different company info, different template and same users database.
—
Thanks for help
luc
I just follow the instruction of the Parked Domain Method setup, but I get an error 404 on the secondary store.
Daniel
I was hoping to find out how to use this method, but be able to use one cart for all stores.
I have set up the multi-store environment and have it working, however the cart is not being shared.
Can someone tell me how this is accomplished or an article?
Thanks
Daniel
andrew
Have you set up multiple stores under one website or multiple websites? I was able to achieve this by specifying ‘store’ in the below code instead of ‘website’ for $mageRunType and placing the store view code instead of website code for $mageRunCode:
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘my_code’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;
I was still able to set each of my stores in separate sub-directories. All are using same cart. Hope this is helpful. I apologize if this is info you already know.
Daniel
andrew, I have separate Url’s for each site, however all the sites are using the main websites ‘root documents’.
I wonder if this would still work in my case? Also, you have in your first line, ‘my_code’; Is that really what you have listed there? And what does the my_code refer to? New to this so please forgive my ignorance.
Maybe I should set them up under one website, then have separate stores, but use different url’s?
andrew
Sorry for late reply, you have probably figured out your issue. ‘my_code’ refers to the code I entered for my Store View. Since I labeled my Store name as Boats and my Store View name as ‘English’ the actual code I placed for Store View is ‘en_boats’. I simply placed my_code in for an example.
vishal
Hello ,
I need to access a module from subdomain
i.e. http://www.domain.com/remarks/ - need to access from remarks.domain.com
I tried much , but cant find any solution…...
Thanks,,,
Josh
Hi:
I am trying to use the subdomain method, but I keep getting the following error msg:
Parse error: syntax error, unexpected ‘.’ in /home/homeofbe/ibm/index.php on line 70
Line 70 relates to the 1st line of the symbolic links of which mine looks like:
ln -s ../public_html/store/404/ ./404
ln -s ../public_html/store/app/ ./app
ln -s ../public_html/store/includes/ ./includes
ln -s ../public_html/store/js/ ./js
ln -s ../public_html/store/media/ ./media
ln -s ../public_html/store/report/ ./report
ln -s ../public_html/store/skin/ ./skin
ln -s ../public_html/store/var/ ./var
Any ideas?
Daniel
I am still stuck on trying to share the cart between stores.
I have a main site and parked domains. I am able to set up the multi-store just fine, but the websites are not sharing the cart.
I have tried every setup possible in the config>stores> area.
Can someone please tell me what I am doing wrong?
andrew
You are probably setting up multiple ‘Websites’ and not multiple ‘Stores’ in magento. From above example: Instead of Mage::run(‘hats’, ‘website’) you would have Mage::run(‘hats’, ‘store’).
‘store’ being the code type and ‘hats’ (in this examples case) being the ‘Store View’ code.
And in magento setup you would create one main website that has different stores under it.
Not sure if this helps. I was unable to have multiple Websites that shared the same cart. There may be a way but this worked for me.
Daniel
Andrew
But this will work with parked domains as well? Do you have an IM that I can talk to you? Thanks for your help
andrew
I cannot really advise regarding parked domains. I have not set stores up using that method. I would suppose that you can use the same code as provided here but change your code type from ‘website’ to ‘store’ and use corresponding Store View code instead of website code created in Magento admin. Making sure that all stores are under same Website. I think you will just have to try it and see. Sorry if I lead you astray. But this seems logical to me.
Gui
This is a real ignoramus question…
I know how to access my Cpanel, but have no idea what SSH is, nor the “cd….cp…” bits. I trying to do the subdirectory method. I want to have subdirectory for each country, but they will be different “stores” under the 1 website (sharing root catalogue, but unique articles, currencies, etc.)
Can anyone please enlighten me?
Kyle
SSH is a protocol, like FTP. You’ll need an SSH client to connect to your site (just like you would need an FTP client to connect via FTP). You can download one here:
Roch
Do you know of anyway with htaccess to disable someone from using your domain to point to their own website on the same server? Ex: they use YOURDOMAIN.com to promote their PHISHING WEBSITE.COM by using this simple URL to send users : YOURDOMAIN.COM/~phishing/file.html
Any help would be greatly appreciated. Thanks
hostrightnow
Thanks for this post. Because to find these instructions at one place is not easy
WebBloomer
I don’t see the the Mage::run(); in my index.php?
The closest code I see is:
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;
Mage::run($mageRunCode, $mageRunType);
I’m trying to use the addon method for multiple domain names. Any advice would be amazing! Thanks!
Wendy
I have a 3 store set up and used the great directions above to set up the first two. I recently added the third ier-sse.com and have ran into a snag that I can not figure out.
As far as I can see everything is set up the same as the other site but when you try to use any of the links in the third site you get an Internal Server Error… ???
The template change is correct and and the info change for the most part is correct but I don’t know what is causing the error. any insight on what I may have done wrong?
Magento development
@WebBloomer
I presume you are using Magento 1.4, the index.php code should look like this:
$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘->ENTER_THE_CODE_HERE<-’;
$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;
@Wendy,
I wanted to check the store ier-sse.com to see if I can help you but I see you fixed the issue, can you let us know what was wrong ?
ProContractors
This is without any doubt one of the best blog posts regarding magento on the internet.
Edwin L.
For the benefit of fellow Magento’ers, http://cwhurl.com/mmss now points to:
http://blog.baobaz.com/en/blog/setting-up-magento-with-multiple-websites-or-stores
glenn
hi i am just setting up an instance of say Mall.com and i want to “sublet” a store style to another business that i do not own is there a way of giving that business access to the admin panel for just their sublet store and not the rest of my store sections?
andy
Hi So I have added the 2nd store per your tutorial, but when i am going to the page i get this error:
There has been an error processing your request.
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 88: parser error : Opening and ending tag mismatch: block line 46 and reference in /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php on line 296
Trace:
#0 [internal function]: mageCoreErrorHandler(2, ‘simplexml_load_…’, ‘/home/wedding/p…’, 296, Array)
#1 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(296): simplexml_load_string(‘fetchFileLayoutUpdates()
#3 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(246): Mage_Core_Model_Layout_Update->fetchPackageLayoutUpdates(‘default’)
#4 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Model/Layout/Update.php(224): Mage_Core_Model_Layout_Update->merge(‘default’)
#5 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(265): Mage_Core_Model_Layout_Update->load()
#6 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(221): Mage_Core_Controller_Varien_Action->loadLayoutUpdates()
#7 /home/wedding/public_html/shoppe/app/code/core/Mage/Cms/controllers/IndexController.php(60): Mage_Core_Controller_Varien_Action->loadLayout()
#8 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Cms_IndexController->defaultIndexAction()
#9 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch(‘defaultIndex’)
#10 /home/wedding/public_html/shoppe/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/wedding/public_html/shoppe/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/wedding/public_html/shop/digital-downloads/index.php(65): Mage::run(‘ddownsite’, ‘website’)
#13 {main}
Mage :: run is set to:
Mage::run(‘ddownsite’, ‘website’);
where ddownsite is the code for Website Name
would you know what the issue is?
Wendy
17. For the Current Configuration Scope (located on the top left), change the dropdown menu from Default Config to Shoes.com…..
OK, so I thought I had done this and hit “save”...but as it was saving I looked up and saw that it was on default. So now I can’t get into my admin panel or anything and main website doesn’t work. Know where I can get in to change this back??? Help!
Tom
Thank you for this detailed instruction!
Reply