I'm using nopCommerce 3.90 with source.
I developed a new plugin using the BasePlugin, IMiscPlugin, IAdminMenuPlugin references on my plugin class.
I am having a terrible time trying to use the @model ProductModel in a view. It will not find it and gives me all kinds of errors.
I have it at the beginning of my view like this:
@using Nop.Web
@using Nop.Admin
@using Nop.Admin.Models.Catalog
@using Nop.Web.Framework
@using Nop.Web.Framework.UI
@using Nop.Core.Domain.Catalog
@using Nop.Services
@using System.Web.Mvc
@model ProductModel
I don't think I need all those using statements, but I wanted to see if any of them would make a difference.
When I try to execute my plugin view from the Admin menu, it gives this error: object reference not set to an instance of an object on this line:
@if (Model.AddSpecificationAttributeModel.AvailableAttributes.Count > 0)
{
I have all of these dll's in my references and more:
Nop.Core.dll
Nop.Data.dll
Nop.Services.dll
Nop.Web.Framework.dll
EntityFramework.dll
System.Data.Entity.dll
System.Web.dll
System.Web.Mvc.dll
Autofac.dll
Autofac.Integration.Mvc.dll
Any help anyone can provide to fix this issue would be gratefully appreciated.
Thanks,
Tony