How to remove the admin.nopcommercenews in dashboard? in nopcommerce4.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Dear all

I just upgrade the my nopcommerce to 4.0 , Can anyone tell me How to remove the admin.nopcommercenews in dashboardin nopcommerce4.0?
6 years ago
You can edit the .cshtml file, please open \Areas\Admin\Views\Home\Index.cshtml file and remove the code below:

@if (!Model.IsLoggedInAsVendor)
{
  <div class="row">
    <div class="col-md-12">
      @await Component.InvokeAsync("NopCommerceNews")
    </div>
  </div>
}

You can also move it to the bottom of dashboard instead of removing it.
6 years ago
Thank you very much!I try the way, it is working well.
follow few more questions for better understanding.
Can anyone explain the part means__?


if (!Model.IsLoggedInAsVendor)

{
  <div class="row">
    <div class="col-md-12">
      @await Component.InvokeAsync("NopCommerceNews")
    </div>
  </div>
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.