Use new method in abstract order class to prevent headers sent issue in tests

This commit is contained in:
Mike Jolley 2016-11-11 18:30:18 +00:00
parent 096622c9e4
commit c4806e63d1
1 changed files with 2 additions and 2 deletions

View File

@ -983,8 +983,8 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
'product_id' => $product->is_type( 'variation' ) ? $product->get_parent_id() : $product->get_id(),
'variation_id' => $product->is_type( 'variation' ) ? $product->get_id() : 0,
'variation' => $product->is_type( 'variation' ) ? $product->get_attributes() : array(),
'subtotal' => $product->get_price_excluding_tax( $qty ),
'total' => $product->get_price_excluding_tax( $qty ),
'subtotal' => wc_get_price_excluding_tax( $product, array( 'qty' => $qty ) ),
'total' => wc_get_price_excluding_tax( $product, array( 'qty' => $qty ) ),
'quantity' => $qty,
);
} else {