Hi,
Whenever I land on a category page, the search dropdown automatically changes to its current category as default.
I would like to have that dropdown always with “all categories” as default.
If possible, remove that dropdown for seach and keep “all categories” as a default one.
How can i do that?
Any ideas?
Hi,
Any ideas regarding this ?
Please help me.
Thanks.
Any answer on this?
Edit cart/skins/basic/customer/common_templates/search.tpl
Find…
<option value="{$cat.category_id}" {if $cat.disabled}disabled="disabled"{/if} {if $mode == "search" && $smarty.request.cid == $cat.category_id}selected="selected"{elseif $smarty.request.category_id == $cat.category_id}selected="selected"{/if} title="{$cat.category|escape:html}">{$cat.category|escape:html|truncate:100:"...":true}</option>
```<br />
<br />
And add a few comment brackets as so...<br />
```php
<option value="{$cat.category_id}" {if $cat.disabled}disabled="disabled"{/if} {* {if $mode == "search" && $smarty.request.cid == $cat.category_id}selected="selected"{elseif $smarty.request.category_id == $cat.category_id}selected="selected"{/if} *} title="{$cat.category|escape:html}">{$cat.category|escape:html|truncate:100:"...":true}</option>
```<br />
<br />
Now we are good to go! <img src="upload://oPnLkqdJc33Dyf2uA3TQwRkfhwd.gif" class="bbc_emoticon" alt="8)">
Worked like a charm. Thanks.