2

I want to get total item price from order item, including it's tax and any other additional price. Currently i got total price of an order item in like this:

$qty = $_item->getQtyOrdered();
$totalPrice = $_item->getPrice() * $qty;

1 Answer 1

4

You can use the below function to fetch Total Row Price including tax.

$_item->getRowTotalInclTax()

Also you can check sales_order_item table columns for other possible values available to fetch on Order Item object.

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.