Jump to content

How to have features on description instead of extra tab ?


Recommended Posts

I tried several changes, but I cannot display the features under the description tab.

 

If I uncomment the line, so the features are displayed under the description tab, but not only. On all other tabs too... How to have the featrues only in tab1 - full description ?

 

<!-- description and features -->
{if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments}
<div id="more_info_block" class="clear">
<ul id="more_info_tabs" class="idTabs idTabsShort">
 {if $product->description}<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>{/if}
<!-- {if $features}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} -->
 {if $attachments}<li><a id="more_info_tab_attachments" href="#idTab9">{l s='Download'}</a></li>{/if}
 {if isset($accessories) AND $accessories}<li><a href="#idTab4">{l s='Accessories'}</a></li>{/if}
 {$HOOK_PRODUCT_TAB}
</ul>
<div id="more_info_sheets" class="sheets align_justify">
{if $product->description}
 <!-- full description -->
 <div id="idTab1" class="rte">{$product->description}</div>
{/if}
  {if $features}
<!-- product's features -->
<ul id="idTab2" class="bullet">
{foreach from=$features item=feature}
  <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span>: {$feature.value|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ul>
{/if}

Link to comment
Share on other sites

  • 2 weeks later...

{if $product->description || $features}
{if $product->description}
 <!-- full description -->
 <div id="idTab1" class="rte">{$product->description}</div>
{/if}
  {if $features}
<!-- product's features -->
<ul class="bullet">
{foreach from=$features item=feature}
  <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span>: {$feature.value|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{/if}

 

I have not tested it. But i think it might works

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...