Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento AvS_fastsimpleimporter多个地址_Magento_Import_Avs - Fatal编程技术网

Magento AvS_fastsimpleimporter多个地址

Magento AvS_fastsimpleimporter多个地址,magento,import,avs,Magento,Import,Avs,使用AvS_Fastsimpleimporter创建新用户时,是否可以添加比标准地址更多的地址 当前我的数组“数据”如下所示 'email' => $kunde['email'], '_website' => $_website, '_store' => $_website . 'store', 'confirmation' => '', 'created_at' => $created_at, 'created_in' =&

使用AvS_Fastsimpleimporter创建新用户时,是否可以添加比标准地址更多的地址

当前我的数组“数据”如下所示

'email' => $kunde['email'],
    '_website' => $_website,
    '_store' => $_website . 'store',
    'confirmation' => '',
    'created_at' => $created_at,
    'created_in' => 'Import',
    'disable_auto_group_change' => 0,
    'firstname' => $kunde['name_1'],
    'group_id' => 3,
    'kontonummer' => $kunde['kontonr'],
    'kundennummer' => $kunde['kundennr'],
    'lastname' => $lastname,
    'password_hash' => $password_hash,
    'store_id' => 0,
    'website_id' => $country['id'],
    '_address_city' => $kunde['ort'],
    '_address_country_id' => $kunde['land'],
    '_address_fax' => $kunde['fax'],
    '_address_firstname' => $kunde['name_1'],
    '_address_lastname' => $lastname,
    '_address_postcode' => $kunde['plz'],
    '_address_street' => $kunde['strasse'],
    '_address_telephone' => $_address_telephone,
    '_address_vat_id' => $kunde['ust_id'],
    '_address_default_billing_' => 1,
    '_address_default_shipping_' => 1,
我想用AvS_Simpleimporter添加第二个地址。 我尝试在数据中添加第二个数组,如下所示:

array_push($data, array(
            'email' => null,
            '_website' => null,
            '_address_city' => checkRequiredInput($address['ort']),
            '_address_country_id' => $address['land'],
            '_address_firstname' => checkRequiredInputVadr($address['name_1']),
            '_address_lastname' => checkRequiredInputVadr($address['name_2']),
            '_address_postcode' => checkRequiredInput($address['plz']),
            '_address_street' => checkRequiredInput($address['strasse']),
            '_address_default_billing_' => 0,
            '_address_default_shipping_' => 0,
        ));
然后执行

$importer = Mage::getModel('fastsimpleimport/import');
$importer->setIgnoreDuplicates('password_hash')->processCustomerImport($data);
但这目前不起作用。第二个地址作为额外数组添加到如下数据中

.... data array
....
'_address_default_billing_' => 1
'_address_default_shipping_' => 1
[0] =>  'email' => bla bla
        '_website' => bla bla
         and so son

有任何帮助吗?

多个地址作为附加行导入。因此,您需要:

'_address_country_id' => array($country1,$country2),
'_address_city' => array($city1, $city2),
....