Plugin Contributor
Kento
(@proaktion)
Hi,
Thanks for asking!
At current, this is not possible as you will either have to specify existing coupon codes explicitly or, as you have outlined in the example, use the * wildcard to iterate over all.
But … if it supported a rand value for the order attribute and an additional limit attribute, then that would be possible. With that, we could do something like:
[coupon_enumerate code="*" order="rand" "limit="1" type="percent"]
...
[/coupon_enumerate]
The above is not possible in the current latest version (1.6.2) but let me check if it’s easy to implement and we’ll issue an update.
Cheers
-
This reply was modified 7 years, 9 months ago by
Kento. Reason: fixed shortcode example
Plugin Contributor
Kento
(@proaktion)
Added support for this (randomized) in version 1.7.0 with the shortcode [coupon_enumeration] – example:
[coupon_enumerate code="*" orderby="rand" number="3"]
[coupon_show show="code,description,discount"]
[/coupon_enumerate]