public
Description: Sort and search extension for spree.
Homepage:
Clone URL: git://github.com/edmundo/spree-search.git
commit  e666a4a77b6a32a6e461ce78b6ea7a843cfe880a
tree    e9148c03bb8ac32ab578719c166e3656a118955c
parent  07186759b799148f40992379fe5c12f888a3491f
name age message
file LICENSE Thu Oct 23 13:36:17 -0700 2008 Added licensing information and basic description. [edmundo]
file README.markdown Mon Jun 01 12:09:27 -0700 2009 Changed the extension to not override any view ... [edmundo]
file Rakefile Fri Jan 16 11:33:29 -0800 2009 Changed the code from place, putting inside app. [edmundo]
directory app/ Mon Jun 01 12:09:27 -0700 2009 Changed the extension to not override any view ... [edmundo]
directory config/ Mon Jun 01 11:38:29 -0700 2009 Updated to work with searchlogic. [edmundo]
directory lib/ Thu Oct 23 12:40:31 -0700 2008 First commit. [edmundo]
file search_extension.rb Mon Jun 01 11:38:29 -0700 2009 Updated to work with searchlogic. [edmundo]
directory spec/ Thu Nov 06 08:36:45 -0800 2008 Renames the advanced search parameter to not cl... [edmundo]
README.markdown

Search

This is an extension that adds sort and search support for products inside Spree.

Install

  script/extension install git://github.com/edmundo/spree-search.git

You need to uncomment two methods (that builds the products collection) on products_controller.rb and taxons_controller.rb to make simple search work.

Actual state

Production ready. Updated to work with the latest i18n code.

Functionality

It includes basic name search that is suggested to be putted in the main layout. It can be used through the main page or inside a taxon. It can be tested using the following route: /search/test

It includes extended search based on some criteria like name, price and classification it is directly in or below it. It can be tested using the following route: /searches/new

It has basic sort support for products, by default the only view that has it working is the result of the extended search, but it can be included in all the rest of the application including the main view and the view by current taxon.

gems needed

activerecord-tableless

Code inside app to be mixed

I'm not using code inside the ..._extension.rb file using class_eval anymore, look at the last commits here http://github.com/edmundo/spree/tree/app_override to make the code inside app used in this extension be mixed automatically.

Screenshots

Samples to show what you can do with it, (layout customization is not included).

Simple search

Sort support

Advanced search