/spree-promotion-roles-rule

Create promotionrules depending on the role the user has

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

SpreePromotionRolesRule

This extension allows you to create promotions that are valid for a specific user-role.

Installation

Add spree_promotion_roles_rule to your Gemfile:

gem 'spree_promotion_roles_rule', github: 'traels/spree-promotion-roles-rule'

Add rule to config/initializers/spree.rb

Rails.application.config.spree.promotions.rules << RolesPromotionRule

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_promotion_roles_rule:install

Copyright (c) 2013 Træls, released under the New BSD License