Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Move State below Country on registration page

    Hi all

    I want to move the state below the country on the registration page,

    Why do I want to do this

    The States dropdown box only shows the states from my default country until the Customer selects a different country then States for that country appear

    The problem is that Customers hit the State box first and are presented with a list of unknown states which confuses them,

    So I want to put Country first then State as I believe this will cut down on any confusion

    Thanks in Advance

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Move State below Country on registration page

    Yep. Go to includes/templates/template_default/templates/tpl_modules_create_account.php

    Find these lines of code:


    Code:
    <?php
      if (ACCOUNT_STATE == 'true') {
        if ($flag_show_pulldown_states == true) {
    ?>
    <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
    <?php
          echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
          if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert">' . ENTRY_STATE_TEXT . '</span>'; 
        }
    ?>
    
    <?php if ($flag_show_pulldown_states == true) { ?>
    <br class="clearBoth" id="stBreak" />
    <?php } ?>
    <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
    <?php
        echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
        if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
        if ($flag_show_pulldown_states == false) {
          echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
        }
    ?>
    <br class="clearBoth" />
    <?php
      }
    ?>
    
    <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />

    And move this ENTIRE section down below these lines of code:

    Code:
    <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
    <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    </fieldset>

    Then, in the second code listed here.....see the
    Code:
    <br class="clearBoth" />
    ? Delete it.

    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Move State below Country on registration page

    Thanks for that it works exactly how i want it to

    Much appreciated.

    Now all i have to do is figure out how to set a default state

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Move State below Country on registration page

    Well, you could always just let them type it in by turning off the dropdown list, in Admin>Configuration>Customer Details
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Product Description/Info page: can I move price right below model without space?
    By scott_ease in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 27 Jun 2012, 01:38 AM
  2. Move Define Page Text to bottom of page, below centerboxes
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jul 2011, 02:13 AM
  3. State Field Showing Below State Dropdown
    By johnfripp in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Feb 2011, 01:34 PM
  4. How to modify "country" dropdown on registration page?
    By topside in forum Managing Customers and Orders
    Replies: 1
    Last Post: 12 Aug 2010, 07:49 PM
  5. move main page text below categories
    By tracyselena in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 May 2010, 08:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg