Active
Project:
Membership Entity
Version:
7.x-1.0-alpha5
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2014 at 18:55 UTC
Updated:
8 Nov 2017 at 18:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Pilou7534 commentedComment #2
Channel Islander commentedHey Alan,
Too bad there was no response to your question!
In our system we have the Memberships available for sale through the Drupal commerce store. There is a Rule to activate the Membership that can be set to fire on payment, order completion, or whatever, and you can use Rules to control your store. You would need the Membership terms to be available as products in the store, but they could be priced at 0 and afaik you could use rules to automate a "purchase" upon user registration. All of that convoluted mess to get you to where you can use the one Membership Term Rule that is available.
All I can offer as I am a user not a developer of these modules.
Good luck
Comment #3
Rosamunda commentedI would like an example too! :)
Comment #4
Channel Islander commentedHi again,
I came back to this thread with a little more knowledge. Maybe it will help.
1) In the newest version of Membership Entity -dev branch, you can configure your User Account settings to make Membership creation a part of Registration. Sounds like what you need. No Rules needed.
2) You can still use Membership Entity Commerce to charge for the new Membership as it is created during Registration.
3) With Rules, and not depending on the -dev branch, I got as far as creating a Membership for the user. This Rule assumes that you have your Membership Type configured to use numeric [mid] and [member_id], and it uses the new account [uid] for those values. It also depends on the PHP filter module, which is in Core but disabled by default.
Note that this just creates a Membership for the user and without a Term the Membership isn't much use. It may not even be the right way to create a Membership in code.
When I added Actions to create and save a Membership Term for the Membership, I got a fatal error:
Fatal error: Call to undefined method MembershipEntityTerm::setmembership() in /sites/all/modules/contrib/entity/includes/entity.property.inc on line 437That's all I know :-)
Comment #5
Yuri commentedI used the 'create entity' > Membership rules action...but the membership is not created.
Just wondering if anyone has successfully used rules to create memberships and set its term.