i cannot change cancelorder button route

Friday, December 27, 2024 8:46:07 PM
  • Posted: Wednesday, January 16, 2019 12:37 PM
  • 10
I'm using grandnode ver4.20. But i can't change cancelorder button route.

My code route code is below;

routeBuilder.MapRoute("Plugin.Rewards.RewardOperations.CancelOrder",
                            "Admin/Order/Edit/{orderId}",
                            new { controller = "RewardOperationAdminController", action = "CancelOrder", area = "admin" });


In plugin is other methods and routes running. I don't have problem other methods.

Please, can you help me?

Thank you...
0
  • Posted: Wednesday, January 16, 2019 6:53 PM
  • Team
  • 153
Hi,
Change your url to i.e /RewardOperationAdminController/CancelOrder
Do you need add to cancel button on the order page for customer?

Regards
Krzysztof
0
  • Posted: Wednesday, January 16, 2019 7:00 PM
  • 10
No, I just from order detail in admin panel. I will try. Thank you so much.
0
  • Posted: Wednesday, January 16, 2019 9:10 PM
  • 10
Krzysztof wrote:
Hi,
Change your url to i.e /RewardOperationAdminController/CancelOrder
Do you need add to cancel button on the order page for customer?

Regards
Krzysztof


Hi, i've tried. But it didn't work. Have I got it right?



routeBuilder.MapRoute("Plugin.Rewards.RewardOperations.CancelOrder",
                            "/RewardOperationAdminController/CancelOrder",
                            new { controller = "RewardOperationAdminController", action = "CancelOrder", area = "admin" });

0
  • Posted: Thursday, January 17, 2019 7:49 AM
  • Team
  • 153
Do you want override action cancel order in OrderController ?
0
  • Posted: Thursday, January 17, 2019 7:53 AM
  • 10
Of couse. But, I want override Admin/Order/Edit/{id} (Just CancelOrder Method).

I want only CancelOrder button action in to the plugin.
0
  • Posted: Thursday, January 17, 2019 8:15 AM
  • Team
  • 153
Unfortunately you can't do this by routeprovider.
0
  • Posted: Thursday, January 17, 2019 8:21 AM
  • 10
Ok. Thanks for your help.

Well, if I copy all the editing methods of the order controller to the plug-in?

What sentence do I need to write to the routeprovider?
0
back to top
Filters