commerce-docs icon indicating copy to clipboard operation
commerce-docs copied to clipboard

Commerce License w &w/o Commerce Recurring

Open brandonratz opened this issue 7 years ago • 4 comments

Here I will be documenting the process in utilizing commerce_license in conjunction with commerce_recurring

A portion of this has been pulled from commerce_license readme

brandonratz avatar Apr 13 '18 15:04 brandonratz

Expiration Licenses

Create products that grant licenses that expire

  1. Configure or create a checkout flow which does not allow anonymous checkout. /admin/commerce/config/checkout-flows
  2. Configure or create an Order Type to use the checkout flow.
  3. Configure or create an Order Item Type to use the Order Type, and work with Licenses.
  4. Configure or create a Product Variation Type to use the Order Item Type, and provide Licenses.
  5. Create one or more products that provide licenses. In the product variation, configure:
  • The license type
  • The expiration

brandonratz avatar Apr 13 '18 16:04 brandonratz

Recurring Subscription Licenses

Create products that grant licenses that renew with a subscription

  1. Configure or create a checkout flow which does not allow anonymous checkout.
  2. Configure or create an Order Type to use the checkout flow.
  3. Configure or create an Order Item Type to use the Order Type, and work with Licenses.
  4. Configure or create a Product Variation Type to use the Order Item Type, and provide both Licenses and Subscriptions.
  5. Create one or more products that provide licenses and subscriptions. In the product variation, configure:
  • The license type
  • The expiration should be 'Unlimited', as the subscription controls this.
  • Set the subscription type to 'License'
  • Select the billing schedule.

brandonratz avatar Apr 13 '18 16:04 brandonratz

Known Issues

From module README.md

License module is still incomplete, and has the following limitations:

  • The admin forms to create/edit licenses are not yet complete. They should only be used by developers who know what they are doing. Changing values here can break things! /admin/commerce/licenses -- Does not work!

brandonratz avatar Apr 13 '18 16:04 brandonratz

Expiration Licenses

Create products that grant licenses that expire.

Configure or create a new checkout flow which does not allow anonymous checkout.

/admin/commerce/config/checkout-flows

Configure or create an Order Type to use the checkout flow. /admin/commerce/config/order-types

Configure or create an Order Item Type to use the Order Type, and work with Licenses. /admin/commerce/config/order-item-types

  • Underneath Traits check “Provides an order item type for use with licenses”

Configure or create a Product Variation Type to use the Order Item Type, and provide Licenses. /admin/commerce/config/product-variation-types

  • Check “Provides a license”
  • Configure License Settings

Create one or more products that provide licenses. In the product variation of the new product, configure the following: /product/add

  • License Type (ie Role)
  • Configure the expiration
    • Interval based on reference date
    • Rolling Interval
    • Unlimited

brandonratz avatar Apr 17 '18 14:04 brandonratz