• Hi, I really liked your plugin but I have one issue.

    I have one product under two subcategories. As a result, the wrong subcategory is getting displayed under a category.
    E.g.
    My Category & Sub-category are-
    Accesories>> Earring
    Gift>> Gift for Her.

    I have one product under two subcategories – Earring & Gift for Her.
    So, when I am opening Accessories category page on my website, then under Product Category filter both Earring & Gift for Her are showing.

    Is there a way to show only Earring in Accessories page and not Gift for Her? or I am doing something wrong. I hope I have explained the issue clearly.

    Thanks
    Subrata

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nick McReynolds

    (@woobewoo)

    Hello @subrato312,

    We will make a custom script for you that will allow you to resolve the issue with the categories. It will take some time. I will contact you later.

    Plugin Author Nick McReynolds

    (@woobewoo)

    Hello @subrato312,

    Try to add this script to the “Custom JS” editor: https://prnt.sc/to1rab

    var sets = jQuery('.wpfMainWrapper').eq(0).data('settings'); jQuery('[data-filter-type="wpfCategory"]').find('.wpfFilterVerScroll > li:not([data-term-id="' + sets.product_category_id + '"])').hide();

    Thread Starter subrato312

    (@subrato312)

    Hi Nick,

    Thanks for the script. But it’s not working as I want. I want to show only children and not categories and children both.

    Case 1: If I am keeping “Show hierarchical” – ON & “Hide Categories parent” – ON
    Then no filter is being displayed on the accessories page

    Case 1: If I am keeping “Show hierarchical” – ON & “Hide Categories parent” – OFF
    Then the filter is appearing properly on the accessories page but category and
    children both are appearing now. I only want to display children.

    Can you please help me with the correct script.

    Regards,
    Subrato

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Child Issue’ is closed to new replies.