Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    help question Custom Form Field and Email Validation

    Hi, is there an easy way to add a custom form field to the checkout form where a user has to fill in how they found the site before it is submitted for an order. Does the new version have an easy way to add custom form fields and then parse the field to the email set during validation. I'm trying to make it so a user has to check or indicate how they found the site before the order can be submitted and for that field to be added to the email sent when an order is placed. Any help is appreciated.

  2. #2
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Custom Form Field and Email Validation

    I have the database tables. Are the templates pretty straight forward in how data is parsed from the checkout form to the database, and from the database to the email? I guess I can use the other form elements as samples and replace the elements dealing with the database tables. I guess there is no real automated solution in the new zen-cart version.
    Last edited by zepher; 23 Jan 2010 at 02:49 PM. Reason: forgot a ?

  3. #3
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: Custom Form Field and Email Validation

    I have the same needs - to add a couple of simple text fields with custom questions for informational purposes - to the checkout form for an order (not by product and not by customer account).

    I saw several threads pointing to a mod done for adding customer fields but that is not my desire and from the sound of the instructions and posts I am kind of wary of using that module anyway.

    Has anyone seen a module or fairly achievable way to accomplish this?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Custom Form Field and Email Validation

    There's this you could use as a guide:

    http://www.zen-cart.com/index.php?ma...roducts_id=186

  5. #5
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Custom Form Field and Email Validation

    Thanks for the link, looks like it would work perfect. Will try to install it tomorrow. I was thinking about using the countries drop down as a sample to edit the templates, but it looks like the 'how did you hear about us' mod is perfect. Thanks!:

    Anyone else use this mod?
    Does it allow the values to be included in the email template?
    Can I make it a 'required' field?

    I use the latest version of zen-cart so it looks like it will install and work on 1.3.8

 

 

Similar Threads

  1. form validation - email address field
    By kwright in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2010, 01:52 AM
  2. form field validation (numeric or empty only)
    By Veronika7747 in forum General Questions
    Replies: 7
    Last Post: 14 Jan 2008, 08:23 PM
  3. Custom form: Field Validation
    By amites in forum General Questions
    Replies: 3
    Last Post: 8 Jun 2007, 02:37 PM

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