changed comparison type to non strict in case a string is passed
This commit is contained in:
parent
187f6729e9
commit
eee5d16844
|
@ -317,7 +317,7 @@ class WC_Product_Variable extends WC_Product {
|
|||
if ( $price !== $saleprice ) {
|
||||
$price = apply_filters( 'woocommerce_variable_sale_price_html', $this->get_price_html_from_to( $saleprice, $price ) . $this->get_price_suffix(), $this );
|
||||
} else {
|
||||
if ( $prices[0] === 0 && $prices[1] === 0 ) {
|
||||
if ( $prices[0] == 0 && $prices[1] == 0 ) {
|
||||
$price = __( 'Free!', 'woocommerce' );
|
||||
$price = apply_filters( 'woocommerce_variable_free_price_html', $price, $this );
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue