huwcole Posted January 31, 2004 Share Posted January 31, 2004 hi guys my client wants to customise the delivery address in the order email going to the shop owner as in this example: Joe Bloggs BN5 7HG Brighton RoseHill Terrace United Kingdom basically client wants street details after postcode/city (don't ask why) anyway i had a look in checkout_process.php under: // send emails to other people.... but unfortunately the part where these details are is put together in this function: tep_address_label($customer_id, $billto, 0, '', "\n") . "\n". i did a search but can't find where this function is defined. anyone who can help much appreciated. Link to comment Share on other sites More sharing options...
huwcole Posted February 2, 2004 Author Share Posted February 2, 2004 to get it back to the top thanks for your help Link to comment Share on other sites More sharing options...
Guest Posted February 2, 2004 Share Posted February 2, 2004 The function is in /functions/general.php Link to comment Share on other sites More sharing options...
huwcole Posted February 2, 2004 Author Share Posted February 2, 2004 thanks for that. the function looks like that: function tep_address_label($customers_id, $address_id = 1, $html = false, $boln = '', $eoln = "\n") { $address_query = tep_db_query("select entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customers_id . "' and address_book_id = '" . (int)$address_id . "'"); $address = tep_db_fetch_array($address_query); $format_id = tep_get_address_format_id($address['country_id']); return tep_address_format($format_id, $address, $html, $boln, $eoln); } if i changed the tep_db_query values the way they are listed would that help? Link to comment Share on other sites More sharing options...
Guest Posted February 2, 2004 Share Posted February 2, 2004 The format of the address is determined from the value set in the Countries table. For the UK I think the address format is 1, have a look. This value is the key to the address_format table which dictates the order of the address lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.