Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, only billing addresses are available in the billing address section and only delivery addresses in the delivery section.
Its a very small modification to uc_store.module to pull from both:
/**
* Create an address select box based on a user's previous orders.
*
* @param $uid
* The user's ID to search for in the orders table.
* @param $type
* Choose either 'shipping' or 'billing'.
*/
function uc_select_address($uid, $type = 'billing', $onchange = '', $title = NULL, $icon_suffix = FALSE) {
$addresses = uc_get_addresses($uid, 'billing');
$addresses = array_merge($addresses, uc_get_addresses($uid, 'delivery'));
Ideally this could be turned on and off by a config option.
Related ubercart.org post : http://www.ubercart.org/forum/ideas_and_suggestions/6756/saved_addresses
Comments
Comment #1
TR CreditAttribution: TR commentedBumping.
Comment #2
TR CreditAttribution: TR commented