Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
bryan boyd
0 points
Beginner
Hello i currently paid for coder to create me a new function for my site, basically what it does is allows me to send an email to the person that purchased an item, this worked perfectly until i upgraded to the latest version. Below shows the code in which i have been using can anyone suggest why it no longer works with the latest version?
Hello i currently paid for coder to create me a new function for my site, basically what it does is allows me to send an email to the person that purchased an item, this worked perfectly until i upgraded to the latest version. Below shows the code in which i have been using can anyone suggest why it no longer works with the latest version?
Any advice is much appreciated
Many thanks
[code title=””]function prag_dispatched($order) {
if(isset($_POST[‘dispatched’])) {
if($_POST[‘custom’][‘billing_email’] != ”) {
$mailto = $_POST[‘custom’][‘billing_email’];
} else {
$mailto = $_POST[‘order_email’];
}
global $CORE;
$CORE->SENDEMAIL($mailto,’custom’,$_POST[‘dispatched_subject’],$_POST[‘dispatched_message’]);
}
$out = ”;
$out .= ‘<b>Send Dispatched message</b><br />’;
$out .= ‘<input name=”dispatched” type=”checkbox” value=”yes” /> <span>Yes</span> <br /><br />’;
$out .= ‘<b>Subject</b><br />’;
$out .= ‘<input name=”dispatched_subject” type=”text” style=”width:100%” value=”” /><br />’;
$out .= ‘<b>message</b><br />’;
$out .= ‘<textarea style=”height:150px; width:100%” name=”dispatched_message”>’.strip_tags(str_replace(“<br/>”,”\r\n\r\n”,$order->order_data)).'</textarea>’;
echo $out;
}
?>[/code]
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now