I want to replace the Orders menu item with my own.
I can see from this commit how to add a new menu item. How can I go about remove an existing one?
Or can I reroute the existing menu item?
Posted 15 November 2017 - 19:02
You can change routing info of existing menu item:
// Find the orders node by its id (from sitemap.config) var ordersNode = pluginsNode .Parent .SelectNode(x => x.Value.Id == "orders"); // Change routing or any other stuff ordersNode.Value.Action("MyAction", "MyController", new { someRouteValue = 1234 });
Murat Cakir
SmartStore AG
Posted 16 November 2017 - 02:06
Perfect, thanks!
![]() Eigener Menu linkStarted by Algorithman , 26 May 2023 ![]() |
|
![]()
|
||
Smartstore (English) →
Installation & Setup Smartstore →
add top menuStarted by mrrcomp , 20 Mar 2023 ![]() |
|
![]()
|
||
Smartstore (Deutsch) →
Design & Theming Smartstore →
How to work with Menu-Items, Shopbar-CategoriesStarted by mrrcomp , 27 Dec 2022 ![]() |
|
![]()
|
||
![]() Menu Items New TopicsStarted by mrrcomp , 23 Dec 2022 ![]() |
|
![]()
|
||
![]() Custom FooterStarted by Lighthouse , 18 Nov 2021 ![]() |
|
![]()
|