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.
I attached a chart that shows the flow of a paid membership i developed for a page. The stuff inside the black boxes are the rules for assigning roles, managing subscription. I modified some rules. On the top is a commerce rule for paypal and bank checkout to auto assign rules.
in my case users get "userpoints" and a paid role.
i documented this for me because its pretty complex with so much rules. maybe it helps others to understand the flow.
i also have that graph as a visio file, if anyone needs it.
Comment | File | Size | Author |
---|---|---|---|
flowOfTimeMembership.jpg | 744.43 KB | marcoka |
Comments
Comment #1
batigol CreditAttribution: batigol commentedGreat! Thanks!
Comment #2
markusa CreditAttribution: markusa commentedIs this chart applicable for version dev-2.x? My impression after an initial exploration is that it seems to be the same.
Comment #3
Liliplanet CreditAttribution: Liliplanet commentedThank you Marco for your chart! Marco, what I don't see and confused about is where to add the roles please ..
Rule 1: Apply bought subscription time
When an order is first paid in full
... then apply bought subscription time
Rule 2. After updating an existing user account
Subscription started (update)
then in Components
... Element: order contains a certain product
... Action: add role
the above adds the subscription time, but not the role. Would most appreciate any guidance :)
Comment #4
likewhoa CreditAttribution: likewhoa commented