Hi,
I'm importing users via csv and was wondering if there is a way to add subscriptions to users somehow.
I know I can do it manually one at a time.
Is there a way to import users via csv and add subscriptions?
Hi,
I'm importing users via csv and was wondering if there is a way to add subscriptions to users somehow.
I know I can do it manually one at a time.
Is there a way to import users via csv and add subscriptions?
+1 for this... could be an useful feature to have in MS MembershipSuite.
John,
Exactly, you could create a custom module to import the users in bulk (you should ideally have a unique email address for each user, not just a username). And instead of calling that MS function, I would only use the parts of it that you need. That function was an example of how to add a membership to a newly created user.
@Abilnet - I don't think that Bulk User creation is something that Membership Suite should handle. I could create some API calls that can be used to make this process easier, something like ms_membership_add_membership_to_user($uid, $membership_plan_id)
Sincerely,
Leighton Whiting
Thanks Leighton,
I'm not a coder, but I suppose User Import could be used to mass import and somehow Membership Suite then takes control of the imported users & roles?
Abilnet,
User Import is a good solution, and I would be willing to write an .inc file which utilizes their API to provide support for Adding Memberships to newly imported users.
Sincerely,
Leighton Whiting
Hi Leighton, that's great, appreciated!
@jon.cianciullo
Checkboxes to choose just some members manually on a block is fine... but what about having more numbers in the game? ...for example, I do have a client-base of more than 29.000 (yes, 29k) real people to offer a trial membership... too many checkboxes to tick, really wanting some automated solutions, please.
Once again, what a great support & attitude from Leighton, thanks so much, appreciated!
Sorry it cut off early, I had to go fix the [customerToken] to use the username by default if there is not order associated with the membership.
Glad you liked the video, it's my first shot at doing a screencast, so I was a bit nervous lol. I'll be doing a lot more of these though for tutorials and showcasing new features in the future.
The new version should be out either this Friday night or Monday. I am moving on Saturday, so I won't be as available this weekend as usual ;)
Sincerely,
Leighton Whiting
Forgot to mention, but Jon contacted me and I sent him the code needed for the Import Users since he needed it right away. I will be releasing Membership Suite 6.9 tonight (finally!) so this shouldn't be an issue anymore.
Sincerely,
Leighton Whiting

Jon,
Depending on the script you are using to import the users, you could utilize the Membership Suite API to add memberships to the users once they have been created. It really depends on how you are importing them, and if you are willing to write some code.
To get a look at how to add a membership to a user, you can look at the ms_membership_user_admin_form_submit() function in ms_membership.module.
Sincerely,
Leighton Whiting