template

Information about the current template.

Properties

Type

Description

directory

string

The name of the template's parent directory.

Returns nil if the template's parent directory is /templates.

name

string from a set of values, refer to name values

The name of the template's type.

suffix

string

The custom name of an alternate template.

type

number

The type of template.

name values

Possible values
404
addresses
article
blog
cart
collection
login
index
order
order_verify
page
product
register
reset_password
reset_success
search
{
  "directory": "",
  "name": "order",
  "type": 35,
  "suffix": "default"
}