Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/futhr/spree-last-address
Relieves user of retyping address on return order in Spree Commerce
https://github.com/futhr/spree-last-address
address checkout e-ecommerce rspec ruby spree
Last synced: 2 months ago
JSON representation
Relieves user of retyping address on return order in Spree Commerce
- Host: GitHub
- URL: https://github.com/futhr/spree-last-address
- Owner: futhr
- License: bsd-3-clause
- Created: 2013-07-18T18:50:30.000Z (over 11 years ago)
- Default Branch: 2-2-stable
- Last Pushed: 2019-05-01T08:26:25.000Z (almost 6 years ago)
- Last Synced: 2024-11-16T17:11:58.732Z (3 months ago)
- Topics: address, checkout, e-ecommerce, rspec, ruby, spree
- Language: Ruby
- Homepage: http://spreecommerce.com
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Spree Last Address
[![Build Status](https://travis-ci.org/futhr/spree-last-address.svg?branch=2-2-stable)](https://travis-ci.org/futhr/spree-last-address)
[![Code Climate](https://codeclimate.com/github/futhr/spree-last-address/badges/gpa.svg)](https://codeclimate.com/github/futhr/spree-last-address)
[![Coverage Status](https://img.shields.io/coveralls/futhr/spree-last-address.svg)](https://coveralls.io/r/futhr/spree-last-address?branch=2-2-stable)
[![Gem Version](https://badge.fury.io/rb/spree-last-address.svg)](http://badge.fury.io/rb/spree-last-address)During checkout, causes the address to be prefilled with the address from their most recent order or the user’s saved address (if available).
This relieves the customer of having to type in his address again on a second order. (The unnecessary typing make them more likely to bounce instead of completing the order.)
If your app allows a user to set and edit their "preferred" or "default" address (as reflected by `user.bill_address`/`user.ship_address`), and the user has set a preferred address for their account, that address will take priority and be used instead of the address from their most recent order. (Similar to [spree-default-addresses][1].)
As of Spree 1.2, the `belongs_to :bill_address` and `belongs_to :ship_address` associations are provided for the `Spree::User` model by the [spree_auth_devise][2] gem. If those associations are not available or if the user doesn't have a saved address (which will be the case unless you've provided a way in your app to set an address), then it will just use the address from user's most recent order.
---
## Installing
Add to your `Gemfile`
```ruby
gem 'spree-last-address', '~> 2.2.1'
```Run
bundle install
---
## Contributing
See corresponding [contribution guidelines][3].
---
## License
Copyright (c) 2010-2015 [Tobias Bohwalli][4], [Torsten Rüger][5], and other [contributors][6], released under the [New BSD License][7]
[1]: https://github.com/swistak/spree-default-addresses
[2]: https://github.com/spree/spree_auth_devise
[3]: https://github.com/futhr/spree-last-address/blob/2-2-stable/CONTRIBUTING.md
[4]: https://github.com/futhr
[5]: https://github.com/dancinglightning
[6]: https://github.com/futhr/spree-last-address/graphs/contributors
[7]: https://github.com/futhr/spree-last-address/blob/2-2-stable/LICENSE.md