Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Address changes!


Guest

Recommended Posts

Hi,

 

In the New customer section when they sign up and enter their address, how do i go about chaning the address titles such as suburb to Town etc as i want to make it more UK friendly.

 

Thanks

 

Linz

Link to comment
Share on other sites

is this what you are after in catalog/create_account.php

 

if (ACCOUNT_GENDER == 'true') {
     if (isset($HTTP_POST_VARS['gender'])) {
       $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
     } else {
       $gender = false;
     }
   }
   $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
   $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
   if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);
   $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
   if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
   $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
   if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
   $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
   $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
   if (ACCOUNT_STATE == 'true') {
     $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
     if (isset($HTTP_POST_VARS['zone_id'])) {
       $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
     } else {
       $zone_id = false;
     }
   }
   $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
   $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);
   $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);
   if (isset($HTTP_POST_VARS['newsletter'])) {
     $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);
   } else {
     $newsletter = false;
   }
   $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
   $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

so that you can change the text for state to region that sort of thing

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

is this what you are after in catalog/create_account.php

 

if (ACCOUNT_GENDER == 'true') {
? ? ?if (isset($HTTP_POST_VARS['gender'])) {
? ? ? ?$gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
? ? ?} else {
? ? ? ?$gender = false;
? ? ?}
? ?}
? ?$firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
? ?$lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
? ?if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);
? ?$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
? ?if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
? ?$street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
? ?if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
? ?$postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
? ?$city = tep_db_prepare_input($HTTP_POST_VARS['city']);
? ?if (ACCOUNT_STATE == 'true') {
? ? ?$state = tep_db_prepare_input($HTTP_POST_VARS['state']);
? ? ?if (isset($HTTP_POST_VARS['zone_id'])) {
? ? ? ?$zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
? ? ?} else {
? ? ? ?$zone_id = false;
? ? ?}
? ?}
? ?$country = tep_db_prepare_input($HTTP_POST_VARS['country']);
? ?$telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);
? ?$fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);
? ?if (isset($HTTP_POST_VARS['newsletter'])) {
? ? ?$newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);
? ?} else {
? ? ?$newsletter = false;
? ?}
? ?$password = tep_db_prepare_input($HTTP_POST_VARS['password']);
? ?$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

so that you can change the text for state to region that sort of thing

Yeah change the states bit to region and that....tried doing it there but it didn't change anything :? Will check the english.php

Link to comment
Share on other sites

you never know do you Jason, you might be right for once

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...