Author Topic: How do I set up a Joomla menu item with Virtuemart search results??  (Read 1139 times)

Genius WebDesign

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 175
    • Genius WebDesign
Hi,

This has probably been discussed before, but I have not found any clear answer yet..

I´m using the latest stable version of Virtuemart, v.2.6.6 and most things are nice and tidy, but I really would like to create a landing page for my product search result with its own menu item ID associated to it, to obtain nice and tidy SEF URLs and for assigning modules etc. to search result page only.

As it is now the search result URL looks something like this:
mysite.com/component/virtuemart/search?keyword=kalaideng&option=com_virtuemart&page=shop.browse&search=true&view=category&limitstart=0

What I would like to do is to make the Virtuemart search result page look something like this:
mysite.com/my-awesome-search-results

How can I achieve this, how do I create a system menu item tied to the Virtuemart search results?


Genius WebDesign

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 175
    • Genius WebDesign
Re: How do I set up a Joomla menu item with Virtuemart search results??
« Reply #1 on: July 29, 2014, 01:10:55 am »
Well, I found the solution, and of course it was quite simple..

I created a Joomla menu item for Virtuemart front page and called it "Search results" with alias "search-results"
Now the Virtuemart search queries go to this page:
mysite.com/search-results

I can now generate a perfect search result by typing this URL example:
mysite.com/search-results/search?keyword=phone+cover

It doesn´t get much cleaner than that, and now I can easily setup Webmaster Tools with this search mechanism.
In my case I do not use the "front page" layout for anything, so it will only be used for search results.

In most other cases I guess it would be better to call the menu item something similar to "Shop Front" with alias "shop-front" and then use it for it´s designed purpose, as a shop front page.



MAD King

  • Jr. Member
  • **
  • Posts: 339
  • VirtueMart Version: Latest
Re: How do I set up a Joomla menu item with Virtuemart search results??
« Reply #2 on: August 21, 2019, 15:47:59 pm »
Old topic, but was looking for that.

Thank you