I have created a product attribute of type text area. Its typical value will be a unordered list, such as:
<ul> <li>line 1</li> <li>line 2</li> <li>line 3</li> </ul>
The attribute code is 'usp' I wish to display this attribute on the product screen and have created a new template for this purpose. When I hard code a value in the template, it displays properly. However, when I put the following
<?php echo $this->getProduct()->getAttributeText('usp') ?>
in the template, I get an error:
Call to a member function getAttributeText() on null in...
How should I code this?