Hello, bunch of my products with attributes but without decription.
How to hide description tab if its empty ?
I found a solution but for default theme, it doesnt work on shoppica anyway =(
|
|
found the solution myself =)
<?php if ($description): ?>
<li class="s_1_<?php echo $tabs_num ?>"><a href="#product_description"><?php echo
$tab_description; ?></a></li>
<?php endif; ?>
is this correct ?
|
|
Hi,
Yes it is correct
You will also need to replace this line:
$tabs_num = 1;
with this one:
$tabs_num = 0
if ($tab_description) $tabs_num++;;
BR,
ThemeBurn team
|
|