Reputation: 6095
I am creating a plugin for price range filter. all design parts are done.
Now i want to Override ActionResult method Category of CatalogController.
I did lots of R&D, all of them are creating new methods so they don't need to Override existing one.
I am Stucked Here from last 10 hours, can anyone please help me?
Upvotes: 1
Views: 782
Reputation: 456
You can derive your plugin controller from existing CatalogController to avoid code duplication, and then you have to create a new route in your plugin RouteProvider class (with appropriate priority) to replace existing route and use your own action method.
Upvotes: 3