Hi!
Thanks for this great module.
I think these rules actions would be a nice addition :
*Unauthorize user to use a coupon
*Automatically create a coupon
If this can already be done, i would like to know how.

Comments

wodenx’s picture

Creating a coupon is already possible via uc_coupon_purchase - see "clone a coupon and assign to a user" action (2.x) or "assign a coupon to a user" (3.x)
Unauthorizing shouldn't be difficult - look at the 'uc_coupon_workflow_assign' action definition in uc_coupon_workflow.rules.inc.

tparc’s picture

Issue summary: View changes

Could one of the maintainers add a rule to the module to deauthorize a user from using a coupon? I can think of several situations where this would be useful.
Thanks

kopeboy’s picture

Version: 7.x-2.1-alpha7 » 7.x-3.0-alpha0
Category: Feature request » Support request
Priority: Normal » Major

I second this.

I can't find a way to deauthorize a user in rules.

If you say its already possible please explain a bit (i changed this to support request, but a major one).
I am using the extended workflow and the coupon purchase submodule, 7.x-3.0-alpha0+3-dev.

I want to apply a coupon after a user shares the product. I already implemented this, authorizing the user to use the coupon.
After the purchase is completed with the coupon, I want to deauthorize. I think this way is more convenient than bulk coupon codes cause it maintains automatically.

Thanks