Hi all
I can't understand why with this code in display format
it doesn't show currency simbol

$display = '$' . number_format($node_field_item['value'],2, '.', ' ');

Can someone help me ?

CommentFileSizeAuthor
#4 purchase_order.PNG16.04 KBkaizerking

Comments

senzaesclusiva’s picture

Sorry

i setted "Computed value" in Display Field...don't thinking that, with this setting , it would show ONLY the computed data :-)
Solved now !
Thanks

kaizerking’s picture

I have the same problem how did u solve could you plz post the code here
I have field_quanty and field_price(money field type) and want to get the field_total (money field type)value

senzaesclusiva’s picture

Hi Kaizerking
There is no code, simply, your have to put similar script (currency can be put before or after the value) in the display field body of Computed Field, and same important, in the content type that contains your Computed Field , in "Field Display" settings, set up raw/plain text widget the display behaviour of the respective field.. That's all.
The same if you build a view raw/plaintext otherwise ( if you leave Computed) you'll never see currency.
Let me Know if i'd been clear

kaizerking’s picture

StatusFileSize
new16.04 KB

I am using 'money' module for price field which is field set of two fields one field is integer and other is select list of currencies.and want the total price displayed along with currency symbol
pl see attached screen shot

dqd’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Due to the Drupal core life cycle policy and security support advisery, Drupal 6 is no longer supported. So issues for Drupal 6 cannot be longer maintained. The project maintainer has asked for closing all D6 issues to clean up the issue queue. Feel free to reopen the issue if required or set it to "needs to be ported" and latest D8 dev version, if the issue discusses a still missing feature which can be implemented in the D8 version.