OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Search criteria for Rooms, Bedrooms and WC's (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Search criteria for Rooms, Bedrooms and WC's

pedropamn (Visitor)
Posts: 0
graphgraph
User Offline
Search criteria for Rooms, Bedrooms and WC's 6 Years, 2 Months ago
Karma: 0  
Hi

I notice that the search criteria for these fields is "X or more" (1+, 2+, 3+... etc)

How to search exactly? (1 Rooms, 2 Rooms. etc?)

Thanks
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8356
graph
User Offline Click here to see the profile of this user
Re:Search criteria for Rooms, Bedrooms and WC's 6 Years, 2 Months ago
Karma: 102  
Dear

Please in file
{your site}/components/com_realestatemanager/realestatemanager.php

find code look like :
Code:

        if($realestatemanager_configuration['search_rooms_num_field_show']==1){
            $rooms_num = intval(protectInjectionWithoutQuote('rooms_num', ''));
            if($rooms_num > 0){
                $where[] = " CAST( b.rooms AS SIGNED) >= $rooms_num ";
            }
        }



and replace it to

Code:

        if($realestatemanager_configuration['search_rooms_num_field_show']==1){
            $rooms_num = intval(protectInjectionWithoutQuote('rooms_num', ''));
            if($rooms_num > 0){
                $where[] = " CAST( b.rooms AS SIGNED) = $rooms_num ";
            }
        }



Please backup this file first

also with help RealEstate::Language manager replace text for constant:
_REALESTATE_MANAGER_NUMBERS_BBROOMS

Regards
Andrew
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»