A new version of uc_addresses
Storing Address information in User Profile (84 replies) Thu, 10/25/2007 - 18:04
- Profile Module integration (10/08/2009 - 09:17)
- CCK approach? (09/16/2009 - 00:23)
- Re: CCK approach? (10/28/2009 - 17:12)
- hook form alter solution (07/29/2009 - 07:59)
- majnoona@drupal.org (10/28/2009 - 16:12)
- The other way round! (08/23/2009 - 08:44)
- Re: The other way round! (09/07/2009 - 16:29)
- Last message (05/29/2008 - 11:35)
- Re: Last message (07/08/2008 - 09:04)
- Re: Re: Last message (04/11/2009 - 02:53)
- Where did this end up? (06/19/2009 - 07:57)
- Agree (07/26/2009 - 08:58)
- Where did this end up? (06/19/2009 - 07:57)
- Re: Re: Last message (04/11/2009 - 02:53)
- Re: Last message (07/08/2008 - 09:04)
- Re: Storing Address information in User Profile (05/21/2008 - 12:29)
- Using PostGRE? (05/22/2008 - 09:40)
- Re: Using PostGRE? (05/23/2008 - 13:15)
- Re: Re: Using PostGRE? (05/24/2008 - 16:18)
- Discovered a small bug.
I (05/24/2008 - 17:03)
- Duplicated bug report (05/26/2008 - 09:56)
- Module now on drupal.org (05/26/2008 - 16:44)
- Duplicated bug report (05/26/2008 - 09:56)
- Discovered a small bug.
I (05/24/2008 - 17:03)
- Re: Re: Using PostGRE? (05/24/2008 - 16:18)
- Re: Using PostGRE? (05/23/2008 - 13:15)
- Using PostGRE? (05/22/2008 - 09:40)
- A new version of uc_addresses (05/16/2008 - 22:21)
- Thanks for the support, everyone! (05/19/2008 - 08:39)
- Re: Thanks for the support, everyone! (05/19/2008 - 09:34)
- Thanks, Ryan (05/19/2008 - 10:25)
- Re: Thanks, Ryan (05/19/2008 - 20:33)
- bug? (05/21/2008 - 01:16)
- Re: Problems with new uc_addresses (05/21/2008 - 10:02)
- bug? (05/21/2008 - 01:16)
- Re: Thanks, Ryan (05/19/2008 - 20:33)
- Thanks, Ryan (05/19/2008 - 10:25)
- Re: Thanks for the support, everyone! (05/19/2008 - 09:34)
- Re: A new version of uc_addresses (05/19/2008 - 06:59)
- Well done Tony,I don't (05/17/2008 - 21:11)
- Re: A new version of uc_addresses (05/18/2008 - 02:22)
- Re: Re: A new version of uc_addresses (05/18/2008 - 12:37)
- Thanks for the support, everyone! (05/19/2008 - 08:39)
- Module (05/01/2008 - 09:57)
- Re: Module (05/03/2008 - 19:24)
- Re: Storing Address information in User Profile (03/21/2008 - 15:03)
- Re: Re: Storing Address information in User Profile (03/24/2008 - 09:46)
- Re: Re: Re: Storing Address information in User Profile (03/24/2008 - 15:36)
- rich wrote:Here's another (03/25/2008 - 20:07)
- Re: rich wrote:Here's another (03/30/2008 - 18:35)
- Re: Re: rich wrote:Here's another (04/10/2008 - 04:19)
- Re: rich wrote:Here's another (03/30/2008 - 18:35)
- rich wrote:Here's another (03/25/2008 - 20:07)
- Re: Re: Re: Storing Address information in User Profile (03/24/2008 - 15:36)
- Re: Re: Storing Address information in User Profile (03/24/2008 - 09:46)
- Current rollup patch (03/08/2008 - 01:58)
- Re: Current rollup patch (03/08/2008 - 05:00)
- Re: Re: Current rollup patch (03/08/2008 - 10:45)
- Re: Re: Re: Current rollup patch (03/08/2008 - 13:22)
- Re: Re: Re: Re: Current rollup patch (03/08/2008 - 15:01)
- Re: Re: Re: Current rollup patch (03/08/2008 - 13:22)
- Re: Re: Current rollup patch (03/08/2008 - 10:45)
- Re: Current rollup patch (03/08/2008 - 05:00)
- Re: Storing Address information in User Profile (10/26/2007 - 08:13)
- Re: Re: Storing Address information in User Profile (10/26/2007 - 16:53)
- Re: Re: Re: Storing Address information in User Profile (10/26/2007 - 22:36)
- Re: Re: Re: Re: Storing Address information in User Profile (10/30/2007 - 15:34)
- Re: Re: Re: Re: Re: Storing Address information in User Profile (10/31/2007 - 08:54)
- Re: Re: Re: Re: Re: Re: Storing Address information in User Prof (10/31/2007 - 09:25)
- Re: Re: Re: Re: Re: Re: Re: Storing Address information in User (11/08/2007 - 13:20)
- Re: Re: Re: Re: Re: Re: Re: Re: Storing Address information in U (12/08/2007 - 18:57)
- HOWTO: Make uc_store load profile addresses if they exist (02/23/2008 - 11:43)
- Thanks!
I hope you can get (02/23/2008 - 16:04)
- Re: Thanks!
I hope you can get (02/24/2008 - 12:51)
- Re: Re: Thanks!
I hope you can get (02/24/2008 - 15:26)
- Re: Re: Re: Thanks!
I hope you can get (02/28/2008 - 05:31)
- Re: Re: Re: Re: Thanks!
I hope you can get (02/28/2008 - 10:21)
- Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 12:08)
- Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 12:24)
- Re: Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 14:07)
- Re: Re: Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 14:57)
- Thanks for that, bendiy. (03/05/2008 - 19:30)
- Re: Thanks for that, bendiy. (03/06/2008 - 07:42)
- Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:03)
- Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:34)
- Re: Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:52)
- Re: Re: Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 11:07)
- Quote:My only critique is (03/06/2008 - 16:02)
- Re: Quote:My only critique is (03/06/2008 - 18:46)
- Re: Re: Quote:My only critique is (03/06/2008 - 19:53)
- Re: Re: Re: Quote:My only critique is (03/07/2008 - 03:43)
- Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 10:39)
- Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 14:57)
- Re: Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 19:55)
- Re: Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 16:46)
- Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 14:57)
- Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 10:15)
- Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 19:22)
- Re: Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 19:46)
- Thanks for the example. I (03/08/2008 - 04:59)
- Re: Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 19:46)
- Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 14:54)
- Re: Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 19:22)
- Re: Re: Re: Re: Quote:My only critique is (03/07/2008 - 10:39)
- Re: Re: Re: Quote:My only critique is (03/07/2008 - 03:43)
- Re: Re: Quote:My only critique is (03/06/2008 - 19:34)
- Re: Re: Quote:My only critique is (03/06/2008 - 19:53)
- Re: Quote:My only critique is (03/06/2008 - 18:46)
- Quote:My only critique is (03/06/2008 - 16:02)
- Re: Re: Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 11:07)
- Re: Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:52)
- Re: Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:34)
- Re: Re: Thanks for that, bendiy. (03/06/2008 - 08:03)
- Re: Thanks for that, bendiy. (03/06/2008 - 07:42)
- Thanks for that, bendiy. (03/05/2008 - 19:30)
- Re: Re: Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 14:57)
- Re: Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 14:07)
- Re: Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 12:24)
- Re: Re: Re: Re: Re: Thanks!
I hope you can get (03/05/2008 - 12:08)
- Re: Re: Re: Re: Thanks!
I hope you can get (02/28/2008 - 10:21)
- Re: Re: Re: Thanks!
I hope you can get (02/28/2008 - 05:31)
- Re: Re: Thanks!
I hope you can get (02/24/2008 - 15:26)
- Re: Thanks!
I hope you can get (02/24/2008 - 12:51)
- Thanks!
I hope you can get (02/23/2008 - 16:04)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Storing Address information (12/10/2007 - 13:50)
- Hi
There's a typo in the (12/18/2007 - 07:48)
- Re: Hi There's a typo in the (01/26/2008 - 11:07)
- Hi
There's a typo in the (12/18/2007 - 07:48)
- HOWTO: Make uc_store load profile addresses if they exist (02/23/2008 - 11:43)
- Re: Re: Re: Re: Re: Re: Re: Re: Storing Address information in U (12/08/2007 - 18:57)
- Re: Re: Re: Re: Re: Re: Re: Storing Address information in User (11/08/2007 - 13:20)
- Re: Re: Re: Re: Re: Re: Storing Address information in User Prof (10/31/2007 - 09:25)
- Re: Re: Re: Re: Re: Storing Address information in User Profile (10/31/2007 - 08:54)
- Re: Re: Re: Re: Storing Address information in User Profile (10/30/2007 - 15:34)
- Re: Re: Re: Storing Address information in User Profile (10/26/2007 - 22:36)
- Re: Re: Storing Address information in User Profile (10/26/2007 - 16:53)

