Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WooCommerce adding custom text to order processing email table

We sell digital products using Woocommerce and I am working on order processing email customer-processing-order.php

In the email, there is a table that lists Product name, quantity and price along with download links

enter image description here

I am trying to add text right below the download links where the red arrow is pointing and so far I am not having any luck trying to find the hook/filter for this area

I have tried the following filter but this does not display anything

apply_filters( 'woocommerce_email_order_items_table', 'add_order_email_instructions', 10, 2 );

I have tried the following hooks but they do not display the text at the right area

add_action( 'woocommerce_email_order_meta', 'add_order_email_instructions', 10, 2 );
add_action( 'woocommerce_email_after_order_table', 'add_order_email_instructions', 10, 2 );

Is there any hook/filter for the area where I am pointing the red area at all?

like image 946
Saadia Avatar asked Jul 12 '26 08:07

Saadia


1 Answers

Here is a simpler solution for you.

Approach: In your theme. Override WooCommerce's Email tempalate customer-processing-order.php and customize it as you like. (A simple google search on how to override woocommerce templates will help you here.)

Hint: The changes which you need to do id for the file emails/plain/email-order-items.php. So override the same and make ur desired changes.

Note: Rather than using the actual theme create a child theme and follow the above process. So that when the orginal theme updates your code won't be overwritten. (Search on how to create a child theme. Its lot more easy to customize by this approach).

like image 126
Domain Avatar answered Jul 13 '26 23:07

Domain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!