Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Issue displaying Added address fields to contact_us

    I have added some fields to the tpl_contact_us_default.php file from the modules/create_account.php file.

    Most of this displays as expected with the exception of the text description "State/Province:" and the view source indicates that "ENTRY_STATE" is there BUT no text is rendered.

    So I have obviously missed something but can not determine what?

    This is the code added to tpl_contact_us_default.php and I have highlighted the state echo statement
    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" />
    The source for city and then state is as follows and I can see that it is not correct but no idea why/ what I missed
    Code:
    <label class="inputLabel" for="city">City:</label>
    <label class="inputLabel" for="state" id="stateLabel"></label>
    One can see the display or view the source HERE
    It should be right below the City text.

    Thanks for looking and any ideas as to what I missed
    Zen-Venom Get Bitten

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Issue displaying Added info to contact_us

    If you're trying to add city/state/zip/country information to other pages, you'll probably need the jscript_xxxx files copied to that page as well. Look at the includes/modules/pages folder for the page you copied concepts from, and copy the javascript file related to address pulldowns. That may get you a step closer.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Issue displaying Added address fields to contact_us

    Thanks DrByte,

    I was not enabling the pull down but did copy the .js files to the create account page dir

    I also merged the header_php.php and added the require and the include that were not present but this also showed no joy

    The create account source has this for city & state
    Code:
    <label class="inputLabel" for="city">City:</label>
    <label class="inputLabel" for="state" id="stateLabel">State/Province:</label>
    And the altered contact us still does not have the state text in the source
    Code:
    <label class="inputLabel" for="city">City:</label>
    <label class="inputLabel" for="state" id="stateLabel"></label>
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. How to set the Multiple Store Address in Contact_Us page?
    By vishalon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Feb 2010, 08:01 AM
  2. shop address removal from contact_us page
    By meermajik in forum Basic Configuration
    Replies: 2
    Last Post: 18 Feb 2007, 11:23 PM
  3. wrong email address on contact_us not sent
    By magicpants in forum General Questions
    Replies: 3
    Last Post: 17 Nov 2006, 07:30 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