Show Avatar on Header for logged customer with/replacing username/email.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Bind avatar with HeaderLinksModel for Authenticated customer. Customer will decide to show/hide avatar.
8 years ago
Hi Sohel,

Thanks a lot! Please vote for this work item here
6 years ago
Hi All,

Is this feature implemented as I want to show avatar image in header for logged in customers. I am using NOP3.80

Please advice
6 years ago
[email protected] wrote:
Hi All,

Is this feature implemented as I want to show avatar image in header for logged in customers. I am using NOP3.80

Please advice


No, But if you want can get Avatar from .cshtml file .. And other way you  can bind Avatar from plugin.
5 years ago
I would like to show the avatar in header, I would like to display the avatar in the HeaderLinks.cshtml view file like this, how could I make something like this work?


<ul>
        @Html.Widget("header_links_before")
            <li>
                @if (!String.IsNullOrEmpty(Model.AvatarUrl))
                {
                    <div class="image">
                        <img src="@(Model.AvatarUrl)" alt="avatar" />
                    </div>
                }
            </li>

            <li><a href="@Url.RouteUrl("CustomerInfo")" class="ico-account">@Model.CustomerName</a></li>
            <li><a href="@Url.RouteUrl("Logout")" class="ico-logout">@T("Account.Logout")</a></li>
        @if (Model.AllowPrivateMessages)
        {
            <li>
                <a href="@Url.RouteUrl("PrivateMessages", new { tab = "" })" class="ico-inbox">
                    <span class="inbox-label">@T("PrivateMessages.Inbox")</span>
                    <span class="inbox-unread">@Model.UnreadPrivateMessages</span>
                </a>
            </li>
        }
        @if (Model.WishlistEnabled)
        {
            <li>
                <a href="@Url.RouteUrl("Wishlist")" class="ico-wishlist">
                    <span class="wishlist-label">@T("Wishlist")</span>
                    <span class="wishlist-qty">@T("Wishlist.HeaderQuantity", Model.WishlistItems)</span>
                </a>
            </li>
        }
        @if (Model.ShoppingCartEnabled)
        {
            <li id="topcartlink">
                <a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart">
                    <span class="cart-label">@T("ShoppingCart")</span>
                    <span class="cart-qty">@T("ShoppingCart.HeaderQuantity", Model.ShoppingCartItems)</span>
                </a>
            </li>
        }
5 years ago
Is there really no way to display the avatar within the header links?

It would be nice to show it next to Customer name/email in the header
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.