tozi Posted January 4, 2014 Share Posted January 4, 2014 (edited) Hi all, if possible change select list (selectProductSort) to this? Edited January 5, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
tozi Posted January 4, 2014 Author Share Posted January 4, 2014 It is this. Nobody can help? Link to comment Share on other sites More sharing options...
Sharak Posted January 5, 2014 Share Posted January 5, 2014 Edit /themes/your_theme/product-sort.tpl You can change select/option to ul/li following this guide http://stackoverflow.com/questions/14926368/how-can-i-use-ul-list-instead-of-select-dropdown-for-the-languages-switcher Link to comment Share on other sites More sharing options...
tozi Posted January 5, 2014 Author Share Posted January 5, 2014 (edited) Thanks. Solved. Version prestashop 1.5.6.1 <form id="productsSortForm{if isset($paginationId)}_{$paginationId}{/if}" action="{$request|escape:'htmlall':'UTF-8'}" class="productsSortForm"> <ul class="sorters"> <li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=price&orderway=asc" {if $orderby eq 'price' AND $orderway eq 'asc'}class="selected"{/if}>{if $lang_iso == en }lowest price{else}nejnižší ceny{/if}</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}>{if $lang_iso == en }highest price{else}nejvyžší ceny{/if}</a></li> <li><a href="{$link->addSortDetails($request, 'date_add', 'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'date_add' AND $orderway eq 'asc' }class="selected"{/if}>{if $lang_iso == en }newest{else}novinky{/if}</a> </li> </ul> </form> Edited January 5, 2014 by tozi (see edit history) 1 Link to comment Share on other sites More sharing options...
Sharak Posted January 5, 2014 Share Posted January 5, 2014 Nice job I believe the last one is supposed to show newest first and changing asc to desc doesn't help so this one still needs some work. Link to comment Share on other sites More sharing options...
tozi Posted January 5, 2014 Author Share Posted January 5, 2014 (edited) Liitle problem How can I hide a button. If less products? http://simplydesign.sk/arris/index.php?id_category=4&controller=category&id_lang=1 Edited January 5, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 6, 2014 Share Posted January 6, 2014 {if $nb_products > $products_per_page} CODE TO DISPLAY HERE {/if} Link to comment Share on other sites More sharing options...
tozi Posted January 6, 2014 Author Share Posted January 6, 2014 Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now