Results 1 to 10 of 13

Threaded View

  1. #9
    Join Date
    Jul 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Custom contact forms

    I've added a custom contact page for wholesale inquiries, and am trying to add an extra field. The field shows up on the page, but when I test it, the info from that field does not come through. I've been playing around with this for a couple hours, and tried the method listed here, copied the info from the attached files in that message, nothing works so far. I've attached my two files header_php.php and tpl_wholesale_default.php if anyone has a clue what I've screwed up and how to make it work. Thanks!





    Quote Originally Posted by raverX
    i gave up on that module, it was annoying...

    just hacked up the contacts page script to do what i wanted it to do...

    you need to understand forms to some extent, tho ZenCart has functions to do most things which are pretty easy to understand..

    first look in /includes/templates/theme_name/templates/tpl_contact_us_default.php
    copy this to whatever you want your new page to be called (in my case 'vip')
    sp tpl_vip_default.php

    then edit it to suit your requirements

    then goto /includes/modules/pages/contact_us/
    copy that folder to whatever you called your previous one
    ie: /includes/modules/pages/vip/

    then edit 'header_php.php' - this will process your form when you POST to it, you will need to match the variable names to what you put in the tpl file

    you may also need to go to /includes/languages/english/html_includes and copy define_contact_us.php to define_name.php (ie: define_vip.php)

    you will also need to go to /includes/languages/english and copy contact_us.php to the same name (ie: vip.php)

    I think that's all I did.. there may have been one other file that needs changing..

    I've attached a copy of the 4 files mentioned for anyone who wants to use them as a reference.. just ignore the ladym folder as that's the source tree for the project i was working on..
    Attached Files Attached Files

 

 

Similar Threads

  1. creating custom forms
    By TheMortician4 in forum Customization from the Admin
    Replies: 7
    Last Post: 2 Feb 2012, 04:17 PM
  2. Creating contact forms?
    By sim8729 in forum General Questions
    Replies: 2
    Last Post: 7 Jul 2011, 11:25 PM
  3. forms validation recommendations for contact us??
    By tlyczko in forum General Questions
    Replies: 1
    Last Post: 28 Apr 2010, 06:12 PM
  4. Custom Forms
    By wwiii in forum General Questions
    Replies: 3
    Last Post: 11 May 2009, 05:51 PM
  5. Multiple Contact Us Forms
    By nickelleon in forum General Questions
    Replies: 2
    Last Post: 1 May 2009, 08:59 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