Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Spree extension, provides various ways to select products to highlight -- WORK IN PROGRESS

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 promotions_extension.rb


Basic support for selecting a group of products to highlight


set promotions by calling "Promotions.create :product => some_prod" in the console etc (no nice admin interface yet)

call Promotions.random_subset(n) to get n products

call Promotions.best_sellers(n, start = 1.week.ago, finish = to get the n best sellers in the selected time period (default: the past week)

implementation etc

at present: just a table of ids, with no uniqueness checking

TODO list

  1. admin interface flag on each product? or drop-down list?

  2. filter this by taxons??

  3. maybe extend to "also bought"?

Something went wrong with that request. Please try again.