Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Change Number Format for Property Price to include decimals

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 2 years, 2 months ago.

  • Author
  • #119232


    a.  First look for the property field in the theme files.


    You have to look for the number_format code and change or add it to include decimals

    $price = number_format($price,0,'.',$th_separator);

    in the entire theme and change the price format to French format (this is the link to the PHP documentation for price format)


    $price = number_format($price, 2, ',', ' ');

    2. Let floatval (instead of intval) for property_price field throughout the site.

    EX: to see decimals on property page – go to help_functions and make the above edits.

    Thank you

You must be logged in to reply to this topic.