File name: woocommerce/includes/abstracts/abstract-wc-order.php. Lines: 1 to 16 of 16. public function get_line_subtotal( $item, $inc_tax ...
$item_Line_subtotal = $order->get_line_subtotal( $item, $inc_tax, $round ); // Get line subtotal - not discounted. $item_Line_total = $order-> ...
includes/class-wc-order-item-product.php : 15
You can get the cost by dividing the total with the quantity. echo 'Cost: '.$
order_item->get_subtotal() / $order_item->get_quantity(); echo '
' ...
Get all tax classes for items in the order. get_line_subtotal() : float: Get line subtotal - this is the cost before discount. get_line_tax() : float: Get line ...
I think you could do something like this $order = new WC_Order(); $order = wc_create_order($order_data); $items = WC()->cart->get_cart(); ...
These are regular WooCommerce orders, which extend the abstract
As of version 1.6.5.2 at least, WooCommerce does not provide a way to
I've just noticed a setting in the admin ” Round tax at subtotal level, instead of rounding per line” which seems to ...