Commit a0948480 by nadeem.qasmi

checkout email cont

parent b6ccccdb
Pipeline #544 passed with stage
in 0 seconds
...@@ -42,6 +42,10 @@ add_action( 'edited_vq_course_promo', 'save_course_promo', 10, 2 ); ...@@ -42,6 +42,10 @@ add_action( 'edited_vq_course_promo', 'save_course_promo', 10, 2 );
add_action('wp_ajax_nopriv_check_promo', 'vq_check_promo', 10, 2); add_action('wp_ajax_nopriv_check_promo', 'vq_check_promo', 10, 2);
add_action('wp_ajax_check_promo', 'vq_check_promo', 10, 2); add_action('wp_ajax_check_promo', 'vq_check_promo', 10, 2);
function set_html_content_type(){
return 'text/html';
}
function vq_check_promo() { function vq_check_promo() {
$code = $_POST['data']; $code = $_POST['data'];
$val = -1; $val = -1;
...@@ -173,18 +177,18 @@ function vq_lms_process_order() ...@@ -173,18 +177,18 @@ function vq_lms_process_order()
$postContent .= $user['phone']."<br /><hr />"; $postContent .= $user['phone']."<br /><hr />";
} }
$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');
wp_mail($to, "APEX Checkout", $postContent);
if($oid > 0) { if($oid > 0) {
$post = array( $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