Skip to content
This repository
Browse code

Fix adress entity import.

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

0 comments on commit 16e7272

Please sign in to comment.
Something went wrong with that request. Please try again.