Support » Plugin: Order Delivery Date for WooCommerce » Delivery Date in Subject Line

  • Resolved nicholasscarth



    Can i include the delivery date in the email subject line?

    Also, there are occasions where a delivery date isn’t sent through, any ideas on this?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author komal-maru


    Hi Nick,

    1) In order to include the Delivery Date in the email subject which is received by the admin, you will need to include the below code in the functions.php file of the theme which is currently active on your site.

    add_filter('woocommerce_email_subject_new_order', 'change_admin_email_subject', 1, 2);
    function change_admin_email_subject( $subject, $order ) {
    	global $woocommerce;
    	$order_id = $order->get_id();
    	$field_name = get_option( 'orddd_lite_delivery_date_field_label' );
    	$subject = sprintf( 'New Website Order (%s), ' . $field_name . ' - %s', $order_id, $_POST['e_deliverydate'] );
    	return $subject;

    Please let me know whether the provided information helped you to achieve your requirement on your site.

    2) Can you please explain us in detail with examples in which cases the delivery date is not sent through? Also, let me know whether the Delivery Date is not sent only to emails or everywhere else too.

    Komal Maru

    Just on some of the orders the Delivery Date does not come through anywhere, emails or in the back-end. It’s set as a required field but orders sometimes come through without the date.

    Plugin Author komal-maru


    Hi Nick,

    Can you please create a ticket on tickets at tychesoftwares dot uservoice dot com with the URL of your website and the admin access of your site, so we can check the issue on your site?

    Also, please provide us the order numbers of the orders in which the issue is replicated. This would help us in debugging the issue on your site.

    Komal Maru

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delivery Date in Subject Line’ is closed to new replies.