Functional description
Difficulty level:
Options variables
This section describes the available variables in the options templates.
Note: To use option variables, knowledge of how detail rows work is required. See an example at the bottom of this article.
Start code: <!-- BEGIN options -->
End code: <!-- END options -->
Variable | Description | Example |
---|---|---|
{S_OPTIONS} | A control variable to indicate whether the options table is populated | True / False |
{options.ID} | 2 | |
{options.NAME} | Technical name of the option (type) | HAND |
{options.DESCRIPTION} | Description of the option (type) | Towel package |
{options.NUMBER} | Quantity | 4 |
{options.CURRENCY} | Currency | EUR |
{options.GROUP} | Group |
An example table with option rows:
<table align="center" border="0" cellpadding="0" cellspacing="1" style="width:100%"> <tbody> <tr> <td>ID</td> <td>Technical name</td> <td>Description</td> <td>ID</td> <td>Quantity</td> <td>Currency</td> <td>Group</td> </tr> <!-- BEGIN options --> <tr> <td>{options.ID}</td> <td>{options.NAME}</td> <td>{options.DESCRIPTION}</td> <td>{options.NUMBER}</td> <td>{options.CURRENCY}</td> <td>{options.GROUP}</td> </tr> <!-- END options --> </tbody> </table>