And here we go. Download the latest version here
and give it a try. Almost everything is ready. Here are some things still to be done:
1. Product tags per store. We should display product tags only for the current store. UPDATE: DONE
2. Blog posts per store. UPDATE: DONE
3. Polls per store (maybe)
4. Reward points history per store (maybe)
5. Limit plugin per store (maybe)
How to set up multi-store. For example, we have two stores: www.store1.com and www.store2.comStep 1
. Upload and install the site on www.store1.com. This is only place where nopCommerce files and DLLs will be stored.Step 2
. Go to the control panel of "www.store2.com" (your hosting control panel, and not nopCommerce admin area) and ensure that all requests to "www.store2.com" are forwarded (not redirected) to "store1.com". Do it using CNAME records. This step is very important.Step 3
. Go to the control panel of "www.store1.com" and configure a domain alias for "store2.com". This step could be complex for some users. Just ask your administrator to do it if you experience any issues. Once it is done, when you open "www.store2.com" in your browser, you should see the content of "www.store1.com".
Find how this step 3 could be done in Plesk control panel below:
When "www.store2.com" is redirected to "www.store1.com", the web server for Plesk does not know how to display "www.store2.com" because it uses what's called Name-Based Virtual Hosting. The solution is simple, you just have to create a domain alias for "www.store2.com". For future reference, here is how you would do this:3a
. Log in to the domain panel for "www.store1.com", either directly or via the "Open in Control Panel" link in the server admin panel3b
. Go to the Websites & Domains tab and select the "Add New Domain Alias" link near the bottom3c
. Enter the full alias (in this case "store2.com")3d
. Make sure "Web service" is checked. "Mail service" is optional, this is if you want mail the @store2.com to redirect in a similar way. Leave "Synchronize DNS zone with the primary domain" unchecked.Step 4
. Go to admin area > configuration > stores and configure all your store(s). Enter a store name and URL for each store you have. And there is a new very important field "HOST values"
. The comma separated list of possible HTTP_POST values (for example, "store1.com,www.store1.com" for the first store and "store2.com,www.store2.com" for the second store). This property is required only when you have a multi-store solution to determine the current store. This field will allow us to distinguish requests to distinct URLs and determine the current store. You can also see the current HTTP_POST value on the "System information" page in admin area.
That's all. Now you have two stores "www.store1.com" and "www.store2.com" using a single nopCommerce installation.
Looking forward for your feedback
P.S. Multi-store solution (distinction of stores by HTTP HOST) won't work for sites in virtual categories on the same domain. For example, if you have one store on http://www.site.com/store1 and the second store on http://www.site.com/store2. It's impossible because HTTP HOST values for both of these sites is the same (www.site.com)