TemplatesProducts module
Products templates
Default templates the Products module renders, the controller that renders each one and what it receives. A file at the same path in your site repository replaces the platform's.
Templates view
products/category-descriptions/show.html
CategoryDescriptions\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$categoryDescription |
CategoryDescription |
Single CategoryDescription record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/products/category-descriptions/show.html in your site repository.
products/product-descriptions/index.html
ProductDescriptions\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$productDescriptions |
Collection<ProductDescription> |
Collection of ProductDescriptions |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/products/product-descriptions/index.html in your site repository.
products/product-descriptions/show.html
ProductDescriptions\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$productDescription |
ProductDescription |
Single ProductDescription record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/products/product-descriptions/show.html in your site repository.
products/products/index.html
Products\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$products |
Collection<Product> |
Collection of Products |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/products/products/index.html in your site repository.
products/wishlist/index.html
Wishlist\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$wishlist |
Collection<Wishlist> |
Collection of Wishlist |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/products/wishlist/index.html in your site repository.