spree_gift_card

Spree Extension adding Gift Card functionality. forked from vinsol-spree-contrib/spree_gift_card

Last updated on: March 05 at 09:38 AM

source code bug tracker
Opensource
0 0 5
owner:  praesensco

SpreeGiftCard

SpreeGiftCard is an extension and one stop solution to integrate gift card functionality in a spree application.

  • This extension allows the admin to create a gift card, by just enabling it from Admin end.

  • Gift card is treated and can be bought as any normal product from your spree store. When a gift card is successfully bought, its details are sent to recipient's email address, which includes gift card Code.

  • Recipient can then redeem the gift card by entering the unique gift card Code during checkout on payment step.

Installation

  1. Just add this line to your Gemfile: ruby gem 'spree_gift_card', github: 'praesensco/spree_gift_card'

  2. Execute the following commands in respective order:

bundle install
rails g spree_gift_card:install

seed the default data with: ruby rails g spree_gift_card:seed

3. Working

  • A gift card is created by default when you seed data. Admin can also create gift card through

    Admin -> Products -> New

    while creating a new gift card, check is gift card, which means the product is gift card.

  • Once gift card is created, it is visible to customer.

  • One needs to add gift card shipping category to a shipping method to purchase a gift card.

  • When purchasing a gift card, a form is rendered to user, on which one can fill the value,email, recipient name and note. Once your order-payment is successfully captured, the gift card will be send to the email mentioned in gift card form.

  • The Email will contain details of gift card, amount, code, sender's email and note.

  • One can redeem the gift card by applying gift card code at payment step.

Here is a detailed article with screenshot http://vinsol.com/spreecommerce-gift-card

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_gift_card/factories'
compatible spree versions
tags spree versions
master ~> 3.3.0
authors
Wojtek