# Al's Tools Product Template for Two-Column Display # The *PAGE* template must contain the [--LOOP PRODUCT x--] tag to # set up multiple columns, where x defines the number of columns. # The PRODUCT template (this one) DOES NOT have any tags that are # explicitly for multiple columns. It is just designed to produce # HTML to "fit in" to the HTML created by the page template. The # two templates have to work together to create a complete page with # valid HTML structure. Thus if the PAGE template sets up a table to # present products in multiple columns, each product will most likely # be formatted to be one cell in the table. # (this tag causes Internet Explorer to display this page as text, # rather than trying to display it as HTML. You don't need it in your # custom product template.) #The page template has already set each product to appear in its own #table cell, so whatever is defined here will appear between #<td> and </td> tags. [--DEFINE PRODUCT--] <!--Format product as a table to put picture over product info --> <table border="0"> <tr> [--IF PRODUCT.DisplayMoreInformationPage--] <td align="center"><a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a></td> [--ELSE--] <td align="center">[-- PRODUCT.Graphic --]</td> [--END_IF--] </tr> <tr> [--IF PRODUCT.DisplayMoreInformationPage--] <td align="center"><a href="[-- PRODUCT.MoreInfoURL --]"><b>[-- PRODUCT.Name --]</b></a></td> [--ELSE--] <td align="center"><b>[-- PRODUCT.Name --]</b></td> [--END_IF--] </tr> <tr> <td>[-- PRODUCT.ProductDescription --]</td> </tr> <tr> <td align="center"> [-- IF VAR.text2 --] [-- VAR.text2 --]<br> [--END_IF--] [--IF PRODUCT.SaleOn--] <strike>[-- PRODUCT.Price --]</strike>&nbsp;&nbsp;<b>[-- PRODUCT.SaleAmount --]&nbsp;<font color="red">On Sale!</font></b> [--Else--] <b>[-- PRODUCT.Price --]</b> [--End_If--] &nbsp;&nbsp; <a href="[--PRODUCT.AddToCartURL--]">[-- PRODUCT.AddToCartButton --]</a></td> </tr> </table> [-- END_DEFINE PRODUCT--] [-- DEFINE MORE_INFO_PAGE--] <html> <head> <title>[-- PRODUCT.Name --]</title> </head> <body background="[-- MORE_INFO.BackgroundImage--]" text="[-- MORE_INFO.TextColor --]"> <font face="verdana, helvetica, arial" size="3"> <blockquote> [-- IF MORE_INFO.DisplayPageHeader --] [-- HEADER --] [-- END_IF --] <h2>[-- PRODUCT.Name --]</h2> <small>[-- PRODUCT.SKU --]</small> <br>[-- PRODUCT.MoreInformationGraphic --] <p> [-- IF PRODUCT.SaleOn --] <strike>[-- PRODUCT.Price --]</strike>&nbsp;&nbsp;<b>[-- PRODUCT.SaleAmount --]&nbsp;&nbsp;<font color="red">On Sale!</font></b> [-- ELSE --] <b>[-- PRODUCT.Price --]</b> [-- END_IF --] [-- PRODUCT.MoreInformationText --] <p><nobr> <a href="[--PRODUCT.AddToCartURL--]">[-- PRODUCT.AddToCartButton --]</a> <a href="[--SHOPPING_CART_URL--]">[-- PRODUCT.ViewCartButton --]</a> </nobr></p> [--IF MORE_INFO.DisplayPageFooter--] [--FOOTER--] [--END_IF--] </blockquote> </body> </html> [-- END_DEFINE MORE_INFO_PAGE--]