Skip to content

traels/spree-promotion-exclude-specials-rule

Repository files navigation

SpreePromotionExcludeSpecialsRule

A inverted version of the products rule that comes with Spree. This rule matches all products that are NOT marked for exclusion. Excluding the product is done by a checkmark on the productpage.

Combine this with spree-promotion-roles-rule and you can create a discount for a special group of customers on all but a few selected products.

Installation

Add spree_promotion_exclude_specials_rule to your Gemfile:

gem 'spree_promotion_exclude_specials_rule', github: 'traels/spree-promotion-exclude-specials-rule'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_promotion_exclude_specials_rule:install

Add rule to config/initializers/spree.rb

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

Copyright (c) 2013 Traels, released under the New BSD License

About

Exclude products from promotions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages