Good Evening Everyone,
I have the same question but for the 4.0 version. This thread started with the 4.0 version, but was never finished. I have attached the products.tpl code if someone could desperately help me.
Quote:
{* $Id: products.tpl,v 1.32.2.2 2004/11/05 12:48:25 max Exp $ *}
{if $products ne ""}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
<!--
checkboxes_form = 'processproductform';
checkboxes = new Array({foreach from=$products item=v key=k}{if $k > 0},{/if}'productids[{$v.productid}]'{/foreach});
-->
</SCRIPT>
{include file="change_all_checkboxes.tpl"}
<DIV style="line-height:170%"><A href="javascript:change_all(true);">{$lng.lbl_chec k_all}</A> / <A href="javascript:change_all(false);">{$lng.lbl_unc heck_all}</A></DIV>
<TABLE border="0" cellpadding="2" cellspacing="1" width="100%">
{if $main eq "category_products"}
{assign var="url_to" value="category_products.php?cat=`$cat`&page=`$nav page`"}
{else}
{assign var="url_to" value="search.php?mode=search&page=`$navpage`"}
{/if}
<TR class="TableHead">
<TD width="5"> </TD>
<TD nowrap>{if $search_prefilled.sort_field eq "productcode"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<A href="{$url_to}&sort=productcode&sort_direction={i f $search_prefilled.sort_field eq "productcode"}{if $search_prefilled.sort_direction eq 1}0{else}1{/if}{else}{$search_prefilled.sort_direction}{/if}">{$lng.lbl_sku}</A></TD>
<TD width="100%" nowrap>{if $search_prefilled.sort_field eq "title"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<A href="{$url_to}&sort=title&sort_direction={if $search_prefilled.sort_field eq "title"}{if $search_prefilled.sort_direction eq 1}0{else}1{/if}{else}{$search_prefilled.sort_direction}{/if}">{$lng.lbl_product}</A></TD>
{if $main eq "category_products"}
<TD nowrap>{if $search_prefilled.sort_field eq "orderby"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<A href="{$url_to}&sort=orderby&sort_direction={if $search_prefilled.sort_field eq "orderby"}{if $search_prefilled.sort_direction eq 1}0{else}1{/if}{else}{$search_prefilled.sort_direction}{/if}">{$lng.lbl_pos}</A></TD>
{/if}
<TD nowrap>{if $search_prefilled.sort_field eq "quantity"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<A href="{$url_to}&sort=quantity&sort_direction={if $search_prefilled.sort_field eq "quantity"}{if $search_prefilled.sort_direction eq 1}0{else}1{/if}{else}{$search_prefilled.sort_direction}{/if}">{$lng.lbl_quantity}</A></TD>
<TD nowrap>{if $search_prefilled.sort_field eq "price"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<A href="{$url_to}&sort=price&sort_direction={if $search_prefilled.sort_field eq "price"}{if $search_prefilled.sort_direction eq 1}0{else}1{/if}{else}{$search_prefilled.sort_direction}{/if}">{$lng.lbl_price} ({$config.General.currency_symbol})</A></TD>
</TR>
{section name=prod loop=$products}
<TR{cycle values=", class=TableSubHead"}>
<TD width="5"><INPUT type="checkbox" name="productids[{$products[prod].productid}]"></TD>
<TD><A href="product_modify.php?productid={$products[prod].productid}{if $navpage}&page={$navpage}{/if}">{$products[prod].productcode}</A></TD>
<TD width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}<B>{/if}<A href="product_modify.php?productid={$products[prod].productid}{if $navpage}&page={$navpage}{/if}">{$products[prod].product|truncate:35:"...":false}</A>{if $products[prod].main eq "Y" or $main ne "category_products"}</B>{/if}</TD>
{if $main eq "category_products"}
<TD><INPUT type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][orderby]" value="{$products[prod].orderby}"></TD>
{/if}
<TD><INPUT type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][avail]" value="{$products[prod].avail}"{if $products[prod].is_variant eq 'Y'} readonly{/if}></TD>
<TD><INPUT type="text" size="9" maxlength="15" name="posted_data[{$products[prod].productid}][price]" value="{$products[prod].price}"{if $products[prod].is_variant eq 'Y'} readonly{/if}></TD>
</TR>
{/section}
</TABLE>
{/if}
|