Call us : 855-228-7355

Mail-Checkout

[insert_php] global $woocommerce;
global $current_user;
get_currentuserinfo();

$date = the_date();
$cart = $woocommerce->cart->get_cart();
$headers = “From: \”Novus Medical\” “;

$email = $current_user->user_email;

$subject = “An order was placed on $date by $current_user->user_firstname $current_user->user_lastname”;

$message = “An order was placed on $date by $current_user->user_firstname $current_user->user_lastname for:
“;

foreach($cart as $item => $values) {
$_product = $values[‘data’]->post;
$message = $message . ““.$_product->post_title.’
Quantity: ‘.$values[‘quantity’].’
‘;
$price = get_post_meta($values[‘product_id’] , ‘_price’, true);
$message = $message . ” Price: $”.$price.”
“;
}

$message = $message . “
Thank you for choosing Novus Medical Group”;

wp_mail($email,$subject,$message,$headers);
$email = “frank@ndev.biz”;
wp_mail($email,$subject,$message,$headers);
$woocommerce->cart->empty_cart();
[/insert_php]

Thank you for your purchase

  • follow us on
  • Novus Cannabis MedPlan