Use Case
When an order is marked as completed in WooCommerce, you want to create a user account for the customer. This is ideal for scenarios where account access should only be granted after successful fulfillment.
Common scenarios:
- Digital product access after payment clears
- Course enrollment upon order completion
- Membership activation after shipping confirmation
- Gated content access for verified purchasers
- Delayed account creation for fraud prevention
Step-by-Step Setup
1. Create a New Workflow
Navigate to Sequensy → Workflows in your WordPress admin and click Add New Workflow.
Name your workflow “Create Account on Order Complete” or similar.
2. Configure the Trigger
Select Order Completed as your trigger. This fires when order status changes to “Completed”.
Useful filters:
- Products: Only trigger for specific products (e.g., courses, memberships)
- Categories: Limit to product categories requiring accounts
- Customer Type: Only for guests without existing accounts
3. Set Up the Create User Action
Configure the user creation:
| Setting | Recommended Value | Description |
|---|---|---|
{billing_email} | Uses order billing email | |
| Username | {billing_email} | Email-based username |
| First Name | {billing_first_name} | From billing details |
| Last Name | {billing_last_name} | From billing details |
| Role | Customer or Subscriber | Based on your needs |
| Send Notification | Yes | Welcome email with login |
4. Configure Access (Optional)
For digital products or memberships, chain additional actions:
- Update User Role: Assign premium member role
- Send Email: Deliver access instructions
- Add User Meta: Store purchase details on profile
5. Test Your Workflow
- Enable the workflow
- Create and complete a test order
- Verify user account was created
- Confirm access to gated content works
- Check welcome email delivery
Pro Tips
Why wait for completion?: Creating accounts on completion rather than order creation provides fraud protection—accounts are only created after payment is confirmed and order is fulfilled.
Digital products: For instant-access digital products, consider triggering on “Payment Complete” instead for faster access.
Prevent duplicates: Add conditions to check if an account with the billing email already exists before attempting creation.
Custom roles: Create custom WordPress roles (e.g., “Course Student”, “Premium Member”) and assign them based on products purchased.
Access Control Patterns
| Product Type | When to Create Account | Recommended Role |
|---|---|---|
| Physical goods | Order Completed | Customer |
| Digital downloads | Payment Complete | Subscriber |
| Courses | Order Completed | Student |
| Memberships | Payment Complete | Member |
| Subscriptions | Payment Complete | Subscriber |
Troubleshooting
Account not created?
- Verify order status is truly “Completed”
- Check if email already has an account
- Review workflow logs for errors
Can’t access gated content?
- Confirm user role was assigned correctly
- Check content access permissions
- Verify membership plugin integration
Wrong role assigned?
- Review user role setting in workflow
- Check for conflicting workflows
- Verify role exists in WordPress