The category object contains following attributes:


Object Fields

FieldData TypeDescription
category.idStringReturns the unique identifier of the category.
category.titleStringReturns the title of the category.
category.urlStringReturns the full URL of a category.
category.products_countNumberReturns number of products in the category.
category.childrenArrayReturns an array of child categories.

Code Example

    <li>
        <a href="{{ category.url }}">
            {{ category.title }}
            <i href="{{ category.id }}"></i>
        </a>
    </li>