Modules

Membership Pro includes five Joomla modules. Three are site modules that you publish in a template position on the front end. Two are administrator modules that show data on the Joomla administrator dashboard.

Module Type Purpose
Membership Plans Site Lists subscription plans.
Membership Status Site Shows the logged-in user's active plans and expiry dates.
Membership Pro View Site Displays a Membership Pro view in a module position.
Membership Pro - Subscriptions Statistics Administrator Shows subscription and income statistics.
Membership Pro - Latest Subscription Administrator Lists the latest subscriptions.

To create a site module, go to Content -> Site Modules, click New, and select the module. For an administrator module, go to Content -> Administrator Modules.

All site modules also have a Module Class Suffix setting, which adds a CSS class suffix to the module for styling.

Membership Plans

Shows a list of subscription plans, in the same layouts as the plans list menu item. Create an instance of Membership Plans and publish it in a template position. The module has these settings:

  • Layout: how the plans are displayed. Options are Default Layout, Columns Layout, Pricing Table Layout, Pricing table circle layout and Pricing table flat layout. Default Default Layout.
  • Plan Ids: the IDs of the plans to display, separated by commas (for example 1,3,4). To display all plans in one category, enter cat- followed by the category ID (for example cat-4). Leave it empty to display all published plans.
  • Recommended Plan ID: the ID of the plan to highlight as recommended. It works only in the pricing table layouts.
  • Number Columns: the number of plans shown per row. It works only in the columns and pricing table layouts. If you leave it empty, the Number Columns value from the Membership Pro configuration is used.
  • Menu Item ID: the ID of the menu item used to build the links of the plans. Leave it empty to let Membership Pro choose a suitable menu item.

Membership Status

Shows the logged-in user the active subscriptions they have, one line per plan. Each line gives the plan title, the expiry date and the number of days left. For a lifetime subscription, it shows that the user has a lifetime subscription. If the user has no active subscription, the module shows the message "You don't have any active subscription". The module shows nothing to guests.

The module has no settings other than Module Class Suffix. To change the text of the messages, override the language keys OSM_MEMBERSHIP_STATUS_ACTIVE, OSM_MEMBERSHIP_STATUS_EXPIRED, OSM_MEMBERSHIP_STATUS_LIFETIME and OSM_NO_ACTIVE_SUBSCRIPTIONS with System -> Language Overrides. The messages can use the tags [PLAN_TITLE], [EXPIRED_DATE] and [NUMBER_DAYS].

Membership Pro View

Membership Pro normally shows its pages through menu items. This module shows one of those pages in a module position instead, for example the plans list in a sidebar or the subscription form on your home page. You can display any view that has a menu item type, such as Categories, Plans List, Subscription Form, User Profile, Members List, Subscription History, Renew Membership and Upgrade Membership.

  1. Create a menu item for the view you want to display and configure its options. If you do not want it in your site navigation, put it in a menu that is not shown on the site, or use a hidden menu item.
  2. Go to Content -> Site Modules, click New, and select Membership Pro View.
  3. In Menu Item, select the menu item you created. The list shows only the menu items of Membership Pro.
  4. Choose a position, set the menu assignment and publish the module.

The module renders the view using the options of the selected menu item. Apart from Menu Item, it has only the Module Class Suffix setting.

The module shows nothing if no menu item is selected, or if Membership Pro is not installed. Pagination links inside the module use the start and limitstart URL parameters.

Membership Pro - Subscriptions Statistics

This is an administrator module, published by default in the cpanel position, so it appears on the Joomla administrator dashboard (System -> Dashboard area). Create it under Content -> Administrator Modules if you want to move or republish it. It has no settings.

The module shows a table with the number of subscriptions and the income for each period:

  • Today, Yesterday
  • This week, Last week
  • This month, Average day (this month), Projection for this month
  • Last month, This year, Last year
  • Total subscriptions
  • Active subscriptions
  • Active subscribers (number only, without income)

Notes on the figures:

  • Periods are based on the date the subscription was created. They count subscriptions with the status Active or Expired.
  • Income is the sum of the gross amounts.
  • Total subscriptions also counts pending subscriptions paid by an offline payment method.
  • Active subscriptions counts subscriptions with the status Active. Active subscribers counts the distinct users who have at least one active subscription.
  • Subscriptions of group members (added by a group admin) are not counted, only the group admin's own subscription.
  • Projection for this month is the income so far this month, extrapolated to the end of the month.

Membership Pro - Latest Subscription

This is an administrator module, published by default in the cpanel position of the administrator dashboard. It lists the most recent subscriptions, newest first, with the columns First name, Last name (if the field is published), Plan, Start date, End date (or Lifetime), Created date, Gross amount, Subscription status and ID. It also shows the invoice number if invoices are enabled, and the membership ID if membership IDs are generated. The names link to the subscription, and the plan title links to the plan edit form. The module is hidden when there are no subscriptions.

It has one setting:

  • Number Subscriptions: the number of subscriptions to display. Default 10.