greinacker / spree_taxon_promo

A Spree promotion that allows you to run a promo on products within a certain taxon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpreeTaxonPromo

This gem adds a Promotion to Spree that allows you to run a promo on products within a certain taxon. So for example, if you had a taxon that looked like

Meals
Desserts
  Cookies
  Cake

You could have a promo that said something like "if you buy over $100 in desserts, get 10% off of them".

There are two parts - the promotion, and the calculator. These can be used separately, or together. The calculator lets you create an adjustment for "10% off of desserts", as opposed to the regular flat percent calculator that will let you have "10% off".

Multiple promotions are supported by separating them with commas. For example, using

Cookies,Cake

will match if the item is in either the Cookies or Cake taxons.

To use, just add to your gemfile:

gem 'spree_taxon_promo', :git => 'git://github.com/greinacker/spree_taxon_promo'

Contributors

  • Scott Wagner

License

Copyright (c) 2012 Greg Reinacker, released under the New BSD License

About

A Spree promotion that allows you to run a promo on products within a certain taxon.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 91.4%Language:HTML 7.7%Language:CSS 0.5%Language:JavaScript 0.4%