OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Allowing decimals in field "Rooms" (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Allowing decimals in field "Rooms"

ue09387 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Allowing decimals in field "Rooms" 4 Years, 1 Month ago
Karma: 0  
Hi there
It is common in Switzerland to publish the number of rooms in a flat with decimals, as example 4.5 rooms. The system does not accept any variations of this (no "." or ",". What do I need to change to get rid of this field check? Thank you for your help.

Kind regards,
Michael
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Allowing decimals in field "Rooms" 4 Years, 1 Month ago
Karma: 101  
Hi Michael,

what mean "4.5 rooms" ?

We may propose to you order this as "customization service".
Please write to OrdaSoft contact form (ordasoft.com/contact-us-form) with full details description, how all must look and work, and we will give to you quota.

I show only main steps
1. You need in database for field "rooms" change type: "int(11)" to "float"
2 in file {your site}/administrator/components/com_realestatemanager/realestatemanager.html.php

find code look like:
Code:

                    } else if (
                        ( <?php echo $realestatemanager_configuration['mandatory_rooms_field']; ?> == 1 ) && ( !isValidNumberInt(form.rooms.value) || form.rooms.value == '' || form.rooms.value == 0 )
                        || ( <?php echo $realestatemanager_configuration['mandatory_rooms_field']; ?> == 0) && (!isValidNumberInt(form.rooms.value) )
                    ){



and replace to
Code:

                    } else if (
                        ( <?php echo $realestatemanager_configuration['mandatory_rooms_field']; ?> == 1 ) && ( !isValidNumberFloat(form.rooms.value) || form.rooms.value == '' || form.rooms.value == 0 )
                        || ( <?php echo $realestatemanager_configuration['mandatory_rooms_field']; ?> == 0) && (!isValidNumberFloat(form.rooms.value) )
                    ){



Before any update please do files backup.

and search for rooms will work incorrectly

Regards
Andrew
Ordasoft team
Logged Logged
The administrator has disabled public write access.
ue09387 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Allowing decimals in field "Rooms" 4 Years, 1 Month ago
Karma: 0  
Hi Andrew
Thank you for your intial support.
Well in the swiss flat market we count up the flat sizes also with half rooms, which is rather unusual. So a flat can be advertised as a 2-, 3-,4- room flat but also as a 2.5, 3.5, 4.5 flat.

I was able to adjust the php-file but do not understand what you mean with :

You need in database for field "rooms" change type: "int(11)" to "float"

Which database is meant here? I could not find such a parameter in the MySQL database and the "rem" strings.

Thank you for your help. It's just a little adjustment, everything else works perfectly so I doubt we need a special customization.

Kind regards,
Michael
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:Allowing decimals in field "Rooms" 4 Years, 1 Month ago
Karma: 101  
Hi

sorry,
In table #__rem_houses, for field "rooms", you need replace "int(11)" to "float"

This you may do with help phpmyadmin or aminer


Regards
Andrew
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»