Frontend Customer Creation
Learn how sales staff can create new customer accounts directly from the frontend.
Overview
The Frontend Customer Creation feature allows staff to:
- Create customer accounts without admin access
- Set customer groups during creation
- Add address information
- Set initial passwords
- Configure VAT numbers
- Streamline B2B onboarding
Enable Feature
Staff Permission
Location: Staff > All Staff > Edit Staff
Setting: Can create Customer = Yes
System Configuration
Location: Stores > Configuration > MageB2B > Staff > Customer Registration
Settings:
- Enable creating new customer: Yes
- Show customer group field: Yes/No
- Show address fields: Yes/No
- Show vat field: Yes/No
- Can Staff set password for customer: Yes/No
Create Customer Process
Step 1: Access Creation Form
From Staff Dashboard:
- Login as staff
- Go to Customers
- Click Create Customer Account
Quick Access:
- Dashboard widget: "Create Customer"
- Top menu: Customers >Create New
Step 2: Fill Customer Information
Required Fields:
- First Name
- Last Name
- Email (must be unique)
Optional Fields:
- Customer Group (if enabled)
- Phone
- Company
- VAT Number (if enabled)
- Date of Birth
- Gender
Example:
First Name: John Last Name: Doe Email: john.doe@acmecorp.com Phone: +1 555-0123 Company: Acme Corporation Customer Group: Wholesale VAT Number: DE123456789Step 3: Add Address (Optional)
If "Show address fields" = Yes:
Billing Address:
- Street Address
- City
- State/Province
- ZIP/Postal Code
- Country
- Phone
Shipping Address:
- Same as billing (checkbox)
- Or enter different address
Example:
Street: 123 Main Street City: New York State: NY ZIP: 10001 Country: United States Phone: +1 555-0123Step 4: Set Password (Optional)
If "Can Staff set password for customer" = Yes:
Option A: Set Password
- Enter password
- Confirm password
- Customer can login immediately
Option B: Send Email Invitation
- Leave password empty
- Customer receives email with set password link
- Customer sets own password
Recommendation: Use email invitation for security
Step 5: Save Customer
Click Create Customer Account
What Happens:
- Customer account created
- Customer automatically assigned to staff
- Staff marked as primary
- Email sent to customer (if configured)
- Redirect to the customer creation page (
salesstaff/index/register)
Configuration Options
Customer Group Selection
Enable: Show customer group field = Yes
Use Cases:
- Classify B2B vs B2C
- Apply different pricing
- Set different permissions
- Segment customers
Available Groups:
- General
- Wholesale
- Retailer
- Distributor
- VIP
- (Custom groups)
Default Group: General (if not selected)
Address Fields
Enable: Show address fields = Yes
Benefits:
- Complete customer profile immediately
- Ready for first order
- No additional setup needed
When to Disable:
- Quick customer creation
- Address added later
- Customer adds own address
VAT Number
Enable: Show vat field = Yes
Use Cases:
- EU B2B customers
- Tax exemption
- Compliance requirements
- Invoice requirements
Validation:
- Format validation (optional)
- VIES validation (optional)
- Duplicate check
Password Setting
Enable: Can Staff set password for customer = Yes
Option A: Staff Sets Password
- Pros: Customer can login immediately
- Cons: Security concern, password sharing
Option B: Email Invitation
- Pros: More secure, customer controls password
- Cons: Requires email access, extra step
Recommendation: Use email invitation for B2B
Email Notifications
Customer Welcome Email
Template: Customer New Account
Sent When: Customer created
Contains:
- Welcome message
- Account details
- Login link
- Set password link (if no password set)
- Contact information
Password Email
Template: Customer Password Set by Staff
Sent When: Staff sets password
Contains:
- Account created notification
- Username (email)
- Set-password URL
- Login link
- Security reminder
Security Note: Consider using invitation instead
Validation & Errors
Email Already Exists
Error: "Email address already exists"
Cause: Email used by another customer or staff
Solution:
- Use different email
- Check if customer already exists
- Contact existing customer
Invalid Email Format
Error: "Please enter a valid email address"
Cause: Email format incorrect
Examples:
- Missing @
- Invalid domain
- Special characters
Solution: Correct email format
Required Fields Missing
Error: "This is a required field"
Cause: Required field empty
Solution: Fill all required fields (marked with *)
VAT Number Invalid
Error: "Invalid VAT number"
Cause: VAT format incorrect or not verified
Solution:
- Check VAT format for country
- Verify with VIES (EU)
- Contact customer for correct VAT
Best Practices
Data Quality
Ensure:
- Correct email address
- Valid phone number
- Complete address
- Correct customer group
- Valid VAT number
Verify:
- Ask customer to confirm email
- Test phone number
- Verify company name
- Check VAT number
Customer Groups
Strategy:
- Define clear group criteria
- Document group benefits
- Train staff on selection
- Review assignments regularly
Examples:
Wholesale: Min order $500, Net 30 terms Retailer: Min order $200, Net 15 terms VIP: No minimum, Net 60 terms, 5% discountSecurity
Password Policy:
- Use email invitation when possible
- Strong password requirements
- Never share passwords via insecure channels
- Customer changes password on first login
Data Protection:
- Verify customer identity
- Comply with GDPR/privacy laws
- Secure data transmission
- Regular data audits
Workflow
Efficient Process:
- Collect customer information (phone, email, meeting)
- Verify information
- Create account in system
- Send welcome email
- Follow up to confirm receipt
- Assist with first order
Bulk Customer Creation
Requires: MageB2B_StaffImportExport add-on
Import Customers
Process:
- Download CSV template
- Fill customer data
- Upload CSV file
- Map fields
- Validate data
- Import customers
CSV Format:
firstname,lastname,email,phone,company,customer_group,vat_number John,Doe,john@example.com,555-0123,Acme Corp,Wholesale,DE123456789 Jane,Smith,jane@example.com,555-0124,Beta Inc,Retailer,DE987654321Benefits
- Fast bulk onboarding
- Consistent data format
- Reduced errors
- Time savings
Mobile / Headless Integrations
Requires: MageB2B_StaffApi add-on
If you want to build a custom mobile app or integrate an external system, the Staff API provides token-based authentication and staff/customer management endpoints. Features like OCR scanning, GPS tagging, attachments, or offline mode are app-side implementation details (not provided by the Magento module itself).
Integration
CRM Integration (External)
Sync with:
- Salesforce
- HubSpot
- Zoho CRM
- Microsoft Dynamics
Sync Options:
- One-way (Magento → CRM)
- Two-way (bidirectional)
- Real-time
- Scheduled
ERP Integration (External)
ERP integration is typically implemented via REST/API middleware or custom Magento integrations. A common pattern is to sync:
- customer master data
- payment terms
- pricing references / external customer IDs
Reporting
Customer Creation Report
Metrics:
- Customers created per staff
- Customers created per period
- Customer group distribution
- Conversion rate (created → ordered)
Location: Reports > Staff > Customer Creation
Troubleshooting
Cannot Create Customer
Check:
- Staff permission: "Can create Customer" = Yes
- Configuration: "Enable creating new customer" = Yes
- Staff account is active
- No validation errors
Email Not Sent
Check:
- Email configuration correct
- Email template configured
- Customer email valid
- SMTP settings correct
Customer Not Assigned to Staff
Check:
- Auto-assignment enabled
- Staff session active
- No errors during creation
- Configuration scope and assignment settings
