2016-02-01, 01:17:48
(This post was last modified: 2016-02-01, 01:19:38 by xrmarcis.
Edit Reason: update details
)
Another quick question about money fields. My field values seem to be getting the zeros trimmed for some reason.
I setup 4 money fields and keyed the retail in each one and this is what i get.
Small - 0.99 displays as 0.99
Medium - 3.00 displays as 3
Large - 4.50 displays as 4.5
Extra LargeĀ - 6.57 displays as 6.57
I know this has something to do with the format but i thought if i used the money field it would know that currency is #,###.##.
Is there other formatting i need to do after the data is pulled in order to get the full value?
I've checked the notation and they are all set to English.
Once again thank you for your support.
I setup 4 money fields and keyed the retail in each one and this is what i get.
Small - 0.99 displays as 0.99
Medium - 3.00 displays as 3
Large - 4.50 displays as 4.5
Extra LargeĀ - 6.57 displays as 6.57
Code:
echo'
<div class="row bottom-border">
<div class="c4"><strong>' .$menuItem->name . '</strong><br />' .$menuItem->fields->descr->value . '</div>
<div class="c2 text-center">$' .$menuItem->fields->small->value . '</div>
<div class="c2 text-center">$' .$menuItem->fields->medium->value . '</div>
<div class="c2 text-center">$' .$menuItem->fields->large->value . '</div>
<div class="c2 text-center">$' .$menuItem->fields->xlarge->value . '</div>
</div>
';
I know this has something to do with the format but i thought if i used the money field it would know that currency is #,###.##.
Is there other formatting i need to do after the data is pulled in order to get the full value?
I've checked the notation and they are all set to English.
Once again thank you for your support.
Keeping it simple means making progress!!