Beeta Posted September 11, 2019 Share Posted September 11, 2019 Hello, is it possible to sort search results (or products list on category/products lists) by more/less recent products? I think this is a "must-have" sorting option, don't you? Link to comment Share on other sites More sharing options...
wakabayashi Posted September 11, 2019 Share Posted September 11, 2019 Haha very funny, that yesterday I tried this 😂 Search in your theme for product-sort.tpl and add: <option value="date_add:desc"{if $orderby eq 'date_add' AND $orderway eq 'desc'} selected="selected"{/if}>{l s='Newest first'}</option> Please respond, if this works out well for you. 1 1 Link to comment Share on other sites More sharing options...
shoptechmedia Posted September 20, 2019 Share Posted September 20, 2019 On 9/11/2019 at 7:49 PM, wakabayashi said: Haha very funny, that yesterday I tried this 😂 Search in your theme for product-sort.tpl and add: <option value="date_add:desc"{if $orderby eq 'date_add' AND $orderway eq 'desc'} selected="selected"{/if}>{l s='Newest first'}</option> Please respond, if this works out well for you. Thank you so much for sharing.. 🙂 Link to comment Share on other sites More sharing options...
wakabayashi Posted September 25, 2019 Share Posted September 25, 2019 @shoptechmedia does it work for you? Link to comment Share on other sites More sharing options...
shoptechmedia Posted September 25, 2019 Share Posted September 25, 2019 yes.. we use similar line in our old tb and ps websites..per client request.. shame, that code should have been included in the core of ps 1.6 and tb 1.0.x .. 🙂 anyway, tb 1.1.x now uses layernavi, which I believe is an excellent move by tb for 1.1.x.. overall, the code is still useful for websites that uses ps 1.6 and tb 1.0.x Link to comment Share on other sites More sharing options...
KolS Posted May 13, 2020 Share Posted May 13, 2020 Hey guys, how we can add sort by "popularity"? Link to comment Share on other sites More sharing options...
wakabayashi Posted May 13, 2020 Share Posted May 13, 2020 Whatever you mean by "popularity" (?), it wont be easy, I guess. Link to comment Share on other sites More sharing options...
KolS Posted May 15, 2020 Share Posted May 15, 2020 On 5/14/2020 at 12:12 AM, wakabayashi said: Whatever you mean by "popularity" (?), it wont be easy, I guess. Like sort by total number of sales or sort by review ratings. Can't be done? Link to comment Share on other sites More sharing options...
datakick Posted May 15, 2020 Share Posted May 15, 2020 11 minutes ago, KolS said: Like sort by total number of sales or sort by review ratings. Can't be done? Everything can be done. This particular thing is quite hard, though. The code that handles product list sorting is very old, hardcoded, and distributed all over the codebase. Which makes it a nightmare to override. 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