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

onsale filter

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.

Hello. In your documentation, I saw an example of a filter for instock products.

add_filter('woof_get_request_data', 'my_woof_get_request_data'); function my_woof_get_request_data($data){ $data['stock']='instock'; return $data; }

I also need an equivalent for onsale products. I'm trying to do this:

add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
$data['sales']= 'onsale';

return $data;
}

but it doesn't work.

Fixed $data['onsales'] = 'salesonly'.  My bad. I looked at the plugin code. But it would be cool if they added such things to the documentation

Ok!  Great!