Removes core WooCommerce orderby options, such as the default product sorting
PHP JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/js
grunt/configs
i18n/languages
includes
wp-assets
.gitignore
Gruntfile.js
class-wc-remove-product-sorting.php
composer.json
composer.lock
package-lock.json
package.json
readme.md
readme.txt
woocommerce-remove-product-sorting.php

readme.md

WooCommerce Remove Product Sorting

Remove any core WooCommerce product sorting option from the shop template and admin.

Description

WooCommerce Remove Product Sorting Options lets you select which WooCommerce sorting options you'd like to remove from your shop, such as the "Sort by popularity" option.

Requires: WooCommerce 2.6.14+, Compatible with WooCommerce 3.4+

Features

Lets you remove one or more of the core WooCommerce sorting options.

Really, that's it :)

Troubleshooting

The only possible way this plugin doesn't work is if your theme overrides the default WooCommerce sorting dropdown. If you activate this and your sorting options are not removed, chances are your theme is trying to create a "fancy" dropdown instead of the default one, and it has hard-coded the default WooCommerce options.

Get in touch with your theme author, and ask them to properly generate the dropdown from the WooCommerce options rather than hard-coding them into the theme.

Want to add sorting options?

We've got a plugin for that, too. Check out the WooCommerce Extra Product Sorting Options plugin.

More Details

Installation

Important: Do not install a zip of this repo as a plugin! You must bundle dependencies with composer if you do so using $ composer install to complete the build.

  1. Be sure you're running WooCommerce 2.6.14+ in your shop.
  2. Download the plugin zip from SkyVerge.com (this also gives you a key for one-click updates)
  3. Upload the entire woocommerce-remove-product-sorting folder to the /wp-content/plugins/ directory, or upload the .zip file with the plugin under Plugins > Add New > Upload
  4. Activate the plugin through the Plugins menu in WordPress
  5. Go to Appearance > Customize > WooCommerce and click the "Product catalog" section. The new settings are added after "Default Product Sorting".
    • If you use an older version of WooCommerce, you'll see setting under WooCommerce > Settings > Products > Display
  6. Select which options to remove and save your settings.

Frequently Asked Questions

Will this permanently remove these options from my shop?

Only while the plugin is active or you have these sorting options selected under the settings. You can get them back by removing them from the "Remove Sorting Options" setting or disabling the plugin.

This is handy! Can I contribute?

Yes you can! Join in on our GitHub repository and submit a pull request :)

Screenshots

  1. Plugin Settings under WooCommerce > Settings > Products
  2. Sorting options on the shop page with some removed

Changelog

2018.06.05 - version 1.2.0

  • Tweak - Remove the sorting dropdown if all sorting options are removed
  • Misc - Require PHP 5.3
  • Misc - Require WooCommerce 2.6.14

2018.02.09 - version 1.1.1

  • Fix - PHP warnings for themes that don't support WooCommerce product column and row settings

2018.02.08 - version 1.1.0

  • Misc - Add support for WooCommerce 3.3

2014.09.18 - version 1.0.0

  • Initial Release