Commit 711d29ee by nadeem.qasmi

checkout email done

parent 4fa1ca7c
Pipeline #549 passed with stage
in 0 seconds
......@@ -121,7 +121,7 @@ function vq_lms_process_order()
}
$options = get_option('vq_lms_settings_options');
//$to = get_option('vq_lms_payment_notify_email');
$to = get_option('vq_lms_payment_notify_email');
$itemsXML = "";
$totalCost = 0;
......@@ -180,15 +180,14 @@ function vq_lms_process_order()
}
// $to .= ', '.$user['email'];
// $subject = "Checkout Confirmation";
// $body = '';
// $body .= $postContent;
//
// add_filter('wp_mail_content_type', 'set_html_content_type');
// wp_mail($to, $subject, $body);
// remove_filter('wp_mail_content_type', 'set_html_content_type');
// wp_mail($to, "APEX Checkout", $postContent);
$to .= ', '.$user['email'];
$subject = "Checkout Confirmation";
$body = '';
$body .= $postContent;
add_filter('wp_mail_content_type', 'set_html_content_type');
wp_mail($to, $subject, $body);
remove_filter('wp_mail_content_type', 'set_html_content_type');
if($oid > 0) {
$post = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment