Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ccashwell/spree_add_to_cart_ajax

Provide ajax for Spree Commerce add to cart button
https://github.com/ccashwell/spree_add_to_cart_ajax

Last synced: 3 months ago
JSON representation

Provide ajax for Spree Commerce add to cart button

Awesome Lists containing this project

README

        

Spree add_to_cart_ajax
==================

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

[![Build Status](https://travis-ci.org/nathandao/spree_add_to_cart_ajax.svg?branch=master)](https://travis-ci.org/nathandao/spree_add_to_cart_ajax)

Add spree_add_to_cart_ajax to your Gemfile:

```ruby
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:

```shell
bundle
```

Testing
-------

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`.

```shell
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:

```ruby
require 'spree_add_to_cart_ajax/factories'
```

Copyright (c) 2014 Guy Nathan, released under the New BSD License