Forums / Setup & design / *** PLEASE *** / Comment20700
john polo
Wednesday 14 December 2005 3:29:28 am
i did the following by changing design/base/override/templates/line/product.tpl
http://www.donercafe.com/alp/index.php?/food/products
but one line consists of the same product..horizontally....vertically it is ok...
am i missing something here.. how can i set it up so that each table shows different products...
<link href="stylesheet.css" rel="stylesheet" type="text/css"> <body> <table border="0" cellpadding="0" cellspacing="0" width="42%"> <tbody> <tr> <td> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td></td> </tr> <tr> <td height="6"></td> </tr> <tr> <td class="bg"> <!-- new_products //--> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="top" width="257"> <table align="center" cellpadding="0" cellspacing="0" width="247"> <tbody> <tr> <td align="center" valign="middle" width="118"><span class="content-image">{attribute_view_gui alignment=right image_class=small attribute=$node.object.data_map.image.content.data_map.image}</span></td> <td valign="top" width="128"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="120"> <tbody> <tr> <td height="2"></td> </tr> <tr> <td height="42" valign="middle"><span class="tx"><strong>{$node.name|wash()}</strong></span></td> </tr> <tr> <td height="2"></td> </tr> <tr> <td class="main" height="52">{attribute_view_gui attribute=$node.object.data_map.short_description}</td> </tr> </tbody> </table></td> </tr> <tr> <td colspan="2" height="5"></td> </tr> <tr> <td colspan="2" bgcolor="#e1dcdc" height="1" width="247"></td> </tr> <tr> <td colspan="2" height="10"></td> </tr> <tr> <td colspan="2" align="center" valign="middle"><span class="ch1">{attribute_view_gui attribute=$node.object.data_map.price}<span class="currency_symbol"></span></span> <form method="post" action={"content/action"|ezurl}> <input type="image" src={"addcart.jpg" |ezimage } name="ActionAddToBasket" value="{"Add to basket"|i18n("design/base")}" /> <input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> <input type="hidden" name="ContentObjectID" value="{$node.object.id}" /> <input type="hidden" name="ViewMode" value="full" /> </form> <a href={$node.url_alias|ezurl}><img src={"details.jpg"|ezimage} border="0" /></a> </td> </tr> <tr> <td colspan="2" height="10"></td> </tr> <tr> <td colspan="2" bgcolor="#c5bbbb" height="1" width="247"></td> </tr> </tbody> </table></td> <td width="1"></td> <td valign="top" width="257"> <table align="center" cellpadding="0" cellspacing="0" width="247"> <tbody> <tr> <td align="center" valign="middle" width="118"><span class="content-image">{attribute_view_gui alignment=right image_class=small attribute=$node.object.data_map.image.content.data_map.image}</span></td> <td valign="top" width="128"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="120"> <tbody> <tr> <td height="2"></td> </tr> <tr> <td height="42" valign="middle"><span class="tx"><strong>{$node.name|wash()}</strong></span></td> </tr> <tr> <td height="2"></td> </tr> <tr> <td class="tx" height="52"><span class="main">{attribute_view_gui attribute=$node.object.data_map.short_description}</span></td> </tr> </tbody> </table></td> </tr> <tr> <td colspan="2" height="5"></td> </tr> <tr> <td colspan="2" bgcolor="#e1dcdc" height="1" width="247"></td> </tr> <tr> <td colspan="2" height="10"></td> </tr> <tr> <td colspan="2" align="center" valign="middle"><span class="ch1">{attribute_view_gui attribute=$node.object.data_map.price}<span class="currency_symbol"></span></span> <form method="post" action={"content/action"|ezurl}> <input type="image" src={"addcart.jpg" |ezimage } name="ActionAddToBasket" value="{"Add to basket"|i18n("design/base")}" /> <input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> <input type="hidden" name="ContentObjectID" value="{$node.object.id}" /> <input type="hidden" name="ViewMode" value="full" /> </form> <a href={$node.url_alias|ezurl}><img src={"details.jpg"|ezimage} border="0" /></a></td> </tr> <tr> <td colspan="2" height="10"></td> </tr> <tr> <td colspan="2" bgcolor="#c5bbbb" height="1" width="247"></td> </tr> </tbody> </table></td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="top" width="257"></td> <td width="1"></td> <td valign="top" width="257"></td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0"> <tbody> <tr> </tr> </tbody> </table> <!-- new_products_eof //--> </td> </tr> <tr> <td height="6"></td> </tr> </tbody> </table></td> </tr> </tbody> </table> </body> </html>