Permalink
Browse files

Fix adress entity import.

  • Loading branch information...
1 parent 79ac8fd commit 16e72724e4e0a6c53f92309b17555683f1fede2e Daniel Sloof committed Feb 10, 2012
Showing with 30 additions and 0 deletions.
  1. +1 −0 code/Model/Import/Entity/Customer.php
  2. +29 −0 code/Model/Import/Entity/Customer/Address.php
@@ -24,6 +24,7 @@ public function __construct()
{
parent::__construct();
$this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
+ $this->_addressEntity = Mage::getModel('api_import/import_entity_customer_address', $this);
}
}
@@ -0,0 +1,29 @@
+<?php
+
+/*
+ * Copyright 2011 Daniel Sloof
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class Danslo_ApiImport_Model_Import_Entity_Customer_Address
+ extends Mage_ImportExport_Model_Import_Entity_Customer_Address
+{
+
+ public function __construct(Mage_ImportExport_Model_Import_Entity_Customer $customer)
+ {
+ parent::__construct($customer);
+ $this->_dataSourceModel = Danslo_ApiImport_Model_Import::getDataSourceModel();
+ }
+
+}

0 comments on commit 16e7272

Please sign in to comment.