<h2>Your Shopping Cart</h2>
<form action="deleteItems"
tal:define="global format_money
nocall:modules/Products/PythonScripts/standard/dollars_and_cents;
global current_items here/currentItems"
tal:condition="current_items">
<table cellpadding="8" cellspacing="0" border="0">
<tr align="left" class="normal">
<th></th>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
</tr>
<tr valign="top" class="small"
tal:repeat="item current_items">
<td><input type="checkbox" name="ids:list"
value="id" tal:attributes="value item/id"></td>
<td tal:content="item/title">Item</td>
<td tal:define="price item/price"
tal:content="python:format_money(price)">$10.00</td>
<td tal:content="item/quantity">2</td>
</tr>
<tr>
<td colspan="4"><input type="submit" value="Delete Items"></td>
</tr>
<tr align="left" class="normal">
<td colspan="2"></td>
<th colspan="2">
Total<br><span tal:define="total here/getTotal"
tal:replace="python:format_money(total)">$25.00</span>
</th>
</tr>
</table>
</form>
|