Is it possible to display the price as $250.00 instead of $250?
We already have the '$' as the unit, so wondering what are the options.
Also what's the easiest way to remove fields like ADDRESS and LISTING TYPE, etc. without deleting in case want to go back?
Should I just use "//" marks
thanks in advance,
jon
new-car-brokers.com
Logged
The administrator has disabled public write access.
if ((float) $this->price ) :
$val = round((float) $this->price, 2 );
list($a, $b) = explode('.', $val);
if (strlen($b) < 2 ) $b = str_pad($b, 2, '0', STR_PAD_RIGHT);
$this->price = "$a.$b" ;
else : // do whatever you want with values that do not have a float
$this->price;
endif;
Thanks,
OrdaSoft team
Logged
The administrator has disabled public write access.