Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with create account page


chowchow123

Recommended Posts

Posted

Hi

 

I want to remove State/Zone from the registration form - I think I've managed it on the create account page but where else do i need to remove code from?

 

thanks

Posted

I think you have to erase all this code in the create_account.php

<?php

if (ACCOUNT_STATE == 'true') {

?>

<tr>

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

<td class="main">

<?php

if ($process == true) {

if ($entry_state_has_zones == true) {

$zones_array = array();

$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");

while ($zones_values = tep_db_fetch_array($zones_query)) {

$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);

}

echo tep_draw_pull_down_menu('state', $zones_array);

} else {

echo tep_draw_input_field('state');

}

} else {

echo tep_draw_input_field('state');

}

 

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?>

</td>

</tr>

<?php

}

?>

Posted

that's right, I deleted the zones from the admin configuration because I didn't wasn't going to use it, I only use one country which doesn't really have states or zone so I thought of getting rid of it altogether - it's proving to be quite messy because it's linked in with geo-zone which is used for the tax. I may have to restore things and add a few zones in the db

Posted

you should have used the state switch. in osc admin->configuration->customer details.

Archived

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

×
×
  • Create New...