How can I prevent users from entering characters in price?
How to format price 0 to show as 0.00 in ads. I tried below lines but when users enters 0 it still show as 0 in ads?
$price_out = preg_replace("[^0-9.]", "", $price_out);
$price_out = number_format($price_out, 2, '.', ',');
$price_out = cp_pos_currency($price_out);