View Single Post
  #41  
Old 10-30-2004, 09:46 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

And here is the product color mod for 4.0.5

UPDATED 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}

Make changes to skin1/main/products.tpl

Around line 36 change this

Code:
<TR{cycle values=", class=TableSubHead"}> <TD width="5"><INPUT type="checkbox" name="productids[{$products[prod].productid}]"></TD> <TD>{$products[prod].productcode}</TD> <TD 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><INPUT type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][avail]" value="{$products[prod].avail}"></TD> <TD><INPUT type="text" size="9" maxlength="15" name="posted_data[{$products[prod].productid}][price]" value="{$products[prod].price}"></TD> </TR>

to this

Code:
<TR{cycle values=", class=TableSubHead"}> <TD 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 {include file="main/products_colors.tpl"}><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"}><INPUT type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][avail]" value="{$products[prod].avail}"></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}"></TD> </TR>
Reply With Quote