Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • pleverell Friend
    #204538

    I am using filtering on a site I am developing and need some help.

    http://www.tdp-development-site.co.uk/usat/find-a-hotel

    If you type ‘Hilton’ into the Hotel Name you get the expected suggestions as a drop down. however if you type ‘hilton’ nothing appears. i.e. it id case sensitive.

    Can I make this NON case sensitive?

    All help appreciated.

    cheers
    Paul L

    Mo0nlight Moderator
    #562556

    Hello pleverell

    you can solve the problem with my below tweak:

    change this query from file : com_jak2filtersitemodelssuggestions.php

    at line : 30-36
    [PHP]$query = ”
    SELECT `labels`
    FROM #__jak2filter_taxonomy
    WHERE `labels` LIKE ‘%”.$xf_value.”%’
    AND `asset_id` = {$xf_id}
    GROUP BY `labels`
    “;[/PHP]

    to :
    [PHP]$query = ”
    SELECT `labels`
    FROM #__jak2filter_taxonomy
    WHERE LOWER(`labels`) LIKE LOWER(‘%”.$xf_value.”%’)
    AND `asset_id` = {$xf_id}
    GROUP BY `labels`
    “;[/PHP]

    pleverell Friend
    #562814

    Thanks, this has done the trick

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

This topic contains 3 replies, has 2 voices, and was last updated by  pleverell 9 years, 8 months ago.

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