I am trying to convert a user defined attributte in the Catalkog module to display as a check box but am having trouble...
My Attribute is named special offer and I an trying the code below
Code: Select all
if($safeattr=="specialoffer"){
if (strtolower(htmlspecialchars($this->GetPropertyValue($thisAttr),ENT_QUOTES))=="on"){
$checked= ' checked="true"';
} else{
$checked= '';
}
array_push($ret,array($thisAttr,'<input type="checkbox" name="specialoffer" '.$checked.'>'));
}
Any ideas Greatly appreciated.