-1

I have a site where anonymous checkout is the default option. The problem with this is that the default order page simply shows "Anonymous" as the customer for every order in the list. I need to show the name of the actual customer.

1 Answer 1

1

Since the order page is a View, you can modify the view to display what you want. However, it's not immediately obvious now to do this.

The steps I took were to add a relationship to the User entity, and then add another relationship to the User Profile (you need both relationships for this to work). From there, you can choose from three name fields for the Customer user profile type. I added the Given and Family name fields, hid them from display, and then rewrote the User column to output the first and last names followed by the user name, like this:

{{ address_given_name }} {{ address_family_name }} ({{ uid }})

Your Answer

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

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