Jump to content

[SOLVED]sort problem


Recommended Posts

Hi all, i have a sort problem in here 

http://www.autobaterie-adac.cz/3-autobaterie

 

It is some problem with friendly url. But i have no idea what is the solution.

 

product-sort.tpl

<form id="productsSortForm{if isset($paginationId)}_{$paginationId}{/if}" action="{$request|escape:'htmlall':'UTF-8'}" class="productsSortForm">
<ul class="sorters">
		
<li class="razeni"><b>Řazení:</b></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=price&orderway=asc" {if $orderby eq 'price' AND $orderway eq 'asc'}class="selected"{/if}>{l s='Lowest first'}</a></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=price&orderway=desc" {if $orderby eq 'price' AND $orderway eq 'desc'}class="selected"{/if}>{l s='Highest first'}</a></li>
<li><b>Abecedně:</b></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=name&orderway=asc" {if $orderby eq 'name' AND $orderway eq 'asc'}class="selected"{/if}>{l s='A to Z'}</a></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=name&orderway=desc" {if $orderby eq 'name' AND $orderway eq 'desc'}class="selected"{/if}>{l s='Z to A'}</a></li>	
</ul>
</form>

When i activate friendly url the sorter is off. If is deactivating friendly url then sorter is on.  :mellow:

Edited by tozi (see edit history)
Link to comment
Share on other sites

Change your code to this.

<form id="productsSortForm{if isset($paginationId)}_{$paginationId}{/if}" action="{$request|escape:'htmlall':'UTF-8'}" class="productsSortForm">
<ul class="sorters">
		
<li class="razeni"><b>Řazení:</b></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}?orderby=price&orderway=asc" {if $orderby eq 'price' AND $orderway eq 'asc'}class="selected"{/if}>{l s='Lowest first'}</a></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}?orderby=price&orderway=desc" {if $orderby eq 'price' AND $orderway eq 'desc'}class="selected"{/if}>{l s='Highest first'}</a></li>
<li><b>Abecedně:</b></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}?orderby=name&orderway=asc" {if $orderby eq 'name' AND $orderway eq 'asc'}class="selected"{/if}>{l s='A to Z'}</a></li>
<li><a href="{$request|escape:'htmlall':'UTF-8'}?orderby=name&orderway=desc" {if $orderby eq 'name' AND $orderway eq 'desc'}class="selected"{/if}>{l s='Z to A'}</a></li>
<!--<li><a href="{$link->addSortDetails($request, 'date_add', 'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'date_add' AND $orderway eq 'desc' }class="selected"{/if}>Novinky</a> </li> -->
<!--<li><a href="reference:desc" {if $orderby eq 'reference' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Reference: Highest first'}</a></li> -->
<!--<li><a href="quantity:desc" {if $orderby eq 'quantity' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='In stock'}</a></li>
<li><a href="reference:asc" {if $orderby eq 'reference' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Reference: Lowest first'}</a></li>
 -->
	
</ul>
</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...