Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix adress entity import.

  • Loading branch information...
commit 16e72724e4e0a6c53f92309b17555683f1fede2e 1 parent 79ac8fd
Daniel Sloof authored
View
1  code/Model/Import/Entity/Customer.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);
}
}
View
29 code/Model/Import/Entity/Customer/Address.php
@@ -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();
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.