OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Price in new property module (0 viewing) 

Joomla Real Estate Wishlist

Go to bottom Favoured: 0

Price in new property module

Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Price in new property module 11 Years, 3 Months ago
Karma: 0  
How can I show prices in the "new property" module?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Price in new property module 11 Years, 3 Months ago
Karma: 102  
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.
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 11 Years, 3 Months ago
Karma: 0  
Where can I find self layout?
Logged Logged
The administrator has disabled public write access.
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 11 Years, 3 Months 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.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:Price in new property module 11 Years, 3 Months ago
Karma: 102  
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.
Botlikné (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Price in new property module 11 Years, 3 Months 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
»