Posted by on March 11, 2013

For example, we set up 2 Extra fields, if we want Extra Field shows at header, and Extra Field shows at its original place. Do as follows:

Let Extra Field original place show Extra Field 2 data:

1. Go to skin/common_files/modules/Extra_Fields/ and open: product.tpl

change

Code:
{foreach from=$extra_fields item=v}
{if $v.active eq “Y” and $v.field_value}

{$v.field}{$v.field_value}

{/if}as:

Code:
{foreach from=$extra_fields item=v}
{if $v.fieldid eq “2” and $v.field_value}

{$v.field}{$v.field_value}

{/if}
Let Detailed Product Header show Extra Field 1 data:

1. Go to skin/common_files/modules/Extra_Fields/, copy product.tpl, and rename the new file name as: product_header_extra.tpl.

2. Open product_header_extra.tpl, change:

Code:
{foreach from=$extra_fields item=v}
{if $v.fieldid eq “2” and $v.field_value}

{$v.field}{$v.field_value}

{/if}to:

Code:
{*
$Id: product.tpl,v 1.1 2010/05/21 08:32:20 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{foreach from=$extra_fields item=v}
{if $v.fieldid eq “1” and $v.field_value}
{$v.field_value}
{/if}
{/foreach}3. Go to skin/common_files/customer/, and open content.tpl,
change

Code:

{include file=”customer/evaluation.tpl”}to:Code:

{if $active_modules.Extra_Fields}
{include file=”modules/Extra_Fields/product_header_extra.tpl”}
{/if}
{include file=”customer/evaluation.tpl”}
Done.
Posted in: X-Cart