View Single Post
  #17  
Old 12-24-2002, 12:21 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

good spot Jon.

Just testing to see if anyone is reading the code

Yes customer/main/show_all.tpl should be created aswell:

I have extensively modified this but the basic template to use is products.tpl just I hard coded some of the dialog.tpl stuff

Code:
{* $Id: show_all.tpl,v 1.16 2002/09/25 10:12:05 zorg Exp $ *} <font class="TableCenterNavigationPath">Shop Name</font>::<font class="TableCenterNavigationPath">All Products</font>:: This is the full list of products. <TABLE border=0 cellPadding=2 cellSpacing=0 width="100%"> <TR> <TD height="20" class=TableTop background="{$ImagesDir}/dialog_bg.gif" valign=bottom><FONT class=TableCenterPartnerPromotionTitleOrange>All Current Products</FONT></TD> </TR> <TR><TD class=DialogBorder><TABLE border=0 cellPadding=10 cellSpacing=0 width="100%"> <TR><TD bgColor=#FFFFFF> {section name=product loop=$products} <table border=0 width=100% cellpadding=2 cellspacing=0> <tr> <td width=10% align=center valign=top > {$products[product].category} </td> <td width=10% align=center valign=top > {$products[product].productcode} </td> <td valign=top width=40% > <font class=TableCenterProductTitleBlue>{$products[product].product|escape}</font>More.... </td> <td width=20% align=center> {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].price ne 0} {if $products[product].discount ne 0} <font class=grey>Price ::<s>{math equation="(price/(100-discount))*100" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted}{include file="currency.tpl" value=$unformatted}</s></font> {/if} <font class=grey>Price :: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].discount ne 0}, save {$products[product].discount}%{/if} {else} <font class=TableCenterProductTitleOrange>{$lng.lbl_enter_your_price}</font> {/if} {/if} </td> <form name=orderform_{%product.index%} method=post action="cart.php?mode=add"> <td align=center width=20%><a href="javascript: document.orderform_{%product.index%}.submit()"> {include file="buttons/add_to_cart.tpl"}</a> <input type=hidden name=amount value=1> <input type=hidden name=mode value=add> <input type=hidden name=productid value="{$products[product].productid}"> <input type=hidden name=cat value="{$smarty.get.cat}"> <input type=hidden name=page value="{$smarty.get.page}"> </td> </form> </tr> </table> {/section} </TD></TR> </TABLE></TD></TR> </TABLE>
__________________
ex x-cart guru
Reply With Quote