Introduction
This is the documentation for http://www.drupal.org/project/commerce_license_cancel.
This module provides a few ways for users to cancel Commerce License licenses. It provides a URL for cancelling licenses associated with a product, and a URL for cancelling licenses associated with an order. The user will see a "confirm cancellation" form (just a checkbox and a submit button) when they visit either of those URLs.
Usage
There are two permissions available when you enable this module: Cancel any commerce license and Cancel own commerce license. You will want to set this accordingly.
This module provides two URLs that offer a simple confirmation form to help users cancel licenses. You can cancel licenses associated with a product, or with an order.
Here are examples of the two URLs:
- Cancel user 5's license(s) for product #10:
mysite.com/user/5/licenses/cancel/product/10
- Cancel user 9's license(s) associated with order #3:
mysite.com/user/9/licenses/cancel/order/3
Providing a way to get the user's to these URLs is up to you (for now); we're hoping to have this module provide some tokens and links to make this easier (see improvements below).
Improvements
We'd like to eventually:
- Provide token for product entity to take user to cancellation page
- Provide token for order entity to take user to cancellation page
- Provide link within order "operations" (maybe?)
- Provide a rules event for "License cancelled"