I'm trying to create a computed field: field_commisson_pot (i know commission is spelled wrong, but that's now the machine name for the field), but i'm not getting any output or displayed field at all, no errors, just nothing. Computed code - $entity_field[0]['value'] = (($entity-> field_monthly_premium[0]['value']) *12*170/100); and display code just the default - $display_output = $entity_field_item['value']; Has anyone got any suggestions why this isn't displaying any value?
Computed code - $entity_field[0]['value'] = (($entity-> field_monthly_premium[0]['value']) *12*170/100); and display code just the default - $display_output = $entity_field_item['value']; Has anyone got any suggestions why this isn't displaying any value?
I'm trying to create a computed field: field_commisson_pot (i know commission is spelled wrong, but that's now the machine name for the field), but i'm not getting any output or displayed field at all, no errors, just nothing. Computed code - $entity_field[0]['value'] = (($entity-> field_monthly_premium[0]['value']) *12*170/100); and display code just the default - $display_output = $entity_field_item['value']; Has anyone got any suggestions why this isn't displaying any value?
Computed code - $entity_field[0]['value'] = (($entity-> field_monthly_premium[0]['value']) *12*170/100); and display code just the default - $display_output = $entity_field_item['value']; Has anyone got any suggestions why this isn't displaying any value?
--
--
--
--
Strict warning: Only variables should be passed by reference in eval() (line 1 of /home/paul/public_html/nowo/sites/all/modules/computed_field/computed_field.module(466) : eval()'d code).
$entity_field[0]['value'] = array_pop(array_pop(field_get_items($entity_type, $entity, 'field_monthly_premium')))*20.4;
Pushed it to the live site under duress, and no error. So must be something to do with my local environment ;)
--
---
You received this message because you are subscribed to the Google Groups "NWDUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwdug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
6 February 2013 17:43
Pushed it to the live site under duress, and no error. So must be something to do with my local environment ;)
--
---
You received this message because you are subscribed to the Google Groups "NWDUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwdug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
25 January 2013 16:30
I've got no idea as I've never used that module. But if I was in your position I would be looking at xdebug to see what was going on behind the scenes to display nothing. It's probably a simple 'if' statement that is throwing away the output, but finding out exactly what that is can be a pain.I'm willing to show you how to get xdebug working at the next meetup!Phil
--
25 January 2013 16:05
Cheers though ;) They now have decided to create loads of different commissions based on time periods, insurer, rep, etc.....Good Drupal fun ;)