Hello, from a computed field I wanna to a typical bill-line calculation
doing a multiplication
price = quantity * fk_product_price How can I do that? I tried wihout luck. $node_field[0]['value'] = $node->field_quantitat[0]['value'] *
$node->field_fk_producte[0]['value']......;
Thank's!
Exec "print_r($node)". Are there present field_quantitat and
field_fk_producte ?
Yes booth are present but I think I need the field_preu (price) stored on the producte (product) node type identified by the field_fk_producte. Is it possible to do that?
What is fk_* ?
I use the fk_ prefix on all node_related CCK fields to avoid confussion when I'm using views or adding new node_Relations to other content types. It comes from the Foreign Key on relational databases ( I know it isn' the way that Drupal Stores it but it's usefull to me).
Thank's for all! Pol Maresma