Categories

Featured templates

OpenCart 2.x. How to add custom fields to registration form

Charlotte Bennett June 19, 2015
Rating: 3.5/5. From 4 votes.
Please wait...

OpenCart 2.0 has a lot of new useful features, one of which is a possibility to add a custom field to the customer registration from admin panel.

This new field will be visible in the registration page, on the checkout page and even when a guest customer makes a purchase.

In this tutorial we will show you how to insert a new custom field to the registration form in OpenCart 2.0.

OpenCart 2.x. How to add custom fields to registration form

  1. Log into your OpenCart admin panel.

  2. Navigate to Sales-> Customers-> Custom Fields section:

    Opencart.2.0_How_to_add_custom_fields_to_contact_form_1

  3. Press the Add New blue button located in the top right of the page:

    Opencart.2.0_How_to_add_custom_fields_to_contact_form_2

  4. Fill in the necessary fields:

    Opencart.2.0_How_to_add_custom_fields_to_contact_form_3

    • Custom Field Name – the title of a new field that will appear on the registration page.

    • Location – this option allows to choose either the Account or the Address section for the custom field to appear on.

    • Type – here you can assign any of the 4 available types to your custom field (Choose, Input, File, Date). This type affects the look and the character of the new field. If you select one of the ‘choose’ options (checkbox, radio or select drop-down), you will have to create a new value in the Custom field option at the bottom. Click the add new button to create multiple values from which the user will be able to select (or pick multiple in the checkbox case):

      pencart.2.0_How_to_add_custom_fields_to_contact_form_4

    • Customer Group – select the group of customers for which this field will be visible.

    • Required – if you select this option, your customers will not be able to complete the registration without filling in the field.

    • Status – here you can enable/disable the new field.

    • Sort Order – the position of your custom field in relation to the existing fields.

  5. Click the Save button in the top right:

    Opencart.2.0_How_to_add_custom_fields_to_contact_form_5

  6. View how the new custom field appears on your registration page on the site front end.

We hope the tutorial was useful for you. Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to add custom fields to registration form

OpenCart eCommerce Templates
This entry was posted in OpenCart Tutorials and tagged contact, custom, field, form, opencart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket