Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2010
    Posts
    33
    Plugin Contributions
    0

    Default extra text field in contact us form

    Hi to all

    Could anyone kindly tell me how to add and extra text field in the contact us form.

    You have your name, then email address then below this id like to put another text field called "Order number"

    Any help would be greatly appricated

    Many thanks
    Using zencart version - 1.3.8a

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: extra text field in contact us form

    Take look at 2 existing mods below...Ask a Question or Returns Authorization...
    either use one or both or see how they are configured
    http://www.zen-cart.com/index.php?ma...roducts_id=206
    http://www.zen-cart.com/index.php?ma...roducts_id=433

  3. #3
    Join Date
    Feb 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: extra text field in contact us form

    Hi thanks for your help i did take a look at them but there not what iam looking, just want to put an extra text field saying "Order number" If their query is relating to their order.

    Thanks
    Using zencart version - 1.3.8a

  4. #4
    Join Date
    Jul 2009
    Location
    Prague, Czech Republic
    Posts
    530
    Plugin Contributions
    0

    Default Re: extra text field in contact us form

    There are two mods that do what you want, one is called band sign up, the other is I think become a distributor form - you will need to search through the forums as they are hidden as zip files within one of the threads

    Examples of both here:

    http://ericasteamreps.co.uk/shop/ind...ge=band_signup

    http://ericasteamreps.co.uk/shop/ind...ge=become_dist

  5. #5
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: extra text field in contact us form

    Quote Originally Posted by medeano View Post
    Hi to all

    Could anyone kindly tell me how to add and extra text field in the contact us form.

    You have your name, then email address then below this id like to put another text field called "Order number"

    Any help would be greatly appricated

    Many thanks
    It is simple 3 Step process:

    Step 1
    /includes/templates/YOUR TEMPLATE/templates/tpl_contact_us_default.php

    ADD
    PHP Code:
    <label class="inputLabel" for="ordernumber"><?php echo ENTRY_ORDERNUMBER?></label>
    <?php echo zen_draw_input_field('ordernumber', ($error $_POST['ordernumber'] : $ordernumber), ' size="20" id="ordernumber"'); ?> <br class="clearBoth" />
    Step 2
    /includes/modules/pages/contact_us/header_php.php

    SEARCH
    PHP Code:
        OFFICE_EMAIL "\t" $email_address "\n\n" .
        
    '------------------------------------------------------' "\n\n" .
        
    strip_tags($_POST['enquiry']) .  "\n\n" .
        
    '------------------------------------------------------' "\n\n" 
    REPLACE
    PHP Code:
        OFFICE_EMAIL "\t" $email_address "\n\n" .
        
    '------------------------------------------------------' "\n\n" .
        
    "Order Number:\t" strip_tags($_POST['ordernumber']) . "\n" .
        
    strip_tags($_POST['enquiry']) .  "\n\n" .
        
    '------------------------------------------------------' "\n\n" 
    Step 3
    /includes/languages/english/contact_us.php

    SEARCH
    PHP Code:
    define('ENTRY_EMAIL''Email Address:'); 
    REPLACE
    PHP Code:
    define('ENTRY_EMAIL''Email Address:');
    define('ENTRY_ORDERNUMBER''Order Number:'); 
    I hope im clear enough to anyone trying this. You can use same process to add any number of extra text fields.

    ~Time

 

 

Similar Threads

  1. v139h Add Field to Contact Us Form
    By Donn in forum General Questions
    Replies: 1
    Last Post: 12 Jan 2012, 11:07 PM
  2. Weird Extra Field in Form
    By bigdiogi in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Mar 2011, 03:14 PM
  3. Company Field in Contact Us Form Required?
    By Qoffa in forum General Questions
    Replies: 9
    Last Post: 5 Jul 2007, 06:49 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR