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.

View Default templates of the public site.

Templates view

products/category-descriptions/show.html CategoryDescriptions\Show

Show a single record

The template receives
VariableTypeDescription
$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.

The template receives
VariableTypeDescription
$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

The template receives
VariableTypeDescription
$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.

The template receives
VariableTypeDescription
$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.

The template receives
VariableTypeDescription
$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.