osc12 Posted November 13, 2006 Share Posted November 13, 2006 I have a invoice.php produced on the catalog side after the success of the checkout process. All of the values are being printed however... My question is, how do I change the format of the address? This is my code in invoice.php to what I believe is the correct code to dispay the address in appropriate format. (This same code displays the address format correctly on checkout_payment and checkout_confirmation). (<?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?> ) thanks in advance! osc12 Link to comment Share on other sites More sharing options...
pyramids Posted November 14, 2006 Share Posted November 14, 2006 the address formats are in the database something like this INSERT INTO address_book VALUES ( '1', '1', 'm', 'ACME Inc.', 'John', 'Doe', '1 Way Street', '', '12345', 'NeverNever', '', '223', '12'); # 1 - Default, 2 - USA, 3 - Spain, 4 - Singapore, 5 - Germany INSERT INTO address_format VALUES (1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country','$city / $country'); INSERT INTO address_format VALUES (2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country','$city, $state / $country'); INSERT INTO address_format VALUES (3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country'); INSERT INTO address_format VALUES (4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country'); INSERT INTO address_format VALUES (5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country','$city / $country'); You can edit the database to alter the format, but it will format every use of it more info probably not needed: the function - function tep_address_format is located in catalog/includes/functions/general.php the format can be chosen in the admin-locations-countries you could also create a new function in catalog/includes/functions/general.php, by pass the format Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.