Merge pull request #5538 from kilbot/master
Update class-wc-api-orders.php
This commit is contained in:
commit
5a0d17d774
|
@ -178,6 +178,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
$order_data['line_items'][] = array(
|
||||
'id' => $item_id,
|
||||
'subtotal' => wc_format_decimal( $order->get_line_subtotal( $item ), 2 ),
|
||||
'subtotal_tax' => wc_format_decimal( $item['line_subtotal_tax'], 2 ),
|
||||
'total' => wc_format_decimal( $order->get_line_total( $item ), 2 ),
|
||||
'total_tax' => wc_format_decimal( $order->get_line_tax( $item ), 2 ),
|
||||
'price' => wc_format_decimal( $order->get_item_total( $item ), 2 ),
|
||||
|
|
Loading…
Reference in New Issue