Jump to content

Help to amend the 'number format' existing PHP code to show coma (') on thousands


petja

Recommended Posts

I am currently using a theme in WP which is displaying property values not in the right way. We need to have value amounts on thousands (comas on thousands). In other words properties are shown as £5000000 instead of being shown as £5,000,000. 

We tried unsuccessfully to customize php code, the code at line #260 of the file but did not work!: File is stored as the address as below and is showing as below 

wp-content\plugins\wp-realestate-manager\backend\post-types\class-save-post-options.php

Would anyone kindly advice us on this subject?

Awaiting a reply - With Kind Regards:

Below is the part of the file which need to be amended:

------------------------------------------------------------

public function num_format($num) {

            $wp_rem_number = number_format((float) $num, 0, '.', '');
            return $wp_rem_number;

 

        }
-------------------------------------------------------------
and attached is the entire file

php.pdf

Link to comment
Share on other sites

Just received the file for the missing currency symbol in need to be amended
DONATION will be forwarded upon your successful amendment
 
Please find the file (https://1drv.ms/b/s!AosCdzSzicUwo0S1xo63qZ8XTzhC) it has been retrieved from the following address:
 
wp-content\plugins\wp-realestate-manager\backend\settings\includes\plugin-options-functions.php

Link to comment
Share on other sites

If all you are asking for is to provide a proper edit for your numbers did you try looking up the number_format function (that was provided earlier) in the php manual?

 

http://fr2.php.net/manual/en/function.number-format.php

 

PS - we don't DO donations on this forum. We also don't work for hire. Try the other forum on this site if you're looking for paid help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.