Category Object
Display category pages with basic category information
The category
object contains basic information about product categories. It’s available on product list pages and provides access to category name and description fields.
Usage: Available on product list pages - use to display basic category information
Basic Category Information
Access the core category details that are available:
Available Properties
Core Category Properties
Property | Type | Description |
---|---|---|
category.name | String | Category name |
category.description1 | String | Category description field 1 |
category.description2 | String | Category description field 2 |
Product Listings
For product listings within categories, you’ll need to use the product objects as they become available within product loops:
Complete Category Template Example
Usage Notes
Limited Category Object: The category object only provides basic information (name and two description fields). Product listings, subcategories, pagination, and filtering functionality are not part of the category object itself and would need to be implemented through other means in the theme system.
Best Practices
Content Organization
Use description1 for main category content and description2 for additional information
SEO Optimization
Use category names and descriptions effectively for search engine optimization
HTML Content
Category descriptions support HTML content, use proper markup for structure
Accessibility
Use semantic HTML and proper heading hierarchy for category content