Sivo Posted February 8, 2014 Share Posted February 8, 2014 Hello,I am having troubles since "more_info_block" (More description block) keep displaying while it does not have content. How could I hide it when it does not have content? {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || (isset($product) && $product->customizable) || (isset($quantity_discounts) && count($quantity_discounts) > 0)} <div id="more_info_block" class="clear"> <ul id="more_info_tabs" class="idTabs idTabsShort clearfix"> {if $product->programa}<li><a id="more_info_tab_more_info" href="#idTab11">{l s='Programa'}</a></li>{/if} {if $product->plan_estudios}<li><a id="more_info_tab_more_info" href="#idTab111">{l s='Plan de Estudios'}</a></li>{/if} {if $product->titulacion}<li><a id="more_info_tab_more_info" href="#idTab1111">{l s='Titulación'}</a></li>{/if} {if $product->condiciones}<li><a id="more_info_tab_more_info" href="#idTab11111">{l s='Condiciones de acceso'}</a></li>{/if} {if $product->salidas}<li><a id="more_info_tab_more_info" href="#idTab111111">{l s='Salidas profesionales'}</a></li>{/if} {if $product->matricula}<li><a id="more_info_tab_more_info" class="matricula" href="#idTab1111111">{l s='¡Matriculate ya!'}</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} {if isset($product) && $product->customizable}<li><a href="#idTab10">{l s='Product customization'}</a></li>{/if} {if (isset($quantity_discounts) && count($quantity_discounts) > 0)}<li><a href="#idTabQtyDiscount">{l s='Quantity discount'}</a></li>{/if} {$HOOK_PRODUCT_TAB} </ul> This is the part of the product wich I want to hide. I just want the hide the "more_info_block" div to avoid this issue: Link to comment Share on other sites More sharing options...
vekia Posted February 9, 2014 Share Posted February 9, 2014 it's not default theme, any chance to get url to your website? if so, please share it Link to comment Share on other sites More sharing options...
Sivo Posted February 10, 2014 Author Share Posted February 10, 2014 Hey Veika, just solved it. I added a new tab on admin product panel to show as a description, leaving the other ones empty, and since this kind of "new description" only works with few products, I had to add that new tab.I can attatch tutorial if needed Link to comment Share on other sites More sharing options...
Recommended Posts