Viewing 5 posts - 1 through 5 (of 5 total)
  • #251904
    goodtimesmag
    Member
    Post count: 191

    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 );

    #251909
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Please search Google for this or contact WooCommerce support as it’s not specific to the theme

    – Kyle

    #251912
    goodtimesmag
    Member
    Post count: 191

    But that’s the code I found for this issue in your forum and google. So I am bit helpless why it doesn’t work!

    #251914
    goodtimesmag
    Member
    Post count: 191

    No it works, I don’t know what the problem was. Anyway, thanks for your support!

    #251915
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    How old is the post? It may be outdated

    – Kyle

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

You must be logged in to reply to this topic.