All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

The 'category_group' parameter does not seem to be filtering correctly in Low Search.

Jason Boothman 7 Mar 2019 16:27 problem, complete

When I add the 'category_group' parameter to Low Search, no results are returned even though there is a testing product assigned a category in that group. I am on Low Search 6.1.3 and ExpressionEngine 4.3.8.

{exp:channel:entries
    channel="products"
    category_group="2"
    limit="12"
    paginate="bottom"
    disable="category_fields|member_data"}

    //1 product displayed
{/exp:channel:entries}

###

{exp:low_search:results
    collection="products"
    category_group="2"
    limit="12"
    paginate="bottom"
    disable="category_fields|member_data"}

    //zero entries displayed
{/exp:low_search:results}

###

I have tried adding the following parameter in various configurations to the low_search tag, but not have helped.
- channel="products"
- dynamic="no"
- query=""

Replies

  1. Low 7 Mar 2019 17:38

    Hmm, looks like a bug that should have been fixed in 6.0.1... Looking closer, there might be a typo in there...

    Open up filters/lsf.categories.php and change line #33 from

    unset($groups['category_groups']);


    to

    unset($groups['category_group']);


    ...and try again. Does that help?

  2. Jason Boothman 7 Mar 2019 17:52

    That did the trick. Thanks Low!