using commerce license for premium content on drupal sites
TRANSCRIPT
![Page 1: Using Commerce License for Premium Content on Drupal Sites](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/1.jpg)
Digital CommerceCommerce license
![Page 2: Using Commerce License for Premium Content on Drupal Sites](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/2.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/3.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/4.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/5.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/6.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/7.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/8.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/9.jpg)
Commerce license on a project
9
![Page 10: Using Commerce License for Premium Content on Drupal Sites](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/10.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/11.jpg)
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](https://reader034.vdocument.in/reader034/viewer/2022051520/587d83951a28abcd648b4807/html5/thumbnails/12.jpg)
Any questions?
12