Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #731472

    Hey guys,

    i am really confuse right now.
    I have tried to remove the Sort by price option, with

    // Edit WooCommerce dropdown menu item of shop page//
    // Options: menu_order, popularity, rating, date, price, price-desc
     
    function rsd_catalog_orderby( $orderby ) {
        unset($orderby["price"]);
        unset($orderby["price-desc"]);
        return $orderby;
    }
    add_filter( "woocommerce_catalog_orderby", "rsd_catalog_orderby", 20 );

    but it does not work.

    However, it works with Storefront Theme, so Enfold is not calling the filter?
    How can I get this working?
    Thanks in advance.

    Currently I have WooCommerce 2.6.11 isntalled.
    (Booster for Woocommerce 2.5.9 | Booster Plus 1.1.0 installed too)

    #732901

    Hey P3Systems,

    Please add this code in QUick CSS (located in Enfold > General Styling):

    .product-sorting .sort-param-order ul > li:nth-child(3) {
        display: none;
    }

    Let us know if this helps.

    Best regards,
    Nikko

    #1049265

    I tried to remove some of the sorting options, but the above codebase does not work.

    #1049434

    Hi,

    You have to modify the config-woocommerce > config.php file, look for the “avia_woocommerce_frontend_search_params” function around line 1316. You will be able to disable the sorting options there. Or use the suggested css code above.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.