Provide ajax for the add to cart button and display a succesful message below the add to cart form. Currently only support spree 2-4-stable
Add spree_add_to_cart_ajax to your Gemfile:
gem 'spree_add_to_cart_ajax', github: 'nathandao/spree_add_to_cart_ajax', branch: '2-4-stable'
Bundle your dependencies and run the installation generator:
bundle
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 rake
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_add_to_cart_ajax/factories'
Copyright (c) 2014 Guy Nathan, released under the New BSD License