When I get an order from PayPal Express the customer name in the confirmation mail is always "Guest". I checked the mail template and there it says {{htmlescape var=$order.getCustomerName()}}.

I tried calling this from normal code like this:

$n = Mage::getModel('sales/order')->load($id)->getCustomerName();

This also returns "Guest" for the Express order. How is it possible to get the real name for a PayPal Express order, just like for the other orders with different payment methods?

  • Same issue in Magento 2 Jun 25, 2021 at 6:15

1 Answer 1


If user name not show in admin when place an order with paypal express as guest.

Please find below file and replace code(For best practice override Mage_Paypal_Model_Express_Checkout class): app/code/core/Mage/Paypal/Model/Express/Checkout.php

protected function _prepareGuestQuote()
    $quote = $this->_quote;
    return $this;


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.