Merge pull request #3245 from justinstern/master
Custom Order Number in Backorder Email
This commit is contained in:
commit
e57620e49a
|
@ -363,7 +363,8 @@ class WC_Emails {
|
||||||
else
|
else
|
||||||
$title = sprintf(__( 'Product #%s - %s', 'woocommerce' ), $product->id, get_the_title($product->id)) . $sku;
|
$title = sprintf(__( 'Product #%s - %s', 'woocommerce' ), $product->id, get_the_title($product->id)) . $sku;
|
||||||
|
|
||||||
$message = sprintf(__( '%s units of %s have been backordered in order #%s.', 'woocommerce' ), $quantity, $title, $order_id );
|
$order = new WC_Order( $order_id );
|
||||||
|
$message = sprintf(__( '%s units of %s have been backordered in order %s.', 'woocommerce' ), $quantity, $title, $order->get_order_number() );
|
||||||
|
|
||||||
// CC, BCC, additional headers
|
// CC, BCC, additional headers
|
||||||
$headers = apply_filters('woocommerce_email_headers', '', 'backorder', $args);
|
$headers = apply_filters('woocommerce_email_headers', '', 'backorder', $args);
|
||||||
|
@ -375,4 +376,4 @@ class WC_Emails {
|
||||||
wp_mail( get_option('woocommerce_stock_email_recipient'), $subject, $message, $headers, $attachments );
|
wp_mail( get_option('woocommerce_stock_email_recipient'), $subject, $message, $headers, $attachments );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue