Skip to main content

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
Object
{
"directory": "",
"name": "order",
"type": 35,
"suffix": "default"
}
On this page