This extension maintains and displays a list of the products a user has recently viewed.
- Add this extension to your Gemfile with this line:
gem 'spree_recently_viewed', github: 'spree-contrib/spree_recently_viewed', branch: 'X-X-stable'
The branch
option is important: it must match the version of Spree you're using.
For example, use 3-0-stable
if you're using Spree 3-0-stable
or any 3.0.x
version.
- Install the gem using Bundler:
bundle install
- Copy & run migrations
bundle exec rails g spree:recently_viewed:install
- Restart your server
If your server was running, restart it so that it can find the assets properly.
See corresponding guidelines
Copyright (c) 2009-2015 Roman Smirnov, Brian Quinn and other contributors, released under the New BSD License