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;
cart-itemsgrand-totalmagento2ordersquoteitem
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;
Best Answer
You can use the below function to fetch Total Row Price including tax.
Also you can check
sales_order_item
table columns for other possible values available to fetch onOrder Item
object.