• Anna
    May 22, 2015 at 8:46 am #108911

    Default fields:

    Fields are set to intval type – which means they do not show decimals. We will review this for a future update. But meanwhile the solution is this

    Replace intval with floatval in all the fields you wish to be this type.

    Floatval adds decimals.

    The files with default fields in estate are:





    Custom Fields

    In user-dashboard-add.php

    You have

    $value_custom = intval(sanitize_text_field( $_POST[$slug] ) );

    In 2 places: ~ line 579 and ~line 953

    Change in there intval to floatval

    In libs/property.php

    You have

    print '';

    Around line 197 Change in that line intval to floatval

    August 4, 2015 at 3:30 am #118244

    And how to support letter ? What should I write to replace the intval ?

You must be logged in to reply to this topic.