Skip to content

jamatthews/spree-subscribe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate

This extension is ready for beta testing.

SpreeSubscribe

A Spree expension for allowing customers to make flexible subscriptions and manage them. Original work by Daniel Dixon with further work by myself and Jordan Moncharmont

Installation

Add this to your Gemfile

gem "spree_subscribe", github: "jamatthews/spree-subscribe", branch: '2-0-beta'

Install the database migrations

rake spree_subscribe:install:migrations

Setup a cron job to run this rake task every night

rake spree_subscribe:reorders:create

Future To-Do

  • Improve compatability with spree-product-assembly
  • Extend Spree API to handle subscriptions
  • Move Intervalable#time_title to a helper so can use time_unit_symbol to pull from localization
  • Extend Spree::Admin::SubscriptionsController to include filtering and sorting
  • For a reorder, if a shipping method is no longer available, select the cheapest.

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

$ bundle
$ bundle exec rake test_app
$ bundle exec rspec spec

Copyright (c) 2016 Jacob Matthews, released under the New BSD License Copyright (c) 2013 Daniel Dixon, released under the New BSD License

Responsible Disclosure of Security Issues

If you find a security issue with this extension, please contact me directly (jake@subsupps.co.nz). Do NOT post it publicly to the GitHub issues for this repo.

About

A Spree extension for managing opt-in reorders to a product(s).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 70.2%
  • HTML 25.4%
  • CoffeeScript 2.5%
  • JavaScript 1.4%
  • CSS 0.5%