Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Customizing Contact Us Form, the action="" param,

    Hi All,
    I'm working on customizing the Contact Us form and working in tpl_contact_us_default.php. I'm struggling to understand the action param. and what all happens once submitted.

    For starters I'd like to disengage the php send mail function.

    also, what functions get called? and how do the inputs get sanitized?

    the last param is action=send, so i found a send function in the class.smpt.php file but don't think that's what im looking for, thanks

    also, if there is a better Forum Category to post this in please let me know,

    thanks!

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

    Default Re: Customizing Contact Us Form, the action="" param,

    Most Zen Cart pages have a module file in includes/modules/pages/XXXX/header_php.php and a template file in includes/templates/your_template/templates/tpl_XXXX_default.php. ( This is a bit of a simplification but it will do for the moment.)

    Obviously the XXXX is in your case ' contact_us ' .

    So the processing happens in the module file before the template is loaded. Then the template is loaded to display the information.

    So, in your case the processing of the form happens in the module file which is:

    includes/modules/pages/contact_us/header_php.php

    You can do what you want in there. But keep in mind that overrides cannot be used for these files and that you may want to use a notifier rather than edit the core file if you can achieve what you want that way. If you look at that module file and it is all greek to you then you may need to post again ...

  3. #3
    Join Date
    Oct 2012
    Posts
    282
    Plugin Contributions
    0

    Default Re: Customizing Contact Us Form, the action="" param,

    thanks!, just what i was looking for.

 

 

Similar Threads

  1. The email form on "contact us" can't submit, why?
    By rabarrig in forum General Questions
    Replies: 23
    Last Post: 19 Jan 2012, 10:37 PM
  2. How to duplicate the "Contact Us" form?
    By brokenbird in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Sep 2011, 01:30 PM
  3. "Subscribe to Newsletter" ability when completing "Contact Us" form
    By dcitsolutions in forum General Questions
    Replies: 2
    Last Post: 27 Apr 2010, 01:38 AM
  4. Where to set the email address "Contact form" entry go?
    By e81ny in forum Basic Configuration
    Replies: 3
    Last Post: 11 Aug 2008, 02:53 PM
  5. How do I change the "Contact Us" Form encoding to UTF-8?
    By explorer1979 in forum General Questions
    Replies: 8
    Last Post: 30 Jan 2008, 07:37 AM

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