• Resolved garf3r

    (@garf3r)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Trying to get the Item Total to add the Item Tax

    I’m not sure what you mean by this. Can you elaborate? Please share more details about what you are trying to accomplish, versus what you currently see on your website.

    It sounds like you are trying to get the product total to include taxes. That is how it works out of the box, so I’m wondering whether I’m misunderstanding your enquiry.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘html-order-item.php’ is closed to new replies.