Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Spree extension to support the creation of pre-configured product bundles.
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/assets
config
lib
script
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
Versionfile
spree_product_bundles.gemspec

README.md

spree product bundles

Spree extension which allows a spree administrator to create configurable product bundles.

To create a product bundle, first you create the bundle product and a series if sub products or variants. Then, under the administration product bundle tab, you create a product bundle. In this product bundle, you choose your source bundle product and then you choose one or more products which are contained within this product bundle.

By default, the product which creates the bundle within the shopping cart is added to the invoice.

NOTE: a lot of this has been implemented in various forms within some of my internal code. The release of this as a standalone package is planned but not really with a specific date in mind.

Modifications

The primary modifications being made are:

Model

  • A class called Spree::ProductBundle .
  • A new table called spree_product_bundles.
  • API added to Spree::Variant:
    • is_bundle?
    • dynamic price calculation
  • API update of Spree::Order:
    • order.line_items gives you all parent and child line_items, to help with accounting and invoices.

View

  • View overrides for showing bundle details in shopping cart.
  • Admin CRUD pages.

Controller

  • A new controller called Spree::Admin::ProductBundleController

Copyright (c) 2012 [Sheena Artrip], released under the New BSD License

Something went wrong with that request. Please try again.