Skip to content

nebulab/spree_exclusive_products

Repository files navigation

SpreeExclusiveProducts

It allows to show some variants only to specific users roles. With this extension you can associate a variant to a role and it will be made available only for users logged with that specific role.

Installation

Add spree_exclusive_products to your Gemfile:

gem 'spree_exclusive_products'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_exclusive_products:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_exclusive_products/factories'

Copyright (c) 2014 Nebulab, released under the New BSD License

About

It filters variants depending on user roles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages