This template shows the users returns raised against products purchased. All these variables can be accessed from the returns recursive array by using a loop to access the sub array data contained within the returns array.#
return
Term | Data Type | Typical Output | Description |
---|---|---|---|
return.id | int | 4 | The return id |
return.status.name | varchar | Pending | The current return status in plain text |
return.reason | varchar | Unwanted item | The reason for the return in plain text |
return.date.created | varchar | Tue 11th June 2011, 13:45 | The formatted date in plain text |
return.product.name | varchar | Product Name | The product name |
return.order.id | int | 8 | The order id relating to the return |
The following references can also be used on this template
Term | Data Type | Typical Output | Description |
---|---|---|---|
page_nav | html | Page 1 of 3… | The page navigation bar in HTML |
Usage
<table cellspacing="0" cellpadding="0" class="productList"> <thead> <tr> <th>Ref</th> <th>Status</th> <th>Reason</th> <th>Date Created</th> <th>Product</th> <th>Order</th> </tr> </thead> <tbody> {% for return in returns %} <tr> <td class="row"><a href="{{ return.link }}" title="">{{ return.id }}</a></td> <td class="row"><a href="{{ return.link }}" class="tooltip" title="{{ return.status.body }}">{{ return.status.name }}</a></td> <td class="row">{{ return.reason }}</td> <td class="row">{{ return.date.created }}</td> <td class="row"><a href="{{ return.product.link }}" title="return.product.name">{{ return.product.name }}</a></td> <td class="row"><a href="{{ return.order.link }}" title="Goto Order {{ return.order.id }}">#{{ return.order.id }}</a></td> </tr> {% endfor %} </tbody> </table>
Comments
0 comments
Please sign in to leave a comment.