Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Position in delivery adress


gregy

Recommended Posts

Hi

 

Currently in invoice i have adress in this format

 

Joe Doe

Doe street 4

Munich 4000

Germany, germany

 

which means

 

Name Surname

Street

City ZIP

Suburb

State (or country)

 

what i would like to have .. i mean since we have installed sticky print label contrib, and our post rules for letters or envelopes in our country are ...

 

Joe Doe

Doe Street 4

4000 Munich

 

Germany

 

 

where can i change this order?

 

thanx in advance

Link to comment
Share on other sites

Hi

 

Currently in invoice i have adress in this format

 

Joe Doe

Doe street 4

Munich 4000

Germany, germany

 

which means

 

Name Surname

Street

City ZIP

Suburb

State (or country)

 

what i would like to have .. i mean since we have installed sticky print label contrib, and our post rules for letters or envelopes in our country are ...

 

Joe Doe

Doe Street 4

4000 Munich

 

Germany

where can i change this order?

 

thanx in advance

 

 

found this in general.php but not sure how to use ..

 

  function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
   $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");
   $address_format = tep_db_fetch_array($address_format_query);

   $company = tep_output_string_protected($address['company']);
   if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
     $lastname = tep_output_string_protected($address['lastname']);
  $firstname = tep_output_string_protected($address['firstname']);
   } elseif (isset($address['name']) && tep_not_null($address['name'])) {
     $firstname = tep_output_string_protected($address['name']);
     $lastname = '';
   } else {
     $firstname = '';
     $lastname = '';
   }
   $street = tep_output_string_protected($address['street_address']);
   $suburb = tep_output_string_protected($address['suburb']);
   $city = tep_output_string_protected($address['city']);
   $state = tep_output_string_protected($address['state']);
   if (isset($address['country_id']) && tep_not_null($address['country_id'])) {
     $country = tep_get_country_name($address['country_id']);

     if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) {
       $state = tep_get_zone_code($address['country_id'], $address['zone_id'], $state);
     }
   } elseif (isset($address['country']) && tep_not_null($address['country'])) {
     $country = tep_output_string_protected($address['country']);
   } else {
     $country = '';
   }
   $postcode = tep_output_string_protected($address['postcode']);
   $zip = $postcode;

   if ($html) {

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...