Merge pull request #15153 from woocommerce/tweak/15104
Check if subtotal is blank, not empty
This commit is contained in:
commit
9f4b29a677
|
@ -109,7 +109,7 @@ class WC_Order_Item_Product extends WC_Order_Item {
|
|||
$this->set_prop( 'total', floatval( wc_format_decimal( $value ) ) );
|
||||
|
||||
// Subtotal cannot be less than total
|
||||
if ( ! $this->get_subtotal() || $this->get_subtotal() < $this->get_total() ) {
|
||||
if ( '' === $this->get_subtotal() || $this->get_subtotal() < $this->get_total() ) {
|
||||
$this->set_subtotal( $value );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue