Display product features on product page

On my detailed product pages, under my product image, I want to fill that space with my PRODUCT FEATURE options. What is the code to display product features?



Thanks.

[quote name='ckad79' timestamp='1326922427' post='129558']

On my detailed product pages, under my product image, I want to fill that space with my PRODUCT FEATURE options. What is the code to display product features?



Thanks.

[/quote]



Heres some code from my template you might find helpful. You may want to try putting it in a hook such as the “products:view_main_info”. If your familiar with hooks then I would suggest that and just use a post hook unless of course you need more exact placement then you'll have to edit the core template files or create a custom hook. I suggest the latter.




```php

{* $Id$ *}



{foreach from=$product_features item=“feature”}

{if $feature.feature_type != “G”}


{if $feature.full_description|trim}{*{include file="common_templates/help.tpl" text=$feature.description content=$feature.full_description|unescape id=$feature.feature_id show_brackets=true}*}{/if}
{$feature.description|unescape}:

{if $feature.feature_type == "M"}
{assign var="hide_prefix" value=true}
{else}
{assign var="hide_prefix" value=false}
{/if}

{strip}
{if $feature.prefix && !$hide_prefix}{$feature.prefix}{/if}
{if $feature.feature_type == "C"}
{$feature.value}
{elseif $feature.feature_type == "D"}
{$feature.value_int|date_format:"`$settings.Appearance.date_format`"}
{elseif $feature.feature_type == "M" && $feature.variants}

    {foreach from=$feature.variants item="var"}
    {if $var.selected}
  • {$var.variant} {if $hide_prefix}{$feature.prefix}{/if}{$var.variant}{if $hide_prefix}{$feature.suffix}{/if}
  • {/if}
    {/foreach}

{elseif $feature.feature_type == "S" || $feature.feature_type == "E"}
{foreach from=$feature.variants item="var"}
{if $var.selected}{if $var.seo_name}{/if}{$var.variant}{/if}
{/foreach}
{elseif $feature.feature_type == "N" || $feature.feature_type == "O"}
{$feature.value_int|default:"-"}
{else}
{$feature.value|default:"-"}
{/if}
{if $feature.suffix && !$hide_prefix}{$feature.suffix}{/if}
{/strip}

{/if}
{/foreach}

{foreach from=$product_features item="feature"}
{if $feature.feature_type == "G" && $feature.subfeatures}
{include file="common_templates/subheader.tpl" title=$feature.description tooltip=$feature.full_description text=$feature.description}
{include file="views/products/components/product_features.tpl" product_features=$feature.subfeatures}
{/if}
{/foreach} ```

Thank you for reply.



I just copied that into my default template for detailed product pages and my options did not appear.

[quote name='ckad79' timestamp='1327086595' post='129674']

Thank you for reply.



I just copied that into my default template for detailed product pages and my options did not appear.

[/quote]





Did you clear your cache? That might be the problem. Just goto your admin.php?cc to clear your cache.