Home Forums Basel support forum Reverse ordering to woocommerce dropdown order options

Reverse ordering to woocommerce dropdown order options

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10180

    makis
    Participant

    I try to change the order of the sorting of the dropdown.

    I have changed the function.php of child theme to unset rating by this:

    // Modify the default WooCommerce orderby dropdown
    //
    // Options: menu_order, popularity, rating, date, price, price-desc
    function my_woocommerce_catalog_orderby( $orderby ) {
    unset($orderby[“rating”]);
    return $orderby;
    }
    add_filter( “woocommerce_catalog_orderby”, “my_woocommerce_catalog_orderby”, 20 );

    But i can’t reverse the order of the popularity and newness.

    Could you help me?
    Thanks a lot

    #10191

    Artem Temos
    Keymaster

    Hello,

    Sorry, but this functionality belongs to WooCommerce plugin and its code customization is out of our theme support scope. If it doesn’t work you can ask plugins developers for help.

    Kind Regards
    Xtemos

Viewing 2 posts - 1 through 2 (of 2 total)