Skip to content

Commit 451fd8e

Browse files
committed
Add docs for the coupons command to the readme
Also fix a repeated typo in the word "parameter".
1 parent 2bec9cb commit 451fd8e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 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>`
@@ -35,7 +35,18 @@ Generate orders with a specific status.
3535

3636
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/).
3737

38+
### Coupons
39+
40+
Generate coupons based on the number of coupons parameter.
41+
- `wp wc generate coupons <nr of coupons>`
42+
43+
Generate coupons with a minimum discount amount.
44+
- `wp wc generate coupons <nr of coupons> --min=5`
45+
46+
Generate coupons with a maximum discount amount.
47+
- `wp wc generate coupons <nr of coupons> --max=50`
48+
3849
### Customers
3950

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

0 commit comments

Comments
 (0)