get_shipping_address(); echo $order->id , $delim , $order->order_num , $delim , $order->time , $delim , number_format($order->total + $order->shipping_cost, 2, '.', '') , $delim , $addr->recipient , $delim , $addr->email , $delim; if ($addr != null) { echo $addr->as_csv('phone', 'recipient', 'email', 'country'); } echo ','; if ($addr != null) { $countries[$addr->country]; } echo "\n"; } ?>