docs/admin-interface/marketing/affiliates.md
{% hint style="info" %} Grow Your Business with Referrals The Affiliate system allows you to create a referral program where customers can earn commissions by promoting your products. Manage affiliates, track referrals, and process payments directly from your OpenCart 4 admin panel. {% endhint %}
The Affiliate system in OpenCart 4 enables you to build a powerful referral marketing program. Customers can become affiliates and earn commissions by referring new customers to your store. The system provides comprehensive tracking, commission management, and payment processing tools to help you grow your business through word-of-mouth marketing.
Before using the Affiliate system, configure the basic settings in System → Settings → Option tab:
| Setting | Description | Default Value |
|---|---|---|
| Affiliate Status | Enable or disable the entire affiliate system | Disabled (0) |
| Affiliate Approval | Whether affiliate registrations require manual approval | Yes (1) |
| Affiliate Auto | Auto-add customers to affiliate group after approval | No (0) |
| Affiliate Group | Customer group for approved affiliates | Default (1) |
| Affiliate Commission | Default commission percentage for new affiliates | 0.00% |
| Affiliate Expire | Days before affiliate tracking cookies expire | 30 |
| Affiliate Terms | Page containing affiliate terms and conditions | None |
{% hint style="warning" %} Important: Enable "Affiliate Status" first before affiliates can register or be created. The system must be active for any affiliate functionality to work. {% endhint %}
To access the Affiliate management interface:
{% stepper %} {% step %} Step 1: Convert an Existing Customer
Click the Add New button (+) in the top-right corner of the affiliate list.
Since affiliates must be existing customers, you'll need to select a customer from your database:
{% endstep %}
{% step %} Step 2: Configure Affiliate Details
Fill in the Affiliate Details tab:
Tracking Code (Required)
Website
Commission (Required)
Tax ID
{% endstep %}
{% step %} Step 3: Configure Payment Method
Select a payment method in the Payment Details tab:
| Method | Required Fields | Notes |
|---|---|---|
| Cheque | Cheque Payee Name | Physical cheque payments |
| PayPal | Valid PayPal Email | Electronic PayPal payments |
| Bank Transfer | Bank Name, Branch Number, SWIFT Code, Account Name, Account Number | Direct bank transfers |
Each method has specific validation rules and required fields. Choose the method that matches how you'll pay commissions.
{% endstep %}
{% step %} Step 4: Save and Activate
Click Save to create the affiliate. Depending on your system configuration:
You can edit the affiliate later to change status, commission, or payment details. {% endstep %} {% endstepper %}
config_affiliate_approval = 1)?tracking=CODE)yourstore.com?tracking=UNIQUE_CODEconfig_affiliate_auto settingconfig_affiliate_group_id settingconfig_affiliate_expire (days)admin/view/template/mail/affiliate_approve.twigadmin/view/template/mail/affiliate_deny.twigadmin/view/template/mail/transaction.twig{% hint style="success" %} Program Management 🤝
{% hint style="warning" %} Compliance & Legal ⚖️
{% hint style="info" %} Performance Optimization 📈
Solution: Check the following:
?tracking=CODE parameterSolution: Verify order and affiliate status:
Solution: Validate payment details:
Solution: Check system configuration:
Solution: Recalculate and audit:
{% hint style="info" %} System Limitations ⚡
{% hint style="success" %} Documentation Summary 📋
You've now learned how to:
Next Steps: