Giter Club home page Giter Club logo

shubham-kaushal / spree_product_subscriptions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vinsol-spree-contrib/spree_product_subscriptions

0.0 0.0 0.0 341 KB

SpreeCommerce product subscription extension lets customers subscribe for a product and get it delivered at the same time every week, month or year over a predefined period of time.

Home Page: http://vinsol.com/spreecommerce-subscription

License: MIT License

Ruby 68.80% JavaScript 6.64% CSS 0.42% HTML 24.14%

spree_product_subscriptions's Introduction

Spree Product Subscriptions

Spree Product Subscriptions is an extension to let users have time interval based subscription of products in a spree application.

  • This extension allows the admin to create a subscribable product on the Admin end.

  • This product can then be bought one-time or as a subscription.

  • Once subscribed, subscription orders will automatically be created for the user at the selected time interval.

Demo

Try Spree Product Subscriptions for Spree master with direct deployment on Heroku:

Deploy

Try Spree Product Subscriptions for Spree 4 with direct deployment on Heroku:

Deploy

Try Spree Product Subscriptions for Spree 3-4 with direct deployment on Heroku:

Deploy

Installation

Add spree_product_subscriptions to your Gemfile:

gem 'spree_product_subscriptions', github: 'vinsol-spree-contrib/spree_product_subscriptions'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_product_subscriptions:install

You can also seed the default data with:

bundle exec rails g spree_product_subscriptions:seed

Working

  • Admin can mark a product as "subscribable" on the Admin -> Products -> Edit page. The admin will have to choose the subscription frequencies to be made available for that product.

  • Subscription frequencies are created by default when you seed data. You can also add subscription frequencies through Admin -> Configurations -> Subscription Frequencies -> New page.

  • When user is purchasing a subscribable product, he gets an option to make it a 'One Time Order' or a 'Subscription Order'.

  • When making a 'Subscription Order', the user will have to choose Delivery Interval, Total Deliveries, and Quantity. The first order will be made on checkout and remaining orders will automatically be created for the user at the selected time intervals.

  • The users can check their subscriptions on the 'My Account' page. They can update subscription info, pause or cancel their subscriptions via the Subscription -> Edit page.

  • A cron job needs to be run to process subscriptions

    bundle exec rake subscription:process
    

    This will run the pending subscriptions.

  • A cron job can also be run to notify users of upcoming subscriptions:

    bundle exec rake subscription:prior_notify
    

    This will inform users that they have a subscription that is coming up in 'x' days. The number of days can be changed on subscription edit page.

Here is a detailed article with screenshot http://vinsol.com/spreecommerce-subscription 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

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_product_subscriptions/factories'

See It In Action

Youtube Video Tutorial

Credits

vinsol.com: Ruby on Rails, iOS and Android developers

Copyright (c) 2016 vinsol.com, released under the New MIT License

spree_product_subscriptions's People

Contributors

vinay-mittal avatar nishant-cyro avatar shivamvinsol avatar himanshumishra31 avatar sachinmittal93 avatar tanmay3011 avatar aishmita-aggarwal avatar jatin-baweja avatar manishrawat0212 avatar adhirajgautam avatar bansalakhil avatar rishabhguptarishi avatar jitendra avatar sawangupta92 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.