crm_membership_commerce
No security coverage
Description
The CRM Membership Commerce module provides Drupal Commerce integration for the CRM Membership module. It automatically creates or renews CRM memberships when membership products are purchased through a Commerce checkout flow.
Features
- Automatic membership creation: When a customer purchases a membership product, a CRM membership is automatically created and activated.
- Automatic renewal: If the customer already has an active or expired membership of the same type, it is renewed instead of creating a duplicate.
- Flexible product setup: Any Commerce product variation bundle can be used to sell memberships — the module automatically detects entity reference fields pointing to CRM Membership Types. No hardcoded field names or bundle types required.
- Target contact override: The target contact (e.g. the organization a member joins) can be overridden per product variation, with a fallback to the membership type's default.
- Default Commerce configuration: Ships with a preconfigured membership product variation type, order item type, and order type to get started quickly.
Installation
Install the CRM Membership Commerce module as you would normally install a contributed Drupal module. Visit Installing Drupal Modules for further information.
Configuration & Usage
- Create a CRM Membership Type at Administration > Structure > CRM > Membership Types. Configure the membership term plugin (e.g. rolling duration of 1 year) and set a default target contact (the organization that members join).
- Set up a product variation: The module ships with a "membership" product variation type that has the required fields preconfigured, but you can use any variation type. The key requirement is an entity reference field targeting
crm_membership_type. Optionally, add an entity reference field targetingcrm_contactto allow overriding the target contact per product. - Create a Commerce product using the membership variation type and select the desired CRM Membership Type on the variation.
- Checkout: When a customer completes checkout and the order is placed, the module automatically creates or renews a CRM membership for the order customer based on the purchased product variation.