Skip to content
Smooth product, customer and order generation for WooCommerce
PHP
Branch: master
Clone or download

Latest commit

rodrigoprimo Merge pull request #35 from jrfnl/feature/update-phpcs-dependencies
PHPCS/Composer: update PHPCS related dependencies
Latest commit 6c18466 Dec 18, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
includes
.editorconfig Framework May 17, 2018
.gitignore
README.md
composer.json PHPCS/Composer: update PHPCS related dependencies Dec 8, 2019
composer.lock
phpcs.xml.dist
wc-smooth-generator.php Use full file path to include vendor/autoload.php Oct 2, 2018

README.md

WooCommerce Smooth Generator

A smooth products, customer and order generator using WP-CLI. Future versions will include scheduled auto generation functionality.

Installation

WooCommerce Smooth Generator requires Composer and WP-CLI to function.

  1. Clone this repository into your site's plugins folder
  2. From command line CD into the cloned repository
  3. From command run composer install and wait for the installation to complete
  4. Run wp plugin activate wc-smooth-generator to activate the plugin
  5. You now have access to a couple of new WP-CLI commands under the main wp wc generate command.

Commands

Products

Generate products based on the number of products paramater.

  • wp wc generate products <nr of products>

Orders

Generate orders from existing products based on the number of orders paramater, customers will also be generated to mimic guest checkout.

Generate orders for the current date

  • wp wc generate orders <nr of orders>

Generate orders with random dates between --date-start and the current date.

  • wp wc generate orders <nr of orders> --date-start=2018-04-01

Generate orders with random dates between --date-start and --date-end.

  • wp wc generate orders <nr of orders> --date-start=2018-04-01 --date-end=2018-04-24

Customers

Generate customers based on the number of customers paramater.

  • wp wc generate customers <nr of customers>
You can’t perform that action at this time.