nicolas wrote: Hi,
You can add conditions around these pieces of code:
<?php if(!empty($this->element->FIELD)){ ?>
...
<?php } ?>
Then, in your custom fields you can restrict them per category.
That way, if the custom field is not for a product, or that the field has not been filled in the product, the tab won't display.
Hi Nicholas,
Pls i don't understand how to use this code. What i want is a situation where if nothing is filled in the product edition of this custom tab, it should be hidden.
I tried this code like this
<div class="hikashop_tabs_content" id="hikashop_show_tabular_custom2">
<?php if(!empty($this->element->property)){Display: hide;} ?>
<?php echo $this->element->property; ?>
</div>
"Property" is the column name of my product custom field. But it doesn't hide when there's no content in it. Pls where are my getting it wrong?
Expecting your reply. Thanks