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?
Hi gerry3211!
I just checked my installation and that is not happening.
Are you refering to the Archives page of products?
Best regards,
Basilis
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?
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.