/** * Generates records for catalog_product_entity_tier_price table * * @param array $row * @param Mage_Eav_Model_Entity_Type $entityTypeModel * @return array */ protected function _getTierPriceRecords($row, $entityTypeModel) { if (isset($row['tier_price']) && is_array($row['tier_price'])) { $tableName = $entityTypeModel->getValueTablePrefix() . '_tier_price'; $columns = $this->_getWriteAdapter()->describeTable($tableName); $records = array(); foreach ($row['tier_price'] as $tierPrice) { $tierPrice[$this->_getEntityIdField($entityTypeModel)] = $row[$this->_getEntityIdField($entityTypeModel)]; $records[] = $this->_getTableRecord($tierPrice, $columns); } if ($records) { return array($tableName => $records); } } return array(); }