Compatible with spree >= 1.3.3
This extension displays a list of recently sold products on the home page. Currently displaying 10 recently sold products.
Add spree_recently_sold_products to your Gemfile:
Install your dependencies
By default the recently sold products are displayed at the bottom. You
can change this by overriding the view in
Deface::Override.new(:virtual_path => 'spree/home/index',
:insert_bottom => "[data-hook='homepage_products']",
:partial => "/spree/home/recently_sold_products",
:disabled => false,
:name => 'add_recently_sold_product')
By default the 10 recently sold products are displyed here.
To change this, use
One possible solution is like: ```ruby # app/models/product_decorator.rb
Spree::Product.class_eval do Spree::Config[:recently_sold_product_limit] = 5 end
Note: Once a preference is set, you will need to either set it back yourself to the default, if you want to use default preference value. NOTE: No migrations are required for this extension Copyright (c) 2014 [Cuberoot Software](http://www.cuberoot.in), released under the New BSD License