In the "vendors" page, the default sorting is by name. Does anyone know how I can chance this so that by default is it by vendor rating?
Thanks
In the "vendors" page, the default sorting is by name. Does anyone know how I can chance this so that by default is it by vendor rating?
Thanks
app/controllers/frontend/companies.php
after
$params['get_description'] = 'Y';
add
if (empty($_REQUEST['sort_by']) && Registry::get('addons.discussion.status') == 'A') { $params['sort_by'] = 'rating'; $params['sort_order'] = 'desc'; }
(!) Not tested
Worked like a charm... Thank you eCom
You are welcome! :)
One further question. Among equally rated vendors, it sorts them by name (Z to A). How can I change this to A to Z?
It is not possible out of the box. Additional code changes are required