I tried that but I get: CS1061: 'NopSolutions.NopCommerce.Common.CustomerManagement.Customer' does not contain a definition for 'LastName' and no extension method 'LastName' accepting a first argument of type 'NopSolutions.NopCommerce.Common.CustomerManagement.Customer' could be found (are you missing a using directive or an assembly reference?)
Sorry. Look at Customer's FullName property. You should get the last name the same way as we do (using customer's attributes). Nop.Common\Customer\Customer.cs
Is this an option? CustomerAttribute firstNameAttr = customerAttributes.FindAttribute("FirstName", customer.CustomerID); if (firstNameAttr != null) txtFirstName.Text = firstNameAttr.Value;