Forums / General Questions / A Second 'Trade' Contact Us Page?

A Second 'Trade' Contact Us Page?

Locked

Started by springwig on 9 Aug 2010, 4:15 PM · Views: 868

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Aug 2010, 4:15 PM
#1
springwig avatar

springwig

New Zenner

Join Date:
Aug 2010
Location:
U.K.
Posts:
3
Plugin Contributions:
0

A Second 'Trade' Contact Us Page?

Hi,
I would like to add a second Contact us page to my site which would be for the use of trade customers who wish to open a trade account.
A trade account application form to put it simply.:P

Any suggestions on how I can do this?
I have looked through the forums and cannot find anything.

Thanks,

V1.3.9e (Stock)

10 Aug 2010, 10:07 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: A Second 'Trade' Contact Us Page?

It's not that tricky. You could have a look at the 'ask a question' mod to see how to go about it. The mod actually does a bit more than you might want but it might help you see where to go.

Nick
iszent.com

11 Aug 2010, 10:41 AM
#3
springwig avatar

springwig

New Zenner

Join Date:
Aug 2010
Location:
U.K.
Posts:
3
Plugin Contributions:
0

Re: A Second 'Trade' Contact Us Page?

Thanks,
I have managed to figure quite a bit of it out.

I copied the contact us structure from http://www.zen-cart.com/forum/showpost.php?p=29927&postcount=9 and have renamed/edited the files to be 'trade_contact' instead of contact us.
I added new data input boxes to the form in tpl_trade_contact_default.php:

<label class="inputLabel" for="contactcompany"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('contactcompany', $company, ' size="40" id="contactcompany"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />

and in trade_contact.php.

define('ENTRY_COMPANY', 'Company:');

However I can't get the new data fields to appear in the email which is sent from the form.
This is somewhere in header_php.php but I don't know what to change and where to add the new code.

Any ideas?
:lookaroun
Kind Regards

11 Aug 2010, 3:19 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: A Second 'Trade' Contact Us Page?

I use a very different approach - not even linked to zencart - but it allows me to design and render very complex forms in literally 5 minutes, and display them on the site.

It's a program called Machform, by Appnitro, and if you want to see how effective it is, take a look at a couple of examples.

These forms - some quite complex, you may agree - took just a few minutes to create and embed in my various zencart stores.

Sample 1

Sample 2

Sample 3

20 years a Zencart User

11 Aug 2010, 3:49 PM
#5
springwig avatar

springwig

New Zenner

Join Date:
Aug 2010
Location:
U.K.
Posts:
3
Plugin Contributions:
0

Re: A Second 'Trade' Contact Us Page?

Those forms look like a great solution to my problem!
Thanks.:smile:

A little bit OTT for a simple contact form though.
I will keep working on modifying the existing code.