Hi guys,
I changed nopcommerce 4.2 source code to add new section to customer for add product limit for each customer and it works properly. My question is How to create plugin from new codes for doing same operation?
var menuItem = new SiteMapNode()
{
SystemName = "Misc.BulkEditProducts",
Title = "Bulk Edit Products",
ControllerName = "BulkEditProducts",
ActionName = "List",
Visible = true,
RouteValues = new RouteValueDictionary() { { "area", "Admin" } },
IconClass = "fa-dot-circle-o"
};
var pluginNode = rootNode.ChildNodes.FirstOrDefault(x => x.SystemName == "Catalog");
if (pluginNode != null)
pluginNode.ChildNodes.Add(menuItem);
else
rootNode.ChildNodes.Add(menuItem);