4.1.1 code for the products section.
shopcart/skin1/main/products_colors.tpl
Code:
{* $Id: products_colors.tpl,v 2.0 2004/10/31 01:44:16 ADPBoss Exp $ *}
{if $products[prod].forsale eq "N"} bgcolor="#CCCCCC"
{elseif $products[prod].forsale eq "Y" and $products[prod].avail eq "0"} bgcolor="#FF3333"
{elseif $products[prod].forsale eq "Y" and $products[prod].avail eq "1"} bgcolor="#FFFF99"
{/if}
shopcart/skin1/main/products.tpl (Full Code)
Code:
{* $Id: products.tpl,v 1.42.2.1 2006/05/15 12:24:08 max Exp $ *}
{if $products ne ""}
{include file="main/check_all_row.tpl" style="line-height: 170%;" form="processproductform" prefix="productids"}
<script type="text/javascript">
<!--
var txt_pvariant_edit_note_list = "{$lng.txt_pvariant_edit_note_list|escape:javascript|replace:'"':'\"'}";
{literal}
function pvAlert(obj) {
if (obj.pvAlertFlag)
return false;
alert(txt_pvariant_edit_note_list);
obj.pvAlertFlag = true;
return true;
}
{/literal}
-->
</script>
<table cellpadding="2" cellspacing="1" width="100%">
{if $main eq "category_products"}
{assign var="url_to" value="category_products.php?cat=`$cat`&page=`$navpage`"}
{else}
{assign var="url_to" value="search.php?mode=search&page=`$navpage`"}
{/if}
<tr class="TableHead">
<td width="5"></td>
<td nowrap="nowrap">{if $search_prefilled.sort_field eq "productcode"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}
{$lng.lbl_sku}</td>
<td width="100%" nowrap="nowrap">{if $search_prefilled.sort_field eq "title"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}
{$lng.lbl_product}</td>
{if $main eq "category_products"}
<td nowrap="nowrap">{if $search_prefilled.sort_field eq "orderby"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}
{$lng.lbl_pos}</td>
{/if}
<td nowrap="nowrap">{if $search_prefilled.sort_field eq "quantity"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}
{$lng.lbl_in_stock}</td>
<td nowrap="nowrap">{if $search_prefilled.sort_field eq "price"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}
{$lng.lbl_price} ({$config.General.currency_symbol})</td>
</tr>
{section name=prod loop=$products}
<tr{cycle values=', class="TableSubHead"'}>
<td {include file="main/products_colors.tpl"} width="5"><input type="checkbox" name="productids[{$products[prod].productid}]" /></td>
<td {include file="main/products_colors.tpl"}>
{$products[prod].productcode}</td>
<td {include file="main/products_colors.tpl"} width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}
{/if}{$products[prod].product|truncate:35:"...":false}{if $products[prod].main eq "Y" or $main ne "category_products"}{/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 {include file="main/products_colors.tpl"} align="center"><input type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][avail]" value="{$products[prod].avail}"{if $products[prod].is_variants eq 'Y'} readonly="readonly" onclick="javascript: pvAlert(this);"{/if} /></td>
<td {include file="main/products_colors.tpl"}><input type="text" size="9" maxlength="15" name="posted_data[{$products[prod].productid}][price]" value="{$products[prod].price|formatprice}"{if $products[prod].is_variants eq 'Y'} readonly="readonly" onclick="javascript: pvAlert(this);"{/if} /></td>
</tr>
{/section}
</table>
{/if}
And a picture of what it looks like after the 4.1.1 modification (Grey means disabled)
http://www.theshisha.com/images/x-cart_product_color.jpg