Hi swiftideas team,
I wanted to delete the sorting option “by popularity”. I found the following code in the forum and pasted in the functions.php, but the sorting option is still there: http://goodtimesdeals.de/produkt-kategorie/snowboards-men/
// Options: menu_order, popularity, rating, date, price, price-desc
// In this code you are removing popularity & rating but you can remove any of the options
function my_woocommerce_catalog_orderby( $orderby ) {
unset($orderby[“popularity”]);
unset($orderby[“rating”]);
return $orderby;
}
add_filter( “woocommerce_catalog_orderby”, “my_woocommerce_catalog_orderby”, 20 );