How To Setup Multiple Stores With Magento
Magento Multi-Store & Setting Up Multiple Magento Stores Using One Admin Area
If you want to setup multiple Magento stores and multiple domains that share the same admin area, the tutorial below will assist you in doing so. This is very useful if you have a lot of stores that share the same or related products and you wish to manage it from one central location. You will also be able to track your sales and customers without having to login to the admin area of each website.
With the latest release of Magento Commerce it is much easier to set this up than it was in previous versions. Before it required you to modify the index.php file to handle your different domains pointing at different stores and various other complicated modifications. With Magento 1.4.x it is now much easier. The new index php contains the following code:
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
It checks two variables(code & type) and then uses them to run Magento. With the new code you’re able to set which store is supposed to be running under your main domain directly within your virtual host definition(root access required) or for our shared hosting and cPanel hosting customers you can actually now use .htaccess to accomplish this.
Creating your additional stores
If you haven’t already done so, the first thing you will need to do is setup your second store in the Magento admin area:
- Login to the Magento admin area.
- Go to the Catalog tab, then select Manage Categories.
- Click the ‘Add Root Category’ button on the left.
- On the right, for the Name, enter your secondwebsite.com. In the dropdown set Yes for both ‘Is Active’ and ‘Is Anchor’.
- Click on ‘Save Category’.
- Next you should go to the ‘System’ tab and select ‘Manage Stores’.
- Click the ‘Create Website’ button.
- For the Name enter your Secondwebsite.com, and for the ‘Code’ you should enter secondwebsite. You’ll be using this value later so make sure your note it down somewhere.
- Click ‘Save Website’.
- In the same area, click on the ‘Create Store’ button.
- For the Website, select your Secondwebsite.com from the dropdown. For the ‘Name’, you can enter Secondary Store. For the Root Category, select your now created Secondwebsite.com from the dropdown.
- Click the ‘Save Store’ button.
- Next click on the ‘Create Store View’ button.
- For the ‘Store’, select Secondary Store from the dropdown menu, make sure it’s for the created Secondwebsite.com. For the Name, you can enter English. For the ‘Code’, you should enter secondwebsite_en. For the Status, select ‘Enabled’ from the dropdown menu.
- Click on ‘Save Store View’.
- Next you will need to go to the ‘System’ tab and select ‘Configuration’
- For ‘Current Configuration Scope’ (located near the top left), change the dropdown menu from ‘Default Config’ to Secondwebsite.com.
- Select ‘Web’ from the left sidebar under the ‘Genera’l headline.
- 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. secondwebsite.com. Make sure to include the trailing backslash.
- Click the ‘Save Config’ button.
You’re almost done so hang in there!
Once you are finished creating the store, if you have not added your second domain as an add-on domain you will need to login to your cPanel account with us and create it as an Add-on domain now. Once you have done this you then need to copy your index.php and .htaccess file to the created directory for your add-on domain.
After copying over your index.php file, you should replace the following lines of code in the index.php file located only in the new add-on directory:
Replace this line:
$mageFilename = ‘app/Mage.php’;
With the following:
$mageFilename = ‘../public_html/app/Mage.php’;
Next you will need to either use the VirtualHost method(VPS and dedicated servers) or the .htacess method (for regular magento hosting / shared hosting accounts).
Using VirtualHost:
To set this up using the Virtualhost method you should simply add the following lines within your VirtualHost definition file:
SetEnv MAGE_RUN_CODE "base" #Put your main/base website or store code here.
SetEnv MAGE_RUN_TYPE "secondwebsite" #Here you should put 'secondwebsite' if the URL of the additional store you are adding is secondwebsite.com.
Using the .htaccess method:
If you do not have access to the virtual host file and are not a VPS or dedicated server customer, you can still use .htaccess for this.
In your .htaccess code you will need to define your main and secondary websites. For example if the URL of your main/base website is base.com and the URL of your second website is secondwebsite.com you should put the following code in your .htaccess
SetEnvIf Host .*base.* MAGE_RUN_CODE="base";
SetEnvIf Host .*secondwebsite.* MAGE_RUN_TYPE="secondwebsite";
You are, of course, not limited to using just 2 websites. To add additional stores you would simply add the additional lines of necessary code:
SetEnvIf Host .*thirdwebsite.* MAGE_RUN_TYPE="thirdwebsite";
etc.
You should now be all setup using Magento multi-stores and have multiple stores with one main admin area in Magento, without messing around with the code and the other previous lengthy methods
.
If you have any questions, additions or issues with this feel free to comment.
Magento 1.7 Released
Magento Enterprise Edition Version 1.7 was recently announced. The new release features enhancements and new functionality focusing on enhancing customer loyalty through a reward points system, performance enhancement through full page caching and many other key administrative functionality improvements.
New Features in Enterprise Edition Version 1.7
Magento Enterprise Edition version 1.7 features the all new reward points system, which allows merchants to implement unique programs designed to enhance user experience and increase customer loyalty. Points are awarded based on purchases, as well as actions such as registering on the site, inviting others to register, submitting product reviews and tags and more. Points are managed by customers through their account and are redeemable at checkout time towards the price of a purchase.
Magento Enterprise Edition version 1.7 also places a focus on highly tuned page performance by making use of Full Page Caching. Forrester Research has recently hailed caching as the “best practice” behind some of the internet’s fastest sites and new performance optimizations included in this version of Magento Enterprise Edition provide significant benefits for merchants of all sizes through a new Full Page Caching module. The optimizations, which together with other performance-enhancing functionality already in Magento, significantly reduce page load times, increase conversions, and enhance the customer browsing experience.
Additionally, Magento Enterprise Edition version 1.7 included no less than fifteen new features available to store administrator users to help augment the range of tools administrators have at their disposal for managing their site. These include such features as sales report optimization, WYSIWYG Editing for Products, Categories, and email templates, Design Theme & Packages Facilitation, Custom Variables for use in email templates and CMS, and upgrades to the Magento Enterprise Edition CMS+ content management engine.
Magento Hosting For Enterprise Edition
In addition to our regular optimized web hosting services, all eLief VPS and dedicated servers can be optimized for Magento hosting – with our expertise and experience with Magento we can customize a solution based on your exact needs, number of products and SKU’s in your store, growth expectations and much more. Contact us today for a free quote.
Happy New Year from eLief
From everyone at eLief, we would like to wish you a wonderful New Year.
This last year has been a great one for our company. In 2009 we have grown in size tremendously and have helped launch many successful web sites alongside you, our customers. Early in the year we partnered with ocPortal, Aardvark Topsites and Magento Commerce to provide a optimized hosting solution for those applications, including our popular magento hosting plans. In August, we launched our new high performance servers to improve the quality of the product we offer you. Later that month we launched over 70 video tutorials. In September, our new R1Soft CDP backup technology was introduced. In November we re-established ourself as a corporate web host with a new web site and identity. We also started to publicly offer affordable VPS solutions. 2009 certainly didn’t go without issue, however those problems allowed us to grow and improve as a company.
For myself the New Year represents many important things:
- Opportunity – with a new year and a new decade I find it very inspiring and motivational to help me move forward with my goals that I’ve yet to accomplish.
- Reflection – both personally and professionally. Human beings in todays society can be so busy with life that we take little time to really evaluate ourself, what we are doing and where we are going.
- Moving Forward – Sometimes the hardest thing to do is to move past the hardships in life. It is not an easy thing to accomplish by any means, no matter how big or small the issue might be. This decade and new year represents change, and it gives us all a chance to change things in our lives and with others.
This coming year, let us look forward to a brighter world. In these troubled times let us hope for peace, prosperity, security and happiness to return our great world to something new and better. Let us hope for new friendships and families coming together. Let us hope for our economy to flourish and for small business, corporations, countries and every individual within them to succeed and magnify.
Some of our company goals we hope to offer you this year:
- Expand our video tutorials and knowledgebase
- Introduce 24-hour phone support, free for all clients
- Continue to excell in customer service and improve in any way we can
- Develop an enhanced cPanel back end, merging your billing login with your control panel so you will only need to remember one username and password
- Look into new opportunities to improve performance even more
I’d also like to share a few of my personal new years resolutions:
- Find time to exercise more often
- Establish new relationships and friendships
- Enjoy life more – it’s been too long since I’ve taken a real vacation!
- Help Others – I would like to donate some of my free time to help others on a more personal level
We would love to hear from you about what this new year means to you, and any of your New Year resolutions or goals. We encourage our visitors and customers to post and respond to this on our blog, or if you wish, you may contact me personally.
Have a most excellent New Year!
Warm Regards,
Richard Rowan
Owner, eLief.com
How to Install ocPortal
Installing ocPortal and other software on eLief is easy, we’ve included a short guide on how to do this below:
- The first step is to login to your cPanel account with us.
- Once you are logged into your cPanel account you will need to find the Software/Services section and click on “1-Click Applications Installer”.
- This will bring up a large list of applications, under the left hand side look for ‘Content Management Systems’, click ocPortal -> Install this Application.
- The on-screen instructions will guide you through the installation easily. It will automatically create your database and folders, download and update data and finalize the installation.
- Your ocPortal install is now ready! Use the password and username to login to ocPortal and start customizing your site.
We are the official ocPortal hosting partner and support all requirements. Our applications installer is available on all of our web hosting services and cPanel reseller hosting plans. The installer is also not limited to ocPortal and can install over 50+ applications, including our popular magento hosting plans.
What Is Magento Hosting?
Magento Hosting
Magento Hosting is an extremely popular ecommerce solution, so it’s perfectly understandable that people are looking for hosting packages which are optimized accordingly. Just as specialized blog hosting companies, forum hosting companies and others have managed to create subniches as far as hosting is concerned, “Magento hosting” will be a term more and more people will be using.
There are quite a few cpanel reseller hosting companies, for example, with hosting packages which have been optimized for Magento and if that’s the case, you will probably find a descriptive sales page on their website which does all of the explaining. If the hosting company does not have a link to a Magento hosting package on its homepage, you can still determine if it could represent a Magento hosting solution by:
Analyzing Magento’s System Requirements
First of all, you need to go with a Linux box, this much is certain. Magento supports Apache 1.3.x, Apache 2.0.x as well as Apache 2.2.x, so most hosts would “qualify” from this perspective. Now as far as PHP is concerned, there are certain things that you need to keep in mind.
Magento is compatible with PHP 5.2 (go with a memory limit of 128 Mb at the very least) but be sure to make sure that Safe_mode is off. There are also certain required extensions which you need to remember about: simplexml, hash, PDO_MySQL, DOM, mcrypt, curl, SOAP, GD and iconv.
Your server needs to be able to run cronjobs and it also needs to be able to override options as far as the .htaccess file is concerned. And finally, when it comes to SSL, you need to know that it doesn’t support self-signed certificates.
Which Hosts Qualify?
Most companies which offer Linux hosting (i.e. cpanel shared hosting, cpanel reseller hosting, unlimited domain hosting , etc.) solutions will be able to cater to your needs, but it’s extremely important to make sure that your package supports Magento before making the payment. If you’re not 100% sure, contact the sales department of each host and ask them.
A lot of companies have a live online support interface, so you’ll be able to find someone who can answer this question right away and without even picking up the phone. If an online support interface is not available, you can simply email them or (if you need a response ASAP) give them a call. Most good cpanel reseller hosting companies as well as unlimited domain hosting companies offer 24×7 support, so getting in touch with someone should not be complicated at all.
It’s extremely important to choose only companies with whom you’re 100% comfortable. On the one hand, it is true that cheap web hosting packages are always tempting, but when it comes to Magento hosting, going with providers that have proven themselves time and time again is definitely the best long-term solution.
After all, would you rather save a few dollars here and there but face the risk of your site being offline a lot? The consequences are more than obvious: less traffic, ultimately fewer sales, you’d probably end up losing considerably more money than you’ve managed to save by going with the cheapest option. Better to spend a little bit of extra money but know that you’re working with true professionals.
Magento Hosting Mistakes?
Unfortunately, there are a lot of mistakes associated with Magento hosting which could cost you. Leaving the previously mentioned mistake aside (always going with the cheaper option), there are quite a few other things which could cause problems.
First of all, not monitoring your site on a daily basis is definitely not a recommended practice. You never know what could go wrong, so keeping an eye on things will definitely not hurt. Maybe your hosting companies will upgrade one thing or another and that will interfere with Magento, you just never know. As soon as you notice a problem, contact your host ASAP and don’t forget to mention that you’re running Magento. A good Magento Web hosting support representative will be able to determine the cause of the problem quickly and will make the necessary changes within moments.
Don’t forget to be careful when installing other applications on your server. There are instances where certain scripts or applications can interfere with Magento. It’s not uncommon to modify your settings in order to be able to run a certain application, only to realize that the new settings caused problems with Magento afterwards. Anyone makes mistakes and, once again, that’s why always monitoring things is recommended. If you follow these simple guidelines, finding a great Magento Web hosting company and running a profitable Magento website will be a piece of cake.
20 Tips For Small Business Owners
Below are some very useful tips for aspiring entrepreneurs. I found this interesting and thought you could gain value from this as well:
1. Find a strength for your weakness.
2. Work with people that are just as passionate about the business. You have to be “all-in” and fully committed to the business.
3. Always think “how can I add more value to the end user?”
4. Murphy’s Law – Anything that can go wrong will go wrong.
5. Realize that as an entrepreneur, you are innately optimistic. Try and step outside yourself, ask others, and try and be more realistic.
6. Networking is more important than you can even imagine. Never eat alone. Ask lots of questions to people who have been there and done that. Surround yourself with wise people. As Jim Rohn said “You are the average of the five people you spend the most time with.”
7. Make mistakes; just don’t do it again. Embracing failure and learning from your mistakes is integral to growth.
8. Money is always a problem. Deal with it.
9. Continually innovate and think outside the box.
10. Never lose focus on your mission.
11. Customer service should always be a core value.
12. Write down and document everything. Be concise on all documents. The devil is in the details.
13. Don’t underestimate the power of social media.
14. Write a SWOT analysis of every one of your competitors.
15. Periodically revise your business plan to better organize your thoughts.
16. Communication is key.
17. Every single night write a to-do list for the next day and don’t go to bed until you complete the tasks.
18. Make sure to schedule in some personal time everyday.
19. Luck happens when hard work meets opportunity.
20. Nothing is a greater high than when people use your product and see value in it.
—–
Credit: StartUpNation.com
High Performance Web Hosting Upgrade
As a continued effort to improve our service for you, we will be upgrading our servers on Wednesday, August 5th. The new servers will include a major hardware upgrade for both improved performance and increased disk space allowance. All old servers will remain active while the new DNS propagates, so no actual downtime is expected. A full press release will be released later this month detailing the new enhancements.
Some benefits of this upgrade include:
- New high performance hardware
- Dual Intel Nehalem 5520 Processors, 8 Cores (16 Cores displayed with Hyper Threading enabled)
- 12GB DDR3 RAM (Noticeable improvement over current DDR2 RAM)
- Caviar Black Hard Drives – High performance drives w/ dual processors per each drive. Greatly improves disk i/o performance(A key factor in dynamic and database intensive websites & applications).
- R1Soft CDP Backup’s – You will now be able to restore backup’s right from your cPanel control panel. It includes daily and hour-by-hour restore points for you to choose from along with snapshots.
- Increased disk space and bandwidth upgrade’s for all web hosting plans, free of charge. Upgraded plans can be viewed directly on our site at http://www.elief.com/web-hosting.php or under our Magento Hosting plans.
Magento and Joomla Integration
An exciting new development is scheduled to be released in July 2009 – a merger of one of the most powerful Content Management Systems(Joomla) with one of the most powerful E-Commerce solutions(Magento).
Until now, VirtueMart was the only integrated shopping cart solution for Joomla. The integration of Magento commerce into Joomla is very exciting for both communities. With both of these software solutions under one package it will allow you as the end user to easily modify your storefront, move different modules in just a mouse click without modifying the code manually, and many more powerful features. If you have been using Magento you may have noticed it was a bit confusing for developers to get started with, not anymore. Now the question is, how many Magento developers will be out of work because of MageBridge?
Additional details are located at http://tinyurl.com/me7me5 and http://www.yireo.com/software/magebridge/
You can expect us to offer fully optimized Magento Magebridge Hosting when a stable version has been released.
LiteSpeed Web Server Upgrade
Today we have upgraded LiteSpeed Web Server to the newest release, v4.0.3. This upgrade includes improved security, better cPanel and overall website performance, SSI support, mod_cache, Ruby on Rails 2.3 support, and several other minor improvements. This upgrade is for all web hosting accounts across all servers.
All hosting blogs are not created equal.
A blog from eLief? Does the world really need another blog? We think so. Let me tell you why – eLief is at the epicenter of an exciting transformation in the hosting industry. Did you know your average hosting company is still using the same technology that was around 10 years ago? Not here. eLief runs state of the art technology using LiteSpeed web server. LiteSpeed is an advanced web server that processes pages up to 8x faster, reduces server loads for better performance with less CPU and memory consumption, and also allows us to perform servers updates, maintenance, and restarts without downtime. We are here to revolutionize the industry and you will only continue to see more big things coming from us. LiteSpeed hosting is just the beginning.
Ok cool, so what..you created this blog just to talk about your services? Not exactly! This blog will serve as a great way to communicate and interact with our readers and customers, gather opinions, collaborate with industry veterans, or to just come and read the mindless ramblings from the creators of eLief.
The scoop you can get from here:
- Upcoming news and insider perspectives
- New feature announcements
- How-to tutorials
- Webmaster tips & techniques.
- In-depth information about what happens behind the scenes at eLief.
- Why eLief is the best hosting company in the galaxy and how it will come to rule the world. Just kidding, no but seriously.
To start things off, during the month of April, we will be focusing on tutorials and information about running a Magento Commerce store for all our magento hosting and ecommerce customers.
