Site logo

Archived topic

Woocommerce product catalog - extra default sorting options?

5 replies · Started by Janine on September 16, 2021

Viewing posts 1–6 of 6

In Customise > Woocommerce > Product Catalog > default sorting options, none of the options really suit.
Is there a way to sort by a custom field instead?

I have code to add extra options to the woocommerce sort dropdown which uses the following:

$args['orderby'] 	= 'meta_value_num';
 $args['order'] 		= 'DESC';
 $args['meta_key'] 	= '_my_custom_field';

Is it possible to use a hook or filter to use my custom field as the default ordering though?

Thanks

Hi Janine,

The options in Customizer > WooCommerce are actually coming from WooCommerce plugin itself.

The theme itself does not control the sorting options at all so this is something you will need to check with WooCommerce' support team

Thanks for your understanding.

Glad to hear :)

Hi thanks. Removing the snippets just replaces the tabs at the bottom (Description / Additional Information) which I'm trying to remove. I'm trying to keep the text of Description without the tab.

The layout I'm trying to get:

[ IMAGE ] [ DESCRIPTION ]
then at the bottom:
[ PRICE ] [ ADD TO CART ]

If that helps?

Wrong post maybe? This isn't your topic is already marked as resolved.

This archived topic is closed to new replies.