Skip to content

Commit 722b291

Browse files
authored
Merge pull request #111 from woocommerce/add/coupon-readme
Add docs for the coupons command to the readme
2 parents b49fe8e + 177bcc9 commit 722b291

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ WooCommerce Smooth Generator requires Composer and WP-CLI to function.
1414

1515
### Products
1616

17-
Generate products based on the number of products paramater.
17+
Generate products based on the number of products parameter.
1818
- `wp wc generate products <nr of products>`
1919

2020
### Orders
2121

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

2424
Generate orders for the current date
2525
- `wp wc generate orders <nr of orders>`
@@ -33,9 +33,18 @@ Generate orders with random dates between `--date-start` and `--date-end`.
3333
Generate orders with a specific status.
3434
- `wp wc generate orders <nr of orders> --status=completed`
3535

36-
You may wish to disable emails if creating a large number of orders as this will trigger emails. To block all emails from your site, install a plugin like [Disable Emails](https://wordpress.org/plugins/disable-emails/).
36+
### Coupons
37+
38+
Generate coupons based on the number of coupons parameter.
39+
- `wp wc generate coupons <nr of coupons>`
40+
41+
Generate coupons with a minimum discount amount.
42+
- `wp wc generate coupons <nr of coupons> --min=5`
43+
44+
Generate coupons with a maximum discount amount.
45+
- `wp wc generate coupons <nr of coupons> --max=50`
3746

3847
### Customers
3948

40-
Generate customers based on the number of customers paramater.
49+
Generate customers based on the number of customers parameter.
4150
- `wp wc generate customers <nr of customers>`

0 commit comments

Comments
 (0)