***CORRECTED***
Hi,
Here it is:
1.- Add this at the very bottom of your theme functions.php:
Notes:
a.- Take care not to leave blank lines after this.
b.- If your theme functions.php doesn't end with ?> skip first line of my code.
<?php
function cust_all_premiums_ontop() {
$mSearch = Search::newInstance();
$query_elements = (array) json_decode($mSearch->toJson());
$mSearch->order("b_premium desc, " . $query_elements['order_column'], $query_elements['order_direction']);
}
osc_add_hook('search_conditions', 'cust_all_premiums_ontop');
?>
2.- To disable the normal block of premiums on the top of every search page, just comment this line in bender/search.php:
// osc_get_premiums();
Regards