Jump to content

"Position within category" sort order is flipped after performing a search


mlesniak1

Recommended Posts

Hi, After performing a search the default sort is "position within category" in descending order. But it will only display in ASCENDING (from oldest product first to newest product last) which I do not want. Everywhere else on my site the default position sort performs correctly and I cannot for the life of me figure out how to fix it. Might it be in a PHP file? I'm running 1.5.6.2

 

This is my blocksearch-top.tpl code:

 

<form method="get" action="{$link->getPageLink('search')|escape:'html'}" id="searchbox">
<p>
<label for="search_query_top"><!-- image on background --></label>
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="orderby" value="position" />
<input type="hidden" name="orderway" value="desc" />
<input class="search_query" type="text" id="search_query_top" name="search_query" placeholder="Search Keyword / Item #" value="{$search_query|escape:'htmlall':'UTF-8'|stripslashes}" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Search Keyword / Item #'"/>
<input style="border-radius:0px" type="submit" name="submit_search" value="{l s='' mod='blocksearch'}" class="button" />
</p>
</form>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...