I am creating a nopCommerce 2.0 QuickBooks integration, which is currently being sold here:
http://www.ablesf.com/nopCommerce-QuickBooks-Connector-P119.aspx
I would like to add a nopCommerce plugin under the configuration menu, however, I want it next to the plugins install page (same level in sitemap). How do I change the admin menu, using the code from a plugin project?
I currently have this code:
using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;
namespace Nop.Plugin.Accounting.QuickBooks
{
public partial class RouteProvider : IRouteProvider
{
//https://www.nopcommerce.com/boards/t/12699/admin-plugin-route.aspx?p=2
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("Admin.Plugin.QuickBooks.Configure",
"Admin/QuickBooks/Configure",
new { controller = "QuickBooks", action = "Configure" },
new[] { "Nop.Plugin.Accounting.QuickBooks.Controllers" }
).DataTokens.Add("Area", "Admin");
}
public int Priority
{
get
{
return 0;
}
}
}
}
Sadly, this route fails to work:
/Admin/QuickBooks/Configure
Any ideas? The route Plugins/QuickBooks/Configure does work. It seems that the system can't pick up on admin.