VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: razor7 on October 17, 2016, 18:02:19 PM

Title: Get a menu item for the task editaddresscart&addrtype=BT
Post by: razor7 on October 17, 2016, 18:02:19 PM
Hi! I'm working out the link index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT. It allows a user to edit his BT data, but I can't get a menu item that matches that link, so I can't get an itemid for it and because of that, I can't get control of menus in that specific VM URL.

How can I get an itemid for that link?
Can VM devs add a new menu item of this type so anyone can just add a menu item for that URL in joomla menu manager?

Thanks!
Title: Re: Get a menu item for the task editaddresscart&addrtype=BT
Post by: GJC Web Design on October 17, 2016, 18:46:57 PM
simply make a std. Joomla url type menu to index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT

then u have an Itemid to control it
Title: Re: Get a menu item for the task editaddresscart&addrtype=BT
Post by: fotonio on November 06, 2016, 20:01:35 PM
Quote from: GJC Web Design on October 17, 2016, 18:46:57 PM
simply make a std. Joomla url type menu to index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT

then u have an Itemid to control it

Can you tell us more how to control if we have the menu itemid? And if we have 2, for 2 languages?
Title: Re: Get a menu item for the task editaddresscart&addrtype=BT
Post by: Studio 42 on November 06, 2016, 21:28:57 PM
If you add it in oyour Joomla menu, Joomla set this itemid, so you don't have to add it manually.
If you have 2 language and need 2 menu settings, then do same for a second menu item.
Title: Re: Get a menu item for the task editaddresscart&addrtype=BT
Post by: fotonio on November 06, 2016, 22:07:38 PM
ok i already created the menu items in hidden menus but when clicking checkout it opens this url user/editaddresscartBT  instead of menu alias so it doesn't work.

See also here http://forum.virtuemart.net/index.php?topic=135937.0