Does not filter offers | WordPress.org

[ad_1]

Hello @matador9

Thank you for choosing our plugin.

We apologize for the inconvenience.

Maybe your filtering plugins are using the wc_get_product_ids_on_sale function to get onsale products and unfortunately, WooCommerce doesn’t have a filter for the function yet.

If your filtering plugins have a filters then you can use the get_discounted_products method at the below file.

wp-content\plugins\easy-woocommerce-discounts-pro\includes\class-wccs-products.php

Code example:

$discounted_products = WCCS()->products->get_discounted_products();

You can contact your filtering plugins support for how to use it instead of wc_get_product_ids_on_sale

Or you can consider to use the discounted products shortcode to show onsale products in a page. This shortcode is available in the pro version of the plugin.

I hope it helps.

Best Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer