In my last project I use advanced search in a different way.
The first for bestcollegeart.com , in which the advanced search form appear in both advanced search index page and advanced search result page. Also product listed in advanced search index page.
You will find it in the url: advanced search index page.
Here advanced search comes under browse art category. So I create a static block in admin with the content:
{{block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"}}
It will include the advanced search form in the category page. and in the category display settings I set display mode to “static block only”.
If You do this the advanced search form will appear in advanced search category under browse art category. No Problem will be occured upto this portion, but how to add the advanced search form in advanced search result page?
For this I add the block
in app/design/frontend/default/mytheme/layout/catalogsearch.xml page in the following portion:
By this you can see the advanced search form in advanced search result page also. But here if you search something you will get some error page not found or something like that.
This is for post search url. Just go to app\code\core\Mage\CatalogSearch\Block\Advanced\Form.php and replace
public function getSearchPostUrl()
{
return $this->getUrl('*/*/result');
}
with
public function getSearchPostUrl()
{
return $this->getUrl('catalogsearch/advanced/result');
}
Everything is ready.
