i Tried now what you suggested, but i had to change the code to that, that the $parameter are as the other column_list. do not know why..?
Code: Select all
class hook_shop_filter_sortableProductColumns{
public function listen_filterStart($parameters) {
$parameters['column_list'][] = "PRODUCT_LIST_BESTSELLER";
$parameters['column_orderings']['PRODUCT_LIST_BESTSELLER'] = "ORDER BY test";
}
}Code: Select all
$default_column = 'PRODUCT_LIST_BESTSELLER';
require 'includes/system/segments/sortable_product_columns.php';do you have a idea how to fix that, without hardcoding?
thank you!