public function __construct() { parent::__construct(); $this->setEntityTypeId(Mage::getModel('eav/entity')->setType('csmarketplace_vendor')->getTypeId()); $setIds = Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter($this->getEntityTypeId())->getAllIds(); $this->setAttributeSetIds($setIds); return $this; }
public function __construct() { $resource = Mage::getSingleton('core/resource'); $this->_sCustomAttrTable = $resource->getTableName('aitoc_order_entity_custom'); $this->_sCustomerAttrTable = $resource->getTableName('aitoc_customer_entity_data'); $this->_sDescAttrTable = $resource->getTableName('aitoc_custom_attribute_description'); $this->_sNeedSelectTable = $resource->getTableName('aitoc_custom_attribute_need_select'); $this->_sCustomRecProfileAttrTable = $resource->getTableName('aitoc_recurring_profile_entity_custom'); return parent::__construct(); }