In WooCommerce I have a problem on my thankyou page (once the customer has placed his order). I have tryed to change it manualy but the problem is that the code is generated in an unknown file which I can't find.
<tfoot>
<?php
foreach ( $order->get_order_item_totals() as $key => $total ) {
?>
<tr>
<th scope="row"><?php echo $total['label']; ?></th>
<td><?php echo $total['value']; ?></td>
</tr>
<?php
}
?>
</tfoot>
This code give me all information in my order like a coupon the shipping etc.
On this picture I would like to replace the text in the black bordered rectangle (Here 'Gesamt:'
mean "Total"
by "Total inkl. vat"
Also I want to remove the red bordered rectangle block: "Inkl. 19% MwSt."
.
Is it possible?
How can I do it?
Thanks.
Here the extract of the end on
woocommerce/order/order-details.php
template that is loaded in thank you page.In your active theme go to
woocommerce > order
, and open/editorder-details.php
template file.Replace the end of your template with this:
Now you can save, you are done…
This code is tested and works.
References:
Hey I think this would work for you
Just make sure that
inkl. 19%....
is correctly written.