Generate Random Orders For WooCommerce

Plugin Banner

Generate Random Orders For WooCommerce

by BerryPress

Download
Description

The “Generate Random Orders for WooCommerce” plugin allows store owners to generate random orders quickly, making it a valuable tool for testing and data population. You can set the number of orders to generate.

Once you generate the orders, you can easily view them in the WooCommerce admin panel. This plugin can save you a significant amount of time when testing your store’s ordering and payment processes or when populating your database with random data.

How it works?

This plugin runs a script to generate random orders and related data in this site’s WooCommerce database. You can specify how many orders you want to generate.

Order dates are set as follows:
– Order #1: midnight today
– Order #2: midnight yesterday
– Order #3: midnight one week ago
– Order #4: midnight 30 days ago
– Order #5+: random date and time between now and 365 days ago, with ~50% of orders between now and 30 days ago

  1. Order billing name and shipping name are each randomly selected from two possible names.
  2. >Order billing phone and shipping phone are randomly generated 10-digit numbers.
  3. Order user ID is either 1 or 2. The JSON assumes that the nickname of user 1 is user1, and the nickname of user 2 is user2 (this doesn’t matter if the JSON is not being used.
  4. Order billing address and shipping address are the same, randomly selected from two possible addresses, one Canadian and one US.
  5. Order billing email is exampleN@example.com, where N is a random number from 1 to 3.
  6. Each order has (randomly) 1 to 5 product items. The WooCommerce store must have both variable and simple products. Products are selected at random with a ~33% bias toward variable products and ~67% bias toward simple products. Each item has a random quantity between 1 and 5 (whole number).
  7. ~25% of orders are assigned local pickup. ~75% of orders are assigned flat rate shipping. The shipping in the WooCommerce store must be set up with flat rate having instance ID 1 and local pickup having instance ID 2. Shipping amount is a random whole number between 5 and 20.
  8. ~33% of orders have coupon code 50OFF added. This coupon code must be configured in WooCommerce.
  9. Orders are randomly assigned statuses with the following approximate distribution: 14% pending, 29% processing, 57% completed. Some orders may have their status automatically changed to refunded due to the line item refund, if the refund results in the entire order being refunded.
  10. ~50% of orders have a custom meta field wpz_custom_meta_1, and ~50% of orders have a custom meta field wpz_custom_meta_2. The value of either field is a random 3 digit number.
  11. The JSON assumes that two taxes are set up: tax ID 1 is GST, tax ID 2 is PST. This doesn’t matter if the JSON is not being used.
  12. ~20% orders have line item refunds. Each refund has one product item, and the quantity refunded is 1; refund amounts correspond to quantity pro-rated line total and taxes. A corresponding amount of shipping is refunded (ignoring other items that may be on the order). Refunds are dated between 1 and 14 days from the order date, but not past the current time.

Addons & Integrations

Looking to automate your reports, share them on the frontend of your site, or export details about an individual sale for order fulfillment? Upgrade or become a member for access to these add-ons:

Plugins for BBPress:
Image Upload for bbPress Pro – premium version of the inline image upload plugin for bbPress
S3 Image Storage for bbPress – store bbPress image uploads on Amazon S3

You may also like these plugins

BerryPress has built a range of powerful plugins for WooCommerce and WordPress. Check out some of our favorites below – and don’t forget to leave a ⭐⭐⭐⭐⭐ review to help others in the community discover them!

  • Live Carts for WooCommerce – Free plugin to view and analyze live shopping carts in real time to understand user behavior and optimize conversions (Pro version also available). Integrates with Ninjalytics to add 4 specialized cart reporting templates.
  • Automatic Product Categories – Available as a free version and Pro. Automatically assign products to categories and tags, based on custom rules, saving you time and keeping your store organized.
  • Inline Image Upload for BBPress – Add a TinyMCE WYSIWYG editor to BBPress forums and enable inline image uploads, so users can easily attach and display images within their posts.
  • Advanced Order Editor for WooCommerce – Add editable Paid date, Completed date and Payment method fields in the WooCommerce order admin screen.
  • PhotoBerry Studio – provides a complete solution to enhance and streamline your photography workflow. With advanced tools for image organization, gallery management, and client proofing, it transforms the way you work.
  • LoginBerry – bundles account verification, two-factor authentication (2FA), passwordless login, and login logs. Each feature can be enabled or disabled independently. Outgoing codes are delivered by email.
  • Customer Address Change Notification for WooCommerce – Get instant notifications when customers update their shipping or billing address, helping you stay on top of changes and prevent delivery issues.

To view BerryPress’s premium WordPress plugins and themes, visit our WordPress products catalog page.

  1. Click “Plugins” > “Add New” in the WordPress admin menu.
  2. Search for “Generate Random Orders For WooCommerce”.
  3. Click “Install Now”.
  4. Click “Activate Plugin”.

Alternatively, you can manually upload the plugin to your wp-content/plugins directory.

Thanks

By Brksoft (brksoft) on April 27, 2025

Thanks for the plugin, it works perfect.

Great Plugin!!

By Jessica (leadstartorg) on March 23, 2025

The plugin's functionality works good but all the test/random orders are only in Seattle and Smithers, Canada. You will have to edit the create-test-orders.php file in the 'includes' folder to add more locations. Great job @WPZone!

Great Plugin

By David (loano1) on May 5, 2024

Great plugin, it allowed me to generate 40.000 dummy orders at one with no issue. Just worked perfectly.

1.0.1

May 15. 2026
– Update readme, assets
– Redesign
– Translatable strings
– Minor fixes

1.0.0

May 9. 2023

Initial release

Back to top