View Single Post
  #14  
Old 05-02-2008, 07:38 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Extra Fields: Creating and making available for all Providers.

3. For SUBCATEGORY page (config.Appearance.products_per_row!=""):

3.1. Create file "skin1/modules/Extra_Fields/product3.tpl":
PHP Code:
{* $Idproduct.tpl,v 1.9 2005/11/21 12:42:06 max Exp $ *}
{
section name=field loop=$extra_fields}
{if 
$extra_fields[field].active eq "Y" && $extra_fields[field].value && $extra_fields[field].field eq "Designer"}
<
tr>
    <
td width="30%">{$extra_fields[field].field}</td>
    <
td>{$extra_fields[field].value}</td>
</
tr>
{/if}
{/
section

3.2. Edit file "skin1/customer/main/products_t.tpl", after this lines:
PHP Code:
{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
{
$lng.lbl_sku}: {$products[product].productcode}<br />
{/if} 

Insert the following code

PHP Code:
{if $active_modules.Extra_Fields ne ""}
    <
table border="0">
    {include 
file="modules/Extra_Fields/product3.tpl" extra_fields=$products[product].extra_fields}
    </
table>
{/if} 
Reply With Quote