Viewing 1 replies (of 1 total)
  • Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @dominoevers,

    Yes, you can override the email template from WooCommerce > Settings > Email section and fetch the delivery date and time using the meta key and customize it [making font size bigger] as per your requirement.

    You can use ” _orddd_lite_timestamp ” meta key which stores the delivery date in timestamp format. Also, you should be able to fetch the delivery date using the ‘Delivery Date’ field label. It is the meta key.

    For eg,
    $delivery_date = get_post_meta( $order_id. ‘Delivery Date’, true); or
    $delivery_date = get_post_meta( $order_id, ‘_orddd_lite_timestamp’, true);

    Or you can use ‘orddd_lite_get_order_delivery_date’ function which will fetch the delivery date of order.

    Example:
    $order_id = 786; /sample order ID/
    $orddd_class = new orddd_lite_common();
    $delivery_date = $orddd_class->orddd_lite_get_order_delivery_date($order_id);

    Do let me know if you have any further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Styling the date on mail?’ is closed to new replies.