It would be nice sometimes to only allow a user to select and address from the address book, and not be able to freeform enter or edit an address.


MegaChriz’s picture

Yes, that would be a nice option. I've been thinking about this earlier, but got stuck when thinking about the next couple of things:

  • How should the UI for this look like? I was worrying about that a single select field may be easily missed.
  • The calculation of the shipping costs can depend on the delivery address that's entered. Ubercart expects to receive an address at some point if this is the case.

I haven't rethought about this since I was only working on the 6.x-2.x version. I think it would be a lot easier to do for the 7.x-1.x version, so I would say this is a potential feature for the 7.x-1.x version only.

I'm focussing on bugs in the module right now and I probably will not have the time to implement a feature like this soon. Would you like to start with a UI design and think about how to deal with cases where stores have shipping costs that depend on the delivery address?

iwant2fly’s picture

Sure. The company I work for has another proprietary eCommerce platform that has this functionality, and it is very useful for corporate clients, where you want to control where products are sent, or who gets the bill. I will try to write up how it works, and make some improvements, since it isn't the most elegant system.

MegaChriz’s picture

Status: Active » Postponed

Here is a related issue to this feature request and my thoughts back when I was only working with the 6.x-2.x version: #1414462: Users Without Permission Can Still Add New Address While Checking Out. One other thing I noted there is that selecting addresses from the address book will not work for anonymous users, as they won't have an address book. And what about users that have no addresses at all? This can happen if uc_addresses is installed later or if you don't require users to enter an address when they register. Something to think about.

I will wait for your plan. Until then, this issue is marked as postponed.