edherroj Posted November 24, 2020 Share Posted November 24, 2020 Hello everyone! I trying to redirect customers to my website content whenever they click on any product that is listed under the 'Store' menu within WMHCS. The question I have is if I can use the menu item name, for example: Web Hosting, SSL certificates and so on; or is there a better way to grab these links ... taking into account that my clients see the website in different languages therefore the menu item name changes depending on the language they choose ... to perform each redirect? Thanks for the knowledge! -ED 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 24, 2020 Share Posted November 24, 2020 use getchildren to get all the children of the navbar child you're interested in (e.g store), loop through them and change the links using a hook... languages shouldn't be an issue as the children should each have a name that won't change regardless of their language labels (basically you're using the menuitemname which you should be able to find by viewing the page source code in the browser). 0 Quote Link to comment Share on other sites More sharing options...
edherroj Posted November 24, 2020 Author Share Posted November 24, 2020 Really helpful, thank you Brian! exactly what I wanted to know. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.