I could add product label (New, Sale tec) following this tutorial. https://www.ubertheme.com/docs/add-product-labels/
I don't use their theme, so I used the section 3 method to manually achieve this. The code suggested was
<?php $_product = Mage::getModel('catalog/product')->load($_product->getId());
$attribute = $_product->getResource()->getAttribute('label');
if(is_object($attribute)) {
$attdefaultvalue = $attribute->getDefaultValue();
$attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
$attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
if(strlen($attributeValue) && ($attdefaultvalue !== $attributeValue)) {
$labeltype = $attributeValueName;
}
else {
$labeltype = "";
}
} ?>
<?php if ($labeltype): ?>
<span class="<?php echo $labeltype; ?>-label"><?php echo $labeltype; ?></span>
<?php endif; ?>
Now I am wondering if it is possible to show product label on product view page (= view.phtml).
load
in a loop in a template file you have 3 loads in a loop in a template.