Contacts
Below are documented the variables for the contact-us.html contacts page.
In addition to these you can also use the variables common to all pages.
contact-us.html
Allows sending a contact request from the store.
| Instruction | Variable | Description |
|---|---|---|
| show | captcha | Captcha. It prevents receiving spam emails through the contact form. After the user passes the test, the captcha will no longer be shown for a period |
| show | content | Page content |
| show | image | Page image |
| show | statusMessage | Confirmation or sending error message |
| show | send | Button to submit |
| show | title | Page title |
The contact form
On the base template page there are some fields that you can freely edit and you can add new ones. The hidden require field lists, separated by commas, the field names that are required.
For example, if the page contains the following form:
<form action="contact-us.html" method="post">
<input type="hidden" name="require" value="Name,Phone,Email,Message">
<label>Nome: <input type="text" name="Name" maxlength="100"></label>
<label>Telefono: <input type="text" name="Phone" maxlength="100"></label>
<label>Email: <input type="text" name="Email" maxlength="100"></label>
<label>Messaggio: <textarea name="Message"></textarea></label>
<!-- .show send --> <input type="submit" value="send"> <!-- .end -->
</form>
The customer will fill in the fields; only those listed in the hidden "required" field will be mandatory. The email you receive will include all form fields.
If you want to add a consent request, you can proceed by adding a specific field to the form and making it mandatory:
<input type="hidden" name="require" value="Name,Phone,Email,Message,Consent">
...
<label><input type="checkbox" name="Consent" value="Yes"> I consent to the processing of this personal data</label>