Saturday, June 15, 2019 11:28:08 PM
  • Posted: Wednesday, January 16, 2019 12:37 PM
  • 9
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
  • Moderator
  • 24
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
  • 9
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
  • 9
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
  • Moderator
  • 24
Do you want override action cancel order in OrderController ?
0
  • Posted: Thursday, January 17, 2019 7:53 AM
  • 9
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
  • Moderator
  • 24
Unfortunately you can't do this by routeprovider.
0
  • Posted: Thursday, January 17, 2019 8:21 AM
  • 9
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