wondrik Posted June 10, 2013 Share Posted June 10, 2013 Hi, is there some way how to change products sort by from dropdown list to urls/buttons ? Thanks. Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 what prestashop version you use? and what template, default one? Link to comment Share on other sites More sharing options...
wondrik Posted June 11, 2013 Author Share Posted June 11, 2013 Hi, I'm using 1.5.4. and template is leoconverse by http://www.leotheme.com/. But if you can provide some solution for default theme it will be also OK. Thanks. Link to comment Share on other sites More sharing options...
wondrik Posted June 12, 2013 Author Share Posted June 12, 2013 Any advise ? Link to comment Share on other sites More sharing options...
PascalVG Posted June 12, 2013 Share Posted June 12, 2013 Need to change file: themes/default/product-sort.tpl Tried a little but is not that easy. css change is not that obvious... As a first idea, you should change the list to radio buttons. Something like this: <option value="price:asc" {if $orderby eq 'price' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Price: Lowest first'}</option> you could change into <input type="radio" name="selectPrductSort" value="price:asc" {if $orderby eq 'price' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='$$, Low-High'} Well, lot off puzzling, but maybe gives some initial idea. My 2 cents, pascal Link to comment Share on other sites More sharing options...
wondrik Posted June 12, 2013 Author Share Posted June 12, 2013 Hi, i need something how to change it to a href. But thanks, I really appreciate your help Thanks. Link to comment Share on other sites More sharing options...
wondrik Posted June 12, 2013 Author Share Posted June 12, 2013 Maybe I should show what exactly I want to do, here is screenshot: Link to comment Share on other sites More sharing options...
hootersam Posted July 15, 2013 Share Posted July 15, 2013 It's rather simple. I just done this but in presta 1.4.10 I guess it will be same logic: <ul> <li>Sort by:</li> <li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=name&orderway=asc">Name ▲</a></li> <li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=name&orderway=desc">Name ▼</a></li> <li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=price&orderway=asc">Price ▲</a></li> <li><a href="{$request|escape:'htmlall':'UTF-8'}&orderby=price&orderway=desc">Price ▼</a></li> </ul> I use $request variable which returns actual url of category (it was there already used for standard sortking from list). Hope this helps. Link to comment Share on other sites More sharing options...
new in Posted September 12, 2016 Share Posted September 12, 2016 same problem Any advise ? 1 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