Posted by lakbaytaodev on March 6, 2012 at 1:13pm
Greetings! On CCK, I added computed field to facilitate calculations however I'm now stock. My inquiry is this one: how do I multiply two fields to get pasted into the computed field itself like for instance field_dealersprice multiplied by field_dealers_discount.
I try to use this code:
$node_field[0]['value'] = "$node-> field_dealersprice [0]['value'] *$node-> field_dealers_discount [0]['value']";
but its not working. Any tip and advice? Matsalams.

Comments
Computed Code:
Computed Code:
$node_field[0]['value'] = $node-> field_dealersprice[0]['value'] *$node-> field_dealers_discount[0]['value'];Display Format:
$display = ''Php". $node_field_item['value'];Data Type: float
Data Length: 10,2
Default Value: 0.00
check "Not NULL"
check sortable
Hi Joseph, Thanks on this
Hi Joseph,
Thanks on this one. I will try this out.
Linux Registered User #383849
The code WORKED! Maraming
The code WORKED! Maraming salamat.
Linux Registered User #383849