EV Script Built-in Objects

Each page rendered comes pre-populated with a default set of objects. If you're ever unsure which objects are available to you, simply call the dump() function without any arguments and it'll tell you all the available objects on the page.

ProductVariation

EVML object represents a type of variation for a product e.g. Colour where its options represent values.

ProductVariationOption

EVML object represents a single option for a ProductVariation

RecentlyViewed

EVML object represents recently viewed pages, products or categories for the user.

RegExp

EVML object for matching a String against a regular expression pattern

Request

EVML object represents the current HTTP request to the page.

Review

EVML object represents a consumer review, generally of a Product

ReviewCollection

EVML object containing a collection/array of Review objects

Search

EVML object allows you to build generic searches across pages, products and categories.

SearchCollection

EVML object contains a collection/array of SearchResult objects

SearchResult

EVML object represents a result from the generic Search algorithm

String

EVML literal object represents a String of text

Tag

EVML object represents Tag - generally used with CMS Pages

Template

EVML object represents the properties and settings defined for a website template

Url

EVML object represents a URL - generally an internal URL to your website

Website

EVML object represents information about your website