NOTE: July 2, 2011 - Just made some major updates to master. I attempted to test against spree master with no luck.
Spree 0.60.* is the only known working version ATM. Stay tuned.
The pre-deface-stable branch is the most stable.
The master branch has many more features (include image customization). I'm working on writing some more tests and this will soon be the winner.
This is a spree extension that solves two use cases related to variants. I call them Ad Hoc Options and Product Customizations.
Ad Hoc Options
Use these when have numerous (possibly price-altering) product options and you don't want to create variants for each combination.
You can also restrict certain combinations of options from coexisting. These are called Ad Hoc Exclusions and are described in more detail in the wiki.
Use these when you want the ability to provide a highly customized product e.g. "Cut to length 5.82cm", "Engrave 'thanks for the memories, Sarah'". Full control over pricing is provided by the Spree calculator mechanism.
rails new myapp cd myapp
Add to Gemfile:
# see the notes above regarding the fact that edge currently doesn't work (the price doesn't update due to a deface integration issue that we are currently working) gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'spree_flexi_variants', :git=>'firstname.lastname@example.org:jsqu99/spree_flexi_variants.git' # alternatively, if you want to use a stable, spree 0.60.x version: # gem 'spree', '0.60.0' # gem 'spree_flexi_variants', :git=>'email@example.com:jsqu99/spree_flexi_variants.git', :branch => 'pre-deface-stable' # Also, you might need to add 'carrierwave', 'rmagick', and possibly 'json' to the Gemfile while I learn more about gemspecs and the right way to include dependent gems. bundle install rake db:create && rails g spree:site && rake spree:install && rake spree_flexi_variants:install && rake db:bootstrap
Build a 'Cake' product using Ad Hoc Options and Product Customizations
Build a 'Necklace' product using Ad Hoc Options and Product Customizations
Build a 'Pizza' product using Ad Hoc Options. Note that the 'multi' option checkboxes come from a partial named after the option name (see app/views/products/ad_hoc_options/_toppings.html.erb)
See the wiki for more detail.
Many, many thanks to Brian Quinn for selflessly volunteering his time to mentor me throughout the development process.
Copyright (c) 2011 Jeff Squires, released under the New BSD License