- 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
Global variables
All variables listed are available to all page types (Page, Category and Product).
Global variables | |
---|---|
account |
Type Account
|
cart |
Type Cart
|
layout | Type Layout
The layout object is used exclusively by the layout files within your ~/theme/layouts directory. Layouts wrap a template representing a common header and footer for each page. |
request | Type Request
Offers basic access to information about the HTTP page request made by your website's visitor. This includes the URI requested, whether the request is on HTTPS and the page's referrer. |
shop | Type Branch
Provides access to the "My Business" contact information for the website operator. This Includes the contact address, phone number, email address etc. |
user |
Type User or Null
|
website |
Type Website
|
Try the dump() function
If you ever get stuck, or would like to know which variables are available to you, try adding the following code into any template. You will be provided with a list of all variables on the page.
{{ dump() }}