An admin interface for file licenses associated with an order is needed to provide an easier way to view, update, and create the licenses.

Requirements:

  • Able to update status of all licenses associated with an order
  • Able to update status of a license associated with a single line item
  • Able to create licenses based on the order line items - useful for manually created orders
  • Able to sync the line item's file to the current product's file and limits
CommentFileSizeAuthor
#1 commerce_file-order-admin-preview-1.png73.94 KBrecrit
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

Status: Active » Fixed
FileSize
73.94 KB

Committed per http://drupalcode.org/project/commerce_file.git/commit/c992c35

Overview of changes to meet the requirements:

  • Default Order admin view available at "admin/commerce/orders/%/licenses"
  • New views handlers:
    • Commerce Order: views area - "Issue File Licenses Form"
    • Commerce Line Item: views field - "Issue File Licenses Form"
    • Commerce Product: views filter - "Product is a product type with Commerce File fields"
  • License issue form that can be used for orders and line items - provides update licenses and sync to current product ability

Steps to Manually Create Orders

  1. Create an order
  2. Add a line item with a file product
  3. Save order
  4. Visit "Licenses" tab - "admin/commerce/orders/%/licenses"
  5. Find the new line item with no file associated to it. In the "Issue / Update" column:
    • Set a status for the new license
    • Click "Create"
    • A license will be generate based on the current product's file and access limits

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.