Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
wodenx CreditAttribution: wodenx commentedCreating 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.
Comment #2
tparc CreditAttribution: tparc commentedCould 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
Comment #3
kopeboy CreditAttribution: kopeboy commentedI 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