Answer the question
In order to leave comments, you need to log in
How to add unit price to woocommerce order data?
Good day) tell me
How to add a price per unit to the order data that comes to e-mail?
Answer the question
In order to leave comments, you need to log in
Take a look at the email templates /woocommerce/templates/emails
Find the template you need. Most likely it is email-order-items.php
Find a hook that suits you and add any information to the letter.
Around line 67.
// allow other plugins to add additional product information here.
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question