Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

elimate country in create account


Guest

Recommended Posts

Posted

In create account I would like to elimate country option, we only ship inside the usa

 

<?php

$email_address = tep_db_prepare_input($HTTP_GET_VARS['email_address']);

$account['entry_country_id'] = STORE_COUNTRY;

 

require(DIR_WS_MODULES . 'account_details.php');

?>

 

Thanks

Posted

I think you can do this by deleting all of this code from includes/modules/account_details.php

          <tr>

           <td class="main"> <?php echo ENTRY_COUNTRY; ?></td>

           <td class="main"> 

<?php

 if ($is_read_only == true) {

   echo tep_get_country_name($account['entry_country_id']);

 } elseif ($error == true) {

   if ($entry_country_error == true) {

     echo tep_get_country_list('country') . ' ' . ENTRY_COUNTRY_ERROR;

   } else {

     echo tep_get_country_name($country) . tep_draw_hidden_field('country');

   }

 } else {

   echo tep_get_country_list('country', $account['entry_country_id']) . ' ' . ENTRY_COUNTRY_TEXT;

 }

?></td>

         </tr>

I'm not sure what affect that has to have no country info at all, but it's worth a try (while keeping a backup).

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Posted

is there a way is insert united states into country , or default to united states ?

Posted

If you have STORE_COUNTRY set to United States in the admin, it will default to the United States.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Posted

Thanks Paul, I'll try it, right now I can't get in to the site, problems there too!!! Host comes up 404

Archived

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

×
×
  • Create New...