Jump to content

Tabs to Accordion in Product description


QuintasAD

Recommended Posts

Thank you very much for your reply.

It´s easy with html code but I can´t do it in products.tpl, could you help me?

 

This is the code:

 

      <div id="tab-container">
        <!-- Nav tabs -->
        <ul id="product-tabs" class="nav nav-tabs" role="tablist">
            {if isset($product) && $product->description}
                <li class="active"><a href="#descripntion-tab" role="tab" data-toggle="tab">{l s='Product Description'}</a></li>{/if}
            {if isset($features) && $features}
                <li {if !isset($product->description)}class="active"{/if}><a href="#table-data-sheet" role="tab" data-toggle="tab">{l s='Additional Information'}</a></li>{/if}
            {if $HOOK_PRODUCT_TAB}
                {$HOOK_PRODUCT_TAB}
            {/if}
        </ul>
 
        <!-- Tab panes -->
        <div id="product-tab-content" class="tab-content">
          {if isset($product) && $product->description}
            <div class="tab-pane active fade in" id="descripntion-tab">
                {$product->description}
            </div>
 {/if}
          {if isset($features) && $features}
            <div class="tab-pane fade in" id="table-data-sheet">
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
            </div>
        {/if}
          {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}
                {$HOOK_PRODUCT_TAB_CONTENT}
          {/if}
        </div>
  </div>
Link to comment
Share on other sites

  • 1 year later...

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...