• Resolved dominmax

    (@dominmax)


    Hi,
    is this possible to filter sold products from price filter?
    We have a gallery and we do not show the prices of sold products. But using the price filter you can guess the price of the work.
    So how could we exclude the sold products from the query?

    Regards,
    Dominik

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Try to activate and use this extension – https://c2n.me/45T8HMa.png

    Thread Starter dominmax

    (@dominmax)

    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

    Plugin Support mediawebster

    (@mediawebster)

    Thread Starter dominmax

    (@dominmax)

    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

    Plugin Support mediawebster

    (@mediawebster)

    Hello Dominik

    Try this code:

    function my_woof_get_request_data($data){
    if(isset($_GET['min_price'])){
       $data['stock']='instock';
    }
    return $data;
    }
    Thread Starter dominmax

    (@dominmax)

    Hello mediawebster,
    That solution works perfectly 🙂

    Thank you very much for your help 🙂
    Dominik

    Plugin Support mediawebster

    (@mediawebster)

    Hello Dominik

    Welcome;)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Excluding sold products from price filter?’ is closed to new replies.