Support » Plugin: CiviCRM Member Sync » More than 2 states per membership type

  • Can the plugin be modified to allow more than two states per membership type?

    Ideally, I’d like the option of mapping each membership state to it’s own role, but failing that option, even having a third state would be helpful. Something along the lines of Current, Expired, Inactive would work.

    Another option that would be helpful would be to allow a default role (across all member types) that would be applied to a member that neither matches “Current” or “Expired” states. That way, if some one is “expired” they can be given the “Expired” role, but a member that has been cancelled or deceased gets the default role.

    Two states is a little too binary for our use case.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christian Wach

    (@needle)

    @prdufresne Thanks for the suggestion. What I’d recommend is that you use the civi_wp_member_sync_rules_applied action to “post-process” memberships for a user. You can then do your own mappings each time the rules are applied.

    Cheers, Christian

    Thread Starter prdufresne

    (@prdufresne)

    Thank you.

    I took a look at that option, and it would seem I would have to duplicate a great deal of rule_apply.

    I forked a copy in GitHub, and I’ll look at making some changes. First by adding a default role and then by changing the structure of association_role to allow 1-1 mappings of membership status to role. For this to work, however, there has to be a rule for every status or there has to be a default role to assign to statuses with no match.

    Plugin Author Christian Wach

    (@needle)

    it would seem I would have to duplicate a great deal of rule_apply.

    @prdufresne Yes, you’d have to do that.

    I look forward to seeing your work on this, but I have to add a caveat which is that existing users (and those migrating from Drupal) expect the plugin to function the way it does. With 500+ installs, a change of the magnitude that you’re proposing would have to be handled carefully.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘More than 2 states per membership type’ is closed to new replies.