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.

Layout

EVML object representing information for theme layout template files.

Locale

EVML object containing regional information such as country, language, timezone and currency.

Manufacturer

EVML object representing a Product Manufacturer

MediaFilePath

MediaFilePath represents a file within the Media Library.

MediaSearch

MediaSearch EVML object allows developers to build functionality to list documents within the Media Library.

Money

EVML object and formatter for Money in a given currency.

Number

EVML literal representation of a Number

Object

EVML literal representation of an Object.

Page

EVML object representing a Page within the CMS.

PageCollection

EVML object containing a collection/array of Page objects from the CMS.

PageSearch

EVML object allows you to build CMS Page specific queries.

PageSharer

EVML object allows you to build social media share links for various Object types.

Pagination

EVML object representation pagination information for collections containing data grids.

Postage

EVML object representation an available postage option for the Cart

Price

EVML object representing a Price. Unlike the Money object Price is tax aware.

PriceDiscount

EVML object representing the discount values between two prices.

Product

EVML object representing information about a Product in your shop.

ProductCollection

EVML object containing a collection/array of Product objects.

ProductCustomisation

EVML object represents a group of options available to customise a product in your shop.

ProductDownload

EVML object represents a Download associated with a Product in your shop.

ProductMedia

EVML object represents either a Photo, Video or 360° associated with a Product in your shop

ProductPrice

EVML object represents a Price associated with a Product in your shop

ProductSearch

EVML object allows your to build Product specific queries

ProductSpecification

EVML object represents a specification entry for a product.

ProductSpecificationValue

EVML object represents the value of a specification entry for a product.