Pass Current Customerid as a parameter

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 年 前
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,
12 年 前
Please respond this post.. its very urgent
12 年 前
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.