Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • chrisjclay Friend
    #201986

    Hi,

    My client has a need for the search to ONLY search items that aren’t featured. I don’t see a setting for this right now – would this be possible with an update to the code? I don’t mind trying to make the change myself if someone could point me in the right direction (i.e. which file I should be editing). Also, would you consider adding this feature in the next release? (i.e. an option like this: Search only featured; Search featured and unfeatured; Search only unfeatured.)

    Thank you,
    Chris

    Thanh Nguyen Viet Friend
    #552673

    Hello,

    Yes, JA k2 filter does not have a setting for filter by featured data now, but if you want to filter items that are not featured, you can try solution below.

    – Open the file:
    components/com_jak2filter/models/itemlist.php

    – Find the code snippet:
    [PHP]$sql = ”;
    $where = array();[/PHP]

    – and add this code below after it:
    [PHP]$sql .= ” AND i.featured != 1 “;[/PHP]

    We would add it as improvement in upcoming version of JA K2 Filter. YOu can check its progress here: http://pm.joomlart.com/browse/JAK2FILTER-182

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 10 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum