Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Multiple Spree stores on different domains - single unified backed for processing orders
Ruby HTML JavaScript

Add data hook for stores to admin product form

This will let to customize with deface
latest commit c8782907a4
@apeacox apeacox authored futhr committed
Failed to load latest commit information.
app Add data hook for stores to admin product form
config Fixed translation conflicts with spree core
db/migrate Update migration now that core has store model. Fixes #115
lib Fix specs. Fixes #109
script Spree 1-0 initial
spec these factories are already present in Spree
.gitignore Use .friendly.find rather than find by slug. Fixes #78
.rspec Spree 1-0 initial
Gemfile Update migration now that core has store model. Fixes #115
README.md When looking for a dynamic layout, ask the view context for the curre…
Rakefile Use correct requires for testing support features
Versionfile
spree_multi_domain.gemspec Bump for edge spree.

README.md

Multi Domain Store

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).

Current features:

  1. Store model which has the following attributes:

    1.1 name - The display name for the store.

    1.2 domains - a line separated list of fully qualified domain names used to associate a customers session with a particular store (you can use localhost and/or IP addresses too).

    1.3 code - which is a abbreviated version of the store's name (used as the layout directory name, and also helpful for separating partials by store).

    1.4 default - one store should be marked a default as a fallback in case the URL being used to access the site cannot be matched against any of the configured stores.

  2. Stores and domains can be maintained via the configuration section of the Admin interface

  3. 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

  4. Each product can be assigned to one or more stores.

  5. All orders are associated with the store / domain that they were placed on.

  6. Google analytics trackers can be associated with a store.

Install Instructions

Add to your Gemfile:

gem 'spree_multi_domain', git: 'git://github.com/spree/spree-multi-domain.git'

Then run bundle, and then run:

bundle exec rails g spree_multi_domain:install

You should see 'Stores & Domains' in Configuration tab of Spree Admin.

Features To-do

  1. Taxonomies - associate stores with taxonomies.
Something went wrong with that request. Please try again.