You can enable beta feature numeric field in cms_config.php:
$config['enable_numeric_input'] = TRUE;
After that you can change field type in admin->real estate->fields->price related fields.
If you have issue with results ordering:
Please check application\models\estate_m.php, line around 592 you can find:
$value_n = str_replace("'", '', $value_n);
$value_n = str_replace("’", '', $value_n);
$value_n = str_replace(",", '', $value_n);
You can customize this code by your needs.
Example for format: #.###,00
$value_n = str_replace("'", '', $value_n);
$value_n = str_replace("’", '', $value_n);
$value_n = str_replace(".", '', $value_n); // to remove dot
$value_n = str_replace(",", '.', $value_n); // to replace , with dot
After that you should edit->save your available properties.
Regarding filters on search form:
Regarding this filters, you cahn change functionality in:
templates\bootstrap2-responsive\components\head.php, search for:
/* [START] NumericFields */
$(function() {
<?php if(config_db_item('swiss_number_format') == TRUE): ?>
$('input.DECIMAL').number( true, 2, '.', '\'' );
$('input.INTEGER').number( true, 0, '.', '\'' );
<?php else: ?>
$('input.DECIMAL').number( true, 2 );
$('input.INTEGER').number( true, 0 );
<?php endif; ?>
});
/* [END] NumericFields */
Swiss number formating
You can enable swiss number formating in cms_config.php, add:
$config['swiss_number_format'] = TRUE;
And customize example code by your wish.
You can also customize number formatting in jquery plugin code:
/ templates / bootstrap2-responsive / assets / js / jquery.number.js
Change line 139 and 140 to define the point and the comma
Link to jquery plugin which is used:
https://github.com/customd/jquery-number