Use new method in abstract order class to prevent headers sent issue in tests
This commit is contained in:
parent
096622c9e4
commit
c4806e63d1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue