How do hide rating from filters - by David Henry

This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago ago by Rose Tyler

  • Avatar: David Henry
    David Henry
    Participant
    September 21, 2018 at 17:09

    Hi Guys,

    I need to hide rating from the filter dropdown, it’s disabled everywhere else, see screen. How is this done?

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 24, 2018 at 07:07

    Hello,

    I would recommend you to contact woocommerce support or use an additional plugin to edit options of WooCommerce Product Sorting.

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 25, 2018 at 12:40

    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 );
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 25, 2018 at 12:47

    Hello,

    I am glad that you sorted out.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.