Since Spree 4.3 this extension is deprecated and not needed. Multi Store feature is now built-in into Spree 4.3 and greatly expanded. Please see: spree/spree#11232
Part of this extension was pulled into Spree 4.2. With Spree 4.3 full feature set will be available in Spree core. Upgrade process will be as easy as removing the extension from your Gemfile.
This extension allows a single Spree instance to have several customer facing stores, with a single shared backend administration system (i.e. multi-store, single-vendor).
-
Each store can have its own layout(s) - these layouts should be located in your site's theme extension in the app/views/spree/layouts/store#code/ directory. So, if you have a store with a code of "alpha" you should store its default layout in app/views/spree/layouts/alpha/spree_application.html.erb
-
Each product can be assigned to one or more stores.
-
Add this extension to your Gemfile with this line:
gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain'
-
Install the gem using Bundler:
bundle install
-
Copy & run migrations
bundle exec rails g spree_multi_domain:install
-
Restart your server
If your server was running, restart it so that it can find the assets properly.