I have been trying to figure out how to change what is displayed in the header or the my accounts area at the top of the screen when a customer is logged in. Currently, when someone is logged in it displays their email address. I would like it to display their name.
I made the change above and even cleared the cache on the site but nothing changed. I also made sure to uncheck the box for allow user names. Any ideas why this isn't working?
Ohh, it works fine for all other pages (forums posts, news comments, etc). But the full name is not shown in the header. Follow the next steps in order to display names: 1. Open \Modules\Header.ascx file 2. Replace "<%=Page.User.Identity.Name %>" with "NopContext.Current.User.FormatUserName()"
Hi Andrei, with your suggested code, the page is showing the full name (Fistname LastName). Is there any setting to display only First name instead of Full name?
Hi Andrei, with your suggested code, the page is showing the full name (Fistname LastName). Is there any setting to display only First name instead of Full name?