Pass Current Customerid as a parameter

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
hi,

I'm using nopcommerce 2.3, In ..\Presentation\Nop.Web\Views\Common\HeaderLinks.cshtml  I have modifed this line like this

  @if (Model.DisplayAdminLink)
        {            
            
             <li><a href="@Url.Action("IsPublisherSubscribed")" class="ico-admin">@T("Account.Administration")</a>
            </li>
        }    

In that, i want to pass current customer ID,
Hace 12 años
Please respond this post.. its very urgent
Hace 12 años
Something like
  @if (Model.DisplayAdminLink)
        {            
            
             <li><a href="@Url.Action("IsPublisherSubscribed", new { tab = Model.CurrentCustomerId })" class="ico-admin">@T("Account.Administration")</a>
            </li>
        }    

But you should also add this new 'CurrentCustomerId' property to 'HeaderLinksModel' class and init it in 'HeaderLinks' method of 'CommonController' class.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.