Friday 24 April 2015

Magento Paypal Express bug: Guest user name not save

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


Please find below file and replace code:
app/code/core/Mage/Paypal/Model/Express/Checkout.php


protected function _prepareGuestQuote()
    {
        $quote = $this->_quote;
        $quote->setCustomerId(null)
            ->setCustomerFirstname($quote->getBillingAddress()->getFirstname())
            ->setCustomerLastname($quote->getBillingAddress()->getLastname())

            ->setCustomerEmail($quote->getBillingAddress()->getEmail())
            ->setCustomerIsGuest(true)
            ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID);
        return $this;
    }