account/myaccount.template.html

Follow

This template shows your account details, such as name and address. All these variables can be accessed from the account array.

account.form_field

The account array can be accessed directly.

TermData TypeTypical OutputDescription
account.form_field.action html <input type=“hidden.. Html Form field hidden
account.form_field.first_name html <input type=“text.. Html Form field First name text
account.form_field.last_name html <input type=“text.. Html Form field Last name text
account.form_field.phone html <input type=“text.. Html Form field Phone text
account.form_field.mobile html <input type=“text.. Html Form field Mobile name text
account.form_field.email html <input type=“text.. Html Form field Email name text
account.form_field.newsletter html <input type=“checkbox.. Html Form field newsletter name text
account.form_field.address_company html <input type=“text.. Html Form field company text
account.form_field.tax_number html <input type=“text.. Html Form field tax number text
account.form_field.address_line_1 html <input type=“text.. Html Form field text
account.form_field.address_line_2 html <input type=“text.. Html Form field text
account.form_field.address_city html <input type=“text.. Html Form field text
account.form_field.address_postcode html <input type=“text.. Html Form field text
account.form_field.address_county html <input type=“text.. Html Form field text
account.form_field.address_country html <input type=“text.. Html Form field text
account.form_field.submit html <input type=“text.. Html Form field text

account.error

Error messages can be accessed from the following references directly via the account.error array.

TermData TypeTypical OutputDescription
account.error.first_name varchar Sorry your is missing.. Text output with field is missing message
account.error.last_name varchar Sorry your is missing.. Text output with field is missing message
account.error.phone varchar Sorry your is missing.. Text output with field is missing message
account.error.mobile varchar Sorry your is missing.. Text output with field is missing message
account.error.email varchar Sorry your is missing.. Text output with field is missing message
account.error.address_company varchar Sorry your is missing.. Text output with field is missing message
account.error.address_line_1 varchar Sorry your is missing.. Text output with field is missing message
account.error.address_line_2 varchar Sorry your is missing.. Text output with field is missing message
account.error.address_city varchar Sorry your is missing.. Text output with field is missing message
account.error.address_postcode varchar Sorry your is missing.. Text output with field is missing message
account.error.address_county varchar Sorry your is missing.. Text output with field is missing message
account.error.address_country varchar Sorry your is missing.. Text output with field is missing message

Usage

<form name="signup" method="{{ account.form_method|raw }}" action="{{ account.form_action|raw }}">
    {{ account.form_field.action|raw }} 
    <label>First Name</label>{{ account.form_field.first_name|raw }}{% if account.error.first_name %}&nbsp;&nbsp;<span class="form_error">* Please include your firstname</span>{% endif %}<br />
    <label>Last Name</label>{{ account.form_field.last_name|raw }}{% if account.error.last_name %}&nbsp;&nbsp;<span class="form_error">* Please include your lastname</span>{% endif %}<br />
    <label>Phone</label>{{ account.form_field.phone|raw }}{% if account.error.phone %}&nbsp;&nbsp;<span class="form_error">* Please include your Phone Number</span>{% endif %}<br />
    <label>Mobile</label>{{ account.form_field.mobile|raw }}{% if account.error.email %}&nbsp;&nbsp;<span class="form_error">* Please include your Mobile Number</span>{% endif %}<br />
    <label>Email</label>{{ account.form_field.email|raw }}{% if account.error.email %}&nbsp;&nbsp;<span class="form_error">* {{ account.error.email }}{% endif %}</span><br />
    <hr />
    <p>Do you wish to subscribe to our twice monthly newsletter?</p>
    <label>Newsletter</label>{{ account.form_field.newsletter|raw }}<br />
    <hr />
    <p>Optional, for business customers</p>
    <label>Company Name</label>{{ account.form_field.address_company|raw }}{% if account.error.address_company %}">&nbsp;&nbsp;<span class="form_error">* This is an optional field</span>{% endif %}<br />
    <label>VAT Number</label>{{ account.form_field.tax_number|raw }}<br />
    <hr />
    <p>Please type in your primary address, usually your billing address</p>
    <label>Number + Street</label>{{ account.form_field.address_line_1|raw }}{% if account.error.address_line_1 %}&nbsp;&nbsp;<span class="form_error">* Please check that your House and Street number have been specified</span>{% endif %}<br />
    <label>Address Line 2</label>{{ account.form_field.address_line_2|raw }}{% if account.error.address_city %}&nbsp;&nbsp;<span class="form_error">* Please double check your City</span>{% endif %}<br />
    <label>City</label>{{ account.form_field.address_city|raw }}<br />
    <label>Postcode</label>{{ account.form_field.address_postcode|raw }}{% if account.error.address_postcode %}&nbsp;&nbsp;<span class="form_error">* Check your postcode is correct</span>{% endif %}<br />
    <label>County</label>{{ account.form_field.address_county|raw }}{% if account.error.address_county %}&nbsp;&nbsp;<span class="form_error">* Please make sure you have specified your County</span>{% endif %}<br />
    <label>Country</label>{{ account.form_select.country|raw }}<br />
    <hr />  
    {{ account.form_field.submit|raw }}
</form>
Have more questions? Submit a request

Comments

Powered by Zendesk