| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add "send me the message" to Contact Us form | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||
|
|||||||
![]() Awesome mod - just installed it... and cleaned up my contact form.
__________________
X-Cart Gold 4.5.4 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() You may want to exercise caution with this. It makes it possible for some miscreant to use the form and your server to send inappropriate email to someone other than themselves. If you do this - you should make sure you enable the captcha. You should also make sure to keep something like the default message in the eml_mail_header language variable - that lets people know than even though the message is from your business, if they did not initiate, they should ignore it.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
That is true. Thanks for pointing that out for anyone who wishes to use this one
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|