Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Location
    U.K.
    Posts
    3
    Plugin Contributions
    0

    Default 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.

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

    Thanks,

    V1.3.9e (Stock)

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default 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.

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

    Default 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/showpo...27&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:

    Code:
    <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.

    Code:
    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?

    Kind Regards

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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

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

    Default Re: A Second 'Trade' Contact Us Page?

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

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

 

 

Similar Threads

  1. Creating a Second Contact Form
    By bparker in forum General Questions
    Replies: 0
    Last Post: 12 Nov 2013, 11:26 PM
  2. A second contact us form
    By Sharni in forum General Questions
    Replies: 1
    Last Post: 9 May 2010, 08:31 AM
  3. only trade customers see/select trade prices
    By newbie_veesmith in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 19 Apr 2010, 11:23 AM
  4. Adding a Second Contact Us Page
    By mouthtrick2009 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jan 2010, 02:39 AM
  5. Trade page not loading
    By bettsaj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 May 2009, 01:39 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