How can i call plugin router from nop.web side through..

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 yıl önce
My plugin router is.

routes.MapRoute("Plugin.MostViewed.Products.MostViewedProduct",
                 "Plugins/MostViewed.Products/MostViewedProduct",
                 new { controller = "Products", action = "MostViewedProduct" },
                 new[] { "Nop.Plugin.MostViewed.Products.Controllers" }

My nop.web (where i call this router)

@Url.RouteUrl("Plugin.MostViewed.Products.MostViewedProduct")

(doesn't work)

in public store i shown this when i call my plugin from nop.web

/Plugins/MostViewed.Products/MostViewedProduct



Please help me how can i resolve this or how can i call above router
7 yıl önce
sk5202 wrote:
Please help me how can i resolve this or how can i call above router

Have you considered rendering your plugin content as a widget by implementing the IWidgetPlugin interface? That would be the usual way to render plugin content in nop. See the Nivo Slider plugin code for an example.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.