OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
How to remove the "Square Footage" option????? (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: How to remove the "Square Footage" option?????
#16721
finster (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
How to remove the "Square Footage" option????? 11 Months, 2 Weeks ago Karma: 0  
Greetings... great component!

But PLEASE, how can I remove the "Square Footage" label ("House_Size" code), or at least make it not required to add a new listing?

Thank you in advance!!!
 
Logged Logged  
  The administrator has disabled public write access.
#16723
Taras (Admin)
Admin
Posts: 2637
graphgraph
User Offline Click here to see the profile of this user
Re:How to remove the "Square Footage" option????? 11 Months, 2 Weeks ago Karma: 53  
Hello,

To remove the mandatory fields you need go to your website/components/com_realestatemanager and open file realestatemanager.html.php then find "static function editHouse"

and delete for examples for field rooms this code

Code:

else if (form.rooms.value == '' || !isValidNumber(form.rooms.value)){
                window.scrollTo(0,findPosY(document.getElementById('rooms_alert')));
                document.getElementById('rooms_alert').innerHTML =
                 "<?php echo _REALESTATE_MANAGER_INFOTEXT_JS_ROOMS; ?>";
                document.getElementById('rooms_alert').style.color = "red";
                document.getElementById('rooms').style.borderColor = "#FF0000";
                document.getElementById('rooms').style.color = "#FF0000";
                return;
            }



This changes for frontend; for backend need edit the same file realestatemanager.html.php and function, but in your website/administrator/components/com_realestatemanager
The same for other values.


Before make any change make a copy of file.
 
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?