Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    34
    Plugin Contributions
    0

    Default Customizing the Contact Us form

    I guess I still haven't completely figured out the file structure in Zen Cart! Please point me in the correct direction.

    The problem? I've set up an elaborate custom contact form through the Define Pages Editor (../includes/template/my_template/tpl_contact_us.php) but find that the standard contact form appears at the bottom of the form. I'd like to use my form in place of the standard one but haven't been able to find the file that generates the standard form.

    What file contains the default form for the contact us page?

    Thanks,

    Jim

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customizing the Contact Us form

    The default file is tpl_contact_us_default.php

  3. #3
    Join Date
    Sep 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Customizing the Contact Us form

    Quote Originally Posted by clydejones View Post
    The default file is tpl_contact_us_default.php
    Thanks, Clyde. Found it. Now all I have to do is decipher all of the Zen Cart coding and, probably, define some more constants in my english.php. As far as that goes, I don't even see where the form tag starts!

    PHP Code:
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION?></div>
    <br class="clearBoth" />

    <?php
    // show dropdown if set
        
    if (CONTACT_US_LIST !=''){
    ?>
    <label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT?></label>
    <?php echo zen_draw_pull_down_menu('send_to',  $send_to_array0'id="send-to"') . '<span class="alert">' ENTRY_REQUIRED_SYMBOL '</span>'?>
    <br class="clearBoth" />
    <?php
        
    }
    ?>

    <label class="inputLabel" for="contactname"><?php echo ENTRY_NAME?></label>
    <?php echo zen_draw_input_field('contactname'$name' size="40" id="contactname"') . '<span class="alert">' ENTRY_REQUIRED_SYMBOL '</span>'?>
    <br class="clearBoth" />

    <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL?></label>
    <?php echo zen_draw_input_field('email', ($error $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' ENTRY_REQUIRED_SYMBOL '</span>'?>
    <br class="clearBoth" />

    <label for="enquiry"><?php echo ENTRY_ENQUIRY '<span class="alert">' ENTRY_REQUIRED_SYMBOL '</span>'?></label>
    <?php echo zen_draw_textarea_field('enquiry''30''7''''id="enquiry"'); ?>

    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SENDBUTTON_SEND_ALT); ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></div>
    <?php
      
    }
    ?>
    </form>
    I suppose I can just replace this code with the html code I want to use... Or even leave this file empty and go with what I have in the define_contact_us.php file (I blew it! The file mentioned in the original post should have been define_contact_us.php).

    Thanks again,

    Jim
    Last edited by laplatakid; 29 Nov 2006 at 07:07 PM.

 

 

Similar Threads

  1. Customizing Contact Us Form, the action="" param,
    By tcarden in forum General Questions
    Replies: 2
    Last Post: 27 Dec 2012, 08:32 PM
  2. customizing default contact form
    By malhyp in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Dec 2008, 08:04 AM
  3. customizing the contact us link?
    By Sote in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Apr 2008, 10:19 PM
  4. Customizing the signup form
    By Nimbuz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Jan 2008, 03:50 PM
  5. Customizing the look of the header Search form. Submit image and background color.
    By immersive in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 May 2007, 07:51 AM

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