PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

change the scope of filtering

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I created a catalog page for items on sale.

What I did is duplicating the Woocommerce archive template (which is the shop), then I edited the query as follows:

$query_args = array(
'posts_per_page' => 8,
'no_found_rows' => 1,
'post_status' => 'publish',
'post_type' => 'product',
'meta_query' => WC()->query->get_meta_query(),
'post__in' => array_merge( array( 0 ), wc_get_product_ids_on_sale() )
);

 

The page now has a link and shows me all items on sale. It also includes the sidebar with the filters. However my problem is that the filters are based on my entire store, they are not using the sale items as a base for filtering.

How can I modify the query that is used by the filters?

Hello

To  show   items on sale  use  native  woo shortcode.

To  change  filter  counts - https://products-filter.com/manipulate-search-data-options/