-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2
I have customized view product/show_default to show some custom fields like that
<div class="row-fluid">
<div class="col-sm-2 phot"><?php
$fieldClass = hikashop_get('class.field');
$field = $fieldClass->getField('autorfoto', 'product');
echo $fieldClass->show($field,$this->element->autorfoto);
?>
</div>
<div class="col-sm-10 text"><?php echo $this->element->autortext; ?></div>
</div>
I get right output, but row displays if fields are empty. What code to add (some php if) to show row div only when fields filled up.
thank you