# Adding custom fields in OpenCart registration form

> Add custom fields such as company name or tax ID to the OpenCart customer registration form without writing code.

Source: https://helpcenter.ruachost.com/apps/opencart/adding-custom-fields-in-opencart-registration-form/

OpenCart registration forms include predefined fields (name, email, password, etc.). On **ruachost.com**, you can add custom fields to capture additional customer information without writing any code.

## Why Add Custom Fields?

- Collect extra details such as company name, tax ID, or preferences.
- Tailor registration forms to your business needs.
- Improve customer segmentation and personalization.

## Steps to Add Custom Fields in OpenCart

### Step 1: Log in to OpenCart Administrator

- Use your administrator account to access the backend dashboard.

### Step 2: Navigate to Custom Fields

1. On the dashboard, in the left sidebar, click **Customers → Custom Fields**.\
   ![Screenshot](https://helpcenter.ruachost.com/kb-images/cced775cab39.webp)
2. Click the **Add New** button.\
   ![Screenshot](https://helpcenter.ruachost.com/kb-images/c930febfdbc8.webp)

### Step 3: Configure the Custom Field

1. Enter the **Name** of the field (e.g., “Region”).
2. Choose the **Location** where the field will display (e.g., Account, Address).
3. Select the **Type** of input (text, select, checkbox, radio, etc.).
4. Fill in other required options such as:

   - **Customer Group** → Assign the field to specific groups.
   - **Required** → Decide if the field must be filled in.
   - **Status** → Set to **Enabled**.

### Step 4: Save and Apply

- Click **Save** to add the new field.
- The custom field will now appear on the registration form.

## Example

If you add a **Region** field:

- Customers will see a new input box labeled “Region” during registration.
- The data will be stored in their account profile.

> **Important Notes:**
- Always back up your site before adding new fields.
- Test the registration form after adding custom fields.
- Custom fields can also be used in checkout forms.
- Clear OpenCart cache to ensure changes are visible.
