Jump to content

Need help fixing a bug


Recommended Posts

I am guessing that this is a bug in theme. 

Problem: you have only one tab, but it prints code for two.

CODE:

<ul class="nav nav-tabs">
<li class="active"><a href="#tabs-1" data-toggle="tab">Description</a></li> 
<li><a href="#tabs-3" data-toggle="tab"></a></li>
</ul>

As you can see tabs-1 is the one you have, but why tabs-3 is added?

 

Link to comment
Share on other sites

Because I'm not very good with codding, here is what I found, what should i delete here? Or I shouldn't delete anything :D 

<div id="more_info_block">
<div class="tabs-info">
<ul class="nav nav-tabs">
{if $product->description}<li class="active"><a href="#tabs-1" data-toggle="tab">{l s='Description'}</a></li>{/if}
{if isset($features) && $features}
<li><a href="#tabs-2" data-toggle="tab">{l s='Specification'}</a></li>
{/if}
<li><a href="#tabs-3" data-toggle="tab">{$HOOK_PRODUCT_TAB}</a></li>
</ul>
</div>
<div class="tab-content">
{if isset($product) && $product->description}
<div id="tabs-1" class="tab-pane active">{$product->description}</div>
{/if}
{if isset($features) && $features}
<div id="tabs-2" class="tab-pane">
<!-- Data sheet -->
<section class="page-product-box">
<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>
</section>
<!--end Data sheet -->
</div>
{/if}
{if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}
<div id="tabs-3" class="tab-pane">{$HOOK_PRODUCT_TAB_CONTENT}</div>
{/if}
</div>
</div>
</div> <!-- end pb-right-column-->
</div> <!-- end primary_block -->


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