Hi David,
Was wondering if it's possible to have 'category pages' and 'search queries' sorted by "product rating" as default, rather than "Relevance".
Thanks,
NEil
Yes, works perrfectly and looks great! Thanks again David.
Hi David,
Just noticed that when I'm using search external the results are still sorted by relevance. Is there any way to have this apply to search external results too.
ALso, with search external results, is there any way to control how much of the TITLE displays. For example, have a maximum of 30 characters of the TITLE displayed. I'd like to do this as some pages where I'm using search external look too busy when I have products with long titles.
Thanks,
Neil
Hi Neil,
Sure - at the top of search.php look for the following code:
$sort = (isset($_GET["sort"])?$_GET["sort"]:"relevance");
...and REPLACE with:
$parts = explode(":",$q);
if (($parts[0]=="merchant") || ($parts[0]=="brand"))
{
$sortDefault = "relevance";
}
else
{
$sortDefault = "rating";
}
$sort = (isset($_GET["sort"])?$_GET["sort"]:$sortDefault);
Cheers,
David.