we are using above attributes.phtml file to display the attibutes in frontend.
app/design/frontend/default/theme/template/catalog/product/view/attributes.phtml
suppose if attribute value is empty , than thiose attributes will not display in frontend for the
particular product .
but if we give some empty space in the attribute text field, than those attributes are displaying in the frontend.
if we gave empty space as attribute values , than we want to hide those attributes for the particular product.
ex: if attribute manufacturer = "" than color will not display in frontend
if attribute manufacturer = " " than color will display in frontend. we want to hide color here....
please help me to find solution.
if(strlen(trim($_product->getData($_attribute->getAttributeCode())))>0 && strlen(trim(((string)$_attribute->getFrontend()->getValue($_product)) > 0)))
{ ?>
at the end. Just make sure the if statement and the php parts have the same opening and closing brackets