docs/admin-interface/customers/custom-fields.md
{% hint style="info" %} Extended Customer Information Custom Fields allow you to collect additional information from customers beyond the standard registration form, tailored to your specific business needs. {% endhint %}
Custom Fields in OpenCart 4 enable you to extend the customer registration and profile forms with additional fields. This powerful feature allows you to collect specific information relevant to your business, such as company details, preferences, or regulatory requirements.
To access the Custom Fields interface:
OpenCart 4 supports several custom field types:
| Field Type | Description | Use Case |
|---|---|---|
| Text | Single-line text input | Short answers, names, identifiers |
| Textarea | Multi-line text input | Descriptions, comments, addresses |
| Select | Dropdown selection | Choices from predefined options |
| Radio | Radio button group | Single choice from options |
| Checkbox | Checkbox group | Multiple selections from options |
| File | File upload | Documents, images, certificates |
| Date | Date picker | Birth dates, event dates |
| Time | Time picker | Appointment times, preferences |
| Datetime | Date and time picker | Meeting schedules, deadlines |
{% stepper %} {% step %} Step 1: Click Add New
Click the Add New button (+) in the top-right corner of the custom field list. {% endstep %}
{% step %} Step 2: Configure Field Settings
Fill in the custom field configuration form:
Field Information
{% hint style="info" %} Field Name & Location 📝
Field Type & Validation
{% hint style="warning" %} Field Type Selection ⚠️
{% endstep %}
{% step %} Step 3: Configure Field Values (for Select/Radio/Checkbox)
For selection-based fields, configure the available options:
{% hint style="success" %} Value Management Tips 🔢
{% endstep %}
{% step %} Step 4: Assign to Customer Groups
Specify which customer groups see this field:
{% hint style="info" %} Targeted Field Display 🎯
Use customer group assignments to show relevant fields to specific customer segments. For example, show business-related fields only to wholesale customers. {% endhint %} {% endstep %}
{% step %} Step 5: Set Display Order
{% hint style="success" %} Form Organization 📋
Group related fields together by using consecutive sort order numbers. Leave gaps between groups (e.g., 10, 20, 30) for easier future insertions. {% endhint %} {% endstep %}
{% step %} Step 6: Save the Field
Click Save to create the custom field. You'll see a success message confirming the field has been created.
{% hint style="success" %} Success! ✅
Your custom field is now active and will appear in forms according to your configuration settings. {% endhint %} {% endstep %} {% endstepper %}
Determines where the field appears:
| Location | Forms Where Field Appears |
|---|---|
| Account | Registration, login, customer profile edit |
| Address | Address entry forms (shipping/billing) |
| Affiliate | Affiliate registration and profile |
Control which customer groups see each field:
Collect company details for B2B customers:
Gather preferences for personalized service:
Collect required information for legal compliance:
Additional address information for delivery optimization:
Information for loyalty programs and membership management:
{% hint style="warning" %} Field Type Changes ⚠️
Changing field types after data has been collected may cause data loss or conversion issues. Consider creating a new field instead of changing types. {% endhint %}
{% hint style="danger" %} Data Loss Warning 🗑️
Deleting a custom field permanently removes all collected data for that field from customer profiles. Export any important data before deletion. {% endhint %}
Adjust the Sort Order value to control display order. Fields with lower sort order numbers appear first in forms.
{% hint style="info" %} Sort Order Tips 🔢
Custom fields can be assigned to specific customer groups, allowing different information collection for different customer segments.
Custom field data appears in the approval review process, providing additional information for decision-making.
Custom field values appear in customer profiles and can be edited by administrators.
Custom fields integrate seamlessly into registration forms based on their assigned location and customer group.
{% hint style="success" %} Field Design Best Practices 🎨
{% hint style="warning" %} Data Management Guidelines 💾
{% hint style="info" %} User Experience Optimization 📱
Possible Causes:
Solutions:
Possible Causes:
Solutions:
Possible Causes:
Solutions:
Possible Causes:
Solutions:
{% hint style="info" %} Performance Considerations ⚡
{% hint style="success" %} Documentation Summary 📋
You've now learned how to:
Next Steps: