Coder Social home page Coder Social logo

yaseeniqbal / spree_dev_item_returns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from omairrazam/spree_item_returns

0.0 1.0 0.0 125 KB

This extension provides customer an interface to track their 'Return History' and also allows them to create return authorizations.

Home Page: http://vinsol.com/spreecommerce-items-return

License: BSD 3-Clause "New" or "Revised" License

Ruby 55.10% JavaScript 3.91% CSS 0.36% HTML 40.63%

spree_dev_item_returns's Introduction

SpreeItemReturns

This extension provides customer an interface to track their 'Return History' and also allows them to create return authorizations.

Demo

Try Spree Item Returns for Spree master with direct deployment on Heroku:

Deploy

Try Spree Item Returns for Spree 3-4 with direct deployment on Heroku:

Deploy

FEATURES

  • Adds a tab for a user to keep track of all his/her return authorizations.
  • Provides user an ability to create a return authorization against an order.

Installation

  1. Add this extension to your Gemfile with this line:

Spree >= 3.2

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

Spree < 3.2

gem 'spree_item_returns', github: 'vinsol-spree-contrib/spree_item_returns', 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_item_returns:install
  1. Run migrations
bundle exec rake db:migrate
  1. Restart your server

Working

To view Return history

  1. Go to Account -> 'Return History' Button. A list of all return made by users will be shown.
  2. User can select individual return and see it's details.

To create Return

  1. Go to Account
  2. Open order which has return item.
  3. Click on 'Return Product' button.
  4. Select the product which need to be returned, and fill fields with appropriate data. And click on 'Create'

Here is a detailed article with screenshots on how does it work: http://vinsol.com/spreecommerce-items-return

Testing

Spree >= 3.1

For Building Dependencies:

appraisal install

The dummy app can be regenerated by using:

appraisal spree-3-1 rake test_app

This will run rake test_app using the dependencies configured for Spree 3.1. Similarly you can use spree-3-2 and spree-master for generating dummy applications using dependencies for Spree 3.2 and latest version of Spree

appraisal spree-3-1 rspec

This will run rspec using the dependencies configured for Spree 3.1. Similarly you can use spree-3-2 and spree-master to run rspec using dependencies for Spree 3.2 and latest version of Spree

Spree 3.0 and Spree 2.x

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 rspec spec

See It In Action

Youtube Video Tutorial

Contributing

  1. Fork the project
  2. Make one or more well commented and clean commits to the repository. You can make a new branch here if you are modifying more than one part or feature.
  3. Add tests for it. This is important so I don’t break it in a future version unintentionally.
  4. Perform a pull request in github's web interface.

Credits

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

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

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.