Add a "Random" Product Sorting Order to WooCommerce with working 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.
/wp-content/plugins/paginated-random-products
directory, or install the plugin through the WordPress plugins screen directly.No. There are no settings in v0.9.1 of the plugin. Activate adds the option. Deactivate removes it.
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.
You can try emailing me at [email protected]. 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.