TemplatesDiscounts module

Discounts templates

Default templates the Discounts 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

discounts/backend/actions/add.html Actions\Add

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

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

Customise this admin screen: create templates/discounts/backend/actions/add.html in your site repository.

discounts/backend/codes/add.html Codes\Add

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

The admin template receives
VariableTypeDescription
$code Code Single (empty) Code record

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

Customise this admin screen: create templates/discounts/backend/codes/add.html in your site repository.

discounts/backend/codes/edit.html Codes\Edit

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

The admin template receives
VariableTypeDescription
$code Code Retrieved Code record

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

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

discounts/backend/codes/manage.html Codes\Manage

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

The admin template receives
VariableTypeDescription
$codes Collection<Code> Collection of Codes

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

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

discounts/backend/conditions/add.html Conditions\Add

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

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

Customise this admin screen: create templates/discounts/backend/conditions/add.html in your site repository.

discounts/backend/discounts/add.html Discounts\Add

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

The admin template receives
VariableTypeDescription
$discount Discount Single (empty) Discount record

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

Customise this admin screen: create templates/discounts/backend/discounts/add.html in your site repository.

discounts/backend/discounts/edit.html Discounts\Edit

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

The admin template receives
VariableTypeDescription
$discount Discount Retrieved Discount record

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

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

discounts/backend/discounts/manage.html Discounts\Manage

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

The admin template receives
VariableTypeDescription
$discounts Collection<Discount> Collection of Discounts

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

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

discounts/backend/rules/add.html Rules\Add

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

The admin template receives
VariableTypeDescription
$rule Rule Single (empty) Rule record

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

Customise this admin screen: create templates/discounts/backend/rules/add.html in your site repository.

discounts/backend/rules/edit.html Rules\Edit

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

The admin template receives
VariableTypeDescription
$rule Rule Retrieved Rule record

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

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

discounts/backend/rules/manage.html Rules\Manage

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

The admin template receives
VariableTypeDescription
$rules Collection<Rule> Collection of Rules

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

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