How to Rename or Add WooCommerce Product Sorting Options

…ng_name( $catalog_orderby ) { $catalog_orderby = str_replace(“Default sorting“, “Our sorting“, $catalog_orderby); return $catalog_orderby; } add_filter( ‘woocommerce_catalog_orderby’, ‘skyverge_change_default_sorting_name’ ); add_filter( ‘woocommerce_default_catalog_orderby_options’, ‘skyverge_change_default_sorting_name’ ); So what exactly is this bit of code doing? Well, the first part is creating a function that does our str…

Read More

Ask SkyVerge

How to Remove the WooCommerce Default Sorting Option

…it from the dropdown so that customers can no longer select “Default Sorting” as a sorting option. /** * Removes “Default Sorting” from the shop template */ function skyverge_remove_default_sorting_option( $catalog_orderby_options ) { unset( $catalog_orderby_options[‘menu_order’] ); return $catalog_orderby_options; } add_filter( ‘woocommerce_catalog_orderby’, ‘skyverge_remove_default_sorting_option’ ); Now this will not be di…

Read More

WooCommerce Extra Product Sorting Options

…loss of your alphabetical sorting, this plugin gives you an option to add a new alphabetical sorting option to list products by title, as well as a reverse alphabetical (Z to A) sorting option. Sorting to show on sale products first, show featured items first, or sort by available inventory are also included….

Read More

WooCommerce Remove Product Sorting

…options from the shop loop and admin. Want remove the default WooCommerce sorting option? You got it. Remove sorting by sales? Yep, can do that. Please note that if you use the Avada theme, this plugin will not work. This theme incorrectly hardcodes WooCommerce sorting options, rather than allowing them to be changed by plugins, so our plugin cannot work until this theme fixes its sorting option handling. Using this plugin When the plugin is inst…

Read More

Sort WooCommerce Products by Custom Fields or Post Meta

…this screenshot so you can see it in action. Here’s my alphabetical sorting by location: And here’s my numerical sorting by points earned for purchasing: Pretty beautiful, huh? A Potential Hiccup You may notice that my examples above only include products that have these custom fields set. If these custom fields are not available, they won’t be included in the sorting options. I like to keep it this way for stuff like “loc…

Read More

Ask SkyVerge

How to remove WooCommerce product sorting

…g dropdown? If you’d like to remove some of the built-in WooCommerce sorting options, our WooCommerce Remove Product Sorting can easily do it for you. However, this isn’t the best option if you want to remove the entire sorting dropdown. Fortunately this is pretty easy to do as well. If you’ve never added a code snippet to your site, check out our tutorial on how to do so, and we can snip this sorting dropdown right out of the sh…

Read More

WooCommerce reviews + tutorials

Add Plugin Settings to WooCommerce, Part 1

…plugin in this example, as it adds settings right in after the WooCommerce sorting options setting.   Product Settings Updated Settings The basic idea is to have 3 arrays: the original settings, your new settings, and an “updated” settings array that you’ll build and return to WooCommerce. Create a blank updated settings array. We’ll use this to add the existing settings into, then merge our new settings in. Create you…

Read More

WooCommerce reviews + tutorials

Building Your First WooCommerce Extension

…Return to Shop Button URL Remove the “Default sorting” Product Sorting Option Further Reading Never built any plugin? Start with the WordPress.org Writing a plugin guide. We’ve also got guides that show you how to create a main plugin file and how to create a plugin skeleton Bryce Adams has a great overview of how to use WordPress Hooks Here’s an overview of what filters and actions are from Tuts+ Want to look at a super-si…

Read More

New year

New Year, New Goals: Happy 2015 & our Year in Review

…3 free plugins (and open-sourced one): Product SKU Generator Extra Product Sorting Options Remove Product Sorting Options We’ve written 2 more extensions that are being audited for release and we also have 2 more in development — they’re just about at the alpha stage (one is a massive project we’re really excited for 🙂 ). We co-located the majority of our team for part of the year to test whether we wanted to have a headqua…

Read More