• Hello There,

    Hope you are doing well.

    We have facing an issue while used woocommerce ajax filters plugin. Kindly check below our points & let us know your plugin gives that kind of functionality or not.

    When we use parent-child hierarchy in filter at that time we can not perform filter only on a parent.
    It will get the product of parent and its child when filter on only parent.

    We need functionality like only parent can we filter when choosing only parent. Please let us know plugin by default provide that kind of functionality?

    Look forward for your reply ASAP.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    If you mean to not include products from child values, then plugin do not have option like this.
    You can try this code to change it

    add_filter('berocket_aapf_tax_query_attribute', 'custom_berocket_attribute_include_child');
    function custom_berocket_attribute_include_child($args) {
        $args['include_children'] = false;
        return $args;
    }

    Regards,
    Oleg

    Thread Starter Nilesh Pujara

    (@nileshpujara90)

    As with your reference code the Filter is working on Parent category but when I choose child under parent then it will not include child in filter, We are using parent child hierarchy in filter.

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Please provide your site URL to check issue.

    Regards,
    Oleg

    Thread Starter Nilesh Pujara

    (@nileshpujara90)

    How I can share link privately?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When we use parent-child hierarchy in filter at that time we can not perform f’ is closed to new replies.