OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Search criteria for Rooms, Bedrooms and WC's (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Search criteria for Rooms, Bedrooms and WC's
#39451
pedropamn (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Search criteria for Rooms, Bedrooms and WC's 10 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.
#39456
admin (Admin)
Admin
Posts: 6359
graph
User Offline Click here to see the profile of this user
Re:Search criteria for Rooms, Bedrooms and WC's 10 Months ago Karma: 73  
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
What are you looking for?
Anti-spam question: How many eyes has a typical person?