fix- 23589 I have fixed pricing issue.

This commit is contained in:
parmarhardip 2019-05-15 17:49:46 +05:30
parent a0e5234be2
commit d5337fac70
1 changed files with 1 additions and 5 deletions

View File

@ -152,11 +152,7 @@ class WC_Widget_Price_Filter extends WC_Widget {
$meta_query = isset( $args['meta_query'] ) ? $args['meta_query'] : array();
if ( ! is_post_type_archive( 'product' ) && ! empty( $args['taxonomy'] ) && ! empty( $args['term'] ) ) {
$tax_query[] = array(
'taxonomy' => $args['taxonomy'],
'terms' => array( $args['term'] ),
'field' => 'slug',
);
$tax_query[] = WC()->query->get_main_query()->tax_query->queries;
}
foreach ( $meta_query + $tax_query as $key => $query ) {