-
Notifications
You must be signed in to change notification settings - Fork 55
/
product_stock_multiple.xml
181 lines (171 loc) · 8.14 KB
/
product_stock_multiple.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!--
Daily stock import which imports into multiple stock locations (module used is
Innoexts_Multiwarehouse)
-->
<config>
<global>
<!-- ... -->
<ho_import>
<mai_products_stock_all>
<entity_type>catalog_product</entity_type>
<schedule><cron_expr>0 2 * * *</cron_expr></schedule>
<source model="ho_musicallin/source_artikelen">
<host><![CDATA[host]]></host>
<username><![CDATA[username]]></username>
<password><![CDATA[password]]></password>
<dbname><![CDATA[database]]></dbname>
<model><![CDATA[Zend_Db_Adapter_Pdo_Mssql]]></model>
<pdoType>dblib</pdoType>
<!--<limit>10</limit>-->
</source>
<import_options>
<continue_after_errors>1</continue_after_errors>
<partial_indexing>1</partial_indexing>
</import_options>
<events>
<!--<source_row_fieldmap_before/>-->
<!--<source_row_fieldmap_after/>-->
<!--<import_before/>-->
<!--<import_after/>-->
</events>
<fieldmap>
<sku helper="ho_import/import::getFieldCombine">
<fields>
<titel value="A"/>
<merk field="ArtikelNummer"/>
</fields>
<glue>-</glue>
</sku>
<_type value="simple"/>
<!-- PRICES -->
<price field="Prijs"/>
<!--<cost field="cost"/>-->
<!--<minimal_price/> NOT REQUIRED -->
<!--<special_from_date />-->
<!--<special_to_date />-->
<!--<special_price />-->
<msrp field="SRP"/>
<!--<msrp_display_actual_price_type/>-->
<!--<msrp_enabled/>-->
<!--<tax_class_id value="2"/>-->
<!-- TIER PRICES -->
<!--<_tier_price_website/>-->
<!--<_tier_price_customer_group/>-->
<!--<_tier_price_qty/>-->
<!--<_tier_price_price/>-->
<!-- GROUP PRICES -->
<!--<_group_price_website/>-->
<!--<_group_price_customer_group/>-->
<!--<_group_price_price/>-->
<!-- INVENTORY -->
<stock_id helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="3"/>
<rijswijk value="2"/>
</fields>
</stock_id>
<qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk field="noordwijk_voorraad"/>
<rotterdam field="rotterdam_voorraad"/>
<rijswijk field="rijswijk_voorraad"/>
</fields>
</qty>
<!--<min_qty/>-->
<use_config_min_qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_min_qty>
<is_qty_decimal helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="0"/>
<rotterdam value="0"/>
<rijswijk value="0"/>
</fields>
</is_qty_decimal>
<backorders helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="0"/>
<rijswijk value="0"/>
</fields>
</backorders>
<use_config_backorders helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="0"/>
<rotterdam value="0"/>
<rijswijk value="0"/>
</fields>
</use_config_backorders>
<!--<min_sale_qty value="1"/>-->
<use_config_min_sale_qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_min_sale_qty>
<!--<max_sale_qty value="10000"/>-->
<use_config_max_sale_qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_max_sale_qty>
<is_in_stock helper="ho_musicallin/import_product::getIsInStock">
<locations>
<noordwijk qty="noordwijk_voorraad" minimaal="noordwijk_minimaal" backorders="1"/>
<rotterdam qty="rotterdam_voorraad" minimaal="rotterdam_minimaal" backorders="0"/>
<rijswijk qty="rijswijk_voorraad" minimaal="rijswijk_minimaal" backorders="0"/>
</locations>
</is_in_stock>
<notify_stock_qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk field="noordwijk_minimaal"/>
<rotterdam field="rotterdam_minimaal"/>
<rijswijk field="rijswijk_minimaal"/>
</fields>
</notify_stock_qty>
<use_config_notify_stock_qty helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="0"/>
<rotterdam value="0"/>
<rijswijk value="0"/>
</fields>
</use_config_notify_stock_qty>
<!--<manage_stock value="1"/>-->
<use_config_manage_stock helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_manage_stock>
<!--<stock_status_changed_auto value="0"/>-->
<!--<qty_increments value="1"/>-->
<use_config_qty_increments helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_qty_increments>
<!--<enable_qty_increments value="0"/>-->
<use_config_enable_qty_inc helper="ho_import/import::getFieldMultiple">
<fields>
<noordwijk value="1"/>
<rotterdam value="1"/>
<rijswijk value="1"/>
</fields>
</use_config_enable_qty_inc>
<!--<is_decimal_divided value="0"/>-->
</fieldmap>
</mai_products_stock_all>
</ho_import>
</global>
</config>