Extra Product Sorting Options for WooCommerce

Extra Product Sorting Options for WooCommerce

توسط

Extra Product Sorting Options for WooCommerce provides options that extend the default WooCommerce orderby options on the shop page. You can optionally set a new name for the default sorting (helpful if you’ve used this to create a custom sorting order), and can enable up to 5 new sorting options: alphabetical, reverse alphabetical, on sale, review count, and availability product sorting. You can also remove core sorting options, or remove the sorting dropdown completely.

Requires: PHP 7.4, WooCommerce 3.9+ and WordPress 5.6+

Features

Includes options to:

  • rename default product sorting (i.e., change to “Our Sorting”)
  • enable alphabetical product sorting
  • enable reverse alphabetical sorting
  • enable on sale sorting (note: works only for simple products)
  • enable sorting by inventory / availability
  • enable sorting by review count (most reviews to least)
  • remove core sorting options

Rename Default Sorting

You can customize your product sorting order on your shop pages – here’s a handy tutorial to do so. However, many shop admins like to then rename this from “Default Sorting” to something more descriptive, such as “Our Sorting” or “Our Selection”. You can optionally enter a new name for this sorting order if desired.

Adding Sorting Options

When you create a customized sorting order, you lose the ability to sort products alphabetically. This plugin gives you the ability to add new sorting options to list products by title A to Z or in reverse order (Z to A).

Want to show items with the highest stock first? You can enable sorting by availability, which will enable sorting from high stock to low stock (See FAQ for more details). You can also sort by the number of product reviews.

You can add the option to sort items by sale status – there’s a sorting option to show “On Sale” items first in the shop catalog. Please note that only simple products can be sorted by sale status, and variable products will display mixed with non-sale products.

Remove Sorting Options

You can remove the core sorting options as well! If all sorting options have been removed, the sorting dropdown will become hidden on shop pages.

Translations

The plugin text domain is: woocommerce-extra-product-sorting-options

More Details

  1. Be sure you’re running WooCommerce 3.5+ and WordPress 4.4+ in your shop.
  2. Upload the entire woocommerce-extra-product-sorting-options folder to the /wp-content/plugins/ directory, or upload the .zip file with the plugin under Plugins > Add New > Upload
  3. Activate the plugin through the Plugins menu in WordPress
  4. Go to WooCommerce > Settings > Products > Display. The new settings are added after “Default Product Sorting”. If you enable more sorting options, you can set these as new defaults as well.
  5. View documentation on the product page for more help if needed.

سوالات متداول

Do I need to rename the default sorting?

Nope. You can use this plugin to simply add new sorting options to your shop pages. Any of the settings are entirely optional.

How do I set my new sorting option as the default?

When you check to enable these options, save your Product settings. You’ll now be able to select your new options as a default under the “Default Product Sorting” list.

Can I change the sorting label in the shop dropdown?

Yep! You can use the Say What plugin to change the text – for example, you could change the label that says “Sort by name: A to Z” to “Sort alphabetically”. See the screenshots for an example.

The text domain to use is woocommerce-extra-product-sorting-options.

Why doesn’t sorting by availability work?

Don’t worry, it does 🙂 It’s possible to sort by stock, but this will work for parent products rather than using the stock available at the variation level. You can set this under Product Data > Inventory by enabling “Manage stock”. Set the available stock for all variations, and this will be used to sort the item. You can still manage stock at the variation level.

If you don’t manage your stock, you should disable this option – it will simply work as an alphabetical sort if all products are just “In Stock” without inventory managed.

Why can’t on-sale sorting work for variable products?

Simple products and variable products use two different “keys” to indicate if they’re on sale. As a result, we can’t order products using two different meta keys, so we’ve used the key that indicates a simple product’s sale price in this plugin.

We don’t anticipate changing this in the foreseeable future, as we’ve spent a couple hours trying to get the custom search query to work, but WooCommerce core adds search parameters that conflict with it, and we haven’t found a suitable work-around.

This is handy! Can I contribute?

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

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
2.11.0 32 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.6 /5 (31 نظر)

قیمت:

رایگان

نگارش

2.11.0

آخرین انتشار

11 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

10,000+

نگارش وردپرس

وردپرس 5.6+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه