template
Information about the current template.
Properties
The name of the template's parent directory.
Returns
nilif the template's parent directory is/templates.The name of the template's type.
Possible values 404 article blog cart collection list-collections customers/account customers/activate_account customers/addresses customers/login customers/order customers/register customers/reset_password gift_card index page password product search The custom name of an alternate template.
Returns
nilif the default template is being used.
{
"directory": null,
"name": "product",
"suffix": null
}
Example
{
"directory": null,
"name": "product",
"suffix": null
}Was this section helpful?