moltar:
Open the file /includes/index_filters/default_filter.php
Find the line that says (line 113 in default 1.3.7):
$listing_sql .= ' order by ';
>
> Replace with:
>
> ```php
$listing_sql .= ' order by p.products_date_added DESC,';
Go to Configuration -> Product Listing -> Display Product Listing Default Sort Order. Set this to anything valid, like "2a" for example. This isn't going to do anything, just activates the part of the code in default_filter.php file that does the sorting.
:blink:
I tried this and it didn't do anything at all. Can you help me figure out why? I have the right line and everything.
I have the "all products" sorted by date, but I want each of the categories to display that way as well and right now they are sorting by name.
Thanks!