WooCommerce Product Sorting

Now that you have moved the WooCommerce sorting options to the Customizer, it is not possible to easily remove sorting options. For example I want to remove Sort by Price. Before you could easily do that in the WooCommerce settings like this:

But now the remove option is not available in the customizer. Any idea how to remove certain options?

Hello There,

Thanks for writing in! This changed were made by WooCommerce. They have made several changes for the settings. And some settings were transferred in the customizer. By the way, the given url needs you to install the plugin: https://www.skyverge.com/product/woocommerce-remove-product-sorting/. This plugin will be in charge of removing any item from the selection.

The code added should be this:

function sv_custom_woocommerce_catalog_orderby( $sortby ) {
 $sortby['alphabetical'] = 'Sort by name: alphabetical';
 return $sortby;
 }
add_filter( 'woocommerce_get_catalog_ordering_args', 'sv_custom_woocommerce_catalog_orderby' );
add_filter( 'woocommerce_default_catalog_orderby_options', 'sv_custom_woocommerce_catalog_orderby' );
add_filter( 'woocommerce_catalog_orderby', 'sv_custom_woocommerce_catalog_orderby' );

This will alter and add Sort by name: alphabetical in the sort filter option.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.