VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Salman17 on June 19, 2013, 09:42:15 AM

Title: how to add filter on search result page?
Post by: Salman17 on June 19, 2013, 09:42:15 AM
How to assign(display/view) specific module to virtuemart search result page only?

I want to assign Custom Filter (http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-products-search/19684) to only on search result page
Title: Re: how to add filter on search result page?
Post by: balai on June 19, 2013, 10:09:02 AM
1. Create a menu item for a VM category page. Better this to be hidden in your shop.
2. Open the layout of the search module: modules\mod_virtuemart_search\tmpl\default.php
or the used layout file in case of template overrides

At the end of the file before </form> add:
<input type="hidden" name="Itemid" value="YOUR_VALUE" /> 

*YOUR_VALUE -> The item id of the category menu item you have created

Now your search results will be always displayed in that category menu item