fix- 23589 I have fixed pricing issue.
This commit is contained in:
parent
a0e5234be2
commit
d5337fac70
|
@ -152,11 +152,7 @@ class WC_Widget_Price_Filter extends WC_Widget {
|
||||||
$meta_query = isset( $args['meta_query'] ) ? $args['meta_query'] : array();
|
$meta_query = isset( $args['meta_query'] ) ? $args['meta_query'] : array();
|
||||||
|
|
||||||
if ( ! is_post_type_archive( 'product' ) && ! empty( $args['taxonomy'] ) && ! empty( $args['term'] ) ) {
|
if ( ! is_post_type_archive( 'product' ) && ! empty( $args['taxonomy'] ) && ! empty( $args['term'] ) ) {
|
||||||
$tax_query[] = array(
|
$tax_query[] = WC()->query->get_main_query()->tax_query->queries;
|
||||||
'taxonomy' => $args['taxonomy'],
|
|
||||||
'terms' => array( $args['term'] ),
|
|
||||||
'field' => 'slug',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( $meta_query + $tax_query as $key => $query ) {
|
foreach ( $meta_query + $tax_query as $key => $query ) {
|
||||||
|
|
Loading…
Reference in New Issue