The “Octemplates - Smart Register” module was created primarily to solve the main issue that occurs when registering through the standard OpenCart form — users entering incorrect or invalid phone numbers due to the absence of a mask and phone number validation. The module has a minimum number of settings.
Module settings
1. Main settings
-
Status
- Enables or disables the module.
-
Values:
- Enabled — the module is active.
- Disabled — the module is not working.
-
Phone mask
- The phone number input format that will be used in the form.
-
Example:
+38 (099) 999-99-99.
-
Newsletter subscription
- Allows you to add a newsletter subscription option during registration.
-
Values:
- Enabled — the subscription field is active.
- Disabled — the subscription field is hidden.
2. Field settings
The module allows you to configure the registration form fields. The following parameters can be set for each field:
- Field name — displayed to the customer on the registration page.
- Placeholder — text in the field before data is entered.
- Error text — the message displayed if the field is filled in incorrectly or left empty.
-
Required — selects whether the field is required:
- Yes — the field is required.
- No — the field is not required.
- Fields such as email and phone remain active and required on the page.
- Field status — indicates whether the field will be active in the registration form.
Default fields:
-
Last name “lastname”
- The name, placeholder, error text, required status, and field status can be configured.
-
First name “firstname”
- The same parameters as for the “Last name” field.
-
Phone “telephone”
- The phone number format is controlled using the phone mask.
-
Email “email”
- Additionally checked for email address validity.
Write a comment