I have created a PHP custom field name, which works "almost" fine. However, I want to write some customized PHP code in conditional actions to use that field.
So...if I want to say "do this to the variable" in conditional actions using customized PHP code, I refer to this field by use $order->??????? (my field name is ucxf_team_mem_sponsor). Just using that field name returns a blank.
Any guidance?
Thanks much...
Comments
Comment #1
ycimlynn commentedI finally found it. For future knowledge, if it helps anyone, it is called this way:
$order->extra_fields[ucxf_field_name]
Comment #2
megachrizNote that this will change in the next version of Extra Fields Pane. The array 'extra_fields' will be removed and then an extra field can be accessed like this:
$order->ucxf_field_name
The reason for this change is to ease the integration with Ubercart Addresses 6.x-2.x, which will be available in the next version. Currently the code for what will become the next version can be find in the 6.x-2.x-redesign2011 branch. This code will be moved over to 6.x-2.x when I've tested/reviewed it.