Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Setting up a "Request Form"

    Quote Originally Posted by Lordzoabar View Post
    So specifically what file should I be looking at? I just did a fresh upload of the mod, no changes except to the YOUR_TEMPLATE folder names and I'm getting the exact same results.
    Sorry... I had to go back to the download and look,, It's not you but I see now its in the tpl_get_quote_default.php code...

    line 27 is
    Code:
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_DEFINE_GET_QUOTE, 'action=send'),'post',' enctype="multipart/form-data" '); ?>
    should be
    Code:
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_GET_QUOTE, 'action=send'),'post',' enctype="multipart/form-data" '); ?>
    If you plan on removing the file upload you can remove the
    Code:
    ,' enctype="multipart/form-data"
    line too. Only needed for uploading data.
    Dave
    Always forward thinking... Lost my mind!

  2. #12
    Join Date
    Nov 2017
    Location
    Athens, Georgia, USA
    Posts
    99
    Plugin Contributions
    0

    Default Re: Setting up a "Request Form"

    Perfect! That fixed it, and I've more or less got it where I want it. Functioning now, I can make it pretty later. lol

  3. #13
    Join Date
    Nov 2017
    Location
    Athens, Georgia, USA
    Posts
    99
    Plugin Contributions
    0

    Default Re: Setting up a "Request Form"

    Update: I've since installed the Contact_Us_Subject plugin so that when customers email us through our contact us pages, it will actually show the subject of their message instead of the stock "Website enquiry from...". And I've got it working as it is supposed to with the Contact Us files. When I go and make the same changes in the corresponding get_quote files, it adds the Subject text box to the page, but THOSE emails come through with the stock subject line still.


    I'm looking at:

    /includes/languages/english/your_template/contact_us.php.txt
    /includes/modules/pages/contact_us/header_php.php.txt
    /includes/templates/your_template/templates/tpl_contact_us_default.php.txt

    and then the get_quote versions in the same locations.

  4. #14
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Setting up a "Request Form"

    Quote Originally Posted by Lordzoabar View Post
    Update: I've since installed the Contact_Us_Subject plugin so that when customers email us through our contact us pages, it will actually show the subject of their message instead of the stock "Website enquiry from...". And I've got it working as it is supposed to with the Contact Us files. When I go and make the same changes in the corresponding get_quote files, it adds the Subject text box to the page, but THOSE emails come through with the stock subject line still.


    I'm looking at:

    /includes/languages/english/your_template/contact_us.php.txt
    /includes/modules/pages/contact_us/header_php.php.txt
    /includes/templates/your_template/templates/tpl_contact_us_default.php.txt

    and then the get_quote versions in the same locations.
    You may have to ask on that mod support page, I use a drop down list for subjects as a required field which plays hell with bots..

    The idea would be to create a field in the form for the subject line like input field name 'subject'
    in the header, read and clean the submitted field
    Code:
    $subject = zen_db_prepare_input(zen_sanitize_string($_POST['subject']));
    in the zen_mail( line replace EMAIL_SUBJECT with $subject

    You can test the email string by dropping a test line in above zen_mail and create a test request. don't forget to comment out the line before going live.
    Code:
    die ('|| ' . $send_to_name . ' | ' . $send_to_email . ' | ' . $subject . ' | ' . $text_message . ' | ' . $name . ' | ' . $email_address . ' | ' . $html_msg);
    Match the test to your form, I send both html and text with more info then what this mod does.
    Dave
    Always forward thinking... Lost my mind!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a Trying to make a "Paypal request invoice" option
    By grantopt in forum General Questions
    Replies: 0
    Last Post: 5 May 2012, 07:33 AM
  2. "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
  3. fedex setting "always free" weights to "0" on upgrade..help please
    By wootoot1234 in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 14 Jan 2009, 01:11 AM
  4. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM

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