getNode(Find_Feed_Model_Import::XML_NODE_FIND_FEED_ATTRIBUTES); $attributeRequired = array(); foreach ($attributeConfig->children() as $ac) { if ((int)$ac->required) { $attributeRequired[] = (string)$ac->label; } } foreach ($attributeRequired as $value) { if (!isset($attributes[$value])) { return false; } } return true; } /** * Product entity type * * @return int */ public function getProductEntityType() { return Mage::getSingleton('eav/config')->getEntityType('catalog_product')->getId(); } }