I am using WordPress 4.8.1 and using bridge theme.
I am facing some problem regarding removing price from new order template email.
I want to remove price column ,however I removed total and subtotal , but not getting anything to remove price column with products as going through files.
I have found this is coming from this code:
<?php
echo wc_get_email_order_items( $order, array(
'show_sku' => $sent_to_admin,
'show_image' => false,
'image_size' => array( 32, 32 ),
'plain_text' => $plain_text,
'sent_to_admin' => $sent_to_admin,
) ); ?>
In email-order-details.php template which I have copied to my child theme from woocommerce template folder.
But , how to customise this hook 'wc_get_email_order_items' or any other way to remove price?
This is what I have now:
Any help will be appreciated as I have spent so much hours finding solution for same.
This can be done Overriding the following WooCommerce Templates via a Theme:
1.Template
email/email-order-details.php
2.Template
emails/email-order-items.php
.So you will get this:
You have two files to copy,
email-order-details.php
andemail-order-items.php
. These two files contains what you want to be removed.email-order-details.php
has the<th>
tag or the header of the table. Andemail-order-items.php
has the<td>
tags. Please check these files out.