A smooth products, customer and order generator using WP-CLI. Future versions will include scheduled auto generation functionality.
WooCommerce Smooth Generator requires Composer and WP-CLI to function.
composer install
and wait for the installation to completewp plugin activate wc-smooth-generator
to activate the pluginwp wc generate
command.Generate products based on the number of products paramater.
wp wc generate products <nr of products>
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
Generate customers based on the number of customers paramater.
wp wc generate customers <nr of customers>