Add "send me the message" to Contact Us form
Tested on 4.2.1 and code below is from 4.2.1
1. Open skin1/customer/help/contactus.tpl abd add this
{* Added by CFL Systems for "send me the message" *}
<tr>
<td class="data-name"> </td>
<td class="data-required"> </td>
<td>
<input type="checkbox" id="cust_send_email" name="cust_send_email" value="Y"{if $userinfo.cust_send_email eq 'Y'} checked="checked"{/if} /> Please send this message to my email address shown above
{if $fillerror ne "" and $userinfo.subject eq ""}
<span class="error-message"><<</span>
{/if}
</td>
</tr>
{* Added by CFL Systems for "send me the message" *}
where you want it to display, I personally would suggest just before this line
{if $active_modules.Image_Verification && $show_antibot.on_contact_us eq 'Y'}
2. Open include/help.php, find
$store_contactus = false;
func_header_location("help.php?section=contactus&m ode=sent");
and just before add
# if statement added by CFL Systems to send contact us message to customer if box is checked
if ($contact["cust_send_email"] == "Y")
func_send_mail($contact["email"], "mail/help_contactus_subj.tpl", "mail/help_contactus.tpl", $config["Company"]["support_department"], false);
Done. Run cleanup.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development
|