Hi!
Your module is very good and easy to use! I'd like to know if there's the possibility to let use coupon codes only for specified drupal roles, I use drupal commerce as b2b platform and I'd like that coupon codes could be used only by a specific role.

Thanks!

Comments

tfranz’s picture

Hello, i have the same feature request – did you find a solution?
Thanks!

smurfxx’s picture

No, didn't find a solution from June 30

andre4s_y’s picture

I have created the similar feature on my last project.
The difference: the conditions is applied to order discount, not applied to coupon.

I can provide the feature if what you mean is limiting usage to specific roles for order discount conditions.

andrew_rs’s picture

andre4s_y,

I'd be interested in see how you implemented this.

andre4s_y’s picture

Hi andrew_rs,

Check this patch file, which add new module: commerce_discount_user.
This patch will provide 2 order discount conditions: user email and user role.

Still a lot of todos, for example: check inline condition and:/or:
But, the main purpose is working (for me): limit order discount to specific order mail and/or user role.
:)

firewaller’s picture

Attached is my recent patch to the commerce_coupon_user module which adds a checkbox list of roles field (commerce_coupon_roles) to each coupon as a field, based almost entirely off the commerce_coupon_recipient user field.

firewaller’s picture

StatusFileSize
new3.34 KB

Misnamed the last patch file.

firewaller’s picture

Status: Active » Needs review