News:

Support the VirtueMart project and become a member

Main Menu

categoryId = LastVisitedCategoryId ???

Started by usovdm, September 13, 2013, 06:39:41 AM

Previous topic - Next topic

usovdm

I see that in new versions of VM categoryId can't be zero.
Early I created menu item = Virtuemart - category layout - top level (categoryId = 0). And this item was my page (with itemId) for result of search.
But now this doesn't work, because:
1) search in VM - categoryId must be "-1"
2) if($categoryId == 0) $categoryId = getLastVisitedCategoryId()
3) I can't create menu item for "virtuemart" - "category layout" - categoryId=-1

So my question: how I can create menu item for result of search?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

usovdm

Is menu type External URL supported by JRoute?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

usovdm

External URL hasn't alias, pagetitle, meta and it's a problem.
Module/template assign works.

I don't understand why categoryId = LastVisitedCategoryId in new versions. I used categoryId == 0 as page for result of search. I don't know what i can do now.