通过csv将客户导入Magento

use*_*634 7 magento

我正在尝试使用Magento内置的客户导入器将客户导入matso并使用csv文件.

它工作正常(客户姓名,电子邮件和密码进入数据库),但客户的账单和送货地址不是.

这是我的csv标题:

'id', '_website', 'firstname', 'lastname', 'email', 'password_hash',   'billing_firstname', 'billing_lastname', 'billing_company', 'billing_postcode', 'billing_city', 'billing_street1', 'billing_telephone', 'billing_country', 'billing_region', 'shipping_firstname', 'shipping_lastname', 'shipping_company', 'shipping_postcode', 'shipping_city', 'shipping_street1', 'shipping_telephone', 'shipping_country', 'shipping_region', 'is_subscribed', 'group_id', 'dob'
Run Code Online (Sandbox Code Playgroud)

我也尝试将这些标签放入标题中,但仍然没有.

'postcode', 'city', 'street1', 'telephone', 'country', 'region',
Run Code Online (Sandbox Code Playgroud)

如果有人遇到此问题并知道如何操作,请帮助,

提前致谢,

use*_*634 9

好的,我找到了解决方案:

转到Magento admin-> System-> Import/Export-> Dataflow profiles. (不是Magento管理员 - >系统 - >导入/导出 - >导入!)

然后,选择配置文件:导入客户(或创建,如果它不存在).

我将"配置文件信息"框中的"存储"值设置为"默认商店视图".然后,上传您的csv,并运行配置文件.

它对我有用,并且正确地将所有价值转移到magento数据库 - 运输和账单地址.

这是我的CSV标题:

id  website firstname   lastname    email   password_hash   billing_firstname   billing_lastname    billing_company billing_postcode    billing_city    billing_street1 billing_telephone   billing_country billing_region  shipping_firstname  shipping_lastname   shipping_company    shipping_postcode   shipping_city   shipping_street1    shipping_telephone  shipping_country    shipping_region is_subscribed   group   group_id    dob
Run Code Online (Sandbox Code Playgroud)

我不知道是否需要group_id,但你必须有一个组列(我为它设置'常规'值.)

我发现它有点儿车,所以如果一切都设置正确就不要惊慌,你会得到一条错误信息,例如:"所需的列网站没有设置" - 或类似的,我刷新了导入数据流页面,再次运行配置文件,它工作 - 当然你正确地设置了一切.

希望能帮助到你,