Hi, I'm trying to change the output format of number custom fields (that represent prices).
The IDs of those custom fields are
prix_vente_bien
loyer-mensuel_bien
prix_net_vendeur_bien
charges_bien
taxe_fonciere
I've played with the code provided there: https://docs.metabox.io/filters/rwmb-meta/ and there https://www.php.net/manual/en/function.number-format.php
but I'm unable to make it work.
I don't care how it shows in the custom field but I would like it to be output with this format when I pull the data in the builder (if it makes sense).
I'm trying to have this format XXX XXX XXX,XX :
$number = 1234.56;
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56
Could you help me with that?
Thanks a lot in advance!