-
Notifications
You must be signed in to change notification settings - Fork 55
/
customer_import_billing_shipping.xml
135 lines (134 loc) · 7.26 KB
/
customer_import_billing_shipping.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!--
More extensive one time customer import which imports multiple addresses
-->
<config>
<global>
<!-- ... -->
<ho_import>
<janselijn_customers>
<entity_type>customer</entity_type>
<!--<downloader model="ho_import/downloader_http">-->
<!--<url>http://google.nl/file.xml</url>-->
<!--</downloader>-->
<source model="ho_import/source_adapter_xml">
<file>var/import/Klant.xml</file>
<!--<rootNode>FMPDSORESULT</rootNode>-->
</source>
<import_options>
<!--<continue_after_errors>1</continue_after_errors>-->
<!--<ignore_duplicates>1</ignore_duplicates>-->
</import_options>
<events>
<!--<source_row_fieldmap_before helper="ho_importinktweb/product::prepareRowCategory"/>-->
<!--<source_row_fieldmap_after/>-->
<!--<import_before/>-->
<!--<import_after/>-->
</events>
<fieldmap>
<email field="Email"/>
<_website helper="ho_importjanselijn/import_customer::getWebsites"/>
<group_id helper="ho_import/import::getFieldMap">
<field>Status</field>
<mapping>
<particulier from="Particulier" to="1"/>
<zakelijk from="Zakelijk" to="2"/>
</mapping>
</group_id>
<prefix field="Voorletters"/>
<firstname helper="ho_import/import::getFieldDefault">
<field>Voornaam</field>
<default>ONBEKEND</default>
</firstname>
<middlename field="Tussenvoegsel" />
<lastname field="Achternaam" required="1"/>
<company field="Bedrijfsnaam"/>
<created_in helper="ho_importjanselijn/import_customer::getCreatedIn"/>
<taxvat field="BTWnummer" />
<password field="cWachtWoord" />
<gender helper="ho_import/import::getFieldMap">
<field>Geslacht</field>
<mapping>
<male from="M" to="male"/>
<female from="V" to="female"/>
<male_female from="M+V" to="male+female"/>
</mapping>
</gender>
<z_klant_id field="zKlantID"/>
<note field="Bijzonderheden"/>
<_address_prefix helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Voorvoegsel"/>
<shipping iffieldvalue="BezAdres" field="Voorvoegsel"/>
</fields>
</_address_prefix>
<_address_firstname helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Voornaam" defaultvalue="ONBEKEND"/>
<shipping iffieldvalue="BezAdres" field="Voornaam" defaultvalue="ONBEKEND"/>
</fields>
</_address_firstname>
<_address_middlename helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Tussenvoegsel"/>
<shipping iffieldvalue="BezAdres" field="Tussenvoegsel"/>
</fields>
</_address_middlename>
<_address_lastname helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Achternaam"/>
<shipping iffieldvalue="BezAdres" field="Achternaam"/>
</fields>
</_address_lastname>
<_address_company helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Bedrijfsnaam"/>
<shipping iffieldvalue="BezAdres" field="Bedrijfsnaam"/>
</fields>
</_address_company>
<_address_street helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="FactAdres" defaultvalue="ONBEKEND"/>
<shipping iffieldvalue="BezAdres" field="BezAdres" defaultvalue="ONBEKEND"/>
</fields>
</_address_street>
<_address_postcode helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="FactPostcode" defaultvalue="ONBEKEND"/>
<shipping iffieldvalue="BezAdres" field="BezPostcode" defaultvalue="ONBEKEND"/>
</fields>
</_address_postcode>
<_address_city helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="FactPlaats" defaultvalue="ONBEKEND"/>
<shipping iffieldvalue="BezAdres" field="BezPlaats" defaultvalue="ONBEKEND"/>
</fields>
</_address_city>
<_address_country_id helper="ho_import/import::getFieldMultipleMap">
<fields>
<billing iffieldvalue="FactAdres" field="FactLand"/>
<shipping iffieldvalue="BezAdres" field="BezLand"/>
</fields>
<mapping>
<empty from="" to="NL"/>
<belgie from="België" to="BE"/>
</mapping>
</_address_country_id>
<_address_telephone helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Telefoon" value="-"/>
<shipping iffieldvalue="BezAdres" field="Telefoon" value="-"/>
</fields>
</_address_telephone>
<_address_telephone_alt helper="ho_import/import::getFieldMultiple">
<fields>
<billing iffieldvalue="FactAdres" field="Telefoon2"/>
<shipping iffieldvalue="BezAdres" field="Telefoon2"/>
</fields>
</_address_telephone_alt>
<_address_default_billing_ helper="ho_importjanselijn/import_customer::getAddressDefaultBilling"/>
<_address_default_shipping_ helper="ho_importjanselijn/import_customer::getAddressDefaultShipping"/>
</fieldmap>
</janselijn_customers>
</ho_import>
</global>
</config>