Author Topic: categoryId = LastVisitedCategoryId ???  (Read 594 times)

usovdm

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 16
categoryId = LastVisitedCategoryId ???
« on: September 13, 2013, 06:39:41 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: categoryId = LastVisitedCategoryId ???
« Reply #1 on: September 13, 2013, 10:38:10 am »
Menu type - External URL?

usovdm

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 16
Re: categoryId = LastVisitedCategoryId ???
« Reply #2 on: September 13, 2013, 10:40:05 am »
Is menu type External URL supported by JRoute?

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: categoryId = LastVisitedCategoryId ???
« Reply #3 on: September 13, 2013, 10:41:49 am »
Did you try my advice? Could I see live?

usovdm

  • 3rd party VirtueMart Developer
  • Beginner
  • *
  • Posts: 16
Re: categoryId = LastVisitedCategoryId ???
« Reply #4 on: September 13, 2013, 10:52:49 am »
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.