Tutorial 1 - Creating a new plugin based on DevPartner CMS

  1. Reference the DevPartner.Nop.Plugin.Core.dll assembly in your project. This files can be found in the DevPartner.Core plugin (\Plugins\DevPartner.Core folder)

  2. Create Plugin class


 using System.Web.Routing;
 using Nop.Core.Plugins;
 using Nop.Services.Common;
 using DevPartner.Nop.Plugin.Core.Models.CMS;
 using DevPartner.Nop.Plugin.Core.Services;
 using DevPartner.Nop.Plugin.Core.Services.Entities;
 using DevPartner.Nop.Plugin.Core.Singletons;
 using DevPartner.Nop.Plugin.Core.Helpers;
 
 namespace DevPartner.Nop.Plugin.Misc.StartedKit
 {
     public class StartedKitPlugin : BasePlugin, IMiscPlugin
     {
         #region Fields
         private readonly IEntityModelService _entityModelService;
         private readonly InstallBaseItemsService _installBaseItemsService;
         #endregion
 
         #region Ctor
         public StartedKitPlugin(
             IEntityModelService entityModelService,
             InstallBaseItemsService installBaseItemsService
              )
         {
 
             _entityModelService = entityModelService;
             _installBaseItemsService = installBaseItemsService;
         }
         #endregion
 
         #region IMiscPlugin
         /// 
         /// Install plugin
         /// 
         public override void Install()
         {
 
             base.Install();
         }
 
         /// 
         /// Uninstall plugin
         /// 
         public override void Uninstall()
         {
           
             base.Uninstall();
         }
 
         public void GetConfigurationRoute(out string actionName, out string controllerName, out RouteValueDictionary routeValues)
         {
             actionName = "";
             controllerName = "";
             routeValues = new RouteValueDictionary() { { "Namespaces", "DevPartner.Nop.Plugin.Core.Controllers" }, { "area", null } };
         }
         #endregion
     }
 }