in app/models/taxon_decorator.rb, add
Taxon.class_eval do
def applicable_filters
fs = []
fs << ProductFilters.taxons_below(self)
## unless it's a root taxon? left open for demo purposes
fs += [
ProductFilters.price_filter,
# Add whatever other filtering you need here.
#ProductFilters.brand_filter, <-- comment this line out
#ProductFilters.selective_brand_filter(self)
]
end
end
That should get you past the brand_filter error, but from what I found today, it seems like a lot of other filtering stuff is broken.
If you or anyone has Product filtering running in 0.30.x, would you mind sharing what you did?
> --
> You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree...@googlegroups.com.
> To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
>
Adam, I saw your earlier message on this as well. Its possible this
is not working in 0.30.x and was overlooked. We'll see if somebody
can take a look at that ASAP.
Sean Schofield
-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------
Yes, it was a first attempt at doing faceted search. Solr is much
better for serious use, though the filter stuff is ok for simple use
if you don't want to jump into Solr just yet (and the filter stuff can
do a few extra tricks with sets of constraints, eg selecting >1
options in each facet).
I'd be interested to hear if anyone has made use of the filter code!
Paul
That's why its called "edge" code :-)
We're not looking to drive developers crazy - sometimes we break
things (especially on edge) when trying to improve functionality
elsewhere. I replied on your ticket with a request for more
information.
Sean