Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer Create Account Process


Genius

Recommended Posts

HI,

 

I am seeking for assistance with the customer account creation process. ON my create my profile page, i have put a drop down list in the county/state option, I can choose from the selected drop down list, but when i click continue to go the next page which is the creat_account_ process.php page no entry is display it just shows county/state and not entry...

 

any help would be appreciated, my code in the account_details.php page on the stare section is as follows:

<?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 == true) {
     echo tep_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state']);
   } elseif ($error == true) {
     if ($entry_state_error == 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 = '" . tep_db_input($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 $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state');
         } else {
         echo tep_draw_input_field('state') . ' ' . ENTRY_STATE_ERROR;
       }
     } else {

     }
   } else {
   echo ('<select name="zone_id" onChange="resetStateText(this.form);"><option>Please Select</option><option value="234">Aberdeenshire</option><option value="221">Anglesey/Sir Fon</option><option value="235">Angus/Forfarshire</option><option value="236">Argyllshire</option><option value="272">Avon</option><option value="237">Ayrshire</option><option value="238">Banffshire</option><option value="182">Bedfordshire</option><option value="183">Berkshire</option><option value="239">Berwickshire</option><option value="268">Birmingham</option><option value="222">Brecknockshire/Sir Frycheiniog</option><option value="273">Bristol</option><option value="184">Buckinghamshire</option><option value="240">Buteshire</option><option value="223">Caernarfonshire/Sir Gaernarfon</option><option value="242">Caithness</option><option value="185">Cambridgeshire</option><option value="225">Cardiganshire/Ceredigion</option><option value="224">Carmarthenshire/Sir Gaerfyrddin</option><option value="186">Cheshire</option><option value="243">Clackmannanshire</option><option value="274">Cleveland</option><option value="187">Cornwall</option><option value="241">Cromartyshire</option><option value="188">Cumberland</option><option value="275">Cumbria</option><option value="226">Denbighshire/Sir Ddinbych</option><option value="189">Derbyshire</option><option value="190">Devon</option><option value="191">Dorset</option><option value="244">Dumfriesshire</option><option value="245">Dunbartonshire/Dumbartonshire</option><option value="192">Durham</option><option value="246">East Lothian/Haddingtonshire</option><option value="276">East Riding of Yorkshire</option><option value="277">East Sussex</option><option value="193">Essex</option><option value="247">Fife</option><option value="227">Flintshire/Sir Fflint</option><option value="228">Glamorgan/Morgannwg</option><option value="194">Gloucestershire</option><option value="278">Greater Manchester</option><option value="195">Hampshire</option><option value="196">Herefordshire</option><option value="197">Hertfordshire</option><option value="279">Humberside</option><option value="198">Huntingdonshire</option><option value="248">Inverness-shire</option><option value="199">Kent</option><option value="249">Kincardineshire</option><option value="250">Kinross-shire</option><option value="251">Kirkcudbrightshire</option><option value="252">Lanarkshire</option><option value="200">Lancashire</option><option value="201">Leicestershire</option><option value="202">Lincolnshire</option><option value="271">London</option><option value="229">Merioneth/Meirionnydd</option><option value="280">Merseyside</option><option value="203">Middlesex</option><option value="270">Midlands</option><option value="253">Midlothian/Edinburghshire</option><option value="230">Monmouthshire/Sir Fynwy</option><option value="231">Montgomeryshire/Sir Drefaldwyn</option><option value="254">Morayshire</option><option value="255">Nairnshire</option><option value="204">Norfolk</option><option value="281">North Yorkshire</option><option value="205">Northamptonshire</option><option value="206">Northumberland</option><option value="207">Nottinghamshire</option><option value="256">Orkney</option><option value="208">Oxfordshire</option><option value="257">Peeblesshire</option><option value="232">Pembrokeshire/Sir Benfro</option><option value="258">Perthshire</option><option value="233">Radnorshire/Sir Faesyfed</option><option value="259">Renfrewshire</option><option value="260">Ross-shire</option><option value="261">Roxburghshire</option><option value="209">Rutland</option><option value="262">Selkirkshire</option><option value="263">Shetland</option><option value="210">Shropshire</option><option value="211">Somerset</option><option value="286">South Glamorgan</option><option value="282">South Yorkshire</option><option value="212">Staffordshire</option><option value="264">Stirlingshire</option><option value="213">Suffolk</option><option value="214">Surrey</option><option value="215">Sussex</option><option value="265">Sutherland</option><option value="283">Tyne & Wear</option><option value="216">Warwickshire</option><option value="266">West Lothian/Linlithgowshire</option><option value="284">West Midlands</option><option value="285">West Sussex</option><option value="269">West Yorkshire</option><option value="217">Westmorland</option><option value="267">Wigtownshire</option><option value="218">Wiltshire</option><option value="219">Worcestershire</option></select>') . ' ' . ENTRY_STATE_TEXT;

     }
?></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...