Virtuemart Search Via URL
Written by Alex (nedge2k)   
Friday, 06 February 2009 20:44

I figured out how to do this a while back when I was developing our work's website but seeing as it doesn't seem to be common knowledge - just had an email about it from a fellow developer - I thought I should share it before I forget again :P

 Anyway, the process is simple, if you look a the source for the Virtuemart advanced search module, you'll see it passes $_POST['keyword1']. Luckily, the shop.browse page can also accept a value for this via $_GET. So if you want to create you're own search module which would allow the search results to be shared or just want a couple of static search links, format the URL as follows:

http://yourdomain.tld/shop?page=shop.browse&keyword1=your+search+term
Simple :)