Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Relieves user of retyping address on return order in spree
Ruby
branch: master

This branch is 2 commits ahead of hnprashanth:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/controllers
lib
.gitignore
LICENSE
README.md
spree_last_address.gemspec

README.md

SpreeLastAddress

Relieves the customer of typing his address again on a second order. (As this unnecessary typing may lead to order abortion)

Prefills any address during checkout with the last used address.

Also fills in address in admin if the email address is given.

No db changes, one query during checkout more.

Extras

As extra admin functionality there are two small changes wich make the life of admin easier. You will need to set the config option :dummy_addresses to activate them:

  • creates dummy addresses in admin interface if no email or address info is set.

  • if the email is changed from an "anonymous" one to a real one, the change is also made to the User object that made the order.

PS: The bizzare ActiveRecord::AssociationTypeMismatch error has hit me and so this currently only works with config.cache_classes = true , set also in development. (There seems to be a hidden class loading issue somewhere)

Copyright (c) 2010 [Torsten Rüger], released under the New BSD License

Something went wrong with that request. Please try again.