I have inserted a code to display product attribute in view.phptml, which works fine. But it shows a empty box, even when the field is empty.
The code I used to display is like this
<div class="add-to-box">
<div class="add-to-cart"><div>image path</div>
<h3><?php
echo $_helper->productAttribute($_product, $_product->getFreeGift(), 'free_gift')
?></h3></div></div>
How I can add a condition to above statement to hide the empty box from display when the field is empty.!