Hi,
I tried to create a membership website which offering several levels of memberships.
For example:
- 24 hours membership, only valid for 24 hours.
- 7 days membership, only valid for 7 days.
- 1 month membership, only valid for a month.
- 6 months membership, only valid for 6 months.
- 1 year membership, only valid for a year.
For information, I do not allow anonymous transaction, so every buyer has to create an account to make a transaction.
Here are what I have done:
1. Created 5 new roles for each memberships.
2. Created 5 products for each memberships and associated the above roles with them. I also set up the expired date.
3. So far, everything is working perfectly. But there is problem when someone has already bought a membership (e.g. 1 month membership) and would like to upgrade it to the higher level (e.g. 6 months membership). Since the first role has not been expired, if he/she purchases a new one, there will be multiple roles assigned to the same user. I do not want it like that.
4. To handle the above problem, I then created several workflow-ng configurations. For every completed transaction, I checked if there is any existed roles for that user (of course I excluded "authenticated user" role). If there is, I remove it. So far so good, but then I realized a trouble. The workflow-ng only removes the role, but not the expired date of that role! How can I remove the role as well as its expired date using workflow-ng?




Joined: 02/14/2008