I want to create a custom field called Price1
. I tried this code.
$fieldset->addField('Price1','text', array(
'name'=>'Price1',
'class'=>$attribute->getIsRequired()?'required-entry':'',
'lable'=>Mage::helper('catalog')->_('Price1'),
'title'=>Mage::helper('catalog')->_('Price1'),
));
And I got this error.
Fatal error: Call to a member function getIsRequired() on a non-object in C:\wamp\www\multiplecurrencies\app\code\core\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Attributes.php on line 71
What am I missing?
$attribute
variable?