• Resolved Barth7

    (@barth7)


    Hello,
    first let me thank you for the great plugin!

    I tried to set DATE as the second sorting parameter as you suggested in your FAQ:

    add_filter( 'wc_extra_sorting_options_fallback', 'sv_change_sorting_fallback' );
    function sv_change_sorting_fallback( $fallback ) {
        return 'date';
    }

    and it’s working ok but unfortunatelly it is set to ascending, and I need it to show descending.
    Can you please let me know how can I make it set to DESC?

    Thanks for your time,
    Barth

    https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Beka Rice

    (@bekarice)

    Hey @barth7 you’re welcome, thanks for the great question. Changing the order for the fallback isn’t currently possible, but I’ll add a filter in and update the plugin.

    Currently traveling so this will take a few days, but I’ll update here once I push a new version + update that section of the FAQ.

    Plugin Author Beka Rice

    (@bekarice)

    Hey @barth7, version 2.2.2 is now out with the wc_extra_sorting_options_fallback_order filter to let you change this 🙂 I also now pass in the $orderby_value in case you want to only change fallbacks for particular sorting options.

    More details in the FAQ. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date – DESC as a second sorting parameter’ is closed to new replies.