OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
RealEstateManager Wishlist
Go to bottom Favoured: 0
TOPIC: Price in new property module
#8981
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Price in new property module 3 Years, 1 Month ago Karma: 0  
How can I show prices in the "new property" module?
 
Logged Logged  
  The administrator has disabled public write access.
#9007
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Price in new property module 3 Years, 1 Month ago Karma: 61  
Hello,

you need edit file:
modules/mod_realestate_manager_new/tmpl/default.php

there are you need edit select for take price from database

code
Code:

   if($langmodule != "" && $langmodule != "*"){
            $selectstring = "SELECT h.id, h.houseid, h.htitle, h.description, h.broker, h.image_link, hc.idcat
                             nFROM #__rem_houses AS h
                             nLEFT JOIN #__rem_categories AS hc ON hc.iditem=h.id
                             nLEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat
                             nWHERE ($s) AND h.published=1 AND h.language = '".$langmodule."'
                             nORDER BY ".$sql_orderby_query." DESC LIMIT 0,$count;"; 
   }  
   else {
            $selectstring = "SELECT h.id, h.houseid, h.htitle, h.description, h.broker, h.image_link, hc.idcat
                             nFROM #__rem_houses AS h
                             nLEFT JOIN #__rem_categories AS hc ON hc.iditem=h.id
                             nLEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat
                             nWHERE ($s) AND h.published=1
                             nORDER BY ".$sql_orderby_query." DESC LIMIT 0,$count;"; 
  }


to code
Code:

   if($langmodule != "" && $langmodule != "*"){
            $selectstring = "SELECT h.id, h.houseid, h.htitle, h.description, h.broker, h.image_link, hc.idcat, h.price
                             nFROM #__rem_houses AS h
                             nLEFT JOIN #__rem_categories AS hc ON hc.iditem=h.id
                             nLEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat
                             nWHERE ($s) AND h.published=1 AND h.language = '".$langmodule."'
                             nORDER BY ".$sql_orderby_query." DESC LIMIT 0,$count;"; 
   }  
   else {
            $selectstring = "SELECT h.id, h.houseid, h.htitle, h.description, h.broker, h.image_link, hc.idcat, h.price 
                             nFROM #__rem_houses AS h
                             nLEFT JOIN #__rem_categories AS hc ON hc.iditem=h.id
                             nLEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat
                             nWHERE ($s) AND h.published=1
                             nORDER BY ".$sql_orderby_query." DESC LIMIT 0,$count;"; 
  }




and in self layout add some like below:
Code:

<div id="brokerest">
  <p> <?php echo $row->price; ?>
  </p>
</div>



Please backup your files first

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#9022
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 3 Years ago Karma: 0  
Where can I find self layout?
 
Logged Logged  
  The administrator has disabled public write access.
#9023
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 3 Years ago Karma: 0  
I modified the code, but I get: Warning: Invalid argument supplied for foreach() in /home/tolakcom/public_html/modules/mod_realestatemanager_new_pro/tmpl/default.php on line 237
 
Logged Logged  
  The administrator has disabled public write access.
#9040
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Price in new property module 3 Years ago Karma: 61  
Hello,

I am sorry, I can't check what exactly you change. We did only advice we can't full check how that will work and we can't check how you add that in self code. I am sorry every thing code edit - asked time for check how to, add, and debug - but that ask many time
All advice at forum with code edit we give only to users who know PHP/HTML/CSS

If you need custom version with some features, you may write custom request to OrdaSoft support form

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#9056
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 3 Years ago Karma: 0  
I have replaced the code above, but it was not working. Can you please send me the whole file with the changes?
 
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?