Hi, first up let me say: great module. Both it and AccountTypes seem to work well together.

My question is: how can a user change their membership type? I can see how an Admin can change them (in User Management), but I can't see how a user could do it (short of sending the Admin an email).

Use Case:
A site has two membership types (in addition to a few account types, and a bunch of roles): Standard and Premium. A user may belong to either membership type but Premium collects more information during the registration process (credit card details perhaps). It should be possible for a Standard user to "upgrade" their registration to Premium (and then be required to supply any missing information) and it should be possible for a Premium user to "downgrade" their registration.

Naturally, it would be pain for users to email the Admin whenever they wanted to change their membership type, in fact it would probably put some people off.

I was thinking that a block that called nf_registration_mod_multiple_membership_change() would do the trick, what are your thoughts?

Comments

rconstantine’s picture

If this were to be added by me, it would be quite a while (months) before I get to it. I have a full schedule leading up to the end of the year.

However, I think that this is precisely the sort of thing that would do well as a separate module, or add-on to another module you might be using. My thinking is this: if you want to collect money for a premium account, you would presumably have some kind of e-commerce module to do the credit card stuff including collecting the card data. I also would see the selection of the membership type as selecting a product, which would also be a part of that e-commerce module. When the purchase or downgrade transaction in completed in the e-commerce module, all you would need for the real membership type to change would be to supply your own submit handler for the e-commerce module which mimics the code from my module to change it.

This is similar to how this module sets the account type.

kmv’s picture

Perhaps I shouldn't have mentioned credit card details, forget the e-commerce aspect of the use case. I'm sorry if you thought I was asking for you some big e-commerce module integration effort - that wasn't my intention.

What I was trying to get was your view on weather or not calling 'nf_registration_mod_multiple_membership_change()' from a custom block or page was a good idea, given that all I am looking for is a simple way of enabling users to change their membership type (within pre-set limits as defined by the block or page they are accessing).

rconstantine’s picture

Oh, I see. Well, I think I covered all provisions for changing a mem type, didn't I? I take it you've been looking at the code. I'd say, it should work okay. Make sure that's what I call from the user edit screen, and if so, go for it. If you do, please let us know how it worked out for you.

rconstantine’s picture

Status: Active » Closed (fixed)

I believe you moved ahead and don't need assistance anymore.