Downloads
WARNING !
This module is abandoned: Support for granting roles will be covered in the 1.0-alpha8 release by the new uc_roles module.
WARNING !
This module permits to grant a role to a user on product purchase. A new 'role' tab appears when you edit a product (eg: node/15/edit/role) and you can enter the role to grant on purchase.
If uc_expiry.module is enabled, and if you set an expiry to the product, then the role will be removed when the product expire. Note that once a user purchased an expirable product that gives a role, then the role setting for that product can't be changed.
The role is granted only when payment is accepted. So it means that for now you have to change the status of the order from 'Pending' to 'Processing' manually.
It seems that handling of order statuses is still in development in ubercart for now, so I'm not sure how to handle that in a better way. I mean:
- there is no need for 'Shipment pending' and 'Shipped' statuses for this kind of product
- it would be great to move the order status to 'post_payment' automatically when the payment confirmation is received from Paypal
Any feedback from the core ubercart team welcome 
The module hooks into uc_notify.module (admin/store/settings/notify/edit/role) to send mails:
- when a role is granted
- when a role is renewed before expiry
- when a role is going to expire soon (reminder)
- when a role is lost
That's it for now.
Remember that this is beta code... not in production for now... bla bla bla bla... use it at your own risk... bla bla bla bla....
CHANGE LIST
5.x-1.0-alpha3
- Fixed role status theming
- Correctly clear cache on role addition/removal
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_role-5.x-1.0-alpha3.tar.gz | 6.15 KB |
