Membership



Membership helps you set up rules for granting access to your platform's Subscribers.

At its core, the plugin simply responds to lifecycle Events emitted by Commerce Subscriptions by moving the subscribing User into (or out of) User Groups, configured by way of “Grants.”

In turn, a User belonging to a User Group can be given specific Permissions, through the native Craft system—for example, if you have a paywalled section of your website containing educational materials (a la CraftQuest), you might prevent access by testing whether they're present in a particular group:

{% requireLogin %}

{% if not currentUser.isInGroup('students') %}
  {% exit 404 %}
{% endif %}

Additionally, you can check specific capabilities with the .can() method, for built-in permissions, or permissions provided by other Plugins:

{% set section = craft.app.sections.getSectionByHandle('classifieds') %}

{% if currentUser.can("createEntries:#{section.uid}") %}
    You’re ready to <a href="{{ url('account/classifieds/new') }}">create a listing</a>!
{% endif %}

For more information about how to implement Membership on your site, please see the documentation.


$19

Price includes 1 year of updates.
$9/year per site for updates after that.


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Information

  • Version 1.0.0
  • Last Update 2/26/2020
  • Active Installs 17
  • Compatibility Craft 3
  • License Craft
  • Categories Ecommerce, Utilities

Report an issue