Forums / Setup & design / shop problem / Comment22608
Stuart Fenton
Thursday 20 July 2006 12:25:03 pm
Actually the code needs a little adjusting as the country type is an array instead of a string and although it works in the basket it breaks in the confirm order and the orderview.
Here is the entire accountInformation function.
function accountInformation( $order ) { $user =& $order->user(); $userObject =& $user->attribute( "contentobject" ); $dataMap =& $userObject->dataMap(); $country = $dataMap['country']->content(); return array( 'first_name' => $dataMap['first_name']->content(), 'last_name' => $dataMap['last_name']->content(), 'email' => $user->attribute( "email" ), 'country' => $country['value'] ); }
RegradsFats
-- Stuart stuart@grandmore.com http://www.grandmore.com