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.

View cdna-admin screens you can override in your site repository.

Admin view

orders/backend/metadata-fields/add.html MetadataFields\Add

Add a new record. Assigns an empty record to the template.

The admin template receives
VariableTypeDescription
$metadataField MetadataField Single (empty) MetadataField record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/metadata-fields/add.html in your site repository.

orders/backend/metadata-fields/edit.html MetadataFields\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$metadataField MetadataField Retrieved MetadataField record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/metadata-fields/edit.html in your site repository.

orders/backend/metadata-fields/manage.html MetadataFields\Manage

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$metadataFields Collection<MetadataField> Collection of MetadataFields

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/metadata-fields/manage.html in your site repository.

orders/backend/orders/edit.html Orders\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$order Order Retrieved Order record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/orders/edit.html in your site repository.

orders/backend/orders/manage.html Orders\Manage

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$orders Collection<Order> Collection of Orders

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/orders/manage.html in your site repository.

orders/backend/refunds/edit.html Refunds\Edit

Retrieve a single record and display the edit page for the record

The admin template receives
VariableTypeDescription
$refund Refund Retrieved Refund record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/refunds/edit.html in your site repository.

orders/backend/refunds/manage.html Refunds\Manage

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$refunds Collection<Refund> Collection of Refunds

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Customise this admin screen: create templates/orders/backend/refunds/manage.html in your site repository.