Closed louwie17 closed 2 years ago
@louwie17 Thanks for the PR. Could you add a change log entry to your PR description? There is also a merge conflict that needs to be addressed.
@louwie17 Thanks for the PR. Could you add a change log entry to your PR description? There is also a merge conflict that needs to be addressed.
Hi @rrennick, I added the change log entry and rebased the branch.
@louwie17 This tested great for me. I only had the two minor issues that need to be looked at. Once those are fixed I'll be able to merge this.
Thanks for the review @rrennick, great catch on both of those, I have pushed up those changes in this commit: https://github.com/woocommerce/wc-smooth-generator/pull/71/commits/1d497d44267f79b714d516b1c64e87906eec5389
Fixes #68
Description
Added a Coupon generator with a min and max option for the
int_random
function.I also added a
coupon
option to the order generator CLI command, which if set, it will auto generate a coupon for each order.Testing instructions
wp wc generate coupons 10 --min=10 --max=40
wp wc generate orders 10 --status=completed --coupons=true
wp action-scheduler run
Changelog entry