| 开发者 | aslamdoctor |
|---|---|
| 更新时间 | 2026年10月29日 15:24 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-3.0-or-later |
| 版权网址: | 版权信息 |
Go to Admin → Rearrange Products and drag and drop products into your preferred order. To sort by category, open the “Sort by Categories” tab.
Yes. You can override the default sorting of products added via shortcodes such as:
[product_category category=”my-category-slug”]
To enable this:
Yes. Go to Admin → Rearrange Products → Settings and turn on "Show out-of-stock products last" under Stock-Aware Auto Push. Out-of-stock products then appear after in-stock ones on the shop page, category pages and shortcodes. Your saved order isn't changed, so a product goes back to its place as soon as it's restocked. You can push backorder products too, and each category can follow the global setting or override it from the Sort by Categories page. If a shopper picks a sort such as price or popularity from the WooCommerce dropdown, that sort is used as is.
The Pro version adds four features:
Absolutely! The free version includes drag-and-drop sorting for all products and categories. You can upgrade to Pro at any time to unlock Smart Sort, Presets, Import/Export and Scheduled Sorting.
No. Your manually arranged product order (global and category-specific) is preserved. However, Pro features like presets and Smart Sort will no longer be accessible until you upgrade again.
Yes. The Import/Export feature (Pro) exports your product arrangements as a JSON file. When importing on a different site, products are matched by SKU, so your arrangements transfer even if product IDs differ between sites.
Scheduled sorting (Pro) applies on the shop page, category pages, and the shortcode and page builder loops this plugin already controls. A schedule for all products also applies to category pages, unless that category has its own schedule. It does not change the stored product order, so a few places that read the stored order directly keep your regular order while a schedule is live:
[products] shortcode used without a category.rwpp_schedule_started and rwpp_schedule_ended, which fire when a schedule starts and ends. These are best effort, so a cache may still need a manual purge.
Schedules do not depend on scheduled tasks to switch the order. The switch is based on the current time, so it happens on time even on a quiet site. The start and end tasks run through WooCommerce's scheduled actions (visible under WooCommerce > Status > Scheduled Actions). These tasks fire the start and end hooks and run the "keep" end action. They need site traffic or a server cron to run, so on a low-traffic site they can run a little late. Shortcode results switch on time on their own, since their cache key changes with the schedule.
Database::get_sort_order() now correctly distinguishes between "no entry" (null) and "sort_order = 0" (first position)Database::get_sort_order() now correctly distinguishes between "no entry" (null) and "sort_order = 0" (first position)Database.php — create_table(), migrate_data(), and individual migration methods now properly detect and report failuresrwpp_sortorder_{id} postmeta data if the custom table is emptywp_rwpp_product_order for centralized sort order storage