template
warning
Due to the difference in themes, both OS2.0 and OS1.0 themes obtain the same information through the use of template_v2.
Information about the current template.
Properties
The name of the template's parent directory.
Returns null if 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 null if the default template is being used.
Was this article helpful to you?