Get Attribute Id By Attribute Code

    public function getAttIdByCode($att_code) {
    	$eavAttribute = Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product', $att_code);
    	return $eavAttribute->getData('attribute_id');
    	
    }

 

你可能感兴趣的:(attribute)