StrefaBiznesu Posted May 20 Share Posted May 20 Hello. On product page i have changed position between description and details, features. But when i enter product on front still description tab opens at first. Where i can change that? Thanks Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted May 20 Author Share Posted May 20 Our theme code looks like this. Quote {block name='product_tabs'} <div class="tabs"> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item product_details_tab"> <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details" role="tab" aria-controls="product-details" {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a> </li> {if $product.description} <li class="nav-item desc_tab"> <a class="nav-link{if $product.description} notactive{/if}" data-toggle="tab" href="#description" role="tab" aria-controls="description" {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Catalog'}</a> </li> {/if} {if $product.attachments} <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#attachments" role="tab" aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}</a> </li> {/if} {foreach from=$product.extraContent item=extra key=extraKey} <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#extra-{$extraKey}" role="tab" aria-controls="extra-{$extraKey}">{$extra.title}</a> </li> {/foreach} {* AngarThemes *} {hook h='displayProductTab'} </ul> Link to comment Share on other sites More sharing options...
WebDesk Solution Posted May 20 Share Posted May 20 Hello @StrefaBiznesu, es, we've reviewed your code for the initial load to display the Product Details tab as open. The if conditions need to be removed from the code. Please review the updated code in the provided section here. This will give you a better idea and resolve your issue. 1 Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted May 20 Author Share Posted May 20 Could you look on our file for both code changes? Both topics. product.tpl Link to comment Share on other sites More sharing options...
Recommended Posts