Spree Commerce

Try It Now

New Spree Stores (August 2009)

Posted on September 07, 2009 by Sean Schofield

showcase_yellowbird Even though August is traditionally a slow business time for most developers, there were still a bunch of new sites launched. There were seven new Spree sites announced by various developers in our community. Nuwan announced the creation of ZionPet which is a nice basic pet store. The same developer also created two similar sites Bite Me and Sue’s Pet Castle. Just a quick note that several developers are also working on multi store extensions which will make building and operating related stores like this a snap.

Spree was mentioned a few weeks ago on a French language blog post. Right around this time we also started to see a few new Spree sites in French. We recently learned about this great looking model RC helicopter site. There’s also this interesting fashion site which makes some interesting use of Flash.

I thought the developer of this paper product site did a nice job making an engaging site for what I would otherwise consider to be a pretty dull product. Simple design but it looks nice. While we’re on the subject of design, you should definitely take a look at the Yellow Bird Project site which received a nice writeup on the Web Designers Depot blog .

If you’d like to share your Spree site with the rest of us, please drop us a line on spree-user.

Updated Contribution Guidelines

Posted on August 31, 2009 by Sean Schofield

We have recently updated the contribution guidelines in our online documentation. Please be sure to review this document before you start working on a contribution to Spree. The highlights are as follows:

  • Always create an issue in Lighthouse before coding
  • Create one branch for each LH ticket
  • Please do not send Github pull requests
  • Use the optional Github service hook to inform us of your patch when done (see the guide for details)
  • The Spree guides themselves are open source, see the instructions on how to contribute fixes (typos, outdated examples, etc.)

"New Localization: Mexican Spanish"

Posted on August 18, 2009 by Sean Schofield

Spree now contains a Mexican localization thanks to the efforts of Gustavo Gonzalez. If you are interested in contributing a new localization, please read the guide on how to contribute.

New on Edge: Coupons

Posted on August 17, 2009 by Sean Schofield

Coupons have finally arrived in the latest (edge) version of the source code. We are still working out a few of the bugs but the code is stable enough that it has been merged into the core and is ready to be used for those with an urgent need.


Coupon eligibility is completely customizable on a per coupon basis. Eligibility is determined by the following factors.

  • Start Date – coupons can be configured to be invalid before a specific date
  • Expiration Date – coupons can be configured so that they are not usable passed a certain date
  • Expiration Date – coupons can be configured so that they are not usable passed a certain date
  • Number of Uses – coupons can be restricted to an arbitrary number of uses (typically a single use if there’s a limit at all)
  • Combination – there is an option to restrict specific coupons so that they cannot be combined with other coupons in the same order.

Any other restriction on eligibility is intended to be provided by custom calculators. The compute method has access to the complete order (including shipping and other related information) and can simply return nil if the coupon is not to be applied in a specific situation

Discount Calculation

The create_discount method in Coupon is responsible for the actual calculation of the credit to be applied for the cooupon. By default, Spree will not allow the credit amount to exceed the item total. The credit adjustment associated with a coupon is subject to recalculation based on changes in the order. This is no different then any other adjustment to the order total (such as shipping or tax charges.)

This is just the initial set of features we’re planning on supporting. Coupons will be part of the upcoming 0.9.0 release in September. You can expect additional improvements and third party calculators to follow shortly thereafter.