In this tutorial, we create a membership plan that will have a 'fixed expiration date', meaning it will expire on a certain date, regardless of when it was created.

  • Create a Membership Plan, called 'Trial Membership'.The important thing here is to make sure that the plan is non-recurring, since recurring plans don't make much sense for a fixed-expiration date scenario. It doesn't matter what we set for the expiration date, since this will be changed later by the rule we make. I am setting it to not expire.
  • Create a rule. If you don't have Rules installed, go get it and install it: http://drupal.org/project/rules

    The rule event we will want to act on is the "Membership Signup" event. This rule will have one purpose: Set the expiration date to December 31st. This translates into a Rule Action provided by Membership Suite.

    The only thing we need to change is the Date, making it be the date we want the expiration to be.

    We also want to make sure that this rule only applies when the user purchases the Trial Membership. So we need to add a condition. Add the "Membership Plan is equal to " condition.

    Just make sure that "Trial Membership" is selected for the Plan Name.

    Now we can save our Rule, and we are good to go!

  • Test the process to make sure it works. Go to user/register in a different browser, and try to register with the Trial Plan.
  • Now when you are logged in, go to My Account, then click the Membership tab. You should see the membership there with the expiration date set to Dec 31st.