public function getAttributeName() { $attributeName = array('is_new' => 'Is new', 'is_special' => 'Is special', 'qty' => 'Qty', 'out_of_stock' => 'Is Out Of Stock', 'best_seller' => 'Amount Best seller'); if (!array_key_exists($this->getAttribute(), $attributeName)) { return parent::getAttributeName(); } return $attributeName[$this->getAttribute()]; }