Plugin Updates
This commit is contained in:
@@ -991,9 +991,7 @@ function wc_get_price_including_tax( $product, $args = array() ) {
|
||||
$price = '' !== $args['price'] ? max( 0.0, (float) $args['price'] ) : (float) $product->get_price();
|
||||
$qty = '' !== $args['qty'] ? max( 0.0, (float) $args['qty'] ) : 1;
|
||||
|
||||
if ( '' === $price ) {
|
||||
return '';
|
||||
} elseif ( empty( $qty ) ) {
|
||||
if ( empty( $qty ) ) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@@ -1080,9 +1078,7 @@ function wc_get_price_excluding_tax( $product, $args = array() ) {
|
||||
$price = '' !== $args['price'] ? max( 0.0, (float) $args['price'] ) : (float) $product->get_price();
|
||||
$qty = '' !== $args['qty'] ? max( 0.0, (float) $args['qty'] ) : 1;
|
||||
|
||||
if ( '' === $price ) {
|
||||
return '';
|
||||
} elseif ( empty( $qty ) ) {
|
||||
if ( empty( $qty ) ) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user