How It Works
Affiliate Registration
- User navigates to Dashboard > Affiliate
- Clicks Apply to Become an Affiliate
- Application is submitted for admin review
- Admin approves or rejects the application
- Once approved, user receives their unique affiliate code
Sharing Referral Links
Affiliates can share their referral link in two formats:
Direct Link
https://yoursite.com/affiliate/AFF-O8K-3A9X2F
Query Parameter
https://yoursite.com?aff=AFF-O8K-3A9X2F
Both methods set a tracking cookie and session for attribution.
Tracking Process
Step 1: Visitor Clicks Link
When a visitor clicks an affiliate link:
- The affiliate code is validated
- A cookie named
affiliate_refis set (default: 30 days) - The visitor is redirected to the homepage
- The session also stores the referral code
Step 2: Conversion Event
When a qualifying action occurs:
- System checks for affiliate cookie/session
- Validates the affiliate code
- Checks for self-referral (affiliate can't refer themselves)
- Checks for duplicate conversion
- Records the conversion with pending status
Step 3: Admin Approval
All conversions start as pending:
- Admin reviews conversions in Affiliate Marketing > Conversions
- Admin approves or rejects each conversion
- Approved conversions are credited to affiliate's wallet
- Affiliate receives the commission
Commission Calculation
Signup Bonus
- Fixed amount set by admin
- Awarded once per referred user signup
Login Bonus
- Fixed amount set by admin
- Awarded once per referred user login
Hire Commission
- Percentage of order value
- Capped by maximum commission limit (if set)
- Example: 5% commission on $100 order = $5
Self-Referral Prevention
Affiliates cannot earn commissions from their own activities:
- Cannot refer themselves for signup
- Cannot earn from their own logins
- Cannot earn from their own orders
Duplicate Prevention
Each conversion type uses a unique reference key:
- Signup:
user_id - Login:
login:user_id - Hire:
order_id
This prevents double-crediting for the same event.
Wallet Credit
When a conversion is approved:
- Status changes from pending to approved
- Commission amount is credited to affiliate's wallet
- Transaction is recorded with
payment_gateway = 'affiliate' - Affiliate can withdraw or use wallet balance
Last updated: September 2026
Still stuck?
Our support team is ready to help you get set up.

