getAllItems(); $order->setOrderItems ( $items ); $payment = $order->getPayment(); $order->setPaymentInfo( $payment ); $order->setAddressShipping ( $order->getShippingAddress() ); $order->setAddressBilling ( $order->getBillingAddress() ); //header('Content-Type: application/xml; charset=utf-8'); $xml = $model->convert($order, ''); return $xml; } }