How to call Custom action of plugin instead of default action

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
Hi all,

I want to load my custom page on order Completed page, means i want to override order completed method by plugin,

Instead of default order completed method i want to call my order completed method, how can i do this?
please suggest me or give me guide line,

Regards,
Vinit patel
9 năm cách đây
You can override the Checkout/Completed path by following way.


namespace Nop.Plugin.Misc.YouPlugin
{
    public class RouteProvider : IRouteProvider
    {
        public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
          var route = routes.MapRoute("Nop.Plugin.Misc.YourPlugin.Checkout.Completed",
                                         "Checkout/Completed",
             new { controller = "YourCheckoutController", action = "Completed", area = "" },
             new[] { "Nop.Plugin.Misc.YourPlugin.Controllers" });      
            routes.Remove(route);
            routes.Insert(0, route);

        public int Priority
        {
            get { return 20; }
        }
    }
}
9 năm cách đây
Hi,

Thank you for reply,

Instead of this can i use action filter, on order conformation method with action executed action filter?

i am not sure it's works or not but if you have idea about then please give me guide line,

Thank you for reply and support,

Regards,
Vinit patel
7 năm cách đây
How to Override below URL ?


http://localhost:15536/login/checkoutasguest?returnUrl=%2Fcart
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.