Merge pull request #9782 from tjuris/master

use float values for price filter when taxes are not included in prices
This commit is contained in:
Mike Jolley 2015-12-14 12:42:11 +00:00
commit 05ee7b2a91
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ class WC_Query {
WHERE post_type IN ( 'product', 'product_variation' )
AND post_status = 'publish'
AND pm1.meta_key IN ('" . implode( "','", array_map( 'esc_sql', apply_filters( 'woocommerce_price_filter_meta_keys', array( '_price' ) ) ) ) . "')
AND pm1.meta_value BETWEEN %d AND %d
AND pm1.meta_value BETWEEN %f AND %f
AND pm2.meta_key = '_tax_class'
AND pm2.meta_value = %s
", $min_class, $max_class, sanitize_title( $tax_class ) ), OBJECT_K ), $min_class, $max_class );