Solidus Recently Viewed
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 'solidus_recently_viewed', github: 'solidusio-contrib/solidus_recently_viewed', branch: 'X-X-stable'
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
- Install the gem using Bundler:
- 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.
- Setup frontend views
For a quick implementation you may prefer to use the included
Deface overrides by customizing directives in add_recently_viewed_products.rb setting
For a more fine grained implementation you can rewrite
Deface injected partials according to needs and use them directly in views as you prefer.
See corresponding guidelines