FWIW, I'm up to OPC v2.1.0-beta8.
You'll need to edit (and make a copy of) /includes/classes/OnePageCheckout.php to edit its formatAddressBookDropdown method:
Note, though, that this class is very 'volatile' as it's the heart of OPC's processing.Code:public function formatAddressBookDropdown() { $select_array = array(); if (isset($_SESSION['customer_id']) && !$this->isGuestCheckout() && !$this->customerAccountNeedsPrimaryAddress()) { // ----- // Build up address list input to create a customer-specific selection list of // pre-existing addresses from which to choose. // $addresses = $GLOBALS['db']->Execute( "SELECT address_book_id FROM " . TABLE_ADDRESS_BOOK . " WHERE customers_id = " . (int)$_SESSION['customer_id'] . " ORDER BY address_book_id" ); if (!$addresses->EOF) { $select_array[] = array( 'id' => 0, 'text' => TEXT_SELECT_FROM_SAVED_ADDRESSES ); } while (!$addresses->EOF) { $select_array[] = array( 'id' => $addresses->fields['address_book_id'], 'text' => str_replace("\n", ', ', zen_address_label($_SESSION['customer_id'], $addresses->fields['address_book_id'])) ); $addresses->MoveNext(); } } return $select_array; }


Reply With Quote
