it took me 2 days to figure this out man!!
hopes it help
please:
$productAttrs = Mage::getResourceModel(‘catalog/product_attribute_collection’);
print_r($productAttrs->toArray());
/* sample print out
Array ( [totalRecords] => 85 [items] => Array ( [0] => Array ( [entity_type_id] => 10 [attribute_code] => activation_information [attribute_model] => [backend_model] => [backend_type] => text [backend_table] => [frontend_model] => [frontend_input] => textarea [frontend_label] => Activation Information [frontend_class] => [source_model] => [is_required] => 0 [is_user_defined] => 1 [default_value] => [is_unique] => 0 [note] => [attribute_id] => 496 [frontend_input_renderer] => [is_global] => 1 [is_visible] => 1 [is_searchable] => 0 [is_filterable] => 0 [is_comparable] => 0 [is_visible_on_front] => 1 [is_html_allowed_on_front] => 0 [is_used_for_price_rules] => 1 [is_filterable_in_search] => 0 [used_in_product_listing] => 0 [used_for_sort_by] => 0 [is_configurable] => 1 [apply_to] => simple,grouped,configurable [is_visible_in_advanced_search] => 0 [position] => 1 [is_wysiwyg_enabled] => 0 [is_used_for_promo_rules] => 1 ) [1] =>*/
Be First to Comment