OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
How to display bathrooms in featured house. (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: How to display bathrooms in featured house.
#28121
Dcrtz91 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Mexico Birthdate: 1991-06-08
How to display bathrooms in featured house. 2 Weeks, 2 Days ago Karma: 0  
I want to display the bathrooms on the featured house, I added the following lines in:
modules/mod_realestatemanager_featured_free_j3/tmpl/default.php

if ($features == 1){
// example of a working category
if (trim($row->house_size)) {
echo "<div class='featured_houses_size featured_houses_inline'>"
."<i class='fa fa-expand'></i> ".($row->house_size)."&nbsp"
._REALESTATE_MANAGER_LABEL_SIZE_SUFFIX . "</div>";
}

//I ADDED THIS LINES BUT IT DOESNT DISPLAY ANYTHING
if (trim($row->bathrooms)) {
echo "<div class='featured_houses_size featured_houses_inline'>"
."<i class='fa fa-tint'></i> ".($row->bathrooms)."&nbsp"
. _REALESTATE_MANAGER_LABEL_BATHROOMS . "</div>";
}
 
Logged Logged  
  The administrator has disabled public write access.
#28211
RomanD (Admin)
Support
Admin
Posts: 221
graphgraph
User Offline Click here to see the profile of this user
Gender: Male OrdaSoft
Re:How to display bathrooms in featured house. 2 Weeks ago Karma: 4  
Hello,

You need in file: mod_realestatemanager_featured_free_j3.php


In line 243 and 273

Code:

 $query = "SELECT h.htitle, h.id, h.image_link, h.hits,  c.id AS catid, ".
      " c.title AS cattitle, h.price, h.published, h.priceunit, ".
      "  h.hlocation, h.featured_clicks, h.featured_shows, h.rooms, ".
      " h.year, h.bedrooms, h.house_size, h.description, h.listing_type



add h.bathrooms

Best Regards,
RomanD
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#28310
Dcrtz91 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Mexico Birthdate: 1991-06-08
Re:How to display bathrooms in featured house. 1 Week, 6 Days ago Karma: 0  
This was the solution, thank you guys for your support!
 
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?