Using Commerce License for Premium Content on Drupal Sites

Post on 15-Apr-2017

507 views 6 download

Transcript of Using Commerce License for Premium Content on Drupal Sites

Digital CommerceCommerce license

What is digital commerce

• Sale of a product to grant usage or access to content for a period of time

• Access or create nodes

• Access to a groups

• Access to external resources outside of Drupal

2

Old way of creating access

• Commerce

• Rules

• Flags

• Roles

• Content Access module

• Custom cron jobs

3

Enter commerce license

• Commerce

• Commerce LicenseIncludes Roles and FilesIntegrates with Advancedqueue (for remote), Inline Entity form, and entity bundles.

• Content Access moduleNode Option Premium

4

What is a license?

• A Fieldable entity that is created at checkout

• Has an expiration date (if set)

• Uses cron and advancedqueue

• Can be local or remote

5

What is a local license?

• An extendable base class within Drupal

• A license to local content within DrupalRolesFiles NodesGroups (Organic Groups)Taxonomy

• Can create custom license modules

6

What is a remote license?

• Extends the base license class

• Uses advanced queue for synchronizationRuns as a daemon unlike cron

• Connectivity to 3rd party servicesZendeskData Usage

7

Billing with license:

• Commerce License BillingPrepaid, postpaid, meteredBilling cycles are extensible as well

• Commerce License Dunningcustomer communication and payment retries whenpayment fails

8

Commerce license on a project

9

Using Commerce roles for ONS

• Existing implementation was restrictiveMany administration steps and some code modifications to add new roles for subscriptions

• Needed a simple role based solution to give access to nodesOut of box in Commerce License

10

Modules used:

• Node Option Premium (nopremium)

• Role Field (role_field)

• Custom module to set the view display to be a node premium or display fields

11

Any questions?

12