Home Forums Basel support forum Add New Order By Options to Shop Dropdown

Add New Order By Options to Shop Dropdown

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

    laneo2016
    Participant

    I’m trying to add some additional order by filters on the shop pages. I’ve been looking through the code but can’t seem to find where to find the right files and functions. I found the function ‘class ROOOST_Widget_Sorting extends WPH_Widget’ where I can see the the woocommerce_catalog_order_by ;

    $catalog_orderby_options = apply_filters( ‘woocommerce_catalog_orderby’, array(
    ‘menu_order’ => esc_html__( ‘Default’, ‘rooost’ ),
    ‘popularity’ => esc_html__( ‘Popularity’, ‘rooost’ ),
    ‘rating’ => esc_html__( ‘Average rating’, ‘rooost’ ),
    ‘date’ => esc_html__( ‘Newness’, ‘rooost’ ),
    ‘price’ => esc_html__( ‘Price: low to high’, ‘rooost’ ),
    ‘price-desc’ => esc_html__( ‘Price: high to low’, ‘rooost’ )
    ) );

    However when I add new filters it isn’t being reflected on the site – please can you point me towards the right files/functions to implement the changes.

    Thanks

    #146997

    laneo2016
    Participant

    Apologies the image didn’t attach – now attached.

    Attachments:
    You must be logged in to view attached files.
    #147007

    Hello,

    You will have to find a plugin or customize Woocommerce, our theme support does not cover such issues.

    Best Regards

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