Skip to content
Advertisement

Display a custom delivery notice on WooCommerce orders and email notifications

With the following code I display a custom message on WooCommerce checkout page. When a customer places an order on a Saturday and Sunday, the order will be delivered on the next Monday. If a customer places an order between Monday and Friday after 22:00h, the delivery will take place the day after tomorrow. When a customer places an order between Monday and Friday before 22:00h, delivery will take place the next day.

JavaScript

Now, what I am trying to do is to add this message/notice to Email notifications and in backend order-view within WooCommerce. Could someone point me in the proper direction?

Advertisement

Answer

I have adapted your code for WooCommerce orders in a function to be used to display a custom delivery message in:

  • Admin single orders
  • Customer orders (order received and order view)
  • Email notifications

Here is that code:

JavaScript

Code goes in functions.php file of the active child theme (or active theme). It should work.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement