Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

It's an itty bitty problem but it's driving me crazy


caconline

Recommended Posts

http://in-cebu.net/cac/create_account.php

 

In Your Address:, Location in General: isn't lined up with the others.

 

I have been moving blocks of code around in account_details.php - The code below is what I had been tampering with.

 

<tr>

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

           <td class="main"> 

<?php

 if ($is_read_only) {

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

 } elseif ($error) {

   if ($entry_country_error) {

     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>

<?php

 if (ACCOUNT_STATE == 'true') {    

?>

         <tr>

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

           <td class="main"> 

<?php

   $state = tep_get_zone_name($country, $zone_id, $state);

   if ($is_read_only) {

     echo tep_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state']);

   } elseif ($error) {

     if ($entry_state_error) {

       if ($entry_state_has_zones) {

         $zones_array = array();

         $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . 168 . "' 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) . ' ' . ENTRY_STATE_ERROR;

       } else {

         echo tep_draw_input_field('state') . ' ' . ENTRY_STATE_ERROR;

       }

     } else {

       echo $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state');

     }

   } else {$zones_array = array(); 

$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . 168 . "' 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,tep_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . ' ' . ENTRY_STATE_TEXT;

      }

?></td>

         </tr>

<?php

   }

?>

Link to comment
Share on other sites

Never mind. I remember I had saved a previous version of account_details.php yesterday. I just redid what I did yesterday so it's all aligned again. This will teach me not to do unnecessary customizing.

 

delaen, thank you for the advice.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...