Closed (fixed)
Project:
Commerce Coupon (D7)
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2012 at 22:31 UTC
Updated:
26 Jul 2013 at 23:51 UTC
Is it possible to setup a coupon type to have a field where the user can select roles that can use that coupon? I don't see roles listed as an entity that can be referenced.
Thanks
Comments
Comment #1
pcambraI think you can do this with the Role reference module as roles are not entities whatsoever.
Comment #2
deggertsen commentedThank you. I will try that.
Comment #4
deggertsen commentedThis is not working at the moment because it appears that the Role reference module is not currently integrated with rules. I have created an issue for that module regarding this. #1617880: Rules Integration
Comment #5
wqmeng commentedHello.
Do you have succeeded to do this? Limit a coupon code only used by the user with a role?
I have tried add a role reference in a coupon type and data compare with the user's role with the coupon role reference, but it seems not work.
Do you work it out?
Thanks
Comment #6
citlacom commentedThe patch in http://drupal.org/node/1372398 resolve the problem.
Comment #8
deggertsen commented@wqmeng I have a rule for this now. You must have the role reference module with a role reference field on your coupon (I called it field_limit_to_roles). I have not really tested this yet, but here's the export: