Jump to content

Changing where a Menu Item Links To


edherroj

Recommended Posts

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated