TemplatesOrders module
Orders templates
Default templates the Orders 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
orders/orders/index.html
Orders\Index
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$orders |
Collection<Order> |
Collection of Orders |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/orders/orders/index.html in your site repository.
orders/orders/show.html
Orders\Show
Show a single record
| Variable | Type | Description |
|---|---|---|
$order |
Order |
Single Order record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Override it: create templates/orders/orders/show.html in your site repository.