When a customer completes an order for a team license product, DDLS automatically handles the entire license and team setup.
Customer-Side Feature
The Automatic Process #
When a WooCommerce order is placed and payment is confirmed, the following happens automatically in this order:
- (‘ol’, ‘DDLS creates a license as it normally does for any licensed product. This is standard DDLS behavior.’)
- (‘ol’, ‘Team Management detects the new license via the
dmsilm_license_createdaction hook.’)
- (‘ol’, ‘The license type is set to “team” in the DDLS license database.’)
- (‘ol’, ‘The seat count is applied – The seat tier the customer selected at checkout is read from the order item metadata and written to the license record.’)
- (‘ol’, ‘The purchaser is added as Team Admin – The customer\’s WordPress user ID is linked to the license as the first team member with the “admin” role. The
seats_allocatedcounter is incremented to 1.’)
- (‘ol’, ‘A welcome email is sent to the purchaser.’)
What the License Record Looks Like After Purchase #
In your DDLS license database, the license will have:
license_type= “team”seat_count= the number of seats the customer purchased (0 = unlimited)seats_allocated= 1 (the purchaser)
What the Customer Sees #
After purchase, the customer logs into their account and navigates to the customer portal. They see:
- My Team – Shows them as the only member, with the “Team Admin” role
- Invite Member – Ready to start inviting colleagues
- Usage Report – Shows their own usage (empty initially)
Nothing Manual Required #
The entire process is automatic. You do not need to take any action to provision a team license after a purchase. The customer can immediately begin inviting their team.
