Commit df3af194 by jenkins

Merge Request accepted by jenkins build success

parents 10225d27 a0948480
Pipeline #545 failed 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,6 +177,9 @@ function vq_lms_process_order() ...@@ -173,6 +177,9 @@ function vq_lms_process_order()
$postContent .= $user['phone']."<br /><hr />"; $postContent .= $user['phone']."<br /><hr />";
} }
}
$to .= ', '.$user['email']; $to .= ', '.$user['email'];
$subject = "Checkout Confirmation"; $subject = "Checkout Confirmation";
$body = ''; $body = '';
...@@ -182,9 +189,6 @@ function vq_lms_process_order() ...@@ -182,9 +189,6 @@ function vq_lms_process_order()
wp_mail($to, $subject, $body); wp_mail($to, $subject, $body);
remove_filter('wp_mail_content_type', 'set_html_content_type'); remove_filter('wp_mail_content_type', 'set_html_content_type');
wp_mail($to, "APEX Checkout", $postContent); 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