Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1248482

    Hi team
    I tested lots of code who normally have to work but unfortunatly no one are working.
    I’m quite sure it’s due to Enfold.
    My goal is to hide some entries i tested that for example :
    // Edit WooCommerce dropdown menu item of shop page//
    // Options: menu_order, popularity, rating, date, price, price-desc
    function my_woocommerce_catalog_orderby( $orderby ) {
    unset($orderby[“popularity”]);
    unset($orderby[“date”]);
    return $orderby;
    }
    add_filter( “woocommerce_catalog_orderby”, “my_woocommerce_catalog_orderby”, 20 );

    Any idea?

    #1248483
    #1248541

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide some 'sort by' entries on drop down menu shop page (woocommerce)’ is closed to new replies.