Every repository with this icon (
Every repository with this icon (
tree e9148c03bb8ac32ab578719c166e3656a118955c
parent 07186759b799148f40992379fe5c12f888a3491f
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Thu Oct 23 13:36:17 -0700 2008 | |
| |
README.markdown | Mon Jun 01 12:09:27 -0700 2009 | |
| |
Rakefile | Fri Jan 16 11:33:29 -0800 2009 | |
| |
app/ | Mon Jun 01 12:09:27 -0700 2009 | |
| |
config/ | Mon Jun 01 11:38:29 -0700 2009 | |
| |
lib/ | Thu Oct 23 12:40:31 -0700 2008 | |
| |
search_extension.rb | Mon Jun 01 11:38:29 -0700 2009 | |
| |
spec/ | Thu Nov 06 08:36:45 -0800 2008 |
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








