What's New
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.
I have created a new tab from the product page. At the moment I have done only one test, but I have to add a new tab to many products. I want to put it first among the other tabs, I mean:
1- “Custom tab”
2- “Description”
3- “Product Details”
4- “Reviews”
I also want to disable the reviews tab that appears by default.
Thank you!
Hi,
It is possible to show tabs as bellow:
1- “Custom tab”
2- “Reviews”
3- “Description”
4- “Product Details”
Or the following:
1- “Reviews”
2- “Description”
3- “Custom tab”
4- “Product Details”
But it is impossible to show them as following:
1- “Custom tab”
2- “Description”
3- “Product Details”
4- “Reviews”
Best regards.
Hi,
It requries to modify the \themes\transformer\templates\catalog\_partials\product-tabs.tpl file, find the following code and move it before “{if $product.description}”, see attached screenshot, then clear the Smarty cache.
{foreach from=$product.extraContent item=extra key=extraKey}
{if $extra.moduleName == 'stproductlinknav' || $extra.moduleName == 'ststickers' || $extra.moduleName == 'stvideo'}{continue}{/if}
{if $extra.moduleName == 'stthemeeditor'}
{if $sttheme.display_pro_tags==1 && isset($extra.content.tags)}
<li class="nav-item">
<a class="nav-link{if !$st_active_pro_tab} active{/if}" data-toggle="tab" role="tab" aria-controls="porudct-tags-tab" data-module="{$extra.moduleName}" href="#porudct-tags-tab">{l s='Tags' d='Shop.Theme.Transformer'}</a>
</li>
{if !$st_active_pro_tab}{assign var="st_active_pro_tab" value="porudct-tags-tab"}{/if}
{/if}
{continue}
{/if}
{if $extra.moduleName == 'steasycontent'}
{if isset($extra.content.tabs) && $extra.content.tabs}
{foreach $extra.content.tabs as $es}
<li class="nav-item">
<a class="nav-link{if !$st_active_pro_tab} active{/if}" data-toggle="tab" role="tab" aria-controls="easycontent-tab-{$es.id_st_easy_content}" data-module="{$extra.moduleName}" href="#easycontent-tab-{$es.id_st_easy_content}">{$es.title}</a>
</li>
{if !$st_active_pro_tab}{assign var="st_active_pro_tab" value="easycontent-tab-$es.id_st_easy_content"}{/if}
{/foreach}
{/if}
{continue}
{/if}
<li class="nav-item">
<a class="nav-link{if !$st_active_pro_tab} active{/if}" data-toggle="tab" role="tab" aria-controls="extra-{$extraKey}" data-module="{$extra.moduleName}" href="#extra-{$extraKey}">{$extra.title}</a>
{if !$st_active_pro_tab}{assign var="st_active_pro_tab" value="extra-$extraKey"}{/if}
</li>
{/foreach}
Best regards.
You must be logged in to reply to this topic.