- Theme Engine
- Design Principles
- Templates
- EVML Reference
- Output
- Comments
- Operators
- Statements and Declarations
- Built-in Functions
- Built-in Objects
- Account
- Address
- Array
- Boolean
- Branch
- Cart
- CartLine
- Category
- CategoryCollection
- CategoryFilter
- CategoryFilterCollection
- CategoryFilterOption
- CategorySearch
- Collection
- Color
- Contact
- Currency
- Date
- Discount
- Dom
- Event
- EventCollection
- EventSlot
- Image
- Layout
- Locale
- Money
- Number
- Object
- Page
- PageCollection
- PageSearch
- PageSharer
- Pagination
- Postage
- Price
- PriceDiscount
- Product
- ProductCollection
- ProductCustomisation
- ProductDownload
- ProductMedia
- ProductMediaFrame
- ProductPrice
- ProductSearch
- ProductSpecification
- ProductSpecificationValue
- ProductVariation
- ProductVariationOption
- RecentlyViewed
- RegExp
- Request
- Review
- ReviewCollection
- Search
- SearchCollection
- SearchResult
- String
- Tag
- Template
- Url
- Website
- EV Tags
- CSS Pre-processor
- Ajax API
Contact
Extends Object. The Contact object represents data of Contacts such as page authors, current user information or order customer.
For security reasons a Contact object is always supplied by a controller and never instantiated within EV Script.
Properties | |
---|---|
biography |
Type String A description about the contact. This can be used for short author biographies. It is not intended to contain
full page contact profiles and should not contain HTML. We recommend using the |
company |
Type String Company name. |
department |
Type String or Null The Contact's department within "company". |
division |
Type String or Null The division of the "company" Contact's position is associated with. |
Type String Email address. |
|
Type String or Null The Contact's Facebook page. |
|
firstname |
Type String First name. |
flickr |
Type String or Null The Contact's Flickr page. |
googlePlus |
Type String or Null The Contact's Google Plus page. |
id |
Type Number The system ID for this contact. |
hasNoType |
Type Boolean Determines whether the Contact data has no representation. This is set for legacy reasons, but should not be encountered from Evance 5+. |
hasPassword |
Type Boolean Determines whether the Contact has set a password, this is used for the purposes of user invitations or alerts. You are unable to gain access to any password data. |
Type String or Null The Contact's Instagram channel. |
|
isBranch |
Type Boolean Determines whether the Contact data represents a Branch of the current Account. Generally this is encountered within Store Finders. |
isGuest |
Type Boolean Determines if the Contact data is from a non-registered user of the website. Guest data is rarely accessible, and generally only available when generating emails, or order tracking portals. |
isHQ |
Type Boolean Determines whether the Contact data represents the business details of the Account. |
isRecipient |
Type Boolean Determines whether the Contact data represents a Campaign List recipient. Recipient data is rarely accessible, and generally only available within email confirmation templates. |
isUser |
Type Boolean Determines if the Contact is a registered user of the website. |
lastname |
Type String Last name (also known as family name or surname). |
Type String or Null The Contact's LinkedIn page. |
|
mobile |
Type String The Contact's mobile phone number. |
phone |
Type String Daytime/primary phone number for the contact. |
Type String or Null The Contact's Pinterest page. |
|
position |
Type String Occupational position / job title of the contact. |
reference |
Type String A custom reference for the Contact set by an Administrator. This may be used as a customer reference number. |
registeredNumber |
Type String The Contact's Company Registration Number if applicable. |
taxNumber |
Type String The Contact's VAT/Tax Registration Number if applicable. |
thumbnail |
Type Url The image/avatar of the contact. |
Type String or Null The Contact's Twitter feed. |
|
username |
Type String The username within the system for the contact (not all users have one). |
vimeo |
Type String or Null The Contact's Vimeo channel. |
website |
Type String The website address for the contact. |
youTube |
Type String or Null The Contact's YouTube channel. |
Methods | |
---|---|
accessRoles() |
Returns an Object Returns a list of the Contact's access roles. This may be used to determine whether a logged in user has access to certain functionality. Please ensure this property is used securely. You should never disclose the list of access roles a user has publicly. |
address() |
Returns Address The postal Address of the contact. |
branches() |
Returns a collection of Branch objects this contact is assigned to. This may be useful when displaying team pages. |
fullname() |
Returns String Combined first & last name of the contact. |
hasAccessRole(reference) |
Returns Boolean Returns a TRUE value if the Contact has the given access role supplied as a reference/identifier. |
lastLogin() |
Returns Date or Null Returns the last date (prior to the current session) when the User logged in. |
toString() |
Returns String Returns the full name of the Contact. |
wishlist() |
Returns ProductCollection Returns a list of Products within a User's weishlist if they are logged in. |