html-order-item.php
-
Trying to get the Item Total to add the Item Tax, narrowed it down that the location of the code is in html-order-item.php
On line 79/80 we have:
echo wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) );I want to change this so it adds the item Tax into the Totals column, i have tried to do this:
echo wc_price( wc_get_price_including_tax( $product ), array( 'currency' => $order->get_currency() ) );whilst it shows the amount, it doesn’t do the currency conversion if it’s in say Eur or USD (shop is in GBP), so there is surely a better way to add the item tax and item price together for the item totals block, anyone shed some light on this? Not sure why the total wouldn’t have the tax included in this column as standard!
The topic ‘html-order-item.php’ is closed to new replies.