I want to echo the customer name and order id on the checkout success page.
I currently use this line to display the customer name:
<?php $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); echo $order->getCustomerName(); ?>
But that echo the value "Guest guest".
And to load the order ID I use this, but that does also not work:
<p><?php echo $this->__('Your order ID is <strong> %s.</strong>', $this->escapeHtml($this->getOrderId())) ?> </p>
How can I fix this problem?