@pitbul
You can create your own function:
// SHOW ATTRIBUTE BASED ON ID
function atr_show_attribute2($attribute_id, $label = false) {
$attribute = ModelATR::newInstance()->getAttributeDetail($attribute_id);
$cats = array_filter(explode(',', $attribute['s_category_id']));
$item = osc_item();
if(empty($cats) || in_array($item['fk_i_category_id'], $cats)) {
return atr_single_attribute($attribute, $item['pk_i_id'], $label);
}
}