This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago ago by Rose Tyler
Hi Guys,
I need to hide rating from the filter dropdown, it’s disabled everywhere else, see screen. How is this done?
Hello,
I would recommend you to contact woocommerce support or use an additional plugin to edit options of WooCommerce Product Sorting.
Regards
here’s how it’s done, add this to the functions.php in the child theme:
function modus_woocommerce_catalog_orderby( $orderby ) {
unset($orderby["rating"]);
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "modus_woocommerce_catalog_orderby", 20 );
Hello,
I am glad that you sorted out.
Regards
You must be logged in to reply to this topic.Log in/Sign up