Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Format price remove commas and add blank Reply To: Format price remove commas and add blank

#102229

mmatos
Participant

Hi!

I have implemente this, but now when I put a price of 1200.67 It comes out with 1.200,00

if ($price != 0) {
               $price = number_format($price, 2, ',', '.');
               if ($where_currency == 'before') {
                   $price = $currency . ' ' . $price;
               } else {
                   $price = $price . ' ' . $currency;
               }           
           }else{
               $price='';
           }

Any suggestions how to change this?