Hello
Try to activate and use this extension – https://c2n.me/45T8HMa.png
Thank you for your resopnse.
I have been already using this extension. But it does not resolve the problem I mentioned. It is for customer to filter sold products. But they are not foreced to filter the products. I am also not interested to hide the sold products at all.
I’d like to buy the pro if you help me to find a way.
The problem is when users did not use the ‘in stock checkbox’ and use only the price slider – then one can guess the price of a sold product (the very close price – by moving the range of a price).
So I need to hide the sold products automatically when the user starts using the price slider option. E.g. by auto uncheck ‘in stock’ option and freeze it.
Regards,
Dominik
Hello,
I see it is possible to show always in-stock products.
So my finally question is:
Can I fire the function:
function my_woof_get_request_data($data){
$data[‘stock’]=’instock’;
return $data;
}
ONLY when the price slider is in use?
(if the price slider is not in use I want to have a possibility to show also out of stock products).
Regards,
Dominik
Hello Dominik
Try this code:
function my_woof_get_request_data($data){
if(isset($_GET['min_price'])){
$data['stock']='instock';
}
return $data;
}
Hello mediawebster,
That solution works perfectly 🙂
Thank you very much for your help 🙂
Dominik