I know I can print the amount and currencu using:

print $node->field_currency[0]['amount']
print $node->field_currency[0]['currency']

But the amount comes out wrong, and does not seem themed. Are there any functions I can use?

Comments

wim leers’s picture

Please post a dump of this:

print $node->field_currency[0]; 
storbaek’s picture

It just prints Array using: print $node->field_currency[0];

wim leers’s picture

Yes, and please post the output of that.

storbaek’s picture

Please explain what I need to write. I thought array is the output of:

print $node->field_currency[0];

Should I enter something else? I'm a PHP newbie!!

storbaek’s picture

The two other functions I previosly found, was through contenttemplate. However, it does not give me something usefull for this module.

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Closed (duplicate)

This seems to be a duplicate of #195938, see especially this comment.

sleven’s picture

Title: How to print CCK Money field? » Filter money and exchange rate

Great module, but unfinished.

I can't make filtering results for it, because its text, not number.

and module haven' possibility to calculate exchange rate between different currency.

Am I wrong?

wim leers’s picture

Title: Filter money and exchange rate » How to print CCK Money field?

Please don't change existing, duplicate/fixed/closed issues to something else. Create your own issues instead.

Reverting the original state.