Change meta query type for on sale products to DECIMAL to match on 0.xx prices as NUMERIC only matches sale prices >= 1
This commit is contained in:
parent
10c8e8d501
commit
85aba3620b
|
@ -54,7 +54,7 @@ function woocommerce_get_product_ids_on_sale() {
|
|||
'key' => '_sale_price',
|
||||
'value' => 0,
|
||||
'compare' => '>',
|
||||
'type' => 'NUMERIC',
|
||||
'type' => 'DECIMAL',
|
||||
) ),
|
||||
'fields' => 'id=>parent',
|
||||
) );
|
||||
|
|
Loading…
Reference in New Issue