I've been using Contemplate across several sites and have suddenly come upon something really weird. I've got a price field that should be outputting a dollar amount, and it's been working fine except on one of my sites. When I look at the Body Variables listing, I see my price field with the correct dollar amount and format, but when I put it in a PHP print statement in my template, it comes out as .00.

Any idea how that might be happening?

thanks,
SB

Comments

sunset_bill’s picture

More ammo. Here's from my template's Body Variables:

$node->field_price_list[1]
$38.00
$node->field_price_list[2]
$38.00
$node->field_price_list[3]
$29.00

But when I do a print_r($node->field_price_list) in my template, I get

Array ( [0] => Array ( [value] => [format] => [safe] => [view] => ) [1] => .00 [2] => .00 [3] => .00 )