Skip to content

traels/spree-promotion-roles-rule

Repository files navigation

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

About

Create promotionrules depending on the role the user has

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages