The definitions are:
$start
$table
$cell
$cell2
$line
$end
$footer
Each of these will be described so you will be able to totally customize this page. Each definition must be enclosed within paranthesis, but otherwise can be on multiple lines. Any line that starts with a # will be treated as a comment line.
$start=(%%header%%)
$table=(<table width=100% border=0>)
or
$table=(<table width=100% border=1>)
The first one will display a table without borders, and the second one will display a table with a border.
A typical $cell may contain:
$cell=(<td align=center valign=bottom>%%image%%</td>)
The td means that this is a table data cell, and the /td means that this is the end of that cell.
The image can be made a click on by putting it inside of a link tag like this:
$cell=(<a href="cart.cgi?store=%%store%%&cart_id=%%cart_id%%&product_name=%%nameplus%%&return_page=%%return%%&user-id=%%user-id%%&password=%%password%%&exchange=%%exchange%%&exact_match=exact"><td align=center valign=bottom>%%image%%</td>)
$cell2 will typically be a link, and can contain the name of the item, price, and so forth. A typcial $cell2 would be:
$cell2=(<td align=center>%%name%%<br>%%price%%<br> <a href="cart.cgi?store=%%store%%&cart_id=%%cart_id%%&product_name=%%nameplus%%&return_page=%%return%%&user-id=%%user-id%%&password=%%password%%&exchange=%%exchange%%&exact_match=exact"> More Information</a></td>\n)
If you add a category=%%categoryplus%% to this string, or the link in the $cell, then when continue shopping is clicked in the cart, the customer will be returned to the category page instead of the front page of the cart. The %%categoryplus%% tag is the category with "+" substituted in place of any spaces so it will work properly in a link
For example:
$cell2=(<td align=center>%%name%%<br>%%price%%<br> <a href="cart.cgi?store=%%store%%&cart_id=%%cart_id%%&product_name=%%nameplus%%&category=%%categoryplus%%&user-id=%%user-id%%&password=%%password%%&exchange=%%exchange%%&exact_match=exact">M More Information</a></td>\n)
You will notice that the return_page was replaced with the category since the return_page would override this, and make the category return non-functional.
$line=(<tr>%%cell%% %%cell%% %%cell%%</tr>
<tr>%%cell2%% %%cell2%% %%cell2%%</tr>)
The <tr> indicates the beginning of a new line of cells across the page, and the </tr> indicated the end of this new line of cells. The %%cell%% tag takes the above $cell definition and inserts it there for that specific item, and the %%cell2%% inserts the $cell2 definition. Thus the above definition will create two lines with 3 cells each, and the first line will display the cell according to the cell definition, and the second line will display the cell according to the cell2 definition.
$end=(<<tr></table><center><b><a href=cart.cgi?store=%%store%%&checkout_button.x=yes&cart_id=%%cart_id%%&return_page=%%return%%&user-id=%%user-id%%&password=%%password%%&exchange=%%exchange%%>Checkout</b></a>)
Note that this end statement will be followed by a line to select the next batch of items if all could not be displayed on this page automatically.