Help for Sort by Price script

Hi everyone
I use Prestashop for my web store,
and was searching for a module, or a script code so i can change the .tpl file,
so people when looking at the products have the option to sort by

-1-20$
-20-30$
-30-40$
-40-50$
-50-60$

now with the original .tpl file products can be sorted by

-Highest price
-Lowest price
-From A to Z
-from Z to A
-in stock first

can you guys help me with this ?

here is the original code

[php]{if isset($orderby) AND isset($orderway)}

{if $smarty.get.id_category|intval}
{assign var=‘request’ value=$link->getPaginationLink(‘category’, $category, false, true)}
{elseif $smarty.get.id_manufacturer|intval}
{assign var=‘request’ value=$link->getPaginationLink(‘manufacturer’, $manufacturer, false, true)}
{elseif $smarty.get.id_supplier|intval}
{assign var=‘request’ value=$link->getPaginationLink(‘supplier’, $supplier, false, true)}
{else}
{assign var=‘request’ value=$link->getPaginationLink(false, false, false, true)}
{/if}

{l s='--'} {l s='price: aaaaaaaa'} {l s='price: bbbbbbbbb'} {l s='name: A to Z'} {l s='name: Z to A'} {l s='in-stock first'} {l s='sort by'}

{/if} [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service