No commit activity in last 3 years
No release in over 3 years
When the user adds an item to the cart the system will make an Ajax call to add the item to the cart. Once the item has been added the cart details in the header is updated and an alert box displayed informing the user that the item was added.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Welcome to Spree Ajax Add To Cart

This extension ajxifies 'Add to Cart' button on product page. So, when a user click on 'Add to Cart' button, their "Cart" status will be updated from an ajax response.

Dependency Status Build Status Code Climate

INSTALLATION

In a rails application with Spree installed include the following line in your Gemfile:

  • Get the latest greatest from github:

      gem 'spree_ajax_add_to_cart' , :git => 'git://github.com/suryart/spree_ajax_add_to_cart.git'
  • Get the 1-3-stable branch for Spree 2.0.x from github:

      gem 'spree_ajax_add_to_cart' , :git => 'git://github.com/suryart/spree_ajax_add_to_cart.git', :branch => '2-0-stable'
  • Or get it from rubygems.org by mentioning the following line in your Gemfile:

      gem 'spree_ajax_add_to_cart', '2.0.0'

Then run the following commands:

$ bundle install
$ rails g spree_ajax_add_to_cart:install 
$ rake db:migrate
$ rails s 

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

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.

NOTE

The current version supports Spree 2.0.0 or above. Older versions of Spree are unlikely to work, so attempt at your own risk.

This extension just an updated version and heavily based on Trung Lê's work.

Copyright (c) 2013 Surya Tripathi, released under the New BSD License