Re: Setting up a "Request Form"
Quote:
Originally Posted by
Lordzoabar
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.
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
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.
Re: Setting up a "Request Form"
Quote:
Originally Posted by
Lordzoabar
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.