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
Recipient can then redeem the gift card by entering the unique gift card
Codeduring checkout on payment step.
Try Spree Gift Card for Spree master with direct deployment on Heroku:
Try Spree Gift Card for Spree 3-4 with direct deployment on Heroku:
Try Spree Gift Card for Spree 3-1 with direct deployment on Heroku:
- Add this extension to your Gemfile with this line:
#### Spree >= 3.2
gem 'spree_gift_card' , github: 'vinsol-spree-contrib/spree_gift_card'
#### Spree < 3.2
gem 'spree_gift_card', github: 'vinsol-spree-contrib/spree_gift_card', branch: 'X-X-stable'
Note Please Use 3-1-stabilise branch for Spree 3-1
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
Install the gem using Bundler:
Copy & run migrations
bundle exec rails g spree_gift_card:install
Seed the default data with:
rails g spree_gift_card:seed
A gift card is created by default when you seed data. Admin can also create
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
note. Once your order-payment is successfully captured, the gift card will be send to the email mentioned in gift card form.
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
#### Spree >= 3.1
For Building Dependencies:
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 ```shell 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 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
bundle bundle exec rspec spec
- Fork the repo.
- Clone your repo.
bundle exec rake test_appto create the test application in
- Make your changes.
- Ensure specs pass by running
bundle exec rspec spec.
- Submit your pull request.
Copyright (c) 2012 Jeff Dutil, released under the New BSD License