Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #667747

    Enfold is default sorting products from oldest to newest.

    Woocommerce settings are set to show newest first.

    How can I make it show via woocommerce setting?

    #667842

    Hi gerry3211!

    I just checked my installation and that is not happening.
    Are you refering to the Archives page of products?

    Best regards,
    Basilis

    #667859

    Hi Basilis,

    Correct, the product categories and archive – All are sorting according to Enfold ‘Default’ sorting.

    Is there a way to change the default sorting to show by ‘Date’ in Enfold filter?

    • This reply was modified 8 years, 3 months ago by gerry3211.
    #667915

    So here’s the problem and the fix.

    Not sure if it’s enfold related, or woocommerce etc…

    Woocommerce products were showing from oldest to newest.

    I added this to functions.php

    add_filter(‘woocommerce_get_catalog_ordering_args’, ‘am_woocommerce_catalog_orderby’);
    function am_woocommerce_catalog_orderby( $args ) {
    $args[‘meta_key’] = ‘_price’;
    $args[‘orderby’] = ‘meta_value_num’;
    $args[‘order’] = ‘desc’;
    return $args;
    }

    Problem solved.

    #668004

    Hey!

    Glad you figured it out and thank you for sharing your solution.

    Cheers!
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Default Sort Woocommerce by Latest Products’ is closed to new replies.