Hello,
I've made major revisions to the uc_addresses module started by Ben
and Rich. My goal is to submit it to drupal.org/ubercart.org as a new
module. Before I go that route, I wanted to make sure I was not
stepping on anyone's toes, particularly the developers who came before
me.
I want to repeat that this is a major revision. I've touched
just about every line of code. Even the database is not the same:
if you have installed a previous version of uc_addresses, you must
uninstall it before installing my version. I'm attaching a few
screenshots to this post to make it easier to evaluate the module
without installing it.
I appreciate the work that Ben and Rich put into this. I could have
started from the uc_orders module, but they made it really easy to
create the features I wanted. It would have taken a lot longer without
their work.
I realize that while I fixed a number of bugs, I probably also put
some in. The code runs pretty well for me, but I'm sure that as soon
as someone else touches it, it will break. Please e-mail me with bug
reports.
I've attached the module package along with some screenshots. If I
don't hear of any major objections or problems within a week, I'll
begin the process of getting it up to submission quality.
What follows are the gory details...
The Short Story
Ubercart
Ubercart stores addresses with orders. The drawbacks to this are:
user.
The "original" uc_addresses
The Ben/Rich version of uc_addresses overcomes a lot of this, but I
felt it still had some problems:
selection when placing an order.
the orders, so that the user still didn't have complete control over
the list.
The uc_addresses module was adapted from uc_orders and some
questionable operations were carried along, such as the "review"
feature. It's important to review an order, but not an address (you
can always edit or delete it).
I ran into (and fixed) a number of bugs. Unfortunately, I don't have
the fixes independent of the new code. Sorry.
My new uc_addresses
My version of uc_addresses let's the user add addresses to his profile
without requiring a name. One address is called the "default" address
and should be the main contact address/phone for a user. This address
can be edited, but not deleted.
When users register for an account, their first address automatically
becomes the default address. This is also true if you add this module
to a system with existing customers. Once the first address is
entered, it becomes the default address.
The system ensures that all addresses are unique.
The order addresses are never used for selection when placing an
order--all addresses come from the user's address book. Admittedly,
this is a major philosophical change. However, every address used for
billing or shipping is automatically saved to the user's address book.
The convenience is the same, but the user can now edit and delete old
addresses.
The order selection box has been changed to display the full address,
not just the street 1 field. You'll need to be careful to theme the
box size to prevent a long address from creating a huge selection box.
The order system and its address features are otherwise unaltered by
these changes. Addresses are still placed into orders and can be
viewed and modified by the administrator. In the future, perhaps these
two systems can be combined in some reasonable way, but that's beyond
my immediate goals.
The Long Story
Here's a detailed list of differences between the old and new
uc_addresses module:
uc_addresses.info
uc_addresses.install
instead of uc_addresses.
uc_addresses_address_pane.inc
address.
uc_addresses.module
was happening).
can always view and modify his own addresses. For others, you can
enable: view all users' default addresses, view all users' addresses,
and add/edit all users' addresses.
has two sub-tabs: View addresses and Add a new address.
saying "Click here to manage your addresses." similar to the what is
done for Orders.
forms.
address book.
the same address record.
handle the new database structure.
Tony Freixas
tony@tigerheron.com
http://www.tigerheron.com
Tony Freixas
tony@tigerheron.com
http://www.tigerheron.com