Collection templates have access to a specific collection via the collection. object.

BASE URL /collection
TYPE collection

Collection Objects

The collection template type has access to the collection being rendered, as well as to global objects.

collection.

The collection. top level object allows access to collection information.

TYPE
collection
CONSTRAINTS
not null
PRESENCE
always

Global Objects

The global objects are generally available across all templates with some exceptions, as detailed below.

theme.

The theme. top level object allows access to current theme information.

CONSTRAINTS
n/a
PRESENCE
pages: always
emails: n/a
sms: n/a
docs: n/a

system.

The system. top level object allows access to system information, such as the current time.

CONSTRAINTS
n/a
PRESENCE
always

shop.

The shop. top level object allows access to shop information, such as shop name and primary domain name.

CONSTRAINTS
n/a
PRESENCE
always

collections.

The collections. top level object allows access to all collections. This object allows access to collections, potentially filtered down by name or by tag, in any page, email, SMS or document template.

CONSTRAINTS
n/a
PRESENCE
always

brands.

The brands. top level object allows access to all brands. This object allows access to brands, potentially filtered down by name or by tag, in any page, email, SMS or document template.

CONSTRAINTS
n/a
PRESENCE
always

pages.

The pages. top level object allows access to all pages. This object allows access to pages, potentially filtered down by name or by tag, in any page, email, SMS or document template.

CONSTRAINTS
n/a
PRESENCE
always

cart.

The cart. top level object allows access to the visitor's shopping cart.

CONSTRAINTS
n/a
PRESENCE
pages: always
emails: n/a
sms: n/a
docs: n/a

session.

The session. top level object allows access to session information for the website visitor.

CONSTRAINTS
n/a
PRESENCE
pages: always
emails: n/a
sms: n/a
docs: n/a

request.

The request. top level object allows access to the current webpage request details.

CONSTRAINTS
n/a
PRESENCE
pages: always
emails: n/a
sms: n/a
docs: n/a