Posted by sunset_bill on June 23, 2011 at 7:42pm
1 follower
Jump to:
| Project: | Content Templates (Contemplate) |
| Version: | 6.x-1.2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
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 )