這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WooCommerce Random Product Sorting with Pagination

外掛說明

This plugin was built to add a “Random” Product Sorting Order to WooCommerce with working pagination.

Other solutions I found that added a “Random” Product Sorting Order did not preserve pagination.

This plugin will sort your WooCommerce Products in random order. A random sort has a transient life of one hour. (In version 0.9.1, the duration is not a settable option. It is fixed at one hour.) Every hour a new random sort is generated. Pagination works as expected, meaning each WooCommerce Product will be diplayed once and no more than once.

This plugin requires the WooCommerce plugin.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/paginated-random-products directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. You now have a “Random” option everywhere that your WooCommerce site allows you to set Product Sorting Order.

常見問題集

Are there any settings for this plugin?

No. There are no settings in v0.9.1 of the plugin. Activate adds the option. Deactivate removes it.

I am a WP Engine user and my products are not being randomly sorted. What’s wrong?

By default, WP Engine disallows ORDER BY RAND() due to performance concerns about careless use. This default setting causes the WooCommerce Random Product Sorting with Pagination plugin not to work. You can manually enable ORDER BY RAND() from the admin area of your WP Engine WordPress site. Go to WP Engine > General Settings > Advanced Configuration and set ‘Allow ORDER BY RAND()’ to ‘Enabled.’ The plugin should now work.

What can I do if I have problems or other questions?

You can try emailing me at william@trainedlizard.com. This is a free, use-at-your-own-risk plugin with no guarantee of support, but I am generally happy to answer questions or make tweaks if anyone needs that.

使用者評論

2021 年 7 月 23 日
This does exactly as it should do. Perfect solution for stores that have a ton of products and the hour cache aspect is amazing as well so we can serve cached rotations for high traffic sites. It appears it hasn't been maintained as it hasn't been tested for the latest version of Woocommerce. Hope this doesn't disappear as it's so helpful!
閱讀全部 12 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WooCommerce Random Product Sorting with Pagination〉的開發相關工作。

參與者

變更記錄

0.9.2

  • Added support for language translation
  • Added German translation file

0.9.1

  • Tested completed on latest versions of WordPress & WooCommerce
  • Fixed minor readme.txt typos

0.9.0

  • Initial submitted version