loadAttributes(); } $attrs = array(); foreach (self::$attributes as $code => $arr) { if ($arr['is_configurable']) $attrs[$code] = $arr['value']; } asort($attrs); $options = array(array('value' => '', 'label' => '')); foreach ($attrs as $k => $v) $options[] = array('value' => $k, 'label' => $v); return $options; } }