Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (14 sloc) 0.86 kB
069e738 @paulcc first commit - adaptation of BDQ's accessories extension plus a few t…
authored
1 = Spree Recommendations
2
6ccb025 @paulcc more info added
authored
3 Adaptation of BDQ's accessories extension to give a similar notion of recommendations which can be set by the administrator
069e738 @paulcc first commit - adaptation of BDQ's accessories extension plus a few t…
authored
4
6ccb025 @paulcc more info added
authored
5 Defaults to a random set of (n = 3) items, drawing more from the product's taxon if insufficient recommendation entries are available
069e738 @paulcc first commit - adaptation of BDQ's accessories extension plus a few t…
authored
6
6ccb025 @paulcc more info added
authored
7 = Using this extension
8
9 No views included here: basically, you should be using some of your own short-detail product listing code for this.
10
11 Spree has a +shared/products+ partial, so you can feed in a list of recommendations to show, eg have something like
12 this on your product show page:
13
14 @
15 <%= render :partial => "shared/products.html.erb", :locals => {:products => random_recommendations(@products, 4), :taxon => @taxon } %>
16 @
17
18
19 = Future plans
20
21 Adding a "customers also bought" method, derived by order analysis (soon)
22
23 Tie into rating system?
24
25 Frequent joint purchases?
069e738 @paulcc first commit - adaptation of BDQ's accessories extension plus a few t…
authored
26
Something went wrong with that request. Please try again.