View Single Post
  #13  
Old 05-02-2008, 07:33 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 "PRODUCTS DETAILS PAGE":

3.1 Edit file "skin1/customer/main/product.tpl", after this lines:

PHP Code:
<tr><td colspan="2">&nbsp;</td></tr>
<
tr>
    <
td width="30%">{$lng.lbl_sku}</td>
    <
td nowrap="nowrap" id="product_code">{$product.productcode}</td>
</
tr

Insert the following code

PHP Code:
{if $active_modules.Extra_Fields ne ""}
{include 
file="modules/Extra_Fields/product2.tpl"}
{/if} 


3. For SUBCATEGORY page (config.Appearance.products_per_row="", Display products list in multiple columns (1-3) (leave empty to use standard format)):

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.tpl", after this lines:
PHP Code:
{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
<
br />
{
$lng.lbl_sku}: {$products[product].productcode}
{/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