12
Digital Commerce Commerce license

Using Commerce License for Premium Content on Drupal Sites

Embed Size (px)

Citation preview

Page 1: Using Commerce License for Premium Content on Drupal Sites

Digital CommerceCommerce license

Page 2: Using Commerce License for Premium Content on Drupal Sites

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

Page 3: Using Commerce License for Premium Content on Drupal Sites

Old way of creating access

• Commerce

• Rules

• Flags

• Roles

• Content Access module

• Custom cron jobs

3

Page 4: Using Commerce License for Premium Content on Drupal Sites

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

Page 5: Using Commerce License for Premium Content on Drupal Sites

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

Page 6: Using Commerce License for Premium Content on Drupal Sites

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

Page 7: Using Commerce License for Premium Content on Drupal Sites

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

Page 8: Using Commerce License for Premium Content on Drupal Sites

Billing with license:

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

• Commerce License Dunningcustomer communication and payment retries whenpayment fails

8

Page 9: Using Commerce License for Premium Content on Drupal Sites

Commerce license on a project

9

Page 10: Using Commerce License for Premium Content on Drupal Sites

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

Page 11: Using Commerce License for Premium Content on Drupal Sites

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

Page 12: Using Commerce License for Premium Content on Drupal Sites

Any questions?

12