Skip to content

Latest commit

 

History

History
executable file
·
64 lines (44 loc) · 1.4 KB

README.md

File metadata and controls

executable file
·
64 lines (44 loc) · 1.4 KB

Spree Single Page Checkout

Single Page Checkout for Boombotix Spree store.

Includes

  • Extension of the JavaScript Spree object to make API calls to step through the states of the checkout process
  • Geolocation via Google Maps
  • Front-end Validation via jQuery.payment & jQuery.h5validate plugins

Dependencies

  • Spree (v.2.2.2)
  • Bootstrap (bootstrap-sass)
  • Fontawesome (font-awesome-rails)

Includes

jquery-ui jquery.payment jquery.h5validate jquery.select-to-autocomplete

Installation

Add spree_single_page_checkout to your Gemfile:

gem 'spree_single_page_checkout'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_single_page_checkout:install

Testing

Capybara testing via poltergeist -- you'll need PhantomJS installed on your machine.

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_single_page_checkout/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License