In order confirmation email,

I have found these two methods

$_item->getRowTotal() & $_item->getRowTotalIncTax()

The $_item->getRowTotal() seems like

Row Total = ((ordered item price * ordered item qty) + Tax) - Discount

But i am not sure about it

Can you please add some details on it which method to use when & its description ?

1 Answer 1


getRowTotal() including:

$rowTotal = $rowTotalInclTax - $rowTax;

While getRowTotalInclTax() including:

$rowTotalInclTax = $priceInclTax * $quantity;

For more details you can see the differences here



Hope this will help you!

Happy Coding

  • Thanks for the answer
    – devhs
    Commented Jul 2, 2021 at 8:51
  • @devhs Welcome Brother! Commented Jul 2, 2021 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.