My web developer has made a feature for showing Stock, Validity etc on front-end. However my problem is i unable to hide unfeatured option like Validity, Most of my products doesn’t have validity period, so i want to hide that option, Can someone please tell me how can i do that. Here is the script and screenshot given below, also my developer is on holiday.
<div class="add_text"><br />
<div id="para_accessory"><br />
<div style="float:left"><strong>Status: </strong></div><div style="float:left;margin-left:5px">{assign var="product_amount" value="product_amount_`$obj_id`"}{$smarty.capture.$product_amount}</div><br />
<div style="float:left;margin-left:20px"><strong>Validity: </strong></div><br />
<div style="float:left;margin-left:5px"><br />
{foreach from=$product.product_features item="var"}<br />
{if $var.description == 'Validity'}<br />
<span style="color:#F00;font-size: x-small;font-weight:bold;">{$var.value}</span><br />
{/if}<br />
{/foreach}
```<br />
<br />
[img]http://i53.tinypic.com/2dt5e2a.jpg[/img]