-- HikaShop version -- : 3.0.1
Hi I want to ask how can hide inactive button associated with custom field has no content. The goal is: made button associated with text custom field that will take the user to the official website of the product, but if for example there is no content in the field, the button to hide.
This is the button code
<div class="info-buttons">
<span class="website">
<?php
$url = $this->element->website;
$css_button = $this->config->get('css_button', 'hikabtn');
?>
<a href="<?php echo $url; ?>" class="<?php echo $css_button; ?>" target="_blank" data-toggle="tooltip" data-placement="top" title="Website">
<?php
echo JText::_('<i class="fa fa-globe" aria-hidden="true"></i>');
?></a>
</span>
</div>