<table BORDER="1">
    <tr>
        <th colspan="3"> Contents of your cart: </th>
    </tr>
    <tr>
        <th> Price </th>
        <th> Quantity </th>
        <th> Price </th>
    </tr>
    <TMPL_LOOP CART>
    <tr>
        <td> <TMPL_VAR name> </td>
        <td> <TMPL_VAR qty> </td>
        <td> <TMPL_VAR price> </td>
    </tr>
    </TMPL_LOOP>
    <tr>
        <th>Total Price:</th>
        <th colspan="2"> <TMPL_VAR total_price> </th>
    </tr>
    </table>

Example 2: Adding complex session data to a template file.

Back to Article