Address forms
The Addresses tab controls the billing and delivery forms: which fields appear, in which order, with which texts and validation, for guests, new accounts and logged-in customers.
General options
The first block of the tab holds options that apply to both forms.
| Setting | Default | What it does |
|---|---|---|
| "Same address" checked by default | On | Ticks the Same delivery and billing addresses box for guests, so they fill in one address only. They can untick it to enter a different delivery address. |
| Form validations in popups | Off | Shows the validation errors of the forms in a popup. It works only with forms that are shown on the page, not with forms that already open in a popup. |
| Order comment required | Off | Makes the comment box of the Confirm order panel compulsory. |
| Geo IP Localization | Off | The first time a shopper opens the checkout, the country and region are preselected from the shopper's IP address. See below. |
| Google address autocomplete | Empty | Your Google API key. When it is filled, the address field suggests addresses from Google Maps as the shopper types. See below. |
| Phone mask | Empty | A pattern for the telephone field, one per language, for example (00) 0000-0000. Each 0 stands for a digit. Empty means no mask. |
| Post code mask | Empty | A pattern for the post code field, one per language, for example 00000-000. Empty means no mask. |
Geo IP Localization
To find the country, the extension sends the shopper's IP address to the free geoplugin.net service from your server. If the country cannot be found, your store's default country and region from the OpenCart settings are used. Mention this service in your privacy policy if you turn the option on.
Google address autocomplete
Click How to get Google API key under the field for the steps. In short:
- Open the Google Maps Platform from the link in the instructions and create or choose a project.
- Set up a billing account for the project. Google requires one for this service.
- Create an API key, and restrict it to your shop's domain.
- Enable the Places API for the project.
- Paste the key in Google address autocomplete and click Apply changes.
The key is stored in a password-type field, so it is hidden on screen.
The two forms
The tab then shows two tables:
- Payment address form - also used as the registration form: the billing address. It is also the form a shopper fills in when creating an account in the checkout.
- Delivery address form - only used for guest purchases: the delivery address of guests who untick Same delivery and billing addresses. Logged-in customers pick a delivery address from their address book instead.
Each row is one field. Drag a row up or down to change the order of the fields in the shop.
Columns of the tables
| Column | What it does |
|---|---|
| Label | The text above or inside the field, one per language. |
| Placeholder | The grey hint inside an empty field, one per language. |
| Rule | The validation the field must pass. See the list of rules below. |
| Error message | The message shown when the validation fails, one per language. |
| Guest | Two switches for guests: Status shows or hides the field, and Rule applies the validation or not. |
| Register | The same two switches for shoppers who create an account. Only in the billing form. |
| Logged | The same two switches for logged-in customers. Only in the billing form. |
A field marked as validated shows an asterisk next to its label in the shop.
The delivery form has only the Guest column.
Validation rules
| Rule | The field must |
|---|---|
| - No validation rule - | Nothing; any value is accepted. |
| Not empty | Not be empty. |
| Between 1-32 characters | Have 1 to 32 characters. |
| Between 2-10 characters | Have 2 to 10 characters. |
| Between 3-32 characters | Have 3 to 32 characters. |
| Between 4-20 characters | Have 4 to 20 characters. |
| Between 2-128 characters | Have 2 to 128 characters. |
| Between 3-128 characters | Have 3 to 128 characters. |
| Contain one number | Contain at least one digit. |
| Valid email format | Be a valid e-mail address. |
The fields
The rows are recognised by their default label. The table lists them in their default order.
| Field | Default | Notes |
|---|---|---|
| Customer group | Hidden | Billing form only. Lets the shopper choose a customer group. It has a Status switch for Guest and for Register; a group is always required when it is shown. |
| First Name, Last Name | Shown, Between 1-32 characters | |
| Shown, Valid email format | Billing form only. Logged-in customers do not see it; their account e-mail is used. | |
| Telephone | Shown, Between 3-32 characters | Billing form only, for guests and new accounts. |
| Fax | Hidden | Billing form only, for guests and new accounts. |
| Company | Hidden | |
| Address 1 | Shown, Between 3-128 characters | |
| Address 2 | Hidden | |
| City | Shown, Between 2-128 characters | |
| Post Code | Shown, Between 2-10 characters | |
| Country | Shown, Not empty | The countries of your shop. Choosing one reloads the regions. |
| Region / State | Shown, Not empty | The regions of the chosen country. |
| Password, Confirm | Shown | Billing form only, Register column only. |
| I wish to subscribe to the Your Store newsletter | Shown | The newsletter box. Billing form only, Register column only. Instead of Rule it has a Checked switch, on by default, that ticks the box in advance. |
| I have read and agree to the Privacy Policy | Shown, Not empty | Billing form only, for guests and new accounts. Each column also has a Checked switch, off by default. See below. |
Privacy policy box
The label contains [link]Privacy Policy[/link]. The words between the two tags open a popup with the information page you chose as Account Terms in the Option tab of your OpenCart settings. Keep the tags when you translate the label. The link is created only when an Account Terms page is set.
The default texts are in English (or Russian when your administration is in Russian). Translate the Label, Placeholder and Error message of each field for every language of your shop.
OpenCart custom fields
On OpenCart 2.0 and later, the custom fields you create in Customers > Custom Fields appear as extra rows at the end of the tables. For these rows:
- the Label comes from OpenCart and cannot be changed here;
- you can write an Error message per language;
- you can drag the row to place the field among the others.
Whether a custom field is shown and required follows its OpenCart settings, including the customer groups it applies to. Change those settings in Customers > Custom Fields.
Still need help?
Open a support ticket from your account and our team will look at your store with you.