Author Topic: virtuemart catagories in joomla menu  (Read 778 times)

2cool

  • Jr. Member
  • **
  • Posts: 231
virtuemart catagories in joomla menu
« on: April 11, 2019, 19:45:11 pm »
Maybe a stupid question, but....
Is it possible to add virtuemart categories within an excisting joomla menu without creating all categories in Joomla menu again?

Joomla menu setup : home - products - about us - our work - contact
Where products should show virtuemart catagories/submenus.
Setup is multi language.

Joomla! 3.9.5 + VirtueMart 3.4.2

Thanks in advance,

Pas

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4069
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: virtuemart catagories in joomla menu
« Reply #1 on: April 12, 2019, 02:32:53 am »
You can do a custom module to dynamique add it.
I have done similar plugin to add manufacturers and categories inside a module.
Another solution is to use a mega menu module and virtuemart category module and modify the layout to display right in your menu.

2cool

  • Jr. Member
  • **
  • Posts: 231
Re: virtuemart catagories in joomla menu
« Reply #2 on: April 12, 2019, 18:43:15 pm »
Thanks for your reply,
You can do a custom module to dynamique add it.
Is there some info about this? how can this be done?
I'm using a megamenu but right now I can only set the virtuemart before or after the joomla menu.
I need to be more flexible.

Hope you can tell me what the best approach is.

Thanks & regards,
Pas

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4069
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: virtuemart catagories in joomla menu
« Reply #3 on: April 13, 2019, 00:10:58 am »
You have to simulate the menu render as if this are menu items.
Eg if your menu use ul>li then you do same in your module layout override.
I cannot give you the final solution, thisis specific to your current menu.
"products" can be the main menu item in your mega menu

2cool

  • Jr. Member
  • **
  • Posts: 231
Re: virtuemart catagories in joomla menu
« Reply #4 on: April 15, 2019, 09:41:57 am »
Thank you!
I'm using mega menu but can't set the position where virtuemart catagory is set.
It's only before- of after joomla menu items?
I'm not sure how to modify this as you described in previous post.

Regards,
Pas

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2473
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: virtuemart catagories in joomla menu
« Reply #5 on: April 15, 2019, 10:30:58 am »
I guess You should look at the documentation for Your Mega Menu.

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4069
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: virtuemart catagories in joomla menu
« Reply #6 on: April 15, 2019, 13:29:23 pm »
In some mega menu, you can use a separator "products" for eg. And you can set a module to render in this menu item.
If you select virtuemart category module, then it should render on click/on over the "products" link