Beeta Posted September 11, 2019 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?
wakabayashi Posted September 11, 2019 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
shoptechmedia Posted September 20, 2019 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.. 🙂
shoptechmedia Posted September 25, 2019 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
wakabayashi Posted May 13, 2020 Posted May 13, 2020 Whatever you mean by "popularity" (?), it wont be easy, I guess.
KolS Posted May 15, 2020 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?
datakick Posted May 15, 2020 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.
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