Has anyone on your team seen this?
Do you monitor this thread? Please advise.
Hi,
You need to rewrite our template email
. For this in the child theme create folder woocommerce-sales_report
and there create file email.php
. Copy content from our plugin file templates/email.php
to your email.php
file.
Find there this line of code
foreach($ready_products as $product) {
echo '<p style="font-size: 1em;padding: 0;margin: 0;">', $product['quantity'], ' x <strong>', $product['name'],
( ( empty( $product['sku'] ) ) ? '' : ' (' . $product['sku'] . ')' ),'</strong></p>';
}
change to this
foreach($ready_products as $product_id => $product) {
echo '<p style="font-size: 1em;padding: 0;margin: 0;">', $product['quantity'], ' x <strong>', $product['name'],( ( empty( $product['sku'] ) ) ? '' : ' (' . $product['sku'] . ')' ), ' '.get_post_meta( $product_id, '_price', true ),'</strong></p>';
}
Test it on dev server before use.
Regards,
Dima
We added this code and it works, but it is just showing the price of each product and not the total sales per product.
For example:
3 x Lyzme 5 (AAC191-90) 39.99
should actually show like this…
3 x Lyzme 5 (AAC191-90) 119.97
How can this be fixed?
Hi,
We are not providing custom coding. You can hire a developer/freelancer for this.
Regards,
Dima
Understood. I will say that if you added this as a standard feature, this will be the best plugin of its kind without a doubt.