OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Bedrooms field in search...
#7045
Elwoodjblues (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Bedrooms field in search... 3 Years, 7 Months ago Karma: 0  
I have managed to add a bedrooms field to the search form for my website, but it doesn't seem to give me the correct results.

How can I display the correct results when Bedrooms is selected as a populated field?

Also, the search results, when clicked, display a category page rather than a property page (like the map does).

How can I get the results to link to the property pages correctly?
 
Logged Logged  
  The administrator has disabled public write access.
#7047
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Bedrooms field in search... 3 Years, 7 Months ago Karma: 61  
Hello,

Search by bedroom possible only in Real Estate manager Pro version advance search.

If you wish do that in module.

You need add below row
Code:


Bedrooms: <input type="checkbox" checked="checked" id="Bedrooms" name="Bedrooms">


to file:
{yours site}/modules/mod_realestatemanagersearch/mod_realestatemanagersearch.php

also you will need check file:
{yours site}/components/com_realestatemanager/realestatemanager.php

and find row:
Code:

$where[] = "LOWER(b.htitle) LIKE '$exactly' ";

if you found it - please remove.

Please backup all files before edit.

How can I get the results to link to the property pages correctly
I am sorry, but we show result list, not some property from that list

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#7049
Elwoodjblues (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Bedrooms field in search... 3 Years, 7 Months ago Karma: 0  
I'll try the bedrooms bit, thanks.

I think you misunderstood my second problem.

When I search, I get a list of properties.

When I click on a property in the list I don't get the property page.

I get a category page (see images attached).

 
Logged Logged  
  The administrator has disabled public write access.
#7052
Elwoodjblues (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Bedrooms field in search... 3 Years, 7 Months ago Karma: 0  
The bedroom search you suggested didn't work.

I have managed to get a bedroom dropdown to display using
Code:

$query = "SELECT bedrooms FROM #__rem_houses";
$database->setQuery($query);
$bedrooms = $database->loadResultArray();
rsort($bedrooms,SORT_NUMERIC);
$max_bedrooms = $bedrooms[0];
$bedrooms[] = mosHTML :: makeOption(_REALESTATE_MANAGER_LABEL_FROM, _REALESTATE_MANAGER_LABEL_FROM);
$bedrooms_to[] = mosHTML :: makeOption(_REALESTATE_MANAGER_LABEL_TO, _REALESTATE_MANAGER_LABEL_ALL);
for($i=0; $i<=$max_bedrooms; $i=$i+1){
    $bedrooms[] = mosHTML :: makeOption($i, $i);
    $bedrooms_to[] = mosHTML :: makeOption($i, $i);
}
$bedroomslist = mosHTML :: selectList($bedrooms, 'bedroomsfrom', 'class="inputbox" size="1" style="width: 115px"', 'value', 'text');
$bedroomslistto = mosHTML :: selectList($bedrooms_to, 'bedroomsto', 'class="inputbox" size="1" style="width: 115px"', 'value', 'text');

then display the dropdown with
Code:

<?php echo _REALESTATE_MANAGER_LABEL_BEDROOMS.':&nbsp;'.$bedroomslistto; ?>


How can i get the results page to see the bedroomsto variable?
 
Logged Logged  
  The administrator has disabled public write access.
#7054
Elwoodjblues (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Bedrooms field in search... 3 Years, 7 Months ago Karma: 0  
Nevermind, I have got the results page to use the variable correctly.

I still need an answer as to why the property list links don't work correctly???
 
Logged Logged  
  The administrator has disabled public write access.
#7059
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Bedrooms field in search... 3 Years, 7 Months ago Karma: 61  
Hello,

If you do search from module, for you may not full correctly define Real Estate Menu ItemId,

Please go to your joomla menu manager, please check what ID has menu to real estate.
After that please go to Real Estate search module. There are you will find ItemId - parameter. Please set it from Real estate menu ID

Thanks,
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?