W
W
wwwkat20152019-10-17 15:41:31
WordPress
wwwkat2015, 2019-10-17 15:41:31

Remove line from woocommerce customer email?

You need to remove the line with information about the payment method from the client's letter, prntscr.com/pkkohi .
In the template, a group of fields is displayed with one hook, because of this I can’t just remove it. Thank you)
Letter template code code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
its2easyy, 2019-10-17
@wwwkat2015

You need to copy the email-order-details.php file from plugins/woocommerce/templates/emails/ into your theme in the themename/woocommerce/emails/ folder and edit it.
There is

$totals = $order->get_order_item_totals();
foreach ( $totals as $total ) {
    ...
}

The lower part of the table is most likely displayed here. You can add a check in the loop and not display any lines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question