petja Posted November 7, 2017 Share Posted November 7, 2017 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 Quote Link to comment Share on other sites More sharing options...
Barand Posted November 7, 2017 Share Posted November 7, 2017 number_format Quote Link to comment Share on other sites More sharing options...
petja Posted November 7, 2017 Author Share Posted November 7, 2017 Apologies for not clarifying my post above. I am a real newbie to php, I need someone to help me to make full amendments to the file. Upon the work done donations will be provided Quote Link to comment Share on other sites More sharing options...
Barand Posted November 7, 2017 Share Posted November 7, 2017 $wp_rem_number = number_format((float) $num, 0, '.', '');Just use the default values instead $wp_rem_number = number_format($num); Quote Link to comment Share on other sites More sharing options...
petja Posted November 8, 2017 Author Share Posted November 8, 2017 Many thanks for your prompt support. It did work but now currency symbol (£) is gone Used to be £5000000 now is showing: 5,000,000 Greatly appreciate if you can check again Quote Link to comment Share on other sites More sharing options...
Barand Posted November 8, 2017 Share Posted November 8, 2017 The function code in your original post does not add a £ symbol either. You must have changed something else. Quote Link to comment Share on other sites More sharing options...
petja Posted November 8, 2017 Author Share Posted November 8, 2017 Thank you for your reply I have not changed anything Quote Link to comment Share on other sites More sharing options...
Barand Posted November 8, 2017 Share Posted November 8, 2017 Of course you didn't, it just disappeared all on its own. BTW, a search of your pdf file for "num_format" or "$wp_rem_number" produced no results. It might have been useful had you provided relevant code. You're on your own. Quote Link to comment Share on other sites More sharing options...
petja Posted November 10, 2017 Author Share Posted November 10, 2017 Just received the file for the missing currency symbol in need to be amendedDONATION 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 Quote Link to comment Share on other sites More sharing options...
petja Posted November 13, 2017 Author Share Posted November 13, 2017 Is anyone available to provide a quote for this amendment/customisation? Quote Link to comment Share on other sites More sharing options...
ginerjm Posted November 13, 2017 Share Posted November 13, 2017 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.