Add Order Date and Time to Notification email Woocommerce

Last year I created an Woocommerce store for a local Asian restaurant.

People order online and as there are a lot of orders they needed to know when the order was made.

Unfortunately it did not show in the emails which were printed out.

This is how I got it to work. By the way, this is a UK based store so I have used London time. Please adjust as necessary. Add this to your theme’s functions.php file:


// add time and date to email

add_action( ‘woocommerce_email_before_order_table’, ‘add_content’, 20 );
function add_content() {
echo ‘<h2 id=”h2thanks”>Order Time & Date</h2>’;
echo date(‘d/m/y h:i a’, time());
echo ‘<div style=”height:20px;”></div>’;



Leave a Reply

Your email address will not be published. Required fields are marked *