Forums / Templates, Stylesheets, Page Layout / extra text field in contact us form

extra text field in contact us form

Locked

Views: 2,758

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 Mar 2010, 9:47 AM
#1
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

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

5 Mar 2010, 10:35 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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?main_page=product_contrib_info&products_id=206
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=433

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

5 Mar 2010, 12:36 PM
#3
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

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

5 Mar 2010, 1:50 PM
#4
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

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/index.php?main_page=band_signup

http://ericasteamreps.co.uk/shop/index.php?main_page=become_dist

20 Nov 2010, 9:36 PM
#5
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: extra text field in contact us form

medeano:

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

<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

    OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
    '------------------------------------------------------' . "\n\n" .
    strip_tags($_POST['enquiry']) .  "\n\n" .
    '------------------------------------------------------' . "\n\n" .

REPLACE

    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

define('ENTRY_EMAIL', 'Email Address:');

REPLACE

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