Skip to content
Display a list of recently viewed products in your Solidus store.
Ruby HTML CoffeeScript Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
bin
config
lib
spec
.gitignore
.hound.yml
.rspec
.rubocop.yml
CHANGELOG.md
CONTRIBUTING.md
Gemfile
LICENSE.md
README.md
Rakefile
Versionfile
solidus_recently_viewed.gemspec

README.md

Solidus Recently Viewed

CircleCI

This extension maintains and displays a list of the products a user has recently viewed.

Installation

  1. Add this extension to your Gemfile with this line:
gem 'solidus_recently_viewed', github: 'solidusio-contrib/solidus_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.

  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree:recently_viewed:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.

  1. 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 enabled: true.

For a more fine grained implementation you can rewrite Deface injected partials according to needs and use them directly in views as you prefer.


Contributing

See corresponding guidelines


Copyright (c) 2009-2015 Roman Smirnov, Brian Quinn and other contributors, released under the New BSD License

You can’t perform that action at this time.