CTX Feed – WooCommerce Product Feed Manager Plugin - Version 2.0.13

Version Description

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 2.0.13
Comparing to
See all releases

Code changes from version 1.5.36 to 2.0.13

README.txt CHANGED
@@ -1,7 +1,7 @@
1
  === WooCommerce Product Feed : Google Shopping,Facebook Product Ad,Amazon,eBay and Many More ===
2
  Contributors: wahid0003
3
  Donate link: https://webappick.com
4
- Tags: Google,Google Shopping Feed,Google Merchant Feed,Amazon,eBay,bing,pricegrabber,nextag,pricerunner,facebook,kelkoo,feed,Product feed,woocommerce feed,woocommerce product feed, txt export, csv export, xml export,woocommerce export,product export, newegg,rakuten,houzz,godatafeed,pricefalls,google merchant,google shopping,sell,sears,variation export,shareasale,etsy,Buy,Getprice,LeGuide,Twenga,Beslist,Kieskeurig,HotLine,Yandex.Market,product variation,connexity,Commission Junction,channel advisor,dealtime,shopbot,shopzilla,yahoo,Getprice,Gimme,Junglee,Myshopping,Priceme,Shopmania,Wine-searcher
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
  Stable tag: 4.4
@@ -88,7 +88,7 @@ In one word WooCommerce Product Feed is a revolution. Yah, it’s a revolution o
88
  * <a target="_blank" href="http://www.cj.com/">Comission Junction (cj.com)</a>
89
  * <a target="_blank" href="http://www.polyvore.com/">Polyvore.com</a>
90
  * <a target="_blank" href="http://opensky.com">Opensky.com</a>
91
- * <a target="_blank" href="http://opensky.com">11Main.com</a>
92
  * <a target="_blank" href="http://www.shopbot.ca/">Shopbot.ca</a>
93
  * <a target="_blank" href="http://www.twenga.com/">Twenga.com/</a>
94
  * <a target="_blank" href="http://www.wine-searcher.com/">Wine-searcher.com</a>
@@ -147,6 +147,10 @@ Due to PHP execution time and memory limit its not possible to process Thousands
147
 
148
  It is possible to use any wp_options values into feed. Most of the plugins used to save data as option. So using premium version of our plugin user can use any other plugin data to make feed.
149
 
 
 
 
 
150
  **SUPPORT TEAM**
151
 
152
  We’ve a dedicated team of coders and wordpress experts to make your journey to us friendlier & error free. So, if you want to use our plugin or if you are facing any problem with our plugin feel free to say us by emailing here: support@webappick.com.
@@ -210,6 +214,52 @@ Using pro version:
210
 
211
  == Changelog ==
212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  = 1.5.36(2016-11-28) =
214
  * Removed Promotional Message
215
 
1
  === WooCommerce Product Feed : Google Shopping,Facebook Product Ad,Amazon,eBay and Many More ===
2
  Contributors: wahid0003
3
  Donate link: https://webappick.com
4
+ Tags: Product feed,Google Merchant Feed,facebook product feed,Amazon,eBay,bing,pricegrabber,nextag,pricerunner,kelkoo,feed,woocommerce feed,woocommerce product feed, txt export, csv export, xml export,woocommerce export,product export, newegg,rakuten,houzz,godatafeed,pricefalls,google merchant,google shopping,sell,sears,variation export,shareasale,etsy,Buy,Getprice,LeGuide,Twenga,Beslist,Kieskeurig,HotLine,Yandex.Market,product variation,connexity,Commission Junction,channel advisor,dealtime,shopbot,shopzilla,yahoo,Getprice,Gimme,Junglee,Myshopping,Priceme,Shopmania,Wine-searcher
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
  Stable tag: 4.4
88
  * <a target="_blank" href="http://www.cj.com/">Comission Junction (cj.com)</a>
89
  * <a target="_blank" href="http://www.polyvore.com/">Polyvore.com</a>
90
  * <a target="_blank" href="http://opensky.com">Opensky.com</a>
91
+ * <a target="_blank" href="http://11Main.com">11Main.com</a>
92
  * <a target="_blank" href="http://www.shopbot.ca/">Shopbot.ca</a>
93
  * <a target="_blank" href="http://www.twenga.com/">Twenga.com/</a>
94
  * <a target="_blank" href="http://www.wine-searcher.com/">Wine-searcher.com</a>
147
 
148
  It is possible to use any wp_options values into feed. Most of the plugins used to save data as option. So using premium version of our plugin user can use any other plugin data to make feed.
149
 
150
+ **MULTI LANGUAGE FEED**
151
+
152
+ WooCommerce Product Feed Pro is compatible with WPML WooCommerce plugin. And by supporting WPML this makes it possible for the e-commerce owners to create product feed in different languages. This enables the e-commerce owners the chance to globalize their business in minutes because you always have better chance of selling something if you are selling it in the native language.
153
+
154
  **SUPPORT TEAM**
155
 
156
  We’ve a dedicated team of coders and wordpress experts to make your journey to us friendlier & error free. So, if you want to use our plugin or if you are facing any problem with our plugin feel free to say us by emailing here: support@webappick.com.
214
 
215
  == Changelog ==
216
 
217
+ = 2.0.13(2017-04-09) =
218
+ * Added the functionality to make feed for External/Affiliate Product
219
+
220
+ = 2.0.12(2017-03-27) =
221
+ * Removed default space from after suffix and before prefix.
222
+ * Fixed the number_format command issue and documentation updated.
223
+ * Fixed last version errors.
224
+
225
+ = 2.0.11(2017-03-20) =
226
+ * Fixed the zero output error
227
+
228
+ = 2.0.10(2017-03-18) =
229
+ * Amazon Jewelry Template added
230
+
231
+ = 2.0.9(2017-03-16) =
232
+ * Fixed the issue to output attribute value 0
233
+
234
+ = 2.0.8(2017-03-02) =
235
+ * Amazon template error fixed
236
+
237
+ = 2.0.7(2017-03-01) =
238
+ * Shipping attribute information error and image required issue fixed
239
+
240
+ = 2.0.6(2017-02-25) =
241
+ * Error fixed for Amazon camera and photo category template
242
+
243
+ = 2.0.5(2017-02-20) =
244
+ * Code modified for faster feed making
245
+
246
+ = 2.0.4(2017-02-08) =
247
+ * For Google Shopping template: identifier_exist status value updated from TRUE and FALSE to yes and no according to Google Merchant requirements.
248
+
249
+ = 2.0.3(2017-02-06) =
250
+ * Fixed: sale price effective date formatting
251
+
252
+ = 2.0.2(2017-01-12) =
253
+ * Fixed: xmlParseEntityRef: no name for Google Shopping Class
254
+
255
+ = 2.0.1(2017-01-12) =
256
+ * Fixed: TXT feed encoding error
257
+ * Modified: Bing template modified according to new Bing requirements.
258
+ * Added: Amazon Inventory template by Category added
259
+
260
+ = 2.0.0(2017-01-05) =
261
+ * identifier_exist attribute value will be automatically set according to feed configuration for Google Shopping Template.
262
+
263
  = 1.5.36(2016-11-28) =
264
  * Removed Promotional Message
265
 
admin/js/woo-feed-admin.js CHANGED
@@ -113,11 +113,15 @@
113
  // Attribute type selection
114
  $(document).on('change', '.attr_type', function () {
115
  var type = $(this).val();
 
 
116
  if (type == 'pattern') {
117
  $(this).closest('tr').find('.wf_attr').hide();
118
  $(this).closest('tr').find('.wf_attr').val('');
119
  $(this).closest('tr').find('.wf_default').show();
 
120
  } else {
 
121
  $(this).closest('tr').find('.wf_attr').show();
122
  $(this).closest('tr').find('.wf_default').hide();
123
  $(this).closest('tr').find('.wf_default').val('');
113
  // Attribute type selection
114
  $(document).on('change', '.attr_type', function () {
115
  var type = $(this).val();
116
+ $(this).closest('tr').find('.wf_attr').prop('required',false);
117
+ $(this).closest('tr').find('.wf_default').prop('required',false);
118
  if (type == 'pattern') {
119
  $(this).closest('tr').find('.wf_attr').hide();
120
  $(this).closest('tr').find('.wf_attr').val('');
121
  $(this).closest('tr').find('.wf_default').show();
122
+ $(this).closest('tr').find('.wf_default').prop('required',true);
123
  } else {
124
+ $(this).closest('tr').find('.wf_attr').prop('required',true);
125
  $(this).closest('tr').find('.wf_attr').show();
126
  $(this).closest('tr').find('.wf_default').hide();
127
  $(this).closest('tr').find('.wf_default').val('');
admin/partials/amazon/add-feed.php CHANGED
@@ -8,7 +8,7 @@
8
  <thead>
9
  <tr>
10
  <th></th>
11
- <th><?php echo ucfirst($provider); ?> <?php echo _e('Attributes', 'woo-feed'); ?></th>
12
  <th><?php echo _e('Prefix', 'woo-feed'); ?></th>
13
  <th><?php echo _e('Type', 'woo-feed'); ?></th>
14
  <th><?php echo _e('Value', 'woo-feed'); ?></th>
@@ -19,643 +19,70 @@
19
  </tr>
20
  </thead>
21
  <tbody>
22
- <tr>
23
- <td>
24
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
25
- </td>
26
- <td>
27
- <input type="text" name="mattributes[]" autocomplete="off" required
28
- class="wf_validate_attr wf_mattributes" value="Category"/>
29
- </td>
30
- <td>
31
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
32
- </td>
33
- <td>
34
- <select name="type[]" class="attr_type wfnoempty">
35
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
36
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
37
- </select>
38
- </td>
39
- <td>
40
- <select name="attributes[]" id="" required="required"
41
- class="wf_validate_attr wf_attr wf_attributes">
42
- <?php echo $product->attributeDropdown('product_type'); ?>
43
- </select>
44
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
45
- style=" display: none;"/>
46
- </td>
47
- <td>
48
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
49
- </td>
50
- <td>
51
- <select name="output_type[][]" id="" class="outputType wfnoempty">
52
- <option value="1">Default</option>
53
- <option value="2">Strip Tags</option>
54
- <option value="3">UTF-8 Encode</option>
55
- <option value="4">htmlentities</option>
56
- <option value="5">Integer</option>
57
- <option value="6">Price</option>
58
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
59
- <option value="8">CDATA</option>
60
- </select>
61
- <i class="dashicons dashicons-editor-expand expandType"></i>
62
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
63
- </td>
64
- <td>
65
- <input type="text" name="limit[]" class="wf_ps"/>
66
- </td>
67
- <td>
68
- <i class="delRow dashicons dashicons-trash"></i>
69
- </td>
70
- </tr>
71
- <tr>
72
- <td>
73
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
74
- </td>
75
- <td>
76
- <input type="text" name="mattributes[]" autocomplete="off" required
77
- class="wf_validate_attr wf_mattributes" value="Title"/>
78
- </td>
79
- <td>
80
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
81
- </td>
82
- <td>
83
- <select name="type[]" class="attr_type wfnoempty">
84
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
85
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
86
- </select>
87
- </td>
88
- <td>
89
- <select name="attributes[]" id="" required="required"
90
- class="wf_validate_attr wf_attr wf_attributes">
91
- <?php echo $product->attributeDropdown('title'); ?>
92
- </select>
93
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
94
- style=" display: none;"/>
95
- </td>
96
- <td>
97
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
98
- </td>
99
- <td>
100
- <select name="output_type[][]" id="" class="outputType wfnoempty">
101
- <option value="1">Default</option>
102
- <option value="2">Strip Tags</option>
103
- <option value="3">UTF-8 Encode</option>
104
- <option value="4">htmlentities</option>
105
- <option value="5">Integer</option>
106
- <option value="6">Price</option>
107
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
108
- <option value="8">CDATA</option>
109
- </select>
110
- <i class="dashicons dashicons-editor-expand expandType"></i>
111
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
112
- </td>
113
- <td>
114
- <input type="text" name="limit[]" class="wf_ps"/>
115
- </td>
116
- <td>
117
- <i class="delRow dashicons dashicons-trash"></i>
118
- </td>
119
- </tr>
120
- <tr>
121
- <td>
122
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
123
- </td>
124
- <td>
125
- <input type="text" name="mattributes[]" autocomplete="off" required
126
- class="wf_validate_attr wf_mattributes" value="Link"/>
127
- </td>
128
- <td>
129
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
130
- </td>
131
- <td>
132
- <select name="type[]" class="attr_type wfnoempty">
133
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
134
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
135
- </select>
136
- </td>
137
- <td>
138
- <select name="attributes[]" id="" required="required"
139
- class="wf_validate_attr wf_attr wf_attributes">
140
- <?php echo $product->attributeDropdown('link'); ?>
141
- </select>
142
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
143
- style=" display: none;"/>
144
- </td>
145
- <td>
146
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
147
- </td>
148
- <td>
149
- <select name="output_type[][]" id="" class="outputType wfnoempty">
150
- <option value="1">Default</option>
151
- <option value="2">Strip Tags</option>
152
- <option value="3">UTF-8 Encode</option>
153
- <option value="4">htmlentities</option>
154
- <option value="5">Integer</option>
155
- <option value="6">Price</option>
156
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
157
- <option value="8">CDATA</option>
158
- </select>
159
- <i class="dashicons dashicons-editor-expand expandType"></i>
160
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
161
- </td>
162
- <td>
163
- <input type="text" name="limit[]" class="wf_ps"/>
164
- </td>
165
- <td>
166
- <i class="delRow dashicons dashicons-trash"></i>
167
- </td>
168
- </tr>
169
- <tr>
170
- <td>
171
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
172
- </td>
173
- <td>
174
- <input type="text" name="mattributes[]" autocomplete="off" required
175
- class="wf_validate_attr wf_mattributes" value="SKU"/>
176
- </td>
177
- <td>
178
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
179
- </td>
180
- <td>
181
- <select name="type[]" class="attr_type wfnoempty">
182
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
183
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
184
- </select>
185
- </td>
186
- <td>
187
- <select name="attributes[]" id="" required="required"
188
- class="wf_validate_attr wf_attr wf_attributes">
189
- <?php echo $product->attributeDropdown('sku'); ?>
190
- </select>
191
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
192
- style=" display: none;"/>
193
- </td>
194
- <td>
195
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
196
- </td>
197
- <td>
198
- <select name="output_type[][]" id="" class="outputType wfnoempty">
199
- <option value="1">Default</option>
200
- <option value="2">Strip Tags</option>
201
- <option value="3">UTF-8 Encode</option>
202
- <option value="4">htmlentities</option>
203
- <option value="5">Integer</option>
204
- <option value="6">Price</option>
205
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
206
- <option value="8">CDATA</option>
207
- </select>
208
- <i class="dashicons dashicons-editor-expand expandType"></i>
209
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
210
- </td>
211
- <td>
212
- <input type="text" name="limit[]" class="wf_ps"/>
213
- </td>
214
- <td>
215
- <i class="delRow dashicons dashicons-trash"></i>
216
- </td>
217
- </tr>
218
- <tr>
219
- <td>
220
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
221
- </td>
222
- <td>
223
- <input type="text" name="mattributes[]" autocomplete="off" required
224
- class="wf_validate_attr wf_mattributes" value="Price"/>
225
- </td>
226
- <td>
227
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
228
- </td>
229
- <td>
230
- <select name="type[]" class="attr_type wfnoempty">
231
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
232
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
233
- </select>
234
- </td>
235
- <td>
236
- <select name="attributes[]" id="" required="required"
237
- class="wf_validate_attr wf_attr wf_attributes">
238
- <?php echo $product->attributeDropdown('price'); ?>
239
- </select>
240
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
241
- style=" display: none;"/>
242
- </td>
243
- <td>
244
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
245
- </td>
246
- <td>
247
- <select name="output_type[][]" id="" class="outputType wfnoempty">
248
- <option value="1">Default</option>
249
- <option value="2">Strip Tags</option>
250
- <option value="3">UTF-8 Encode</option>
251
- <option value="4">htmlentities</option>
252
- <option value="5">Integer</option>
253
- <option value="6">Price</option>
254
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
255
- <option value="8">CDATA</option>
256
- </select>
257
- <i class="dashicons dashicons-editor-expand expandType"></i>
258
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
259
- </td>
260
- <td>
261
- <input type="text" name="limit[]" class="wf_ps"/>
262
- </td>
263
- <td>
264
- <i class="delRow dashicons dashicons-trash"></i>
265
- </td>
266
- </tr>
267
- <tr>
268
- <td>
269
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
270
- </td>
271
- <td>
272
- <input type="text" name="mattributes[]" autocomplete="off" required
273
- class="wf_validate_attr wf_mattributes" value="Image"/>
274
- </td>
275
- <td>
276
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
277
- </td>
278
- <td>
279
- <select name="type[]" class="attr_type wfnoempty">
280
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
281
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
282
- </select>
283
- </td>
284
- <td>
285
- <select name="attributes[]" id="" required="required"
286
- class="wf_validate_attr wf_attr wf_attributes">
287
- <?php echo $product->attributeDropdown('image'); ?>
288
- </select>
289
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
290
- style=" display: none;"/>
291
- </td>
292
- <td>
293
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
294
- </td>
295
- <td>
296
- <select name="output_type[][]" id="" class="outputType wfnoempty">
297
- <option value="1">Default</option>
298
- <option value="2">Strip Tags</option>
299
- <option value="3">UTF-8 Encode</option>
300
- <option value="4">htmlentities</option>
301
- <option value="5">Integer</option>
302
- <option value="6">Price</option>
303
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
304
- <option value="8">CDATA</option>
305
- </select>
306
- <i class="dashicons dashicons-editor-expand expandType"></i>
307
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
308
- </td>
309
- <td>
310
- <input type="text" name="limit[]" class="wf_ps"/>
311
- </td>
312
- <td>
313
- <i class="delRow dashicons dashicons-trash"></i>
314
- </td>
315
- </tr>
316
- <tr>
317
- <td>
318
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
319
- </td>
320
- <td>
321
- <input type="text" name="mattributes[]" autocomplete="off" required
322
- class="wf_validate_attr wf_mattributes" value="UPC"/>
323
- </td>
324
- <td>
325
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
326
- </td>
327
- <td>
328
- <select name="type[]" class="attr_type wfnoempty">
329
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
330
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
331
- </select>
332
- </td>
333
- <td>
334
- <select name="attributes[]" id="" required="required"
335
- class="wf_validate_attr wf_attr wf_attributes">
336
- <?php echo $product->attributeDropdown(); ?>
337
- </select>
338
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
339
- style=" display: none;"/>
340
- </td>
341
- <td>
342
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
343
- </td>
344
- <td>
345
- <select name="output_type[][]" id="" class="outputType wfnoempty">
346
- <option value="1">Default</option>
347
- <option value="2">Strip Tags</option>
348
- <option value="3">UTF-8 Encode</option>
349
- <option value="4">htmlentities</option>
350
- <option value="5">Integer</option>
351
- <option value="6">Price</option>
352
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
353
- <option value="8">CDATA</option>
354
- </select>
355
- <i class="dashicons dashicons-editor-expand expandType"></i>
356
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
357
- </td>
358
- <td>
359
- <input type="text" name="limit[]" class="wf_ps"/>
360
- </td>
361
- <td>
362
- <i class="delRow dashicons dashicons-trash"></i>
363
- </td>
364
- </tr>
365
- <tr>
366
- <td>
367
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
368
- </td>
369
- <td>
370
- <input type="text" name="mattributes[]" autocomplete="off" required
371
- class="wf_validate_attr wf_mattributes" value="Brand"/>
372
- </td>
373
- <td>
374
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
375
- </td>
376
- <td>
377
- <select name="type[]" class="attr_type wfnoempty">
378
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
379
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
380
- </select>
381
- </td>
382
- <td>
383
- <select name="attributes[]" id="" required="required"
384
- class="wf_validate_attr wf_attr wf_attributes">
385
- <?php echo $product->attributeDropdown(); ?>
386
- </select>
387
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
388
- style=" display: none;"/>
389
- </td>
390
- <td>
391
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
392
- </td>
393
- <td>
394
- <select name="output_type[][]" id="" class="outputType wfnoempty">
395
- <option value="1">Default</option>
396
- <option value="2">Strip Tags</option>
397
- <option value="3">UTF-8 Encode</option>
398
- <option value="4">htmlentities</option>
399
- <option value="5">Integer</option>
400
- <option value="6">Price</option>
401
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
402
- <option value="8">CDATA</option>
403
- </select>
404
- <i class="dashicons dashicons-editor-expand expandType"></i>
405
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
406
- </td>
407
- <td>
408
- <input type="text" name="limit[]" class="wf_ps"/>
409
- </td>
410
- <td>
411
- <i class="delRow dashicons dashicons-trash"></i>
412
- </td>
413
- </tr>
414
- <tr>
415
- <td>
416
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
417
- </td>
418
- <td>
419
- <input type="text" name="mattributes[]" autocomplete="off" required
420
- class="wf_validate_attr wf_mattributes" value="Department"/>
421
- </td>
422
- <td>
423
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
424
- </td>
425
- <td>
426
- <select name="type[]" class="attr_type wfnoempty">
427
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
428
- <option value="pattern" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
429
- </select>
430
- </td>
431
- <td>
432
- <select name="attributes[]" id="" required="required" style=" display: none;"
433
- class="wf_validate_attr wf_attr wf_attributes">
434
- <?php echo $product->attributeDropdown(); ?>
435
- </select>
436
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
437
- value="mens, womens" />
438
- </td>
439
- <td>
440
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
441
- </td>
442
- <td>
443
- <select name="output_type[][]" id="" class="outputType wfnoempty">
444
- <option value="1">Default</option>
445
- <option value="2">Strip Tags</option>
446
- <option value="3">UTF-8 Encode</option>
447
- <option value="4">htmlentities</option>
448
- <option value="5">Integer</option>
449
- <option value="6">Price</option>
450
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
451
- <option value="8">CDATA</option>
452
- </select>
453
- <i class="dashicons dashicons-editor-expand expandType"></i>
454
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
455
- </td>
456
- <td>
457
- <input type="text" name="limit[]" class="wf_ps"/>
458
- </td>
459
- <td>
460
- <i class="delRow dashicons dashicons-trash"></i>
461
- </td>
462
- </tr>
463
- <tr>
464
- <td>
465
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
466
- </td>
467
- <td>
468
- <input type="text" name="mattributes[]" autocomplete="off" required
469
- class="wf_validate_attr wf_mattributes" value="Description"/>
470
- </td>
471
- <td>
472
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
473
- </td>
474
- <td>
475
- <select name="type[]" class="attr_type wfnoempty">
476
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
477
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
478
- </select>
479
- </td>
480
- <td>
481
- <select name="attributes[]" id="" required="required"
482
- class="wf_validate_attr wf_attr wf_attributes">
483
- <?php echo $product->attributeDropdown('description'); ?>
484
- </select>
485
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
486
- style=" display: none;"/>
487
- </td>
488
- <td>
489
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
490
- </td>
491
- <td>
492
- <select name="output_type[][]" id="" class="outputType wfnoempty">
493
- <option value="1">Default</option>
494
- <option value="2">Strip Tags</option>
495
- <option value="3">UTF-8 Encode</option>
496
- <option value="4">htmlentities</option>
497
- <option value="5">Integer</option>
498
- <option value="6">Price</option>
499
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
500
- <option value="8">CDATA</option>
501
- </select>
502
- <i class="dashicons dashicons-editor-expand expandType"></i>
503
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
504
- </td>
505
- <td>
506
- <input type="text" name="limit[]" class="wf_ps"/>
507
- </td>
508
- <td>
509
- <i class="delRow dashicons dashicons-trash"></i>
510
- </td>
511
- </tr>
512
- <tr>
513
- <td>
514
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
515
- </td>
516
- <td>
517
- <input type="text" name="mattributes[]" autocomplete="off" required
518
- class="wf_validate_attr wf_mattributes" value="Manufacturer"/>
519
- </td>
520
- <td>
521
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
522
- </td>
523
- <td>
524
- <select name="type[]" class="attr_type wfnoempty">
525
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
526
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
527
- </select>
528
- </td>
529
- <td>
530
- <select name="attributes[]" id="" required="required"
531
- class="wf_validate_attr wf_attr wf_attributes">
532
- <?php echo $product->attributeDropdown(); ?>
533
- </select>
534
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
535
- style=" display: none;"/>
536
- </td>
537
- <td>
538
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
539
- </td>
540
- <td>
541
- <select name="output_type[][]" id="" class="outputType wfnoempty">
542
- <option value="1">Default</option>
543
- <option value="2">Strip Tags</option>
544
- <option value="3">UTF-8 Encode</option>
545
- <option value="4">htmlentities</option>
546
- <option value="5">Integer</option>
547
- <option value="6">Price</option>
548
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
549
- <option value="8">CDATA</option>
550
- </select>
551
- <i class="dashicons dashicons-editor-expand expandType"></i>
552
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
553
- </td>
554
- <td>
555
- <input type="text" name="limit[]" class="wf_ps"/>
556
- </td>
557
- <td>
558
- <i class="delRow dashicons dashicons-trash"></i>
559
- </td>
560
- </tr>
561
- <tr>
562
- <td>
563
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
564
- </td>
565
- <td>
566
- <input type="text" name="mattributes[]" autocomplete="off" required
567
- class="wf_validate_attr wf_mattributes" value="Mfr part number"/>
568
- </td>
569
- <td>
570
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
571
- </td>
572
- <td>
573
- <select name="type[]" class="attr_type wfnoempty">
574
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
575
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
576
- </select>
577
- </td>
578
- <td>
579
- <select name="attributes[]" id="" required="required"
580
- class="wf_validate_attr wf_attr wf_attributes">
581
- <?php echo $product->attributeDropdown(); ?>
582
- </select>
583
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
584
- style=" display: none;"/>
585
- </td>
586
- <td>
587
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
588
- </td>
589
- <td>
590
- <select name="output_type[][]" id="" class="outputType wfnoempty">
591
- <option value="1">Default</option>
592
- <option value="2">Strip Tags</option>
593
- <option value="3">UTF-8 Encode</option>
594
- <option value="4">htmlentities</option>
595
- <option value="5">Integer</option>
596
- <option value="6">Price</option>
597
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
598
- <option value="8">CDATA</option>
599
- </select>
600
- <i class="dashicons dashicons-editor-expand expandType"></i>
601
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
602
- </td>
603
- <td>
604
- <input type="text" name="limit[]" class="wf_ps"/>
605
- </td>
606
- <td>
607
- <i class="delRow dashicons dashicons-trash"></i>
608
- </td>
609
- </tr>
610
- <tr>
611
- <td>
612
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
613
- </td>
614
- <td>
615
- <input type="text" name="mattributes[]" autocomplete="off" required
616
- class="wf_validate_attr wf_mattributes" value="Shipping Cost"/>
617
- </td>
618
- <td>
619
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
620
- </td>
621
- <td>
622
- <select name="type[]" class="attr_type wfnoempty">
623
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
624
- <option value="pattern" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
625
- </select>
626
- </td>
627
- <td>
628
- <select name="attributes[]" id="" required="required" style=" display: none;"
629
- class="wf_validate_attr wf_attr wf_attributes">
630
- <?php echo $product->attributeDropdown(); ?>
631
- </select>
632
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
633
- value="0.00" />
634
- </td>
635
- <td>
636
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
637
- </td>
638
- <td>
639
- <select name="output_type[][]" id="" class="outputType wfnoempty">
640
- <option value="1">Default</option>
641
- <option value="2">Strip Tags</option>
642
- <option value="3">UTF-8 Encode</option>
643
- <option value="4">htmlentities</option>
644
- <option value="5">Integer</option>
645
- <option value="6">Price</option>
646
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
647
- <option value="8">CDATA</option>
648
- </select>
649
- <i class="dashicons dashicons-editor-expand expandType"></i>
650
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
651
- </td>
652
- <td>
653
- <input type="text" name="limit[]" class="wf_ps"/>
654
- </td>
655
- <td>
656
- <i class="delRow dashicons dashicons-trash"></i>
657
- </td>
658
- </tr>
659
  </tbody>
660
  <tfoot>
661
  <tr>
@@ -685,7 +112,90 @@
685
  </table>
686
  </div>
687
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
 
 
 
 
 
 
 
 
 
 
 
 
689
  <li>
690
  <input type="radio" name="wf_tabs" id="tab3"/>
691
  <label class="wf-tab-name" for="tab3"><?php echo _e('FTP', 'woo-feed'); ?></label>
8
  <thead>
9
  <tr>
10
  <th></th>
11
+ <th><?php //echo ucwords(str_replace("_"," ",$provider)); ?> <?php echo _e('Attributes', 'woo-feed'); ?></th>
12
  <th><?php echo _e('Prefix', 'woo-feed'); ?></th>
13
  <th><?php echo _e('Type', 'woo-feed'); ?></th>
14
  <th><?php echo _e('Value', 'woo-feed'); ?></th>
19
  </tr>
20
  </thead>
21
  <tbody>
22
+ <?php
23
+ $method1=$provider."Attributes";
24
+ $method2=$method1."Dropdown";
25
+ $ACAttributes=$attributes->$method1();
26
+ $i=0;
27
+ foreach($ACAttributes as $key=>$value){
28
+ $i++;
29
+ ?>
30
+ <tr>
31
+ <td>
32
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
33
+ </td>
34
+ <td>
35
+ <select name="mattributes[]" id="" required class="wf_mattributes">
36
+ <?php echo $dropDown->$method2($key); ?>
37
+ </select>
38
+ </td>
39
+ <td>
40
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
41
+ </td>
42
+ <td>
43
+ <select name="type[]" class="attr_type wfnoempty">
44
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
45
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
46
+ </select>
47
+ </td>
48
+ <td>
49
+ <select name="attributes[]" id="" required="required"
50
+ class="wf_validate_attr wf_attr wf_attributes">
51
+ <?php echo $product->attributeDropdown(); ?>
52
+ </select>
53
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
54
+ style=" display: none;"/>
55
+ </td>
56
+ <td>
57
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
58
+ </td>
59
+ <td>
60
+ <select name="output_type[][]" id="" class="outputType wfnoempty">
61
+ <option value="1">Default</option>
62
+ <option value="2">Strip Tags</option>
63
+ <option value="3">UTF-8 Encode</option>
64
+ <option value="4">htmlentities</option>
65
+ <option value="5">Integer</option>
66
+ <option value="6">Price</option>
67
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
68
+ <option value="8">CDATA</option>
69
+ </select>
70
+ <i class="dashicons dashicons-editor-expand expandType"></i>
71
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
72
+ </td>
73
+ <td>
74
+ <input type="text" name="limit[]" class="wf_ps"/>
75
+ </td>
76
+ <td>
77
+ <i class="delRow dashicons dashicons-trash"></i>
78
+ </td>
79
+ </tr>
80
+ <?php
81
+ if($i>8){
82
+ break;
83
+ }
84
+ }
85
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  </tbody>
87
  <tfoot>
88
  <tr>
112
  </table>
113
  </div>
114
  </li>
115
+ <?php if (get_option('woocommerce_product_feed_pro_activated') && get_option('woocommerce_product_feed_pro_activated') == "Activated") { ?>
116
+ <li>
117
+ <input type="radio" name="wf_tabs" id="tab2"/>
118
+ <label class="wf-tab-name" for="tab2"><?php echo _e('Filter', 'woo-feed'); ?></label>
119
+
120
+ <div id="wf-tab-content2" class="wf-tab-content">
121
+ <table class="table tree widefat fixed sorted_table mtable" width="100%" id="table-filter">
122
+ <thead>
123
+ <tr>
124
+ <th></th>
125
+ <th><?php echo _e('Attributes', 'woo-feed'); ?></th>
126
+ <th><?php echo _e('Condition', 'woo-feed'); ?></th>
127
+ <th><?php echo _e('Value', 'woo-feed'); ?></th>
128
+ <th></th>
129
+ </tr>
130
+ <tr style="border-bottom: 2px solid #ccc">
131
+ <td><?php echo _e('Filter', 'woo-feed'); ?> </td>
132
+ <td colspan="4">
133
+ <select name="filterType" class="">
134
+ <option value="2"><?php echo _e('Together', 'woo-feed'); ?></option>
135
+ <option value="1"><?php echo _e('Individually', 'woo-feed'); ?></option>
136
+ </select>
137
+ </td>
138
+ </tr>
139
+ </thead>
140
+ <tbody>
141
+
142
+ <tr style="display:none;" class="daRow">
143
+ <td>
144
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
145
+ </td>
146
+ <td>
147
+ <select name="fattribute[]" id="" disabled required class="fsrow">
148
+ <?php echo $product->attributeDropdown(); ?>
149
+ </select>
150
+ </td>
151
+ <td>
152
+ <select name="condition[]" disabled class="fsrow">
153
+ <option value="=="><?php echo _e('is / equal', 'woo-feed'); ?></option>
154
+ <option value="!="><?php echo _e('is not / not equal', 'woo-feed'); ?></option>
155
+ <option value=">="><?php echo _e('equals or greater than', 'woo-feed'); ?></option>
156
+ <option value=">"><?php echo _e('greater than', 'woo-feed'); ?></option>
157
+ <option value="<="><?php echo _e('equals or less than', 'woo-feed'); ?></option>
158
+ <option value="<"><?php echo _e('less than', 'woo-feed'); ?></option>
159
+ <option value="contains"><?php echo _e('contains', 'woo-feed'); ?></option>
160
+ <option value="nContains"><?php echo _e('does not contain', 'woo-feed'); ?></option>
161
+ </select>
162
+ </td>
163
+ <td>
164
+ <input type="text" name="filterCompare[]" disabled autocomplete="off" class="fsrow"/>
165
+ </td>
166
+ <td>
167
+ <i class="delRow dashicons dashicons-trash"></i>
168
+ </td>
169
+ </tr>
170
+ </tbody>
171
+ <tfoot>
172
+ <tr>
173
+ <td>
174
+ <button type="button" class="button-small button-primary" id="wf_newFilter">
175
+ <?php echo _e('Add New Condition', 'woo-feed'); ?>
176
+ </button>
177
+ </td>
178
+ <td colspan="4">
179
+
180
+ </td>
181
+ </tr>
182
+ </tfoot>
183
+ </table>
184
+ <table class=" widefat fixed">
185
+ <tr>
186
+ <td align="left" class="makeFeedResponse">
187
 
188
+ </td>
189
+ <td align="right">
190
+ <button type="submit" id="wf_submit" class="wfbtn">
191
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
192
+ </button>
193
+ </td>
194
+ </tr>
195
+ </table>
196
+ </div>
197
+ </li>
198
+ <?php } ?>
199
  <li>
200
  <input type="radio" name="wf_tabs" id="tab3"/>
201
  <label class="wf-tab-name" for="tab3"><?php echo _e('FTP', 'woo-feed'); ?></label>
admin/partials/bing/add-feed.php CHANGED
@@ -19,300 +19,66 @@
19
  </tr>
20
  </thead>
21
  <tbody>
22
- <tr>
23
- <td>
24
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
25
- </td>
26
- <td>
27
- <select name="mattributes[]" id="" required class="wf_mattributes">
28
- <?php echo $dropDown->bingAttributesDropdown('MerchantProductID'); ?>
29
- </select>
30
- </td>
31
- <td>
32
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
33
- </td>
34
- <td>
35
- <select name="type[]" class="attr_type wfnoempty">
36
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
37
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
38
- </select>
39
- </td>
40
- <td>
41
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
42
- <?php echo $product->attributeDropdown('sku'); ?>
43
- </select>
44
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
45
- style=" display: none;"/>
46
- </td>
47
- <td>
48
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
49
- </td>
50
- <td>
51
- <select name="output_type[][]" id="" class="outputType wfnoempty">
52
- <option value="1">Default</option>
53
- <option value="2">Strip Tags</option>
54
- <option value="3">UTF-8 Encode</option>
55
- <option value="4">htmlentities</option>
56
- <option value="5">Integer</option>
57
- <option value="6">Price</option>
58
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
59
- <option value="8">CDATA</option>
60
- </select>
61
- <i class="dashicons dashicons-editor-expand expandType"></i>
62
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
63
- </td>
64
- <td>
65
- <input type="text" name="limit[]" class="wf_ps"/>
66
- </td>
67
- <td>
68
- <i class="delRow dashicons dashicons-trash"></i>
69
- </td>
70
- </tr>
71
- <tr>
72
- <td>
73
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
74
- </td>
75
- <td>
76
- <select name="mattributes[]" id="" required class="wf_mattributes">
77
- <?php echo $dropDown->bingAttributesDropdown('Title'); ?>
78
- </select>
79
- </td>
80
- <td>
81
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
82
- </td>
83
- <td>
84
- <select name="type[]" class="attr_type wfnoempty">
85
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
86
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
87
- </select>
88
- </td>
89
- <td>
90
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
91
- <?php echo $product->attributeDropdown('title'); ?>
92
- </select>
93
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
94
- style=" display: none;"/>
95
- </td>
96
- <td>
97
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
98
- </td>
99
- <td>
100
- <select name="output_type[][]" id="" class="outputType wfnoempty">
101
- <option value="1">Default</option>
102
- <option value="2">Strip Tags</option>
103
- <option value="3">UTF-8 Encode</option>
104
- <option value="4">htmlentities</option>
105
- <option value="5">Integer</option>
106
- <option value="6">Price</option>
107
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
108
- <option value="8">CDATA</option>
109
- </select>
110
- <i class="dashicons dashicons-editor-expand expandType"></i>
111
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
112
- </td>
113
- <td>
114
- <input type="text" name="limit[]" class="wf_ps"/>
115
- </td>
116
- <td>
117
- <i class="delRow dashicons dashicons-trash"></i>
118
- </td>
119
- </tr>
120
- <tr>
121
- <td>
122
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
123
- </td>
124
- <td>
125
- <select name="mattributes[]" id="" required class="wf_mattributes">
126
- <?php echo $dropDown->bingAttributesDropdown('ProductURL'); ?>
127
- </select>
128
- </td>
129
- <td>
130
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
131
- </td>
132
- <td>
133
- <select name="type[]" class="attr_type wfnoempty">
134
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
135
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
136
- </select>
137
- </td>
138
- <td>
139
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
140
- <?php echo $product->attributeDropdown('link'); ?>
141
- </select>
142
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
143
- style=" display: none;"/>
144
- </td>
145
- <td>
146
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
147
- </td>
148
- <td>
149
- <select name="output_type[][]" id="" class="outputType wfnoempty">
150
- <option value="1">Default</option>
151
- <option value="2">Strip Tags</option>
152
- <option value="3">UTF-8 Encode</option>
153
- <option value="4">htmlentities</option>
154
- <option value="5">Integer</option>
155
- <option value="6">Price</option>
156
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
157
- <option value="8">CDATA</option>
158
- </select>
159
- <i class="dashicons dashicons-editor-expand expandType"></i>
160
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
161
- </td>
162
- <td>
163
- <input type="text" name="limit[]" class="wf_ps"/>
164
- </td>
165
- <td>
166
- <i class="delRow dashicons dashicons-trash"></i>
167
- </td>
168
- </tr>
169
- <tr>
170
- <td>
171
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
172
- </td>
173
- <td>
174
- <select name="mattributes[]" id="" required class="wf_mattributes">
175
- <?php echo $dropDown->bingAttributesDropdown('Price'); ?>
176
- </select>
177
- </td>
178
- <td>
179
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
180
- </td>
181
- <td>
182
- <select name="type[]" class="attr_type wfnoempty">
183
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
184
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
185
- </select>
186
- </td>
187
- <td>
188
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
189
- <?php echo $product->attributeDropdown('price'); ?>
190
- </select>
191
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
192
- style=" display: none;"/>
193
- </td>
194
- <td>
195
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
196
- </td>
197
- <td>
198
- <select name="output_type[][]" id="" class="outputType wfnoempty">
199
- <option value="1">Default</option>
200
- <option value="2">Strip Tags</option>
201
- <option value="3">UTF-8 Encode</option>
202
- <option value="4">htmlentities</option>
203
- <option value="5">Integer</option>
204
- <option value="6">Price</option>
205
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
206
- <option value="8">CDATA</option>
207
- </select>
208
- <i class="dashicons dashicons-editor-expand expandType"></i>
209
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
210
- </td>
211
- <td>
212
- <input type="text" name="limit[]" class="wf_ps"/>
213
- </td>
214
- <td>
215
- <i class="delRow dashicons dashicons-trash"></i>
216
- </td>
217
- </tr>
218
- <tr>
219
- <td>
220
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
221
- </td>
222
- <td>
223
- <select name="mattributes[]" id="" required class="wf_mattributes">
224
- <?php echo $dropDown->bingAttributesDropdown('Description'); ?>
225
- </select>
226
- </td>
227
- <td>
228
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
229
- </td>
230
- <td>
231
- <select name="type[]" class="attr_type wfnoempty">
232
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
233
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
234
- </select>
235
- </td>
236
- <td>
237
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
238
- <?php echo $product->attributeDropdown('description'); ?>
239
- </select>
240
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
241
- style=" display: none;"/>
242
- </td>
243
- <td>
244
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
245
- </td>
246
- <td>
247
- <select name="output_type[][]" id="" class="outputType wfnoempty">
248
- <option value="1">Default</option>
249
- <option value="2">Strip Tags</option>
250
- <option value="3">UTF-8 Encode</option>
251
- <option value="4">htmlentities</option>
252
- <option value="5">Integer</option>
253
- <option value="6">Price</option>
254
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
255
- <option value="8">CDATA</option>
256
- </select>
257
- <i class="dashicons dashicons-editor-expand expandType"></i>
258
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
259
- </td>
260
- <td>
261
- <input type="text" name="limit[]" class="wf_ps"/>
262
- </td>
263
- <td>
264
- <i class="delRow dashicons dashicons-trash"></i>
265
- </td>
266
- </tr>
267
- <tr>
268
- <td>
269
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
270
- </td>
271
- <td>
272
- <select name="mattributes[]" id="" required class="wf_mattributes">
273
- <?php echo $dropDown->bingAttributesDropdown('ImageURL'); ?>
274
- </select>
275
- </td>
276
- <td>
277
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
278
- </td>
279
- <td>
280
- <select name="type[]" class="attr_type wfnoempty">
281
- <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
282
- <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
283
- </select>
284
- </td>
285
- <td>
286
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
287
- <?php echo $product->attributeDropdown('image'); ?>
288
- </select>
289
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
290
- style=" display: none;"/>
291
- </td>
292
- <td>
293
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
294
- </td>
295
- <td>
296
- <select name="output_type[][]" id="" class="outputType wfnoempty">
297
- <option value="1">Default</option>
298
- <option value="2">Strip Tags</option>
299
- <option value="3">UTF-8 Encode</option>
300
- <option value="4">htmlentities</option>
301
- <option value="5">Integer</option>
302
- <option value="6">Price</option>
303
- <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
304
- <option value="8">CDATA</option>
305
- </select>
306
- <i class="dashicons dashicons-editor-expand expandType"></i>
307
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
308
- </td>
309
- <td>
310
- <input type="text" name="limit[]" class="wf_ps"/>
311
- </td>
312
- <td>
313
- <i class="delRow dashicons dashicons-trash"></i>
314
- </td>
315
- </tr>
316
  </tbody>
317
  <tfoot>
318
  <tr>
19
  </tr>
20
  </thead>
21
  <tbody>
22
+ <?php
23
+ foreach($attributes->bingAttribute() as $key=>$value){
24
+ if($key=="required"){
25
+ break;
26
+ }
27
+ ?>
28
+ <tr>
29
+ <td>
30
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
31
+ </td>
32
+ <td>
33
+ <select name="mattributes[]" id="" required class="wf_mattributes">
34
+ <?php echo $attributes->getAttributeDropDown("bing",$key); ?>
35
+ </select>
36
+ </td>
37
+ <td>
38
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
39
+ </td>
40
+ <td>
41
+ <select name="type[]" class="attr_type wfnoempty">
42
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
43
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
44
+ </select>
45
+ </td>
46
+ <td>
47
+ <select name="attributes[]" id="" class="wf_attr wf_attributes" required="required">
48
+ <?php echo $product->attributeDropdown(); ?>
49
+ </select>
50
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
51
+ style=" display: none;"/>
52
+ </td>
53
+ <td>
54
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
55
+ </td>
56
+ <td>
57
+ <select name="output_type[][]" id="" class="outputType wfnoempty">
58
+ <option value="1">Default</option>
59
+ <option value="2">Strip Tags</option>
60
+ <option value="3">UTF-8 Encode</option>
61
+ <option value="4">htmlentities</option>
62
+ <option value="5">Integer</option>
63
+ <option value="6">Price</option>
64
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
65
+ <option value="8">CDATA</option>
66
+ </select>
67
+ <i class="dashicons dashicons-editor-expand expandType"></i>
68
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
69
+ </td>
70
+ <td>
71
+ <input type="text" name="limit[]" class="wf_ps"/>
72
+ </td>
73
+ <td>
74
+ <i class="delRow dashicons dashicons-trash"></i>
75
+ </td>
76
+ </tr>
77
+ <?php
78
+ }
79
+ ?>
80
+
81
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  </tbody>
83
  <tfoot>
84
  <tr>
admin/partials/custom/add-feed-renamed.php DELETED
@@ -1,160 +0,0 @@
1
- <div class="container">
2
- <section>
3
- <div class="tabs tabs-style-bar">
4
- <nav>
5
- <ul>
6
- <li class="tab-current"><a href="#section-bar-1" class="icon icon-tools"><span>Content</span></a>
7
- </li>
8
- <li class=""><a href="#section-bar-2" class="icon icon-upload"><span>Filter</span></a></li>
9
- <li class=""><a href="#section-bar-3" class="icon icon-upload"><span>FTP</span></a></li>
10
- </ul>
11
- </nav>
12
- <div class="content-wrap">
13
- <section id="section-bar-1" class="content-current">
14
- <table class="table tree widefat fixed sorted_table mtable" width="100%" id="table-1">
15
- <thead>
16
- <tr>
17
- <th></th>
18
- <th>Merchant Attributes</th>
19
- <th>Prefix</th>
20
- <th>Type</th>
21
- <th>Value</th>
22
- <th>Suffix</th>
23
- <th>Output Type</th>
24
- <th>Output Limit</th>
25
- <th></th>
26
- </tr>
27
- </thead>
28
- <tbody>
29
- <tr>
30
- <td>
31
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
32
- </td>
33
- <td>
34
- <input type="text" name="mattributes[]" autocomplete="off" required class="wf_mattributes"/>
35
- </td>
36
- <td>
37
- <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
38
- </td>
39
- <td>
40
- <select name="type[]" class="attr_type">
41
- <option value="attribute">Attribute</option>
42
- <option value="pattern">Pattern</option>
43
- </select>
44
- </td>
45
- <td>
46
- <select name="attributes[]" id="" class="wf_attr wf_attributes">
47
- <?php echo $product->attributeDropdown(); ?>
48
- </select>
49
- <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
50
- style=" display: none;"/>
51
- </td>
52
- <td>
53
- <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
54
- </td>
55
- <td>
56
- <select name="output_type[][]" id="" class="outputType" >
57
- <option value="1">Default</option>
58
- <option value="2">Strip Tags</option>
59
- <option value="3">UTF-8 Encode</option>
60
- <option value="4">htmlentities</option>
61
- <option value="5">Integer</option>
62
- <option value="6">Price</option>
63
- <option value="7">Remove Space</option>
64
- <option value="8">CDATA</option>
65
- </select>
66
- <i class="dashicons dashicons-editor-expand expandType"></i>
67
- <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
68
- </td>
69
- <td>
70
- <input type="text" name="limit[]" class="wf_ps"/>
71
- </td>
72
- <td>
73
- <i class="delRow dashicons dashicons-trash"></i>
74
- </td>
75
- </tr>
76
-
77
- </tbody>
78
- <tfoot>
79
- <tr>
80
- <td>
81
- <button type="button" class="button-small button-primary" id="wf_newRow">Add New
82
- Row
83
- </button>
84
- </td>
85
- <td colspan="8">
86
-
87
- </td>
88
- </tr>
89
- </tfoot>
90
- </table>
91
- </section>
92
- <section id="section-bar-2" class="">
93
- <table>
94
-
95
- </table>
96
- </section>
97
- <section id="section-bar-3" class="">
98
- <table class="table widefat fixed mtable" width="100%" >
99
- <tbody>
100
- <tr>
101
- <td>Enabled</td>
102
- <td>
103
- <select name="enabled" id="">
104
- <option value="0">Disabled</option>
105
- <option value="1">Enabled</option>
106
- </select>
107
- </td>
108
- </tr>
109
- <tr>
110
- <td>Protocol</td>
111
- <td>
112
- <select name="enabled" id="">
113
- <option value="ftp">FTP/FTPS</option>
114
- <option value="sftp">SFTP</option>
115
- </select>
116
- </td>
117
- </tr>
118
- <tr>
119
- <td>Host Name</td>
120
- <td><input type="text" name="ftphost"/></td>
121
- </tr>
122
- <tr>
123
- <td>User Name</td>
124
- <td><input type="text" name="ftpuser"/></td>
125
- </tr>
126
- <tr>
127
- <td>Password</td>
128
- <td><input type="password" name="ftppassword"/></td>
129
- </tr>
130
- <tr>
131
- <td>Path</td>
132
- <td><input type="text" name="ftppath"/></td>
133
- </tr>
134
- <tr>
135
- <td>Passive Mode</td>
136
- <td>
137
- <select name="passive" id="">
138
- <option value="0">Disabled</option>
139
- <option value="1">Enabled</option>
140
- </select>
141
- </td>
142
- </tr>
143
- </tbody>
144
- </table>
145
- </section>
146
- </div>
147
- <!-- /content -->
148
- </div>
149
- </section>
150
- </div>
151
- <!-- /container -->
152
- <table class=" widefat fixed">
153
- <tr>
154
- <td align="right">
155
- <button type="submit" id="wf_submit" class="wfbtn">
156
- Save & Generate Feed
157
- </button>
158
- </td>
159
- </tr>
160
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/partials/custom/edit-feed-renamed.php DELETED
@@ -1,346 +0,0 @@
1
- <br/><br/>
2
-
3
- <?php
4
- $dropDown = new Woo_Feed_Dropdown();
5
- $product = new Woo_Feed_Products();
6
- ?>
7
-
8
- <form action="" name="feed"
9
- method="post">
10
-
11
- <table class=" widefat fixed">
12
- <tbody>
13
- <tr>
14
- <td width="30%"><b>Provider <span class="requiredIn">*</span></b></td>
15
- <td>
16
- <select name="provider" id="provider" class="generalInput">
17
- <?php echo $dropDown->merchantsDropdown($feedRules['provider']); ?>
18
- </select>
19
- </td>
20
- </tr>
21
- <tr>
22
- <td><b>File Name <span class="requiredIn">*</span></b></td>
23
- <td><input name="filename"
24
- value="<?php echo isset($feedRules['filename']) ? $feedRules['filename'] : ''; ?>" type="text"
25
- class="generalInput"/></td>
26
- </tr>
27
- <tr>
28
- <td><b>Feed Type <span class="requiredIn">*</span></b></td>
29
- <td>
30
- <select name="feedType" id="feedType" class="generalInput">
31
- <option <?php echo ($feedRules['feedType'] == "xml") ? 'selected="selected"' : ''; ?> value="xml">
32
- XML
33
- </option>
34
- <option <?php echo ($feedRules['feedType'] == "csv") ? 'selected="selected"' : ''; ?> value="csv">
35
- CSV
36
- </option>
37
- <option <?php echo ($feedRules['feedType'] == "txt") ? 'selected="selected"' : ''; ?> value="txt">
38
- TXT
39
- </option>
40
- </select>
41
- </td>
42
- </tr>
43
- <tr class="itemWrapper" <?php echo ($feedRules['feedType'] != "xml") ? 'style="display: none;"' : ''; ?> >
44
- <td><b>Items Wrapper <span class="requiredIn">*</span></b></td>
45
- <td><input name="itemsWrapper" type="text"
46
- value="<?php echo ($feedRules['feedType'] == "xml") && isset($feedRules['itemsWrapper']) ? $feedRules['itemsWrapper'] : 'products'; ?>"
47
- class="generalInput" required="required"/>
48
- </td>
49
- </tr>
50
- <tr class="itemWrapper" <?php echo ($feedRules['feedType'] != "xml") ? 'style="display: none;"' : ''; ?>>
51
- <td><b>Single Item Wrapper <span class="requiredIn">*</span></b></td>
52
- <td><input name="itemWrapper" type="text"
53
- value="<?php echo ($feedRules['feedType'] == "xml") && isset($feedRules['itemWrapper']) ? $feedRules['itemWrapper'] : 'product'; ?>"
54
- class="generalInput" required="required"/>
55
- </td>
56
- </tr>
57
- <tr class="itemWrapper" <?php echo ($feedRules['feedType'] != "xml") ? 'style="display: none;"' : ''; ?>>
58
- <td><b>Extra Header </b></td>
59
- <td>
60
- <textarea name="extraHeader" id="" cols="30" rows="3"><?php echo ($feedRules['feedType'] == "xml") && isset($feedRules['extraHeader']) ? $feedRules['extraHeader'] : ''; ?></textarea>
61
- </td>
62
- </tr>
63
- <tr class="wf_csvtxt" <?php echo ($feedRules['feedType'] == "xml") ? 'style="display: none;"' : ''; ?>>
64
- <td><b>Delimiter <span class="requiredIn">*</span></b></td>
65
- <td>
66
- <select name="delimiter" id="delimiter" class="generalInput">
67
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == "," ? 'selected="selected"' : ''; ?>
68
- value=",">Comma
69
- </option>
70
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == "tab" ? 'selected="selected"' : ''; ?>
71
- value="tab">Tab
72
- </option>
73
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == ":" ? 'selected="selected"' : ''; ?>
74
- value=":">Colon
75
- </option>
76
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == " " ? 'selected="selected"' : ''; ?>
77
- value=" ">Space
78
- </option>
79
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == "|" ? 'selected="selected"' : ''; ?>
80
- value="|">Pipe
81
- </option>
82
- <option <?php echo isset($feedRules['delimiter']) && $feedRules['delimiter'] == ";" ? 'selected="selected"' : ''; ?>
83
- value=";">Semi Colon
84
- </option>
85
- </select>
86
- </td>
87
- </tr>
88
- <tr class="wf_csvtxt" <?php echo ($feedRules['feedType'] == "xml") ? 'style="display: none;"' : ''; ?>>
89
- <td><b>Enclosure <span class="requiredIn">*</span></b></td>
90
- <td>
91
- <select name="enclosure" id="enclosure" class="generalInput">
92
- <option <?php echo isset($feedRules['enclosure']) && $feedRules['enclosure'] == " " ? 'selected="selected"' : ''; ?>
93
- value=" ">None
94
- </option>
95
- <option <?php echo isset($feedRules['enclosure']) && $feedRules['enclosure'] == "double" ? 'selected="selected"' : ''; ?>
96
- value='double'>"
97
- </option>
98
- <option <?php echo isset($feedRules['enclosure']) && $feedRules['enclosure'] == "single" ? 'selected="selected"' : ''; ?>
99
- value="single">'
100
- </option>
101
- </select>
102
- </td>
103
- </tr>
104
- </tbody>
105
- </table>
106
- <br/>
107
-
108
- <div class="container">
109
- <section>
110
- <div class="tabs tabs-style-bar">
111
- <nav>
112
- <ul>
113
- <li class="tab-current"><a href="#section-bar-1" class="icon icon-tools"><span>Content</span></a>
114
- </li>
115
- <li class=""><a href="#section-bar-2" class="icon icon-upload"><span>FTP</span></a></li>
116
- </ul>
117
- </nav>
118
- <div class="content-wrap">
119
- <section id="section-bar-1" class="content-current">
120
- <table class="table tree widefat fixed sorted_table mtable" width="100%" id="table-1">
121
- <thead>
122
- <tr>
123
- <th></th>
124
- <th>Merchant Attributes</th>
125
- <th>Prefix</th>
126
- <th>Type</th>
127
- <th>Value</th>
128
- <th>Suffix</th>
129
- <th>Output Type</th>
130
- <th>Output Limit</th>
131
- <th></th>
132
- </tr>
133
- </thead>
134
- <tbody>
135
- <?php
136
- if (count($feedRules['mattributes']) > 0) {
137
- $mAttributes = $feedRules['mattributes'];
138
- $wooAttributes = $feedRules['attributes'];
139
- $type = $feedRules['type'];
140
- $default = $feedRules['default'];
141
- $prefix = $feedRules['prefix'];
142
- $suffix = $feedRules['suffix'];
143
- $outputType = $feedRules['output_type'];
144
- $limit = $feedRules['limit'];
145
- //echo "<pre>";print_r($outputType);
146
- $counter = 0;
147
- foreach ($mAttributes as $merchant => $mAttribute) {
148
-
149
- ?>
150
- <tr>
151
- <td>
152
- <i class="wf_sortedtable dashicons dashicons-menu"></i>
153
- </td>
154
- <td>
155
- <input type="text" name="mattributes[]" value="<?php echo $mAttribute; ?>" required
156
- class="wf_mattributes"/>
157
- <!-- <select name="mattributes[]" id="" class="wf_mattributes">-->
158
- <!-- --><?php //echo $dropDown->nextagAttributesDropdown($mAttribute); ?>
159
- <!-- </select>-->
160
- </td>
161
- <td>
162
- <input type="text" name="prefix[]" value="<?php echo $prefix[$merchant]; ?>"
163
- autocomplete="off"
164
- class="wf_ps"/>
165
- </td>
166
- <td>
167
- <select name="type[]" id="" class="attr_type">
168
- <option <?php echo ($type[$merchant] == "attribute") ? 'selected="selected"' : ''; ?>
169
- value="attribute">Attribute
170
- </option>
171
- <option <?php echo ($type[$merchant] == "pattern") ? 'selected="selected"' : ''; ?>
172
- value="pattern">Pattern
173
- </option>
174
- </select>
175
-
176
- </td>
177
- <td>
178
- <select <?php echo ($type[$merchant] == "attribute") ? '' : 'style=" display: none;"'; ?>
179
- name="attributes[]" id=""
180
- class="wf_attr wf_attributes">
181
- <?php echo $product->attributeDropdown($wooAttributes[$merchant]); ?>
182
- </select>
183
-
184
- <input <?php echo ($type[$merchant] == "pattern") ? '' : 'style=" display: none;"'; ?>
185
- autocomplete="off"
186
- class="wf_default wf_attributes" type="text" name="default[]"
187
- value="<?php echo $default[$merchant]; ?>"/>
188
-
189
- </td>
190
- <td>
191
- <input type="text" name="suffix[]" value="<?php echo $suffix[$merchant]; ?>"
192
- autocomplete="off"
193
- class="wf_ps"/>
194
- </td>
195
-
196
- <td>
197
- <select name="output_type[<?php echo $counter; ?>][]" id=""
198
- class="outputType" <?php echo (count($outputType[$counter]) > 1) ? 'multiple="multiple"' : ''; ?>>
199
- <option <?php echo (in_array('1', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
200
- value="1">Default
201
- </option>
202
- <option <?php echo (in_array('2', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
203
- value="2">Strip Tags
204
- </option>
205
- <option <?php echo (in_array('3', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
206
- value="3">UTF-8 Encode
207
- </option>
208
- <option <?php echo (in_array('4', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
209
- value="4">htmlentities
210
- </option>
211
- <option <?php echo (in_array('5', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
212
- value="5">Integer
213
- </option>
214
- <option <?php echo (in_array('6', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
215
- value="6">Price
216
- </option>
217
- <option <?php echo (in_array('7', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
218
- value="7">Remove Space
219
- </option>
220
- <option <?php echo (in_array('8', $outputType[$counter])) ? 'selected="selected"' : ''; ?>
221
- value="8">CDATA
222
- </option>
223
- </select>
224
- <i class="dashicons dashicons-editor-expand expandType"></i>
225
- <i style="display: none;"
226
- class="dashicons dashicons-editor-contract contractType"></i>
227
- </td>
228
- <td>
229
- <input type="text" name="limit[]" value="<?php echo $limit[$merchant]; ?>"
230
- autocomplete="off"
231
- class="wf_ps"/>
232
- </td>
233
- <td>
234
- <i class="delRow dashicons dashicons-trash"></i>
235
- </td>
236
- </tr>
237
-
238
- <?php
239
- $counter++;
240
- }
241
- }
242
- ?>
243
-
244
- </tbody>
245
- <tfoot>
246
- <tr>
247
- <td colspan="3">
248
- <button type="button" class="button-small button-primary" id="wf_newRow">Add New Row
249
- </button>
250
- </td>
251
- <td colspan="6">
252
-
253
- </td>
254
- </tr>
255
- </tfoot>
256
- </table>
257
- </section>
258
- <section id="section-bar-2" class="">
259
- <table class="table widefat fixed mtable" width="100%">
260
- <tbody>
261
- <tr>
262
- <td>Enabled</td>
263
- <td>
264
- <select name="enabled" id="">
265
- <option <?php echo ($feedRules['passive'] == "0") ? 'selected="selected"' : ''; ?>
266
- value="0">Disabled
267
- </option>
268
- <option <?php echo ($feedRules['passive'] == "1") ? 'selected="selected"' : ''; ?>
269
- value="1">Enabled
270
- </option>
271
- </select>
272
- </td>
273
- </tr>
274
- <tr>
275
- <td>Protocol</td>
276
- <td>
277
- <select name="protocol" id="">
278
- <option <?php echo ($feedRules['enabled'] == "ftp") ? 'selected="selected"' : ''; ?>
279
- value="ftp">FTP/FTPS
280
- </option>
281
- <option <?php echo ($feedRules['enabled'] == "sftp") ? 'selected="selected"' : ''; ?>
282
- value="sftp">SFTP
283
- </option>
284
- </select>
285
- </td>
286
- </tr>
287
- <tr>
288
- <td>Host Name</td>
289
- <td><input type="text" value="<?php echo $feedRules['ftphost']; ?>" name="ftphost"
290
- autocomplete="off"/></td>
291
- </tr>
292
- <tr>
293
- <td>User Name</td>
294
- <td><input type="text" value="<?php echo $feedRules['ftpuser']; ?>" name="ftpuser"
295
- autocomplete="off"/></td>
296
- </tr>
297
- <tr>
298
- <td>Password</td>
299
- <td><input type="password" value="<?php echo $feedRules['ftppassword']; ?>"
300
- name="ftppassword" autocomplete="off"/></td>
301
- </tr>
302
- <tr>
303
- <td>Path</td>
304
- <td><input type="text" value="<?php echo $feedRules['ftppath']; ?>" name="ftppath"
305
- autocomplete="off"/></td>
306
- </tr>
307
- <tr>
308
- <td>Passive Mode</td>
309
- <td>
310
- <select name="passive" id="">
311
- <option <?php echo ($feedRules['passive'] == "0") ? 'selected="selected"' : ''; ?>
312
- value="0">Disabled
313
- </option>
314
- <option <?php echo ($feedRules['passive'] == "1") ? 'selected="selected"' : ''; ?>
315
- value="1">Enabled
316
- </option>
317
- </select>
318
- </td>
319
- </tr>
320
- </tbody>
321
- </table>
322
- </section>
323
- </div>
324
- <!-- /content -->
325
- </div>
326
- </section>
327
- </div>
328
- <!-- /container -->
329
- <table class=" widefat fixed">
330
- <tr>
331
- <td align="right">
332
- <button name="<?php echo isset($_GET['action']) ? $_GET['action'] : ''; ?>"
333
- type="submit" id="submit"
334
- class="wfbtn">
335
- Update and Generate Feed
336
- </button>
337
- </td>
338
- </tr>
339
- </table>
340
- </form>
341
- <script>
342
- // Tab Initialize
343
- [].slice.call(document.querySelectorAll('.tabs')).forEach(function (el) {
344
- new CBPFWTabs(el);
345
- });
346
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/partials/woo-feed-admin-display.php CHANGED
@@ -13,6 +13,7 @@
13
 
14
  $dropDown = new Woo_Feed_Dropdown();
15
  $product = new Woo_Feed_Products();
 
16
  $product->load_attributes();
17
  ?>
18
 
@@ -114,7 +115,7 @@ $product->load_attributes();
114
  <br/><br/>
115
 
116
  <div id="providerPage">
117
-
118
  </div>
119
  </form>
120
  </div><!-- /wrap -->
13
 
14
  $dropDown = new Woo_Feed_Dropdown();
15
  $product = new Woo_Feed_Products();
16
+ $attributes=new Woo_Feed_Default_Attributes();
17
  $product->load_attributes();
18
  ?>
19
 
115
  <br/><br/>
116
 
117
  <div id="providerPage">
118
+ <?php //include plugin_dir_path(__FILE__) . "bing/add-feed.php"; ?>
119
  </div>
120
  </form>
121
  </div><!-- /wrap -->
admin/partials/woo-feed-pro-vs-free.php CHANGED
@@ -77,12 +77,12 @@
77
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
78
  </tr>
79
  <tr>
80
- <td><b>Product Taxonomy value</b></td>
81
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
82
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
83
  </tr>
84
  <tr>
85
- <td><b>Unlimited Products</b></td>
86
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
87
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
88
  </tr>
@@ -96,6 +96,16 @@
96
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
97
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
98
  </tr>
 
 
 
 
 
 
 
 
 
 
99
  <tr>
100
  <td><b>Remove Variation Products</b></td>
101
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
@@ -137,10 +147,11 @@
137
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
138
  </tr>
139
  <tr>
140
- <td><b>Product Filtering</b></td>
141
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
142
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
143
  </tr>
 
144
  <tr>
145
  <td></td>
146
  <td></td>
77
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
78
  </tr>
79
  <tr>
80
+ <td><b>Unlimited Products</b></td>
81
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
82
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
83
  </tr>
84
  <tr>
85
+ <td><b>Product Filtering by Id,SKU, Title, Category and Others Attributes.</b></td>
86
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
87
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
88
  </tr>
96
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
97
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
98
  </tr>
99
+ <tr>
100
+ <td><b><a href="https://wpml.org/">WPML:</a> Multi Language Feed Making </b></td>
101
+ <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
102
+ <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
103
+ </tr>
104
+ <tr>
105
+ <td><b>Product Taxonomy value like Brand or Others Plugin data</b></td>
106
+ <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
107
+ <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
108
+ </tr>
109
  <tr>
110
  <td><b>Remove Variation Products</b></td>
111
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
147
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
148
  </tr>
149
  <tr>
150
+ <td><b>Advanced Command ( str_replace, ucfirst, ucwords, strtoupper, strtolower, currency convert, strig_tags, htmlentities)</b></td>
151
  <td style="text-align: center;"><b><span style="font-size: 25px;color:red;" class="dashicons dashicons-no"></span></b></td>
152
  <td style="text-align: center;"><b><span style="font-size: 25px;color: green;" class="dashicons dashicons-yes"></span></b></td>
153
  </tr>
154
+
155
  <tr>
156
  <td></td>
157
  <td></td>
includes/class-woo-feed.php CHANGED
@@ -151,6 +151,7 @@ class Woo_Feed
151
  * Merchant classes
152
  */
153
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-google.php';
 
154
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-facebook.php';
155
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-nextag.php';
156
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-kelkoo.php';
@@ -174,11 +175,6 @@ class Woo_Feed
174
 
175
  require_once plugin_dir_path(dirname(__FILE__)) . 'includes/classes/class-woo-feed-list-table.php';
176
 
177
- /**
178
- * The class responsible for making list table
179
- */
180
-
181
- require_once plugin_dir_path(dirname(__FILE__)) . 'includes/classes/class-woo-feed-error-message.php';
182
 
183
  /**
184
  * The class responsible for making feed list
151
  * Merchant classes
152
  */
153
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-google.php';
154
+ require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-amazon.php';
155
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-facebook.php';
156
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-nextag.php';
157
  require plugin_dir_path(dirname(__FILE__)) . 'includes/feeds/class-woo-feed-kelkoo.php';
175
 
176
  require_once plugin_dir_path(dirname(__FILE__)) . 'includes/classes/class-woo-feed-list-table.php';
177
 
 
 
 
 
 
178
 
179
  /**
180
  * The class responsible for making feed list
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -35,7 +35,6 @@ class Woo_Feed_Default_Attributes
35
  "google" =>"Google Shopping",
36
  "adwords" =>"Google Adwords",
37
  "facebook" =>"Facebook",
38
- "amazon" =>"Amazon",
39
  "shopping" =>"eBay (shopping.com)",
40
  "nextag" =>"Nextag",
41
  "pricegrabber" =>"Price Grabber",
@@ -46,93 +45,3591 @@ class Woo_Feed_Default_Attributes
46
  "bing" =>"Bing",
47
  "become" =>"Become",
48
  "connexity" =>"Connexity",
49
- "---2" => "",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  );
51
  return $merchants;
52
  }
53
 
54
 
55
- public function amazonAttributes(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  $attributes=array(
57
- "--1" => "Required Fields",
58
- "Category"=>"Category",
59
- "Title"=>"Title",
60
- "Link"=>"Link",
61
- "SKU"=>"SKU",
62
- "Price"=>"Price",
63
- "Image"=>"Image",
64
- "---1" => "",
65
- "--2" => "Strongly Recommended Fields",
66
- "UPC"=>"UPC",
67
- "Brand"=>"Brand",
68
- "Recommended Browse Node"=>"Recommended Browse Node",
69
- "Department"=>"Department",
70
- "Description"=>"Description",
71
- "Manufacturer"=>"Manufacturer",
72
- "Mfr part number"=>"Mfr part number",
73
- "Shipping Cost"=>"Shipping Cost",
74
- "---2" => "",
75
- "--3" => "Recommended Fields",
76
- "Bullet point1"=>"Bullet point1",
77
- "Bullet point2"=>"Bullet point2",
78
- "Bullet point3"=>"Bullet point3",
79
- "Bullet point4"=>"Bullet point4",
80
- "Bullet point5"=>"Bullet point5",
81
- "Age"=>"Age",
82
- "Item package quantity"=>"Item package quantity",
83
- "Height"=>"Height",
84
- "Length"=>"Length",
85
- "Weight"=>"Weight",
86
- "Width"=>"Width",
87
- "Keywords1"=>"Keywords1",
88
- "Keywords2"=>"Keywords2",
89
- "Keywords3"=>"Keywords3",
90
- "Keywords4"=>"Keywords4",
91
- "Keywords5"=>"Keywords5",
92
- "Model Number"=>"Model Number",
93
- "Other image-url1"=>"Other image-url1",
94
- "Other image-url2"=>"Other image-url2",
95
- "Other image-url3"=>"Other image-url3",
96
- "Other image-url4"=>"Other image-url4",
97
- "Other image-url5"=>"Other image-url5",
98
- "Other image-url6"=>"Other image-url6",
99
- "Other image-url7"=>"Other image-url7",
100
- "Other image-url8"=>"Other image-url8",
101
- "Shipping Weight"=>"Shipping Weight",
102
- "Size"=>"Size",
103
- "Color"=>"Color",
104
- "Gender"=>"Gender",
105
- "Scent"=>"Scent",
106
- "Color and finish"=>"Color and finish",
107
- "Material"=>"Material",
108
- "Flavor"=>"Flavor",
109
- "Theme HPC"=>"Theme HPC",
110
- "League and Team"=>"League and Team",
111
- "Watch movement"=>"Watch movement",
112
- "Maximum age"=>"Maximum age",
113
- "Minimum age"=>"Minimum age",
114
- "Cuisine"=>"Cuisine",
115
- "Specialty"=>"Specialty",
116
- "Occasion"=>"Occasion",
117
- "Memory Card Type"=>"Memory Card Type",
118
- "Computer CPU speed"=>"Computer CPU speed",
119
- "Computer memory size"=>"Computer memory size",
120
- "Digital Camera Resolution"=>"Digital Camera Resolution",
121
- "Display size"=>"Display size",
122
- "Display technology"=>"Display technology",
123
- "Flash drive Size"=>"Flash drive Size",
124
- "Hard disk size"=>"Hard disk size",
125
- "Included RAM size"=>"Included RAM size",
126
- "Operating system"=>"Operating system",
127
- "Optical zoom"=>"Optical zoom",
128
- "Screen Resolution"=>"Screen Resolution",
129
- "Metal type"=>"Metal type",
130
- "Size per pearl"=>"Size per pearl",
131
- "Total Diamond Weight"=>"Total Diamond Weight",
132
- "Ring size"=>"Ring size",
133
- "Band material"=>"Band material",
134
- "---3" => "",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }
137
 
138
  public function googleAttributes()
@@ -171,6 +3668,7 @@ class Woo_Feed_Default_Attributes
171
  "brand" => "Manufacturer[brand]",
172
  "upc" => "GTIN[gtin]",
173
  "sku" => "MPN[mpn]",
 
174
  "---3" => "",
175
 
176
  "--4" =>"Detailed Product Attributes",
@@ -526,31 +4024,114 @@ class Woo_Feed_Default_Attributes
526
  return $attributes;
527
  }
528
 
529
- public function bingAttribute(){
530
  $attributes=array(
531
- "--1" =>"Required Attributes",
532
- "MerchantProductID" =>"MerchantProductID",
533
- "Title" =>"Title",
534
- "ProductURL" =>"ProductURL",
535
- "Price" =>"Price",
536
- "Description" =>"Description",
537
- "ImageURL" =>"ImageURL",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538
  "---1" =>"",
539
- "--2" =>"Recommended Attributes",
540
- "Brand" =>"Brand",
541
- "MPN" =>"MPN",
542
- "UPC" =>"UPC",
543
- "ISBN" =>"ISBN",
544
- "SKU" =>"SKU",
545
- "Availability" =>"Availability",
546
- "Shipping" =>"Shipping",
547
- "MerchantCategory" =>"MerchantCategory",
548
- "B_Category" =>"B_Category",
549
- "ShippingWeight" =>"ShippingWeight",
550
- "Condition" =>"Condition",
551
- "Tax" =>"Tax",
552
- "---2" =>"",
 
 
 
 
 
 
 
553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
554
  );
555
  return $attributes;
556
  }
35
  "google" =>"Google Shopping",
36
  "adwords" =>"Google Adwords",
37
  "facebook" =>"Facebook",
 
38
  "shopping" =>"eBay (shopping.com)",
39
  "nextag" =>"Nextag",
40
  "pricegrabber" =>"Price Grabber",
45
  "bing" =>"Bing",
46
  "become" =>"Become",
47
  "connexity" =>"Connexity",
48
+ "pricespy" =>"PriceSpy",
49
+ "prisjakt" =>"Prisjakt",
50
+ "---2" =>"",
51
+ "--3" =>"Amazon Template",
52
+ "amazon_clothing" =>"Clothing",
53
+ "amazon_clothing" =>"Luggage & Travel Accessories",
54
+ "amazon_lighting" =>"Lighting",
55
+ "amazon_wireless" =>"Cell Phones & Accessories (Wireless)",
56
+ "amazon_autoaccessory" =>"Automotive & Powersports (Parts & Accessories)",
57
+ "amazon_tiresandwheels" =>"Automotive & Powersports (Tires & Wheels)",
58
+ "amazon_home" =>"Home, Home Decor, Kitchen & Garden",
59
+ "amazon_home" =>"Furniture",
60
+ "amazon_health" =>"Health",
61
+ "amazon_baby" =>"Baby",
62
+ "amazon_BookLoader" =>"Book",
63
+ "amazon_CameraAndPhoto" =>"Camera And Photo",
64
+ "amazon_foodandbeverages" =>"Grocery & Gourmet Food",
65
+ "amazon_computers" =>"Computers",
66
+ "amazon_ConsumerElectronics" =>"Consumer Electronics",
67
+ "amazon_entertainmentcollectibles" =>"Entertainment Collectibles",
68
+ "amazon_homeimprovement" =>"Home Improvement",
69
+ "amazon_office" =>"Office",
70
+ "amazon_petsupplies" =>"Pet Supplies",
71
+ "amazon_sportsmemorabilia" =>"Sports Memorabilia",
72
+ "amazon_shoes" =>"Shoes",
73
+ "amazon_sports" =>"Sports",
74
+ "amazon_toys" =>"Toys",
75
+ "amazon_TradingCards" =>"Trading Cards",
76
+ "amazon_watches" =>"Watches",
77
+ "amazon_jewelry" =>"Jewelry",
78
+ "amazon_jewelry_fr" =>"Jewelry French",
79
+ "---3" => "",
80
  );
81
  return $merchants;
82
  }
83
 
84
 
85
+ /**
86
+ * Dropdown of Attribute List
87
+ *
88
+ * @param string $merchant
89
+ * @param string $selected
90
+ * @return string
91
+ */
92
+ public function getAttributeDropDown($merchant,$selected = "")
93
+ {
94
+ $str = "<option></option>";
95
+ $method=$merchant."Attribute";
96
+ foreach ($this->$method() as $key => $value) {
97
+ if (substr($key, 0, 2) == "--") {
98
+ $str .= "<optgroup label='$value'>";
99
+ } elseif (substr($key, 0, 2) == "---") {
100
+ $str .= "</optgroup>";
101
+ } else {
102
+ $sltd = "";
103
+ if ($selected == $key)
104
+ $sltd = 'selected="selected"';
105
+ $str .= "<option $sltd value='$key'>" . $value . "</option>";
106
+ }
107
+
108
+ }
109
+ return $str;
110
+ }
111
+
112
+
113
+ public function amazon_foodandbeverages_first_row(){
114
+ $row=array("TemplateType=foodandbeverages","Version=2016.1108","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
115
+ return $row;
116
+ }
117
+ public function amazon_health_first_row(){
118
+ $row=array("TemplateType=health","Version=2016.0825","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
119
+ return $row;
120
+ }
121
+ public function amazon_home_first_row(){
122
+ $row=array("TemplateType=home","Version=2016.0909","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
123
+ return $row;
124
+ }
125
+ public function amazon_clothing_first_row(){
126
+ $row=array("TemplateType=clothing","Version=2016.0721","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
127
+ return $row;
128
+ }
129
+
130
+ public function amazon_jewelry_first_row(){
131
+ $row=array("TemplateType=jewelry","Version=2016.1122","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
132
+ return $row;
133
+ }
134
+
135
+
136
+
137
+ public function amazon_lighting_first_row(){
138
+ $row=array("TemplateType=lighting","Version=2016.1123","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
139
+ return $row;
140
+ }
141
+
142
+ public function amazon_baby_first_row (){
143
+ $row=array("TemplateType=Baby","Version=2015.1207","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer - These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","","Dimensions - These attributes specify the size and weight of a product","","","","","","","","","","","","","","Discovery - These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","Images - These attributes provide links to images for a product","","","","","Fulfillment - Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation - Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance - Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
144
+ return $row;
145
+ }
146
+ public function amazon_wireless_first_row (){
147
+ $row=array("TemplateType=wireless","Version=2016.0822","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","",);
148
+ return $row;
149
+ }
150
+
151
+ public function amazon_autoaccessory_first_row (){
152
+ $row=array("TemplateType=autoaccessory","Version=2016.0909","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
153
+ return $row;
154
+ }
155
+ public function amazon_tiresandwheels_first_row (){
156
+ $row=array("TemplateType=tiresandwheels","Version=2016.1121","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
157
+ return $row;
158
+ }
159
+ public function amazon_BookLoader_first_row (){
160
+ $row=array("TemplateType=BookLoader","Version=2016.0114","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer - These attributes are required to make your item buyable for customers on the site","","","","","","","","","","Discovery - These attributes have an effect on how customers can find your product on the site using browse or search","","","","","Images - These attributes provide links to images for a product","","","","","","","Fulfillment - Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
161
+ return $row;
162
+ }
163
+
164
+ public function amazon_CameraAndPhoto_first_row (){
165
+ $row=array("TemplateType=CameraAndPhoto","Version=2015.1203","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer - These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","Dimensions - These attributes specify the size and weight of a product","","","","","","","","Discovery - These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","Images - These attributes provide links to images for a product","","","","Fulfillment - Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Compliance - Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
166
+ return $row;
167
+ }
168
+ public function amazon_computers_first_row (){
169
+ $row=array("TemplateType=computers","Version=2016.0719","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
170
+ return $row;
171
+ }
172
+ public function amazon_ConsumerElectronics_first_row (){
173
+ $row=array("TemplateType=ConsumerElectronics","Version=2015.1224","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer - These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","Dimensions - These attributes specify the size and weight of a product","","","","","","","","Discovery - These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","Images - These attributes provide links to images for a product","","","","Fulfillment - Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Compliance - Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
174
+ return $row;
175
+ }
176
+ public function amazon_entertainmentcollectibles_first_row (){
177
+ $row=array("TemplateType=entertainmentcollectibles","Version=2016.0719","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","",);
178
+ return $row;
179
+ }
180
+ public function amazon_homeimprovement_first_row (){
181
+ $row=array("TemplateType=homeimprovement","Version=2016.0909","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
182
+ return $row;
183
+ }
184
+ public function amazon_musicalinstruments_first_row (){
185
+ $row=array("TemplateType=musicalinstruments","Version=2016.0822","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
186
+ return $row;
187
+ }
188
+ public function amazon_office_first_row (){
189
+ $row=array("TemplateType=office","Version=2016.0822","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
190
+ return $row;
191
+ }
192
+ public function amazon_outdoors_first_row (){
193
+ $row=array("TemplateType=outdoors","Version=2016.0721","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
194
+ return $row;
195
+ }
196
+ public function amazon_petsupplies_first_row (){
197
+ $row=array("TemplateType=petsupplies","Version=2016.0617","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","",);
198
+ return $row;
199
+ }
200
+ public function amazon_shoes_first_row (){
201
+ $row=array("TemplateType=shoes","Version=2016.0721","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
202
+ return $row;
203
+ }
204
+ public function amazon_sports_first_row (){
205
+ $row=array("TemplateType=sports","Version=2016.0923","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","","","","","","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Variation-Populate these attributes if your product is available in different variations (for example color or wattage)","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
206
+ return $row;
207
+ }
208
+ public function amazon_sportsmemorabilia_first_row (){
209
+ $row=array("TemplateType=sportsmemorabilia","Version=2015.1203","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","",);
210
+ return $row;
211
+ }
212
+ public function amazon_toys_first_row (){
213
+ $row=array("TemplateType=toys","Version=2016.1109","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","","","","","","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","",);
214
+ return $row;
215
+ }
216
+ public function amazon_TradingCards_first_row (){
217
+ $row=array("TemplateType=TradingCards","Version=2016.0213","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","Offer - These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","Dimensions - These attributes specify the size and weight of a product","","","","","","","","","Discovery - These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","","","Images - These attributes provide links to images for a product","","","","","","","Fulfillment - Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","",);
218
+ return $row;
219
+ }
220
+ public function amazon_watches_first_row (){
221
+ $row=array("TemplateType=watches","Version=2016.0719","The top 3 rows are for Amazon.com use only. Do not modify or delete the top 3 rows.","","","","","","","","Offer-These attributes are required to make your item buyable for customers on the site","","","","","","","","","","","","","","","","","","","","","","","Dimensions-These attributes specify the size and weight of a product","","Discovery-These attributes have an effect on how customers can find your product on the site using browse or search","","","","","","","","","","","","","","Images-These attributes provide links to images for a product","","","","Fulfillment-Use these columns to provide fulfillment-related information for either Amazon-fulfilled (FBA) or seller-fulfilled orders.","","","","","","","Compliance-Attributes used to comply with consumer laws in the country or region where the item is sold","","","Ungrouped - These attributes create rich product listings for your buyers.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
222
+ return $row;
223
+ }
224
+
225
+ public function amazon_watchesAttributes (){
226
+ $attributes = array(
227
+ "item_sku" => "Seller SKU",
228
+ "external_product_id" => "Product ID",
229
+ "external_product_id_type" => "Product ID Type",
230
+ "item_name" => "Product Name",
231
+ "manufacturer" => "Manufacturer",
232
+ "part_number" => "Manufacturer Part Number",
233
+ "brand_name" => "Brand",
234
+ "item_type" => "Item Type Keyword",
235
+ "product_description" => "Product Description",
236
+ "update_delete" => "Update Delete",
237
+ "standard_price" => "Standard Price",
238
+ "condition_type" => "Item Condition",
239
+ "condition_note" => "Condition Note",
240
+ "product_site_launch_date" => "Launch Date",
241
+ "merchant_release_date" => "Release Date",
242
+ "product_tax_code" => "Product Tax Code",
243
+ "item_package_quantity" => "Item Package Quantity",
244
+ "list_price" => "Manufacturer's Suggested Retail Price",
245
+ "sale_price" => "Sale Price",
246
+ "sale_from_date" => "Sale Start Date",
247
+ "sale_end_date" => "Sale End Date",
248
+ "quantity" => "Quantity",
249
+ "restock_date" => "Restock Date",
250
+ "fulfillment_latency" => "Fulfillment Latency",
251
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
252
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
253
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
254
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
255
+ "missing_keyset_reason" => "Registered Parameter",
256
+ "make_an_offer_eligibility" => "Make an Offer Eligible",
257
+ "minimum_accept_percentage" => "Make an Offer Auto-Accept Threshold",
258
+ "maximum_reject_percentage" => "Make an Offer Auto-Reject Threshold",
259
+ "merchant_shipping_group_name" => "Shipping-Template",
260
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
261
+ "website_shipping_weight" => "Shipping Weight",
262
+ "target_audience_keywords" => "Target Audience",
263
+ "catalog_number" => "Merchant Catalog Number",
264
+ "specific_uses_keywords1" => "Intended Use1",
265
+ "specific_uses_keywords2" => "Intended Use2",
266
+ "specific_uses_keywords3" => "Intended Use3",
267
+ "specific_uses_keywords4" => "Intended Use4",
268
+ "specific_uses_keywords5" => "Intended Use5",
269
+ "thesaurus_subject_keywords" => "Subject Matter",
270
+ "generic_keywords" => "Search Terms",
271
+ "bullet_point1" => "Key Product Features1",
272
+ "bullet_point2" => "Key Product Features2",
273
+ "bullet_point3" => "Key Product Features3",
274
+ "bullet_point4" => "Key Product Features4",
275
+ "bullet_point5" => "Key Product Features5",
276
+ "main_image_url" => "Main Image URL",
277
+ "other_image_url1" => "Other Image URL1",
278
+ "other_image_url2" => "Other Image URL2",
279
+ "other_image_url3" => "Other Image URL3",
280
+ "fulfillment_center_id" => "Fulfillment Center ID",
281
+ "package_length" => "Package Length",
282
+ "package_weight" => "Package Weight",
283
+ "package_height" => "Package Height",
284
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
285
+ "package_width" => "Package Width",
286
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
287
+ "prop_65" => "Prop 65",
288
+ "cpsia_cautionary_statement" => "Cpsia Warning",
289
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
290
+ "department_name" => "Gender",
291
+ "thesaurus_attribute_keywords1" => "Other Attributes1",
292
+ "thesaurus_attribute_keywords2" => "Other Attributes2",
293
+ "thesaurus_attribute_keywords3" => "Other Attributes3",
294
+ "thesaurus_attribute_keywords4" => "Other Attributes4",
295
+ "thesaurus_attribute_keywords5" => "Other Attributes5",
296
+ "band_material_type" => "Band Material Type",
297
+ "band_size" => "Band Size",
298
+ "band_width" => "Band Width",
299
+ "band_width_unit_of_measure" => "Band Width Unit Of Measure",
300
+ "band_color" => "Band Color",
301
+ "clasp_type" => "Clasp Type",
302
+ "case_material_type" => "Case Material Type",
303
+ "case_thickness" => "Case Size Thickness",
304
+ "case_diameter" => "Case Diameter",
305
+ "case_diameter_unit_of_measure" => "Case Diameter Unit Of Measure",
306
+ "metal_stamp" => "Metal Stamp",
307
+ "dial_color" => "Dial Color",
308
+ "bezel_material_type" => "Bezel Material Type",
309
+ "bezel_function" => "Bezel Function",
310
+ "dial_window_material_type" => "Crystal",
311
+ "display_type" => "Display",
312
+ "item_shape" => "Shape",
313
+ "watch_movement_type" => "Watch Movement Type",
314
+ "calendar_type" => "Calendar Type",
315
+ "water_resistance_depth" => "Water Resistance Depth",
316
+ "water_resistance_depth_unit_of_measure" => "Water Resistance Depth Unit Of Measure",
317
+ "warranty_type" => "Warranty Type",
318
+ "special_features" => "Additional Features",
319
+ "subject_character" => "Character",
320
+ "grade_rating" => "Grade Rating",
321
+ "authenticated_by" => "Authenticated By",
322
+ "model_year" => "Model Year",
323
+ );
324
+ return $attributes;
325
+ }
326
+ public function amazon_TradingCardsAttributes (){
327
+ $attributes = array(
328
+ "item_sku" => "Seller SKU",
329
+ "update_delete" => "Update Delete",
330
+ "external_product_id_type" => "Product ID Type",
331
+ "external_product_id" => "Product ID",
332
+ "item_type" => "Item Type",
333
+ "manufacturer" => "Manufacturer",
334
+ "brand_name" => "Brand Name",
335
+ "item_name" => "Product Name",
336
+ "product_description" => "Product Description",
337
+ "feed_product_type" => "Product Type",
338
+ "product_tax_code" => "Product Tax Code",
339
+ "product_site_launch_date" => "Launch Date",
340
+ "quantity" => "Quantity",
341
+ "standard_price" => "Standard Price",
342
+ "sale_price" => "Sale Price",
343
+ "sale_from_date" => "Sale Start Date",
344
+ "sale_end_date" => "Sale End Date",
345
+ "item_package_quantity" => "Shipping Quantity",
346
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
347
+ "fulfillment_latency" => "Fulfillment Latency",
348
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
349
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
350
+ "condition_note" => "Condition Note",
351
+ "restock_date" => "Restock Date",
352
+ "minimum_accept_percentage" => "Auto-accept threshold %",
353
+ "merchant_shipping_group_name" => "Shipping-Template",
354
+ "maximum_reject_percentage" => "Auto-reject threshold %",
355
+ "make_an_offer_eligibility" => "Make an Offer eligible",
356
+ "item_display_width" => "Item Width",
357
+ "item_display_height" => "Item Height",
358
+ "item_display_length" => "Item Length",
359
+ "display_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
360
+ "item_display_weight" => "Item Weight",
361
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
362
+ "item_display_diameter" => "Item Diameter",
363
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
364
+ "website_shipping_weight" => "Total Shipping Weight",
365
+ "bullet_point1" => "Key Product Features1",
366
+ "bullet_point2" => "Key Product Features2",
367
+ "bullet_point3" => "Key Product Features3",
368
+ "bullet_point4" => "Key Product Features4",
369
+ "bullet_point5" => "Key Product Features5",
370
+ "generic_keywords1" => "Search Terms1",
371
+ "generic_keywords2" => "Search Terms2",
372
+ "generic_keywords3" => "Search Terms3",
373
+ "generic_keywords4" => "Search Terms4",
374
+ "generic_keywords5" => "Search Terms5",
375
+ "platinum_keywords1" => "Platinum Keywords1",
376
+ "platinum_keywords2" => "Platinum Keywords2",
377
+ "platinum_keywords3" => "Platinum Keywords3",
378
+ "platinum_keywords4" => "Platinum Keywords4",
379
+ "platinum_keywords5" => "Platinum Keywords5",
380
+ "main_image_url" => "Main Image URL",
381
+ "offer_image1" => "Offer Image1",
382
+ "offer_image2" => "Offer Image2",
383
+ "offer_image3" => "Offer Image3",
384
+ "offer_image4" => "Offer Image4",
385
+ "offer_image5" => "Offer Image5",
386
+ "main_offer_image" => "Main Offer Image",
387
+ "fulfillment_center_id" => "Fulfillment Center ID",
388
+ "package_height" => "Package Height",
389
+ "package_width" => "Package Width",
390
+ "package_length" => "Package Length",
391
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
392
+ "package_weight" => "Package Weight",
393
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
394
+ "sport_type" => "Sport Type",
395
+ "model_year_range" => "Year Range",
396
+ "model_year" => "Year",
397
+ "certificate_number" => "Authentication Number",
398
+ "grade_rating" => "Grade Rating",
399
+ "graded_by" => "Grading Provided By",
400
+ "is_autographed" => "Is Autographed",
401
+ "signed_by" => "Signed By",
402
+ "unit_count_type" => "Lot Type",
403
+ "unit_count" => "Lot Count",
404
+ "league_name" => "League Name",
405
+ "team_name1" => "Team Name1",
406
+ "team_name2" => "Team Name2",
407
+ "team_name3" => "Team Name3",
408
+ "team_name4" => "Team Name4",
409
+ "event_name" => "Event Name",
410
+ "seasons" => "Season",
411
+ "parallel_type" => "Type of Parallel Card",
412
+ "insert_type" => "Insert Set Name",
413
+ "card_number" => "Card Number",
414
+ "special_features" => "Special Feature",
415
+ );
416
+ return $attributes;
417
+ }
418
+ public function amazon_toysAttributes (){
419
+ $attributes = array(
420
+ "item_sku" => "Seller SKU",
421
+ "external_product_id" => "Product ID",
422
+ "external_product_id_type" => "Product ID Type",
423
+ "item_type" => "Item Type Keyword",
424
+ "item_name" => "Product Name",
425
+ "brand_name" => "Brand Name",
426
+ "manufacturer" => "Manufacturer",
427
+ "part_number" => "Manufacturer Part Number",
428
+ "product_description" => "Product Description",
429
+ "edition" => "Edition",
430
+ "update_delete" => "Update Delete",
431
+ "related_product_id_type" => "Related Product Identifier Type",
432
+ "related_product_id" => "Related Product Identifier",
433
+ "product_tax_code" => "Product Tax Code",
434
+ "product_site_launch_date" => "Launch Date",
435
+ "offering_end_date" => "Stop Selling Date",
436
+ "condition_type" => "Item Condition",
437
+ "condition_note" => "Offer Condition Note",
438
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
439
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
440
+ "map_price" => "Minimum Advertised Price",
441
+ "list_price" => "Manufacturer's Suggested Retail Price",
442
+ "standard_price" => "Standard Price",
443
+ "quantity" => "Quantity",
444
+ "merchant_release_date" => "Release Date",
445
+ "fulfillment_latency" => "Production Time",
446
+ "restock_date" => "Restock Date",
447
+ "sale_price" => "Sale Price",
448
+ "sale_from_date" => "Sale Start Date",
449
+ "sale_end_date" => "Sale End Date",
450
+ "item_package_quantity" => "Package Quantity",
451
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
452
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
453
+ "missing_keyset_reason" => "Registered Parameter",
454
+ "merchant_shipping_group_name" => "Shipping-Template",
455
+ "item_weight" => "Item Weight",
456
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
457
+ "item_height" => "Item Height",
458
+ "item_length" => "Item Length",
459
+ "item_width" => "Item Width",
460
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
461
+ "website_shipping_weight" => "Shipping Weight",
462
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
463
+ "bullet_point1" => "Key Product Features1",
464
+ "bullet_point2" => "Key Product Features2",
465
+ "bullet_point3" => "Key Product Features3",
466
+ "bullet_point4" => "Key Product Features4",
467
+ "bullet_point5" => "Key Product Features5",
468
+ "specific_uses_keywords" => "Intended Use",
469
+ "target_audience_keywords1" => "Target Audience1",
470
+ "target_audience_keywords2" => "Target Audience2",
471
+ "target_audience_keywords3" => "Target Audience3",
472
+ "thesaurus_subject_keywords" => "Subject Matter",
473
+ "generic_keywords" => "Search Terms",
474
+ "catalog_number" => "Catalog Number",
475
+ "style_keywords" => "Style-specific Terms",
476
+ "swatch_image_url" => "Swatch Image URL",
477
+ "main_image_url" => "Main Image URL",
478
+ "other_image_url1" => "Other Image URL1",
479
+ "other_image_url2" => "Other Image URL2",
480
+ "other_image_url3" => "Other Image URL3",
481
+ "fulfillment_center_id" => "Fulfillment Center ID",
482
+ "package_length" => "Package Length",
483
+ "package_width" => "Package Width",
484
+ "package_height" => "Package Height",
485
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
486
+ "package_weight" => "Package Weight",
487
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
488
+ "prop_65" => "Consumer Notice",
489
+ "cpsia_cautionary_statement" => "Cpsia Warning",
490
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
491
+ "legal_disclaimer_description" => "Legal Disclaimer",
492
+ "safety_warning" => "Safety Warning",
493
+ "country_of_origin" => "Country of Publication",
494
+ "mfg_minimum" => "Minimum Manufacturer Age Recommended",
495
+ "mfg_minimum_unit_of_measure" => "Minimum Manufacturer Age Recommended Unit Of Measure",
496
+ "mfg_maximum" => "Maximum Manufacturer Age Recommended",
497
+ "mfg_maximum_unit_of_measure" => "Maximum Manufacturer Age Recommended Unit Of Measure",
498
+ "thesaurus_attribute_keywords" => "Other Attributes",
499
+ "theme" => "Theme",
500
+ "subject_character" => "Character",
501
+ "educational_objective" => "Educational Objective",
502
+ "size_name" => "Size",
503
+ "size_map" => "Size Map",
504
+ "scale_name" => "Scale",
505
+ "collection_name" => "Collection Name",
506
+ "initial_print_run_rarity" => "rarity",
507
+ "specific_uses_for_product" => "Specific Uses For Product",
508
+ "genre" => "Genre",
509
+ "material_type" => "Material Type",
510
+ "assembly_time" => "Assembly Time",
511
+ "assembly_time_unit_of_measure" => "Assembly Time Unit Of Measure",
512
+ "warranty_description" => "Manufacturer Warranty Description",
513
+ "number_of_pieces" => "Number of Pieces",
514
+ "number_of_players" => "Number of Players",
515
+ "maximum_weight_recommendation" => "Weight Supported",
516
+ "maximum_weight_recommendation_unit_of_measure" => "Maximum Weight Recommendation Unit Of Measure",
517
+ "color_name" => "Colour",
518
+ "color_map" => "Colour Map",
519
+ );
520
+ return $attributes;
521
+ }
522
+ public function amazon_sportsmemorabiliaAttributes (){
523
+ $attributes = array(
524
+ "update_delete" => "Update Delete",
525
+ "item_sku" => "Seller SKU",
526
+ "external_product_id_type" => "Product ID Type",
527
+ "external_product_id" => "Product ID",
528
+ "item_type" => "Category (item-type)",
529
+ "manufacturer" => "Manufacturer",
530
+ "brand_name" => "Brand Name",
531
+ "item_name" => "Product Name",
532
+ "product_description" => "Product Description",
533
+ "product_tax_code" => "Product Tax Code",
534
+ "product_site_launch_date" => "Launch Date",
535
+ "quantity" => "Quantity",
536
+ "standard_price" => "Standard Price",
537
+ "sale_price" => "Sale Price",
538
+ "sale_from_date" => "Sale Start Date",
539
+ "sale_end_date" => "Sale End Date",
540
+ "make_an_offer_minimum_percentage" => "Make an Offer Eligible?",
541
+ "item_package_quantity" => "Shipping Quantity",
542
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
543
+ "fulfillment_latency" => "Fulfillment Latency",
544
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
545
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
546
+ "condition_note" => "Condition Note",
547
+ "restock_date" => "Restock Date",
548
+ "minimum_accept_percentage" => "Auto-accept threshold %",
549
+ "merchant_shipping_group_name" => "Shipping-Template",
550
+ "maximum_reject_percentage" => "Auto-reject threshold %",
551
+ "make_an_offer_eligibility" => "Make an Offer eligible",
552
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
553
+ "website_shipping_weight" => "Total Shipping Weight",
554
+ "bullet_point1" => "Key Product Features",
555
+ "bullet_point2" => "Key Product Features",
556
+ "bullet_point3" => "Key Product Features",
557
+ "bullet_point4" => "Key Product Features",
558
+ "bullet_point5" => "Key Product Features",
559
+ "generic_keywords" => "Search Terms",
560
+ "main_image_url" => "Main Image URL",
561
+ "other_image_url1" => "Other Image URL",
562
+ "other_image_url2" => "Other Image URL",
563
+ "other_image_url3" => "Other Image URL",
564
+ "fulfillment_center_id" => "Fulfillment Center ID",
565
+ "package_height" => "Package Height",
566
+ "package_width" => "Package Width",
567
+ "package_length" => "Package Length",
568
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
569
+ "package_weight" => "Package Weight",
570
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
571
+ "sport_type" => "Sport Type",
572
+ "model_year" => "Year",
573
+ "athlete" => "Player Name",
574
+ "authenticated_by" => "Authentication Provided By",
575
+ "is_autographed" => "Is Autographed",
576
+ "special_features" => "Game Used",
577
+ "unit_count_type" => "Lot Type",
578
+ "league_name" => "League Name",
579
+ "team_name" => "Team Name",
580
+ "seasons" => "Season",
581
+ "style_name" => "Jersey Type",
582
+ );
583
+ return $attributes;
584
+ }
585
+ public function amazon_sportsAttributes (){
586
+ $attributes = array(
587
+ "item_sku" => "Seller SKU",
588
+ "external_product_id" => "Product ID",
589
+ "external_product_id_type" => "Product ID Type",
590
+ "item_name" => "Product Name",
591
+ "product_description" => "Product Description",
592
+ "manufacturer" => "Manufacturer",
593
+ "part_number" => "Manufacturer Part Number",
594
+ "feed_product_type" => "Product Type",
595
+ "brand_name" => "Brand Name",
596
+ "item_type" => "Item Type Keyword",
597
+ "update_delete" => "Update Delete",
598
+ "standard_price" => "Standard Price",
599
+ "condition_type" => "Item Condition",
600
+ "condition_note" => "Offer Condition Note",
601
+ "quantity" => "Quantity",
602
+ "list_price" => "Manufacturer's Suggested Retail Price",
603
+ "product_site_launch_date" => "Launch Date",
604
+ "merchant_release_date" => "Release Date",
605
+ "restock_date" => "Restock Date",
606
+ "fulfillment_latency" => "Fulfillment Latency",
607
+ "product_tax_code" => "Product Tax Code",
608
+ "sale_price" => "Sale Price",
609
+ "sale_from_date" => "Sale Start Date",
610
+ "sale_end_date" => "Sale End Date",
611
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
612
+ "item_package_quantity" => "Package Quantity",
613
+ "number_of_items" => "Number of Items",
614
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
615
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
616
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
617
+ "merchant_shipping_group_name" => "Shipping-Template",
618
+ "map_price" => "Minimum Advertised Price",
619
+ "website_shipping_weight" => "Shipping Weight",
620
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
621
+ "item_display_width" => "Width",
622
+ "item_display_width_unit_of_measure" => "Item Display Width Unit Of Measure",
623
+ "item_display_length" => "Item Display Length",
624
+ "item_display_length_unit_of_measure" => "Item Display Length Unit Of Measure",
625
+ "item_display_weight" => "Item Display Weight",
626
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
627
+ "item_volume" => "Volume",
628
+ "item_volume_unit_of_measure" => "Item Volume Unit Of Measure",
629
+ "item_display_height" => "Display Height",
630
+ "item_display_height_unit_of_measure" => "Item Display Height Unit Of Measure",
631
+ "item_height" => "Item Height",
632
+ "item_height_unit_of_measure" => "Item Height Unit Of Measure",
633
+ "item_length" => "Item Length",
634
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
635
+ "item_width" => "Item Width",
636
+ "item_width_unit_of_measure" => "Item Width Unit Of Measure",
637
+ "item_weight" => "Item Weight",
638
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
639
+ "bullet_point1" => "Key Product Features1",
640
+ "bullet_point2" => "Key Product Features2",
641
+ "bullet_point3" => "Key Product Features3",
642
+ "bullet_point4" => "Key Product Features4",
643
+ "bullet_point5" => "Key Product Features5",
644
+ "specific_uses_keywords" => "Intended Use",
645
+ "target_audience_keywords1" => "Target Audience1",
646
+ "target_audience_keywords2" => "Target Audience2",
647
+ "target_audience_keywords3" => "Target Audience3",
648
+ "thesaurus_subject_keywords" => "Subject Matter",
649
+ "generic_keywords" => "Search Terms",
650
+ "main_image_url" => "Main Image URL",
651
+ "swatch_image_url" => "Swatch Image URL",
652
+ "other_image_url1" => "Other Image URL1",
653
+ "other_image_url2" => "Other Image URL2",
654
+ "other_image_url3" => "Other Image URL3",
655
+ "fulfillment_center_id" => "Fulfillment Center ID",
656
+ "package_height" => "Package Height",
657
+ "package_width" => "Package Width",
658
+ "package_length" => "Package Length",
659
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
660
+ "package_weight" => "Package Weight",
661
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
662
+ "parent_child" => "Parentage",
663
+ "parent_sku" => "Parent SKU",
664
+ "relationship_type" => "Relationship Type",
665
+ "variation_theme" => "Variation Theme",
666
+ "prop_65" => "Consumer Notice",
667
+ "cpsia_cautionary_statement" => "Cpsia Warning",
668
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
669
+ "country_of_origin" => "Country of Publication",
670
+ "legal_disclaimer_description" => "Legal Disclaimer",
671
+ "fabric_type" => "Fabric Type",
672
+ "import_designation" => "Import Designation",
673
+ "legal_compliance_certification_metadata" => "Please provide the Executive Number (EO) required for sale into California.",
674
+ "legal_compliance_certification_expiration_date" => "Please provide the expiration date of the EO Number.",
675
+ "mfg_warranty_description_type" => "Mfg Warranty Type (i.e. Parts, Labor)",
676
+ "thesaurus_attribute_keywords" => "Other Attributes",
677
+ "color_name" => "Color",
678
+ "color_map" => "Color Map",
679
+ "closure_type" => "Closure Type",
680
+ "pattern_name" => "Design",
681
+ "country_as_labeled" => "Country as Labeled",
682
+ "fur_description" => "Fur Description",
683
+ "material_type" => "Material Type",
684
+ "seasons" => "Seasons",
685
+ "size_map" => "Size Map",
686
+ "size_name" => "Size",
687
+ "skill_level" => "Skill Level",
688
+ "sport_type" => "Sport Type",
689
+ "floor_length" => "Floor Length",
690
+ "floor_length_unit_of_measure" => "Floor Length Unit Of Measure",
691
+ "floor_width" => "Floor Width",
692
+ "floor_width_unit_of_measure" => "Floor Width Unit Of Measure",
693
+ "watch_movement_type" => "Watch Movement Type",
694
+ "construction_type" => "Construction Type",
695
+ "floor_area" => "Floor Area",
696
+ "floor_area_unit_of_measure" => "Floor Area Unit Of Measure",
697
+ "bottom_style" => "Bottom Style",
698
+ "department_name" => "Department",
699
+ "leg_style" => "Leg Style",
700
+ "neck_style" => "Neck Style",
701
+ "pattern_type" => "Pattern Style",
702
+ "pocket_description" => "Pocket Description",
703
+ "shoe_width" => "Shoe Width",
704
+ "sleeve_type" => "Sleeve Type",
705
+ "sleeve_length" => "Sleeve Length",
706
+ "sleeve_length_unit_of_measure" => "Sleeve Length Unit Of Measure",
707
+ "rise_style" => "Sock Height",
708
+ "strap_type" => "Strap Type",
709
+ "support_type" => "Support Type",
710
+ "theme" => "Theme",
711
+ "top_style" => "Top Style",
712
+ "ultraviolet_light_protection" => "UV Protection",
713
+ "waist_size" => "Waist Size",
714
+ "waist_size_unit_of_measure" => "Waist Size Unit Of Measure",
715
+ "wheel_type" => "Wheel Type",
716
+ "golf_club_flex" => "Flex",
717
+ "golf_club_loft" => "Loft",
718
+ "grip_size" => "Grip Size",
719
+ "grip_type" => "Grip Type",
720
+ "grip_material_type" => "Grip Material Type",
721
+ "rim_size" => "Rim Size",
722
+ "rim_size_unit_of_measure" => "Rim Size Unit Of Measure",
723
+ "crank_length" => "Crank Length",
724
+ "crank_length_unit_of_measure" => "Crank Length Unit Of Measure",
725
+ "frame_type" => "Frame Type",
726
+ "top_tube_length" => "Top Tube Length",
727
+ "top_tube_length_unit_of_measure" => "Top Tube Length Unit Of Measure",
728
+ "wheel_size" => "Wheel Size",
729
+ "wheel_size_unit_of_measure" => "Wheel Size Unit Of Measure",
730
+ "bike_type" => "Bike Type",
731
+ "inseam_length" => "Inseam Length",
732
+ "brake_style" => "Brake Style",
733
+ "suspension_type" => "Suspension Type",
734
+ "frame_material_type" => "Frame Material Type",
735
+ "line_weight" => "Line Weight",
736
+ "tension_level" => "Tension Supported",
737
+ "fishing_line_type" => "Fishing Line Type",
738
+ "number_of_speeds" => "Number Of Speeds",
739
+ "handle_material" => "Handle Material",
740
+ "display_type" => "Display",
741
+ "water_resistance_depth" => "Water Resistance Depth",
742
+ "water_resistance_depth_unit_of_measure" => "Water Resistance Depth Unit Of Measure",
743
+ "model_name" => "Model Name",
744
+ "number_of_power_levels" => "Number Of Power Levels",
745
+ "capacity" => "Capacity",
746
+ "capacity_unit_of_measure" => "Capacity Unit Of Measure",
747
+ "lens_color" => "Lens Color",
748
+ "fitting_type" => "Fitting Type",
749
+ "number_of_pockets" => "Number Of Pockets",
750
+ "number_of_doors" => "Number Of Doors",
751
+ "number_of_gear_loops" => "Number Of Gear Loops",
752
+ "effective_edge_length" => "Effective Edge Length",
753
+ "effective_edge_length_unit_of_measure" => "Effective Edge Length Unit Of Measure",
754
+ "fill_material_type" => "Fill Material Type",
755
+ "mounting_type" => "Mounting Type",
756
+ "temperature_rating_degrees" => "Temperature Rating",
757
+ "temperature_rating_degrees_unit_of_measure" => "Temperature Rating Degrees Unit Of Measure",
758
+ "blade_length" => "Blade Length",
759
+ "blade_length_unit_of_measure" => "Blade Length Unit Of Measure",
760
+ "lens_material_type" => "Lens Material",
761
+ "lens_type" => "Lens Type",
762
+ "maximum_height_recommendation" => "Maximum Height Recommendation",
763
+ "maximum_height_recommendation_unit_of_measure" => "Maximum Height Recommendation Unit Of Measure",
764
+ "fuel_type" => "Fuel Type",
765
+ "insulation_material_type" => "Insulation Material Type",
766
+ "pad_type" => "Pad Type",
767
+ "outer_material_type" => "ShellMaterial",
768
+ "minimum_torso_measurement" => "Minimum Torso Measurement",
769
+ "occupancy" => "Occupancy",
770
+ "number_of_poles" => "Number Of Poles",
771
+ "light_source_type" => "Light Source Type",
772
+ "objective_lens_diameter" => "Objective Lens Diameter",
773
+ "objective_lens_diameter_unit_of_measure" => "Objective Lens Diameter Unit Of Measure",
774
+ "magnification_maximum" => "Magnification Maximum",
775
+ "league_name" => "League Name",
776
+ "hand_orientation" => "Hand Orientation",
777
+ "shaft_length" => "Shaft Length",
778
+ "shaft_length_unit_of_measure" => "Shaft Length Unit Of Measure",
779
+ "shaft_material" => "Shaft Material",
780
+ "item_shape" => "Shape",
781
+ "display_maximum_weight_recommendation" => "Display Maximum Weight Recommendation",
782
+ "display_maximum_weight_recommendation_unit_of_measure" => "Display Maximum Weight Recommendation Unit Of Measure",
783
+ "seating_capacity" => "Seating Capacity",
784
+ "fit_type" => "Fit Type",
785
+ "athlete" => "Athlete",
786
+ "style_name" => "Style Name",
787
+ "team_name" => "Team Name",
788
+ "power_source_type" => "Power Source",
789
+ "special_features" => "Additional Features",
790
+ "capacity_name_unit_of_measure" => "Usage Capacity Unit Of Measure",
791
+ "load_capacity" => "Load Capacity",
792
+ "load_capacity_unit_of_measure" => "Load Capacity Unit Of Measure",
793
+ "capacity_name" => "Number of Horses",
794
+ "specific_uses_for_product" => "Specific Uses For Product",
795
+ "compatible_devices" => "Compatible Devices",
796
+ "maximum_weight_recommendation" => "Weight Supported",
797
+ "maximum_weight_recommendation_unit_of_measure" => "Maximum Weight Recommendation Unit Of Measure",
798
+ "maximum_weight_capacity" => "Maximum Weight",
799
+ "maximum_weight_capacity_unit_of_measure" => "Maximum Weight Capacity Unit Of Measure",
800
+ "unit_count_type" => "Unit Count Type",
801
+ "batteries_required" => "Are Batteries Required",
802
+ "battery_type" => "Battery Type",
803
+ "number_of_batteries" => "Number of Batteries Required",
804
+ "battery_average_life" => "Battery Average Life",
805
+ "lithium_battery_packaging" => "Lithium Battery Packaging",
806
+ "lithium_battery_weight" => "Lithium Battery Weight",
807
+ "unit_count" => "Unit Count",
808
+ "inseam_length_unit_of_measure" => "Inseam Length Unit Of Measure",
809
+ "lithium_battery_weight_unit_of_measure" => "Unit of measure of lithium battery weight",
810
+ );
811
+ return $attributes;
812
+ }
813
+ public function amazon_shoesAttributes (){
814
+ $attributes = array(
815
+ "item_sku" => "Seller SKU",
816
+ "item_name" => "Product Name",
817
+ "external_product_id" => "Product ID",
818
+ "external_product_id_type" => "Product ID Type",
819
+ "brand_name" => "Brand",
820
+ "product_description" => "Product Description",
821
+ "item_type" => "Item Type",
822
+ "model" => "Style Number",
823
+ "update_delete" => "Update Delete",
824
+ "standard_price" => "Standard Price",
825
+ "list_price" => "Manufacturer's Suggested Retail Price",
826
+ "product_tax_code" => "Product Tax Code",
827
+ "fulfillment_latency" => "Fulfillment Latency",
828
+ "product_site_launch_date" => "Launch Date",
829
+ "merchant_release_date" => "Release Date",
830
+ "restock_date" => "Restock Date",
831
+ "quantity" => "Quantity",
832
+ "sale_price" => "Sale Price",
833
+ "sale_from_date" => "Sale Start Date",
834
+ "sale_end_date" => "Sale End Date",
835
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
836
+ "item_package_quantity" => "Item Package Quantity",
837
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
838
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
839
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer?",
840
+ "merchant_shipping_group_name" => "Shipping-Template",
841
+ "website_shipping_weight" => "Shipping Weight",
842
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
843
+ "item_weight" => "Item Weight",
844
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
845
+ "item_length" => "Item Length",
846
+ "item_width" => "Item Width",
847
+ "item_height" => "Item Height",
848
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
849
+ "bullet_point1" => "Bullet Point1",
850
+ "bullet_point2" => "Bullet Point2",
851
+ "bullet_point3" => "Bullet Point3",
852
+ "bullet_point4" => "Bullet Point4",
853
+ "bullet_point5" => "Bullet Point5",
854
+ "generic_keywords" => "Search Terms",
855
+ "style_keywords1" => "Style Keyword1",
856
+ "style_keywords2" => "Style Keyword2",
857
+ "style_keywords3" => "Style Keyword3",
858
+ "main_image_url" => "Main Image URL",
859
+ "other_image_url1" => "Other Image URL1",
860
+ "other_image_url2" => "Other Image URL2",
861
+ "other_image_url3" => "Other Image URL3",
862
+ "swatch_image_url" => "Swatch Image URL",
863
+ "fulfillment_center_id" => "Fulfillment Center ID",
864
+ "package_height" => "Package height",
865
+ "package_width" => "Package Width",
866
+ "package_length" => "Package Length",
867
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
868
+ "package_weight" => "Package Weight",
869
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
870
+ "parent_child" => "Parentage",
871
+ "parent_sku" => "Parent SKU",
872
+ "relationship_type" => "Relationship Type",
873
+ "variation_theme" => "Variation Theme",
874
+ "prop_65" => "Consumer Notice",
875
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
876
+ "cpsia_cautionary_statement" => "Cpsia Warning",
877
+ "import_designation" => "Import Designation",
878
+ "style_name" => "Style Name",
879
+ "subject_character" => "character",
880
+ "model_year" => "Model Year",
881
+ "closure_type" => "Closure Type",
882
+ "department_name" => "Department",
883
+ "color_name" => "Color",
884
+ "color_map" => "Color Map",
885
+ "size_name" => "Size",
886
+ "material_type1" => "Material Fabric1",
887
+ "material_type2" => "Material Fabric2",
888
+ "country_as_labeled" => "Country as Labeled",
889
+ "fur_description" => "Fur Description",
890
+ "pattern_type" => "Pattern Style",
891
+ "lifestyle" => "Occasion Lifestyle",
892
+ "special_features" => "Special Features",
893
+ "size_map" => "Size Map",
894
+ "lens_color" => "Lens Color",
895
+ "lens_color_map" => "Lens Color Map",
896
+ "magnification_strength" => "Magnification Strength",
897
+ "frame_material_type" => "Frame Material Type",
898
+ "lens_material_type" => "Lens Material Type",
899
+ "item_shape" => "Item Shape",
900
+ "polarization_type" => "Polarization Type",
901
+ "eyewear_unit_of_measure" => "Eyewear Unit Of Measure",
902
+ "lens_width" => "Lens Width",
903
+ "bridge_width" => "Bridge Width",
904
+ "arm_length" => "Arm Length",
905
+ "lens_height" => "Lens Height",
906
+ "arm_length_unit_of_measure" => "Arm Length Unit of Measure",
907
+ "lens_height_unit_of_measure" => "Lens Height Unit of Measure",
908
+ "lens_width_unit_of_measure" => "Lens Width Unit of Measure",
909
+ "bridge_width_unit_of_measure" => "Unit of Measure for Width of the Bridge",
910
+ "strap_type" => "Strap Type",
911
+ "lining_description" => "Lining Description",
912
+ "shoulder_strap_drop" => "Shoulder Strap Drop",
913
+ "shoulder_strap_drop_unit_of_measure" => "Shoulder Strap Drop Unit Of Measure",
914
+ "sole_material" => "Sole Material",
915
+ "heel_type" => "Heel Type",
916
+ "height_map" => "Shoe Height Map",
917
+ "toe_style" => "Toe Style",
918
+ "arch_type" => "Arch Type",
919
+ "cleat_description" => "Cleat Description",
920
+ "cleat_material_type" => "Cleat Material Type",
921
+ "team_name" => "Team Name",
922
+ "shaft_height" => "Shaft Height",
923
+ "platform_height" => "Platform Height",
924
+ "water_resistance_level" => "Water Resistance Level",
925
+ "special_size_type1" => "Special Size Type1",
926
+ "special_size_type2" => "Special Size Type2",
927
+ "special_size_type3" => "Special Size Type3",
928
+ "special_size_type4" => "Special Size Type4",
929
+ "special_size_type5" => "Special Size Type5",
930
+ "special_size_type6" => "Special Size Type6",
931
+ "special_size_type7" => "Special Size Type7",
932
+ "special_size_type8" => "Special Size Type8",
933
+ "special_size_type9" => "Special Size Type9",
934
+ "special_size_type10" => "Special Size Type10",
935
+ "shaft_height_unit_of_measure" => "Shaft Height Unit Of Measure",
936
+ );
937
+ return $attributes;
938
+ }
939
+ public function amazon_petsuppliesAttributes (){
940
+ $attributes = array(
941
+ "item_sku" => "Seller SKU",
942
+ "external_product_id" => "Product ID",
943
+ "external_product_id_type" => "Product ID Type",
944
+ "item_name" => "Product Name",
945
+ "brand_name" => "Brand Name",
946
+ "manufacturer" => "Manufacturer",
947
+ "product_description" => "Product Description",
948
+ "feed_product_type" => "Product Type",
949
+ "item_type" => "Item Type Keyword",
950
+ "part_number" => "Manufacturer Part Number",
951
+ "update_delete" => "Update Delete",
952
+ "model" => "model",
953
+ "item_package_quantity" => "Package Quantity",
954
+ "standard_price" => "Standard Price",
955
+ "list_price" => "Manufacturer's Suggested Retail Price",
956
+ "quantity" => "Quantity",
957
+ "map_price" => "Minimum Advertised Price",
958
+ "condition_type" => "Item Condition",
959
+ "condition_note" => "Offer Condition Note",
960
+ "product_tax_code" => "Product Tax Code",
961
+ "product_site_launch_date" => "Launch Date",
962
+ "merchant_release_date" => "Release Date",
963
+ "fulfillment_latency" => "Fulfillment Latency",
964
+ "restock_date" => "Restock Date",
965
+ "sale_price" => "Sale Price",
966
+ "sale_from_date" => "Sale Start Date",
967
+ "sale_end_date" => "Sale End Date",
968
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
969
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
970
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
971
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
972
+ "max_order_quantity" => "Max Order Quantity",
973
+ "number_of_items" => "Number of Items",
974
+ "offering_start_date" => "Offering Release Date",
975
+ "merchant_shipping_group_name" => "Shipping-Template",
976
+ "website_shipping_weight" => "Shipping Weight",
977
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
978
+ "item_display_weight" => "Item Display Weight",
979
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
980
+ "item_display_length" => "Item Display Length",
981
+ "item_display_width" => "DisplayWidth",
982
+ "item_display_height" => "DisplayHeight",
983
+ "display_dimensions_unit_of_measure" => "DisplayDimensionUnitOfMeasure",
984
+ "item_height" => "item-height",
985
+ "item_length" => "item-length",
986
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
987
+ "item_weight" => "item-weight",
988
+ "item_weight_unit_of_measure" => "item-weight-unit-of-measure",
989
+ "item_width" => "item-width",
990
+ "bullet_point1" => "Key Product Features1",
991
+ "bullet_point2" => "Key Product Features2",
992
+ "bullet_point3" => "Key Product Features3",
993
+ "bullet_point4" => "Key Product Features4",
994
+ "bullet_point5" => "Key Product Features5",
995
+ "target_audience_base" => "Target Audience",
996
+ "catalog_number" => "MerchantCatalogNumber",
997
+ "generic_keywords" => "Search Terms",
998
+ "thesaurus_subject_keywords" => "Subject Matter",
999
+ "target_audience_keywords1" => "Target Audience1",
1000
+ "target_audience_keywords2" => "Target Audience2",
1001
+ "specific_uses_keywords1" => "Used For1 - Used For31",
1002
+ "specific_uses_keywords2" => "Used For1 - Used For32",
1003
+ "main_image_url" => "Main Image URL",
1004
+ "other_image_url1" => "Other Image URL1",
1005
+ "other_image_url2" => "Other Image URL2",
1006
+ "other_image_url3" => "Other Image URL3",
1007
+ "swatch_image_url" => "Swatch Image URL",
1008
+ "fulfillment_center_id" => "Fulfillment Center ID",
1009
+ "package_height" => "Package Height",
1010
+ "package_width" => "Package Width",
1011
+ "package_length" => "Package Length",
1012
+ "package_weight" => "Package Weight",
1013
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1014
+ "package_dimensions_unit_of_measure" => "PackageDimensionUnitOfMeasure",
1015
+ "parent_child" => "Parentage",
1016
+ "parent_sku" => "Parent SKU",
1017
+ "relationship_type" => "Relationship Type",
1018
+ "variation_theme" => "Variation Theme",
1019
+ "prop_65" => "Prop65",
1020
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1021
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1022
+ "safety_warning" => "Safety Warning",
1023
+ "country_string" => "CountryAsLabeled",
1024
+ "country_of_origin" => "country-of-origin",
1025
+ "legal_disclaimer_description" => "legal-disclaimer-description",
1026
+ "lighting_facts_image_url" => "Lighting Facts Label",
1027
+ "energy_efficiency_image_url" => "Energy Guide Label",
1028
+ "breed_recommendation" => "Breed Recommendation",
1029
+ "thesaurus_attribute_keywords" => "Other Attributes",
1030
+ "special_features" => "Additional Features",
1031
+ "directions" => "Directions",
1032
+ "ingredients" => "Ingredients",
1033
+ "material_type" => "Material Type",
1034
+ "closure_type" => "Closure Type",
1035
+ "compatible_devices" => "Compatible Devices",
1036
+ "age_range_description" => "Age Range Description",
1037
+ "included_features" => "Included Features",
1038
+ "specific_uses_for_product" => "Specific Uses For Product",
1039
+ "color_name" => "Color",
1040
+ "color_map" => "Color Map",
1041
+ "size_name" => "Size",
1042
+ "size_map" => "Size Map",
1043
+ "flavor_name" => "Flavor",
1044
+ "maximum_weight_recommendation" => "Weight Supported",
1045
+ "weight_recommendation_unit_of_measure" => "Weight Recommendation Unit Of Measure",
1046
+ "external_testing_certification" => "External Testing Certification",
1047
+ "battery_type" => "Battery Type",
1048
+ "number_of_batteries" => "Number of Batteries Required",
1049
+ "lithium_battery_weight" => "Lithium Battery Weight",
1050
+ "wattage" => "Wattage",
1051
+ "pattern_name" => "Design",
1052
+ "minimum_weight_recommendation" => "Minimum Weight Recommendation",
1053
+ "lithium_battery_weight_unit_of_measure" => "lithium_battery_weight_unit_of_measure",
1054
+ "wattage_unit_of_measure" => "Wattage Unit of Measure",
1055
+ );
1056
+ return $attributes;
1057
+ }
1058
+ public function amazon_outdoorsAttributes (){
1059
+ $attributes = array(
1060
+ "item_sku" => "Seller SKU",
1061
+ "external_product_id" => "Product ID",
1062
+ "external_product_id_type" => "Product ID Type",
1063
+ "item_name" => "Product Name",
1064
+ "product_description" => "Product Description",
1065
+ "manufacturer" => "Manufacturer",
1066
+ "part_number" => "Manufacturer Part Number",
1067
+ "feed_product_type" => "Product Type",
1068
+ "brand_name" => "Brand Name",
1069
+ "item_type" => "Item Type Keyword",
1070
+ "update_delete" => "Update Delete",
1071
+ "standard_price" => "Standard Price",
1072
+ "condition_type" => "Item Condition",
1073
+ "condition_note" => "Offer Condition Note",
1074
+ "quantity" => "Quantity",
1075
+ "list_price" => "Manufacturer's Suggested Retail Price",
1076
+ "product_site_launch_date" => "Launch Date",
1077
+ "merchant_release_date" => "Release Date",
1078
+ "restock_date" => "Restock Date",
1079
+ "fulfillment_latency" => "Fulfillment Latency",
1080
+ "product_tax_code" => "Product Tax Code",
1081
+ "sale_price" => "Sale Price",
1082
+ "sale_from_date" => "Sale Start Date",
1083
+ "sale_end_date" => "Sale End Date",
1084
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
1085
+ "item_package_quantity" => "Package Quantity",
1086
+ "number_of_items" => "Number of Items",
1087
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1088
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1089
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
1090
+ "merchant_shipping_group_name" => "Shipping-Template",
1091
+ "map_price" => "Minimum Advertised Price",
1092
+ "website_shipping_weight" => "Shipping Weight",
1093
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1094
+ "item_display_width" => "Width",
1095
+ "item_display_width_unit_of_measure" => "Item Display Width Unit Of Measure",
1096
+ "item_display_length" => "Item Display Length",
1097
+ "item_display_length_unit_of_measure" => "Item Display Length Unit Of Measure",
1098
+ "item_display_weight" => "Item Display Weight",
1099
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
1100
+ "item_volume" => "Volume",
1101
+ "item_volume_unit_of_measure" => "Item Volume Unit Of Measure",
1102
+ "item_display_height" => "Display Height",
1103
+ "item_display_height_unit_of_measure" => "Item Display Height Unit Of Measure",
1104
+ "item_height" => "Item Height",
1105
+ "item_height_unit_of_measure" => "Item Height Unit Of Measure",
1106
+ "item_length" => "Item Length",
1107
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
1108
+ "item_width" => "Item Width",
1109
+ "item_width_unit_of_measure" => "Item Width Unit Of Measure",
1110
+ "item_weight" => "Item Weight",
1111
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1112
+ "bullet_point1" => "Key Product Features1",
1113
+ "bullet_point2" => "Key Product Features2",
1114
+ "bullet_point3" => "Key Product Features3",
1115
+ "bullet_point4" => "Key Product Features4",
1116
+ "bullet_point5" => "Key Product Features5",
1117
+ "specific_uses_keywords" => "Intended Use",
1118
+ "target_audience_keywords" => "Target Audience",
1119
+ "thesaurus_subject_keywords" => "Subject Matter",
1120
+ "generic_keywords" => "Search Terms",
1121
+ "style_keywords" => "Style Keyword",
1122
+ "main_image_url" => "Main Image URL",
1123
+ "swatch_image_url" => "Swatch Image URL",
1124
+ "other_image_url1" => "Other Image URL1",
1125
+ "other_image_url2" => "Other Image URL2",
1126
+ "other_image_url3" => "Other Image URL3",
1127
+ "fulfillment_center_id" => "Fulfillment Center ID",
1128
+ "package_height" => "Package Height",
1129
+ "package_width" => "Package Width",
1130
+ "package_length" => "Package Length",
1131
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
1132
+ "package_weight" => "Package Weight",
1133
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1134
+ "parent_child" => "Parentage",
1135
+ "parent_sku" => "Parent SKU",
1136
+ "relationship_type" => "Relationship Type",
1137
+ "variation_theme" => "Variation Theme",
1138
+ "prop_65" => "Consumer Notice",
1139
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1140
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1141
+ "country_of_origin" => "Country of Publication",
1142
+ "legal_disclaimer_description" => "Legal Disclaimer",
1143
+ "fabric_type" => "Fabric Type",
1144
+ "import_designation" => "Import Designation",
1145
+ "mfg_warranty_description_type" => "Mfg Warranty Type",
1146
+ "thesaurus_attribute_keywords" => "Other Attributes",
1147
+ "color_name" => "Color",
1148
+ "color_map" => "Color Map",
1149
+ "closure_type" => "Closure Type",
1150
+ "pattern_name" => "Design",
1151
+ "country_as_labeled" => "Country as Labeled",
1152
+ "fur_description" => "Fur Description",
1153
+ "material_type" => "Material Type",
1154
+ "seasons" => "Seasons",
1155
+ "size_map" => "Size Map",
1156
+ "size_name" => "Size",
1157
+ "skill_level" => "Skill Level",
1158
+ "sport_type" => "Sport Type",
1159
+ "floor_length" => "Floor Length",
1160
+ "floor_length_unit_of_measure" => "Floor Length Unit Of Measure",
1161
+ "floor_width" => "Floor Width",
1162
+ "floor_width_unit_of_measure" => "Floor Width Unit Of Measure",
1163
+ "construction_type" => "Construction Type",
1164
+ "floor_area" => "Floor Area",
1165
+ "floor_area_unit_of_measure" => "Floor Area Unit Of Measure",
1166
+ "bottom_style" => "Bottom Style",
1167
+ "department_name" => "Department",
1168
+ "leg_style" => "Leg Style",
1169
+ "neck_style" => "Neck Style",
1170
+ "pattern_type" => "Pattern Style",
1171
+ "pocket_description" => "Pocket Description",
1172
+ "shoe_width" => "Shoe Width",
1173
+ "sleeve_type" => "Sleeve Type",
1174
+ "sleeve_length" => "Sleeve Length",
1175
+ "sleeve_length_unit_of_measure" => "Sleeve Length Unit Of Measure",
1176
+ "rise_style" => "Sock Height",
1177
+ "strap_type" => "Strap Type",
1178
+ "support_type" => "Support Type",
1179
+ "theme" => "Theme",
1180
+ "top_style" => "Top Style",
1181
+ "ultraviolet_light_protection" => "UV Protection",
1182
+ "waist_size" => "Waist Size",
1183
+ "waist_size_unit_of_measure" => "Waist Size Unit Of Measure",
1184
+ "rim_size" => "Rim Size",
1185
+ "rim_size_unit_of_measure" => "Rim Size Unit Of Measure",
1186
+ "crank_length" => "Crank Length",
1187
+ "crank_length_unit_of_measure" => "Crank Length Unit Of Measure",
1188
+ "frame_type" => "Frame Type",
1189
+ "top_tube_length" => "Top Tube Length",
1190
+ "top_tube_length_unit_of_measure" => "Top Tube Length Unit Of Measure",
1191
+ "wheel_size" => "Wheel Size",
1192
+ "wheel_size_unit_of_measure" => "Wheel Size Unit Of Measure",
1193
+ "bike_type" => "Bike Type",
1194
+ "inseam_length" => "Inseam Length",
1195
+ "inseam_length_unit_of_measure" => "Inseam Length Unit Of Measure",
1196
+ "brake_style" => "Brake Style",
1197
+ "suspension_type" => "Suspension Type",
1198
+ "frame_material_type" => "Frame Material Type",
1199
+ "tension_level" => "Tension Supported",
1200
+ "number_of_speeds" => "Number Of Speeds",
1201
+ "number_of_power_levels" => "Number Of Power Levels",
1202
+ "capacity" => "Capacity",
1203
+ "capacity_unit_of_measure" => "Capacity Unit Of Measure",
1204
+ "lens_color" => "Lens Color",
1205
+ "fitting_type" => "Fitting Type",
1206
+ "number_of_pockets" => "Number Of Pockets",
1207
+ "number_of_doors" => "Number Of Doors",
1208
+ "number_of_gear_loops" => "Number Of Gear Loops",
1209
+ "effective_edge_length" => "Effective Edge Length",
1210
+ "effective_edge_length_unit_of_measure" => "Effective Edge Length Unit Of Measure",
1211
+ "fill_material_type" => "Fill Material Type",
1212
+ "mounting_type" => "Mounting Type",
1213
+ "temperature_rating_degrees" => "Temperature Rating",
1214
+ "temperature_rating_degrees_unit_of_measure" => "Temperature Rating Degrees Unit Of Measure",
1215
+ "blade_length" => "Blade Length",
1216
+ "blade_length_unit_of_measure" => "Blade Length Unit Of Measure",
1217
+ "lens_material_type" => "Lens Material",
1218
+ "lens_type" => "Lens Type",
1219
+ "maximum_height_recommendation" => "Maximum Height Recommendation",
1220
+ "maximum_height_recommendation_unit_of_measure" => "Maximum Height Recommendation Unit Of Measure",
1221
+ "fuel_type" => "Fuel Type",
1222
+ "insulation_material_type" => "Insulation Material Type",
1223
+ "pad_type" => "Pad Type",
1224
+ "outer_material_type" => "ShellMaterial",
1225
+ "minimum_torso_measurement" => "Minimum Torso Measurement",
1226
+ "occupancy" => "Occupancy",
1227
+ "number_of_poles" => "Number Of Poles",
1228
+ "light_source_type" => "Light Source Type",
1229
+ "objective_lens_diameter" => "Objective Lens Diameter",
1230
+ "objective_lens_diameter_unit_of_measure" => "Objective Lens Diameter Unit Of Measure",
1231
+ "magnification_maximum" => "Magnification Maximum",
1232
+ "item_shape" => "Shape",
1233
+ "seating_capacity" => "Seating Capacity",
1234
+ "fit_type" => "Fit Type",
1235
+ "power_source_type" => "Power Source",
1236
+ "special_features" => "Additional Features",
1237
+ "capacity_name_unit_of_measure" => "Usage Capacity Unit Of Measure",
1238
+ "load_capacity" => "Load Capacity",
1239
+ "load_capacity_unit_of_measure" => "Load Capacity Unit Of Measure",
1240
+ "capacity_name" => "Number of Horses",
1241
+ "specific_uses_for_product" => "Specific Uses For Product",
1242
+ "compatible_devices" => "Compatible Devices",
1243
+ "maximum_weight_recommendation" => "Weight Supported",
1244
+ "maximum_weight_recommendation_unit_of_measure" => "Maximum Weight Recommendation Unit Of Measure",
1245
+ "maximum_weight_capacity" => "Maximum Weight",
1246
+ "maximum_weight_capacity_unit_of_measure" => "Maximum Weight Capacity Unit Of Measure",
1247
+ "unit_count_type" => "Unit Count Type",
1248
+ "batteries_required" => "Are Batteries Required",
1249
+ "battery_type" => "Battery Type",
1250
+ "number_of_batteries" => "Number of Batteries Required",
1251
+ "battery_average_life" => "Battery Average Life",
1252
+ "lithium_battery_packaging" => "Lithium Battery Packaging",
1253
+ "lithium_battery_weight" => "Lithium Battery Weight",
1254
+ "wheelbase" => "Wheelbase",
1255
+ "wheelbase_unit_of_measure" => "Unit of Measure for Wheelbase",
1256
+ "wheel_type" => "Wheel Type",
1257
+ "water_resistance_level" => "Water Resistance Level",
1258
+ "warranty_description" => "Warranty Description",
1259
+ "shell_type" => "Shell Type",
1260
+ "recommended_uses_for_product" => "Recommended Use",
1261
+ "magnification_strength" => "Magnification Strength",
1262
+ "lining_description" => "Lining Description",
1263
+ "base_material_type" => "Base",
1264
+ "unit_count" => "Unit Count",
1265
+ "lithium_battery_weight_unit_of_measure" => "Unit of measure of lithium battery weight",
1266
+ );
1267
+ return $attributes;
1268
+ }
1269
+ public function amazon_officeAttributes (){
1270
+ $attributes = array(
1271
+ "item_sku" => "Seller SKU",
1272
+ "external_product_id" => "Product ID",
1273
+ "external_product_id_type" => "Product ID Type",
1274
+ "feed_product_type" => "Product Type",
1275
+ "item_name" => "Product Name",
1276
+ "brand_name" => "Brand Name",
1277
+ "manufacturer" => "Manufacturer",
1278
+ "part_number" => "Manufacturer Part Number",
1279
+ "product_description" => "Product Description",
1280
+ "item_type" => "Category (item-type)",
1281
+ "update_delete" => "Update Delete",
1282
+ "product_tax_code" => "Product Tax Code",
1283
+ "product_site_launch_date" => "Launch Date",
1284
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1285
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1286
+ "item_package_quantity" => "Package Quantity",
1287
+ "list_price" => "Manufacturer's Suggested Retail Price",
1288
+ "standard_price" => "Standard Price",
1289
+ "sale_price" => "Sale Price",
1290
+ "sale_from_date" => "Sale Start Date",
1291
+ "sale_end_date" => "Sale End Date",
1292
+ "quantity" => "Quantity",
1293
+ "fulfillment_latency" => "Fulfillment Latency",
1294
+ "merchant_release_date" => "Release Date",
1295
+ "restock_date" => "Restock Date",
1296
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
1297
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
1298
+ "missing_keyset_reason" => "Registered Parameter",
1299
+ "max_order_quantity" => "Max Order Quantity",
1300
+ "merchant_shipping_group_name" => "Shipping-Template",
1301
+ "item_weight" => "Item Weight",
1302
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1303
+ "item_height" => "Item Height",
1304
+ "item_length" => "Item Length",
1305
+ "item_width" => "Item Width",
1306
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
1307
+ "website_shipping_weight" => "Shipping Weight",
1308
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1309
+ "bullet_point1" => "Key Product Features1",
1310
+ "bullet_point2" => "Key Product Features2",
1311
+ "bullet_point3" => "Key Product Features3",
1312
+ "bullet_point4" => "Key Product Features4",
1313
+ "bullet_point5" => "Key Product Features5",
1314
+ "specific_uses_keywords" => "Intended Use",
1315
+ "target_audience_keywords" => "Target Audience",
1316
+ "thesaurus_subject_keywords" => "Subject Matter",
1317
+ "catalog_number" => "Catalog Number",
1318
+ "generic_keywords" => "Search Terms",
1319
+ "main_image_url" => "Main Image URL",
1320
+ "other_image_url1" => "Other Image URL1",
1321
+ "other_image_url2" => "Other Image URL2",
1322
+ "other_image_url3" => "Other Image URL3",
1323
+ "fulfillment_center_id" => "Fulfillment Center ID",
1324
+ "package_length" => "Package Length",
1325
+ "package_width" => "Package Width",
1326
+ "package_height" => "Package Height",
1327
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
1328
+ "package_weight" => "Package Weight",
1329
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1330
+ "parent_child" => "Parentage",
1331
+ "parent_sku" => "Parent SKU",
1332
+ "relationship_type" => "Relationship Type",
1333
+ "variation_theme" => "Variation Theme",
1334
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1335
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1336
+ "prop_65" => "Prop 65",
1337
+ "thesaurus_attribute_keywords" => "Other Attributes",
1338
+ "power_source_type" => "Power Source",
1339
+ "special_features" => "Additional Features",
1340
+ "battery_type" => "Battery Type",
1341
+ "radio_bands_supported" => "Telephone Frequency",
1342
+ "color_name" => "Colour",
1343
+ "color_map" => "Colour Map",
1344
+ "number_of_batteries" => "Number of Batteries Required",
1345
+ "display_type" => "Display Type",
1346
+ "display_technology" => "Display Technology",
1347
+ "size_name" => "Size",
1348
+ "maximum_size" => "maximum-expandable-size",
1349
+ "maximum_size_unit_of_measure" => "Maximum Size Unit Of Measure",
1350
+ "line_size" => "Line Size",
1351
+ "line_size_unit_of_measure" => "Line Size Unit Of Measure",
1352
+ "paper_size" => "paper-size",
1353
+ "size_map" => "Size Map",
1354
+ "paper_size_unit_of_measure" => "Paper Size Unit of Measure",
1355
+ "connectivity_technology" => "Printer Connectivity Type",
1356
+ "printer_technology" => "Printer Type",
1357
+ "printer_output" => "Printer Output Type",
1358
+ "max_printspeed_color" => "Color Pages per Minute�",
1359
+ "max_printspeed_black_white" => "B&W Pages per Minute",
1360
+ "ink_color" => "Ink Colour",
1361
+ "material_type" => "Material Type",
1362
+ "operating_system" => "Computer Platform",
1363
+ "paper_finish" => "Paper Finish",
1364
+ "brightness" => "Brightness",
1365
+ );
1366
+ return $attributes;
1367
+ }
1368
+ public function amazon_musicalinstrumentsAttributes (){
1369
+ $attributes = array(
1370
+ "item_sku" => "Seller SKU",
1371
+ "external_product_id" => "Product ID",
1372
+ "external_product_id_type" => "Product ID Type",
1373
+ "item_name" => "Product Name",
1374
+ "feed_product_type" => "Product Type",
1375
+ "item_type" => "Item Type Keyword",
1376
+ "brand_name" => "Brand",
1377
+ "manufacturer" => "Manufacturer",
1378
+ "part_number" => "Manufacturer Part Number",
1379
+ "product_description" => "Product Description",
1380
+ "model" => "Model Number",
1381
+ "update_delete" => "Update Delete",
1382
+ "condition_type" => "Item Condition",
1383
+ "condition_note" => "Offer Condition Note",
1384
+ "product_tax_code" => "Product Tax Code",
1385
+ "item_package_quantity" => "Package Quantity",
1386
+ "product_site_launch_date" => "Launch Date",
1387
+ "merchant_release_date" => "Release Date",
1388
+ "map_price" => "Minimum Advertised Price",
1389
+ "list_price" => "Manufacturer's Suggested Retail Price",
1390
+ "standard_price" => "Standard Price",
1391
+ "sale_price" => "Sale Price",
1392
+ "sale_from_date" => "Sale Start Date",
1393
+ "sale_end_date" => "Sale End Date",
1394
+ "quantity" => "Quantity",
1395
+ "fulfillment_latency" => "Fulfillment Latency",
1396
+ "restock_date" => "Restock Date",
1397
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
1398
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1399
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1400
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
1401
+ "merchant_shipping_group_name" => "Shipping-Template",
1402
+ "item_weight" => "Item Weight",
1403
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1404
+ "item_length" => "Item Length",
1405
+ "item_height" => "Item Height",
1406
+ "item_width" => "Item Width",
1407
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
1408
+ "website_shipping_weight" => "Shipping Weight",
1409
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1410
+ "catalog_number" => "Catalog Number",
1411
+ "bullet_point1" => "Key Product Features1",
1412
+ "bullet_point2" => "Key Product Features2",
1413
+ "bullet_point3" => "Key Product Features3",
1414
+ "bullet_point4" => "Key Product Features4",
1415
+ "bullet_point5" => "Key Product Features5",
1416
+ "specific_uses_keywords" => "Intended Use",
1417
+ "target_audience_keywords" => "Target Audience",
1418
+ "thesaurus_subject_keywords" => "Subject Matter",
1419
+ "generic_keywords" => "Search Terms",
1420
+ "main_image_url" => "Main Image URL",
1421
+ "other_image_url1" => "Other Image URL1",
1422
+ "other_image_url2" => "Other Image URL2",
1423
+ "other_image_url3" => "Other Image URL3",
1424
+ "fulfillment_center_id" => "Fulfillment Center ID",
1425
+ "package_length" => "Package Length",
1426
+ "package_width" => "Package Width",
1427
+ "package_height" => "Package Height",
1428
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
1429
+ "package_weight" => "Package Weight",
1430
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1431
+ "parent_child" => "Parentage",
1432
+ "parent_sku" => "Parent SKU",
1433
+ "relationship_type" => "Relationship Type",
1434
+ "variation_theme" => "Variation Theme",
1435
+ "prop_65" => "Consumer Notice",
1436
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1437
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1438
+ "legal_disclaimer_description" => "Legal Disclaimer",
1439
+ "country_string" => "Country of Origin",
1440
+ "region_of_origin" => "Region of Origin",
1441
+ "thesaurus_attribute_keywords" => "Other Attributes",
1442
+ "color_name" => "Color",
1443
+ "color_map" => "Color Map",
1444
+ "material_type" => "Material Type",
1445
+ "special_features" => "Additional Features",
1446
+ "model_year" => "Model Year",
1447
+ "model_name" => "Model Name",
1448
+ "musical_style" => "Musical Style",
1449
+ "instrument_key" => "Instrument Key",
1450
+ "range" => "Range",
1451
+ "polar_pattern" => "Polar Pattern",
1452
+ "body_material_type" => "Body Material Type",
1453
+ "string_material_type" => "String Material Type",
1454
+ "string_gauge" => "String Gauge",
1455
+ "number_of_keys" => "Number of Keys",
1456
+ "number_of_channels" => "Number of Channels",
1457
+ "output_wattage" => "Output Wattage",
1458
+ "speaker_amplification_type" => "Speaker Amplification Type",
1459
+ "number_of_strings" => "Number of Strings",
1460
+ "hand_orientation" => "Hand Orientation",
1461
+ "guitar_bridge_system" => "Guitar Bridge System",
1462
+ "guitar_pickup_configuration" => "Guitar Pickup Configuration",
1463
+ "size_name" => "Size",
1464
+ "guitar_pick_thickness" => "Guitar Pick Thickness",
1465
+ "included_components" => "Included components",
1466
+ "size_map" => "Size Map",
1467
+ "is_memorabilia" => "Is Memorabilia",
1468
+ "is_autographed" => "Is Autographed",
1469
+ "platinum_keywords1" => "Platinum Keywords1",
1470
+ "platinum_keywords2" => "Platinum Keywords2",
1471
+ "platinum_keywords3" => "Platinum Keywords3",
1472
+ "platinum_keywords4" => "Platinum Keywords4",
1473
+ "platinum_keywords5" => "Platinum Keywords5",
1474
+ "rebate_start_at1" => "Rebate Start Date1",
1475
+ "rebate_start_at2" => "Rebate Start Date2",
1476
+ "rebate_end_at1" => "Rebate End Date1",
1477
+ "rebate_end_at2" => "Rebate End Date2",
1478
+ "rebate_description1" => "Rebate Message1",
1479
+ "rebate_description2" => "Rebate Message2",
1480
+ "rebate_name1" => "Rebate1",
1481
+ "rebate_name2" => "Rebate2",
1482
+ "mixer_channel_quantity" => "Mixer Channel Quantity",
1483
+ "speaker_size_unit_of_measure" => "Speaker Size Unit Of Measure",
1484
+ "speaker_size" => "Speaker Size",
1485
+ "speaker_count" => "Speaker Count",
1486
+ "recorder_track_count" => "Recorder Track Count",
1487
+ "wireless_microphone_frequency_unit_of_measure" => "Wireless Microphone Frequency Unit Of Measure",
1488
+ "wireless_microphone_frequency" => "Wireless Microphone Frequency",
1489
+ "signal_format" => "Signal Format",
1490
+ "supported_software" => "Supported Software",
1491
+ "currency" => "Currency",
1492
+ "delivery_schedule_group_id" => "Scheduled Delivery SKU List",
1493
+ );
1494
+ return $attributes;
1495
+ }
1496
+ public function amazon_homeimprovementAttributes (){
1497
+ $attributes = array(
1498
+ "item_sku" => "Seller SKU",
1499
+ "external_product_id" => "Product ID",
1500
+ "external_product_id_type" => "Product ID Type",
1501
+ "item_name" => "Product Name",
1502
+ "brand_name" => "Brand Name",
1503
+ "manufacturer" => "Manufacturer",
1504
+ "part_number" => "Manufacturer Part Number",
1505
+ "product_description" => "Product Description",
1506
+ "feed_product_type" => "Product Type",
1507
+ "item_type" => "Item Type Keyword",
1508
+ "update_delete" => "Update Delete",
1509
+ "standard_price" => "Standard Price",
1510
+ "condition_type" => "Item Condition",
1511
+ "condition_note" => "Offer Condition Note",
1512
+ "quantity" => "Quantity",
1513
+ "list_price" => "Manufacturer's Suggested Retail Price",
1514
+ "map_price" => "Minimum Advertised Price",
1515
+ "product_site_launch_date" => "Launch Date",
1516
+ "merchant_release_date" => "Release Date",
1517
+ "fulfillment_latency" => "Fulfillment Latency",
1518
+ "restock_date" => "Restock Date",
1519
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
1520
+ "product_tax_code" => "Product Tax Code",
1521
+ "sale_price" => "Sale Price",
1522
+ "sale_from_date" => "Sale Start Date",
1523
+ "sale_end_date" => "Sale End Date",
1524
+ "item_package_quantity" => "Package Quantity",
1525
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1526
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1527
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
1528
+ "merchant_shipping_group_name" => "Shipping-Template",
1529
+ "item_height" => "Item Height",
1530
+ "item_length" => "Item Length",
1531
+ "item_width" => "Item Width",
1532
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
1533
+ "item_weight" => "Item Weight",
1534
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1535
+ "website_shipping_weight" => "Shipping Weight",
1536
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1537
+ "item_display_weight" => "Item Display Weight",
1538
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
1539
+ "item_display_height" => "Item Display Height",
1540
+ "item_display_height_unit_of_measure" => "Item Display Height Unit Of Measure",
1541
+ "item_display_length" => "Item Display Length",
1542
+ "item_display_length_unit_of_measure" => "Item Display Length Unit Of Measure",
1543
+ "item_display_width" => "Item Display Width",
1544
+ "item_display_width_unit_of_measure" => "Item Display Width Unit Of Measure",
1545
+ "catalog_number" => "Catalog Number",
1546
+ "bullet_point1" => "Key Product Features1",
1547
+ "bullet_point2" => "Key Product Features2",
1548
+ "bullet_point3" => "Key Product Features3",
1549
+ "bullet_point4" => "Key Product Features4",
1550
+ "bullet_point5" => "Key Product Features5",
1551
+ "specific_uses_keywords" => "Intended Use",
1552
+ "target_audience_keywords1" => "Target Audience1",
1553
+ "target_audience_keywords2" => "Target Audience2",
1554
+ "thesaurus_subject_keywords" => "Subject Matter",
1555
+ "generic_keywords" => "Search Terms",
1556
+ "main_image_url" => "Main Image URL",
1557
+ "swatch_image_url" => "Swatch Image URL",
1558
+ "other_image_url1" => "Other Image URL1",
1559
+ "other_image_url2" => "Other Image URL2",
1560
+ "other_image_url3" => "Other Image URL3",
1561
+ "package_height" => "Package Height",
1562
+ "package_width" => "Package Width",
1563
+ "package_length" => "Package Length",
1564
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
1565
+ "package_weight" => "Package Weight",
1566
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1567
+ "fulfillment_center_id" => "Fulfillment Center ID",
1568
+ "parent_child" => "Parentage",
1569
+ "parent_sku" => "Parent SKU",
1570
+ "relationship_type" => "Relationship Type",
1571
+ "variation_theme" => "Variation Theme",
1572
+ "prop_65" => "Prop 65",
1573
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1574
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1575
+ "country_of_origin" => "Country of Origin",
1576
+ "lighting_facts_image_url" => "Lighting Facts Label",
1577
+ "energy_efficiency_image_url" => "Energy Guide Label",
1578
+ "fabric_type" => "Fabric Type",
1579
+ "import_designation" => "Import Designation",
1580
+ "legal_compliance_certification_metadata" => "Please provide the Executive Number (EO) required for sale into California.",
1581
+ "legal_compliance_certification_expiration_date" => "Please provide the expiration date of the EO Number.",
1582
+ "warranty_type" => "Warranty Type",
1583
+ "thesaurus_attribute_keywords" => "Other Attributes",
1584
+ "size_name" => "Size",
1585
+ "color_name" => "Color",
1586
+ "color_map" => "Color Map",
1587
+ "style_name" => "Style Name",
1588
+ "material_type" => "Material Type",
1589
+ "pattern_name" => "Design",
1590
+ "item_shape" => "Shape",
1591
+ "horsepower" => "Horsepower",
1592
+ "power_source_type" => "Power Source",
1593
+ "voltage" => "Voltage",
1594
+ "wattage" => "Wattage",
1595
+ "included_components" => "Included Components",
1596
+ "special_features" => "Additional Features",
1597
+ "specific_uses_for_product" => "Specific Uses For Product",
1598
+ "water_consumption" => "Water Consumption",
1599
+ "water_consumption_unit_of_measure" => "Water Consumption Unit Of Measure",
1600
+ "installation_type" => "Installation Method",
1601
+ "controller_type" => "Controller Type",
1602
+ "connectivity_protocol" => "Connectivity Protocol",
1603
+ "maximum_pressure" => "Maximum Pressure",
1604
+ "number_of_pieces" => "Number of Pieces",
1605
+ "handle_location" => "Handle Lever Placement",
1606
+ "number_of_handles" => "Number Of Handles",
1607
+ "specification_met" => "Energy Specifications Met",
1608
+ "light_source_type" => "Light Source Type",
1609
+ "brightness" => "Brightness",
1610
+ "minimum_efficiency_reporting_value" => "Minimum Efficiency Reporting Values",
1611
+ "number_of_basins" => "number-of-basins",
1612
+ "inside_diameter_string" => "Inside Diameter",
1613
+ "blade_edge_type" => "Blade Edge",
1614
+ "item_pitch_string" => "Pitch",
1615
+ "item_torque" => "Torque",
1616
+ "item_torque_unit_of_measure" => "Item Torque Unit Of Measure",
1617
+ "point_type" => "Tool Tip Description",
1618
+ "measurement_system" => "System of Measurement",
1619
+ "measurement_accuracy" => "Measurement Accuracy",
1620
+ "grit_type" => "Grit Type",
1621
+ "display_type" => "Display",
1622
+ "mounting_type" => "Mounting Type",
1623
+ "switch_type" => "Switch Style",
1624
+ "unit_count_type" => "Unit Count Type",
1625
+ "battery_cell_composition" => "Battery Cell Type",
1626
+ "lithium_battery_weight" => "Lithium Battery Weight",
1627
+ "size_map" => "Size Map",
1628
+ "unit_count" => "Unit Count",
1629
+ "wattage_unit_of_measure" => "Wattage Unit of Measure",
1630
+ "lithium_battery_weight_unit_of_measure" => "Unit of measure of lithium battery weight",
1631
+ "inside_diameter_unit_of_measure" => "Inside Diameter Unit Of Measure",
1632
+ "color_temperature" => "Color Temperature",
1633
+ "currency" => "Currency",
1634
+ "seller_warranty_description" => "Seller Warranty Description",
1635
+ "platinum_keywords1" => "Platinum Keywords1",
1636
+ "platinum_keywords2" => "Platinum Keywords2",
1637
+ "platinum_keywords3" => "Platinum Keywords3",
1638
+ "platinum_keywords4" => "Platinum Keywords4",
1639
+ "platinum_keywords5" => "Platinum Keywords5",
1640
+ "finish_type" => "Finish Types",
1641
+ "item_thickness_derived" => "Thickness Derived",
1642
+ "item_thickness_unit_of_measure" => "Item Thickness Unit Of Measure",
1643
+ "maximum_current" => "Amperage Capacity",
1644
+ "temperature_range_base" => "Temperature Range Base",
1645
+ "temperature_range_unit_of_measure" => "Temperature Range Unit Of Measure",
1646
+ "maximum_flow_rate" => "Flow Rate",
1647
+ "maximum_flow_rate_unit_of_measure" => "Maximum Flow Rate Unit Of Measure",
1648
+ "air_flow_capacity" => "Air Flow Capacity",
1649
+ "maximum_weight_capacity" => "Maximum Weight Capacity",
1650
+ "maximum_weight_capacity_unit_of_measure" => "Maximum Weight Capacity Unit Of Measure",
1651
+ "capacity_name" => "Capacity Description",
1652
+ "noise_level" => "Noise",
1653
+ "noise_level_unit_of_measure" => "Noise Level Unit Of Measure",
1654
+ "extension_length" => "Extension Length",
1655
+ "extension_length_unit_of_measure" => "Extension Length Unit Of Measure",
1656
+ "hose_length" => "Hose Length",
1657
+ "hose_length_unit_of_measure" => "Hose Length Unit Of Measure",
1658
+ "strand_diameter" => "Cord Length",
1659
+ "strand_diameter_unit_of_measure" => "Strand Diameter Unit Of Measure",
1660
+ "screw_head_style" => "Head Style",
1661
+ "handle_material" => "Handle Material",
1662
+ "blade_length" => "Blade Length",
1663
+ "blade_length_unit_of_measure" => "Blade Length Unit Of Measure",
1664
+ "folded_size" => "Folded Size",
1665
+ "speed" => "Speed",
1666
+ "speed_rating" => "Performance Description",
1667
+ "maximum_power" => "Maximum Power",
1668
+ "maximum_power_unit_of_measure" => "Maximum Power Unit Of Measure",
1669
+ "cutting_diameter" => "Cutting Diameter",
1670
+ "cutting_diameter_unit_of_measure" => "Cutting Diameter Unit Of Measure",
1671
+ "fastening_type" => "Accessory Connection Type",
1672
+ "compatible_fastener_description" => "Compatible Fastener Range",
1673
+ "laser_color" => "Laser Beam Color",
1674
+ "viewable_area" => "Viewing Area",
1675
+ "ultraviolet_light_protection" => "UV Protection",
1676
+ "grit_number" => "Grit Number",
1677
+ "coverage" => "Coverage",
1678
+ "item_diameter_derived" => "Outside Diameter Derived",
1679
+ "item_diameter_unit_of_measure" => "Item Diameter Unit Of Measure",
1680
+ "are_batteries_included" => "Are Batteries Included",
1681
+ "batteries_required" => "Are Batteries Required",
1682
+ "battery_description" => "Supported Battery Types",
1683
+ "battery_average_life" => "Battery Average Life",
1684
+ "battery_average_life_unit_of_measure" => "Battery Average Life Unit Of Measure",
1685
+ "lithium_battery_energy_content" => "Lithium Battery Energy Content",
1686
+ "lithium_battery_packaging" => "Lithium Battery Packaging",
1687
+ "lithium_battery_voltage" => "Lithium Battery Voltage",
1688
+ "number_of_lithium_ion_cells" => "Number of Lithium-ion Cells",
1689
+ "number_of_lithium_metal_cells" => "Number of Lithium Metal Cells",
1690
+ "tubing_outside_diameter" => "Tube Outside Diameter",
1691
+ "tubing_outside_diameter_unit_of_measure" => "Tube Outside Diameter Unit of Measure",
1692
+ "delivery_schedule_group_id" => "Scheduled Delivery SKU List",
1693
+ "item_display_diameter" => "Item Display Diameter",
1694
+ "item_display_diameter_unit_of_measure" => "Item Display Diameter Unit Of Measure",
1695
+ "grip_type" => "grip_type",
1696
+ );
1697
+ return $attributes;
1698
+ }
1699
+ public function amazon_entertainmentcollectiblesAttributes (){
1700
+ $attributes = array(
1701
+ "item_name" => "Product Name",
1702
+ "item_type" => "Category (item-type)",
1703
+ "item_sku" => "Seller SKU",
1704
+ "product_description" => "Product Description",
1705
+ "external_product_id" => "Product ID",
1706
+ "external_product_id_type" => "Product ID Type",
1707
+ "update_delete" => "Update Delete
1708
+ ",
1709
+ "standard_price" => "Your price",
1710
+ "quantity" => "Quantity",
1711
+ "product_site_launch_date" => "Launch Date",
1712
+ "fulfillment_latency" => "Fulfillment Latency",
1713
+ "product_tax_code" => "Product Tax Code",
1714
+ "sale_price" => "Sale Price",
1715
+ "sale_from_date" => "Sale Start Date",
1716
+ "sale_end_date" => "Sale End Date",
1717
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
1718
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1719
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1720
+ "restock_date" => "Restock Date",
1721
+ "condition_note" => "Condition Note",
1722
+ "minimum_accept_percentage" => "Make an Offer Auto-Accept Threshold",
1723
+ "merchant_shipping_group_name" => "Shipping-Template",
1724
+ "maximum_reject_percentage" => "Make an Offer Auto-Reject Threshold",
1725
+ "make_an_offer_eligibility" => "Make an Offer Eligible",
1726
+ "website_shipping_weight" => "Shipping Weight",
1727
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1728
+ "bullet_point1" => "Key Product Features1",
1729
+ "bullet_point2" => "Key Product Features2",
1730
+ "bullet_point3" => "Key Product Features3",
1731
+ "bullet_point4" => "Key Product Features4",
1732
+ "bullet_point5" => "Key Product Features5",
1733
+ "generic_keywords" => "Search Terms",
1734
+ "main_image_url" => "Main Image URL",
1735
+ "other_image_url1" => "Other Image URL1",
1736
+ "other_image_url2" => "Other Image URL2",
1737
+ "other_image_url3" => "Other Image URL3",
1738
+ "fulfillment_center_id" => "Fulfillment Center ID",
1739
+ "package_height" => "Height",
1740
+ "package_width" => "Width",
1741
+ "package_length" => "Length",
1742
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit of Measure",
1743
+ "package_weight" => "Weight",
1744
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1745
+ "parent_child" => "Parent/Child",
1746
+ "parent_sku" => "Parent Sku",
1747
+ "relationship_type" => "Relationship Type",
1748
+ "variation_theme" => "Variation Theme",
1749
+ "style_name" => "Entertainment Type",
1750
+ "genre" => "genre",
1751
+ "originality" => "Collectible Type",
1752
+ "authenticated_by" => "Authenticity By",
1753
+ "graded_by" => "Grading By",
1754
+ "grade_rating" => "Grade",
1755
+ "is_autographed" => "Is Autographed",
1756
+ "is_adult_product" => "Adult Product",
1757
+ "model_year" => "Model Year",
1758
+ "theme" => "theme",
1759
+ "additional_product_information" => "Product Type",
1760
+ "special_features" => "Additional Features",
1761
+ "limited_edition_quantity" => "Limited Edition Quantity",
1762
+ "card_number" => "Card Number",
1763
+ "material_type1" => "Frame Type1",
1764
+ "material_type2" => "Frame Type2",
1765
+ "material_type3" => "Frame Type3",
1766
+ "material_type4" => "Frame Type4",
1767
+ "material_type5" => "Frame Type5",
1768
+ "material_type6" => "Frame Type6",
1769
+ "material_type7" => "Frame Type7",
1770
+ "material_type8" => "Frame Type8",
1771
+ "material_type9" => "Frame Type9",
1772
+ "material_type10" => "Frame Type10",
1773
+ "size_name" => "Size Name",
1774
+ "size_map" => "size_map",
1775
+ );
1776
+ return $attributes;
1777
+ }
1778
+ public function amazon_ConsumerElectronicsAttributes (){
1779
+ $attributes = array(
1780
+ "item_sku" => "Seller SKU",
1781
+ "external_product_id" => "Product ID",
1782
+ "external_product_id_type" => "Product ID Type",
1783
+ "item_name" => "Title",
1784
+ "brand_name" => "Brand",
1785
+ "manufacturer" => "Manufacturer",
1786
+ "product_description" => "Description",
1787
+ "item_type" => "Item Type",
1788
+ "feed_product_type" => "Product Type",
1789
+ "part_number" => "Mfr Part Number",
1790
+ "model" => "Model Number",
1791
+ "update_delete" => "Update Delete",
1792
+ "max_order_quantity" => "Max Order Quantity",
1793
+ "standard_price" => "Standard Price",
1794
+ "list_price" => "Manufacturer's Suggested Retail Price",
1795
+ "quantity" => "Quantity",
1796
+ "condition_type" => "Item Condition",
1797
+ "condition_note" => "Condition Note",
1798
+ "map_price" => "Minimum Advertised Price",
1799
+ "sale_price" => "Sale Price",
1800
+ "sale_from_date" => "Sale Start Date",
1801
+ "sale_end_date" => "Sale End Date",
1802
+ "product_tax_code" => "Product Tax Code",
1803
+ "product_site_launch_date" => "Launch Date",
1804
+ "merchant_release_date" => "Release Date",
1805
+ "fulfillment_latency" => "Fulfillment Latency",
1806
+ "restock_date" => "Restock Date",
1807
+ "max_aggregate_ship_quantity" => "Maximum Aggregate Ship Quantity",
1808
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1809
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1810
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
1811
+ "missing_keyset_reason" => "Registered Parameter",
1812
+ "merchant_shipping_group_name" => "Shipping-Template",
1813
+ "website_shipping_weight" => "Shipping Weight",
1814
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1815
+ "item_length" => "Item Length",
1816
+ "item_width" => "Item Width",
1817
+ "item_height" => "Item Height",
1818
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
1819
+ "item_weight" => "Item Weight",
1820
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1821
+ "bullet_point1" => "Bullet Point1",
1822
+ "bullet_point2" => "Bullet Point2",
1823
+ "bullet_point3" => "Bullet Point3",
1824
+ "bullet_point4" => "Bullet Point4",
1825
+ "bullet_point5" => "Bullet Point5",
1826
+ "generic_keywords" => "Search Terms",
1827
+ "main_image_url" => "Main Image URL",
1828
+ "other_image_url1" => "Other Image URL1",
1829
+ "other_image_url2" => "Other Image URL2",
1830
+ "other_image_url3" => "Other Image URL3",
1831
+ "fulfillment_center_id" => "Fulfillment Center ID",
1832
+ "package_height" => "Package Height",
1833
+ "package_width" => "Package Width",
1834
+ "package_length" => "Package Length",
1835
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
1836
+ "package_weight" => "Package Weight",
1837
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1838
+ "country_of_origin" => "Country of Origin",
1839
+ "legal_disclaimer_description" => "Legal Disclaimer",
1840
+ "prop_65" => "Prop 65",
1841
+ "safety_warning" => "Warnings",
1842
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1843
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1844
+ "energy_efficiency_image_url" => "Energy Guide Label",
1845
+ "mounting_type" => "Mount Type",
1846
+ "battery_cell_composition" => "Battery Cell Type",
1847
+ "battery_average_life" => "Battery Average Life",
1848
+ "battery_average_life_unit_of_measure" => "Battery Average Life Unit Of Measure",
1849
+ "lithium_battery_energy_content" => "Lithium-Battery Energy Content",
1850
+ "lithium_battery_packaging" => "Lithium-Battery Packaging",
1851
+ "lithium_battery_voltage" => "Lithium-Battery Voltage",
1852
+ "write_speed" => "Media Speed",
1853
+ "vehicle_speaker_size" => "Vehicle Speaker Size",
1854
+ "enclosure" => "Enclosure",
1855
+ "supported_standards" => "Supported Standards",
1856
+ "map_type" => "Map Types",
1857
+ "gps_navigation" => "GPS Geotagging Functionality",
1858
+ "hard_disk_size" => "Hard-Drive Size",
1859
+ "hard_disk_size_unit_of_measure" => "Hard Disk Size Unit Of Measure",
1860
+ "memory_slots_available" => "Memory Slots Available",
1861
+ "computer_memory_size" => "RAM Size",
1862
+ "computer_memory_size_unit_of_measure" => "Computer Memory Size Unit Of Measure",
1863
+ "computer_cpu_speed" => "Processor Speed",
1864
+ "computer_cpu_speed_unit_of_measure" => "Computer Cpu Speed Unit Of Measure",
1865
+ "computer_cpu_type" => "Processor Series",
1866
+ "fit_type" => "Headphone Fit",
1867
+ "audio_sensitivity" => "Audio Sensitivity",
1868
+ "microphone_technology" => "MicrophoneTechnology",
1869
+ "power_source_type" => "Power Source",
1870
+ "connector_gender" => "Connector Gender",
1871
+ "water_resistance_level" => "Water Resistance Level",
1872
+ "surround_sound_channel_configuration" => "Number of Audio Channels",
1873
+ "cooling_method" => "Cooling Method",
1874
+ "computer_cpu_manufacturer" => "Processor Brand",
1875
+ "operating_system" => "Operating System",
1876
+ "human_interface_input" => "Human-Interface Input",
1877
+ "frequency_response_curve" => "Frequency Response Curve",
1878
+ "specification_met" => "Energy Specifications Met",
1879
+ "material_type" => "Enclosure Material",
1880
+ "item_shape" => "Shape",
1881
+ "speaker_connectivity" => "Speaker Connectivity",
1882
+ "tuner_technology" => "Tuner Type",
1883
+ "hardware_platform" => "Hardware Platform",
1884
+ "input_device_interface" => "Input-Device Interface",
1885
+ "screen_surface_description" => "Screen Finish",
1886
+ "display_size" => "Screen Size",
1887
+ "display_size_unit_of_measure" => "Display Size Unit Of Measure",
1888
+ "native_resolution" => "Native Resolution",
1889
+ "image_contrast_ratio" => "Contrast Ratio",
1890
+ "wireless_comm_standard" => "Wireless Compability",
1891
+ "supported_internet_services" => "Internet Applications",
1892
+ "output_wattage" => "Output Wattage",
1893
+ "connectivity_technology" => "Connectivity Technology",
1894
+ "data_transfer_rate" => "Data Transfer Rate",
1895
+ "data_transfer_rate_unit_of_measure" => "Data Transfer Rate Unit Of Measure",
1896
+ "image_brightness" => "Brightness",
1897
+ "image_brightness_unit_of_measure" => "Image Brightness Unit Of Measure",
1898
+ "maximum_image_size" => "Maximum Image Size",
1899
+ "min_focal_length" => "Minimum Focal Length",
1900
+ "zoom_type" => "Zoom",
1901
+ "speaker_type" => "Speaker Type",
1902
+ "wireless_communication_technology" => "Wireless Technology",
1903
+ "display_type" => "Display Type",
1904
+ "included_components" => "Built-In Media",
1905
+ "total_hdmi_ports" => "Total Number of HDMI Ports",
1906
+ "special_features" => "Additional Features",
1907
+ "number_of_batteries" => "Number of Batteries Required",
1908
+ "battery_type" => "Battery Type",
1909
+ "mfg_warranty_description_type" => "Manufacturer Warranty Type",
1910
+ "mfg_warranty_description_parts" => "Lamp Warranty",
1911
+ );
1912
+ return $attributes;
1913
+ }
1914
+ public function amazon_computersAttributes (){
1915
+ $attributes = array(
1916
+ "item_sku" => "Seller SKU",
1917
+ "external_product_id" => "Product ID",
1918
+ "external_product_id_type" => "Product ID Type",
1919
+ "item_name" => "Title",
1920
+ "brand_name" => "Brand",
1921
+ "manufacturer" => "Manufacturer",
1922
+ "product_description" => "Description",
1923
+ "item_type" => "Item Type",
1924
+ "feed_product_type" => "Product Type",
1925
+ "part_number" => "Mfr Part Number",
1926
+ "model" => "Model Number",
1927
+ "update_delete" => "Update Delete",
1928
+ "standard_price" => "Standard Price",
1929
+ "list_price" => "Manufacturer's Suggested Retail Price",
1930
+ "quantity" => "Quantity",
1931
+ "condition_type" => "Item Condition",
1932
+ "condition_note" => "Condition Note",
1933
+ "sale_price" => "Sale Price",
1934
+ "sale_from_date" => "Sale Start Date",
1935
+ "sale_end_date" => "Sale End Date",
1936
+ "number_of_items" => "Number of Items",
1937
+ "product_tax_code" => "Product Tax Code",
1938
+ "product_site_launch_date" => "Launch Date",
1939
+ "merchant_release_date" => "Release Date",
1940
+ "fulfillment_latency" => "Fulfillment Latency",
1941
+ "restock_date" => "Restock Date",
1942
+ "max_aggregate_ship_quantity" => "Maximum Aggregate Ship Quantity",
1943
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
1944
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
1945
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
1946
+ "minimum_accept_percentage" => "Make an Offer Auto-Accept Threshold",
1947
+ "merchant_shipping_group_name" => "Shipping-Template",
1948
+ "maximum_reject_percentage" => "Make an Offer Auto-Reject Threshold",
1949
+ "make_an_offer_eligibility" => "Make an Offer Eligible",
1950
+ "website_shipping_weight" => "Shipping Weight",
1951
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
1952
+ "item_length" => "Item Length",
1953
+ "item_width" => "Item Width",
1954
+ "item_height" => "Item Height",
1955
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
1956
+ "item_weight" => "Item Weight",
1957
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
1958
+ "bullet_point1" => "Bullet Point1",
1959
+ "bullet_point2" => "Bullet Point2",
1960
+ "bullet_point3" => "Bullet Point3",
1961
+ "bullet_point4" => "Bullet Point4",
1962
+ "bullet_point5" => "Bullet Point5",
1963
+ "generic_keywords" => "Search Terms",
1964
+ "main_image_url" => "Main Image URL",
1965
+ "other_image_url1" => "Other Image URL1",
1966
+ "other_image_url2" => "Other Image URL2",
1967
+ "other_image_url3" => "Other Image URL3",
1968
+ "swatch_image_url" => "Swatch Image URL",
1969
+ "fulfillment_center_id" => "Fulfillment Center ID",
1970
+ "package_height" => "Package Height",
1971
+ "package_width" => "Package Width",
1972
+ "package_length" => "Package Length",
1973
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
1974
+ "package_weight" => "Package Weight",
1975
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
1976
+ "country_of_origin" => "Country of Origin",
1977
+ "legal_disclaimer_description" => "Legal Disclaimer",
1978
+ "prop_65" => "Prop 65",
1979
+ "safety_warning" => "Warnings",
1980
+ "cpsia_cautionary_statement" => "Cpsia Warning",
1981
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
1982
+ "number_of_ports" => "Number of Ports",
1983
+ "wattage" => "Wattage",
1984
+ "hardware_interface" => "Hardware Connectivity",
1985
+ "power_source_type" => "Power Source",
1986
+ "battery_average_life" => "Battery Average Life",
1987
+ "lithium_battery_energy_content" => "Lithium-Battery Energy Content",
1988
+ "lithium_battery_packaging" => "Lithium-Battery Packaging",
1989
+ "lithium_battery_voltage" => "Lithium-Battery Voltage",
1990
+ "lithium_battery_weight" => "Lithium Battery Weight",
1991
+ "lithium_battery_weight_unit_of_measure" => "Lithium Battery Weight Unit Of Measure",
1992
+ "mfg_warranty_description_type" => "Manufacturer Warranty Type",
1993
+ "mfg_warranty_description_parts" => "Lamp Warranty",
1994
+ "computer_memory_size" => "RAM Size",
1995
+ "computer_cpu_manufacturer" => "Processor Brand",
1996
+ "computer_cpu_speed" => "Processor Speed",
1997
+ "computer_cpu_speed_unit_of_measure" => "Processor Speed Unit Of Measure",
1998
+ "processor_count" => "Processor Count",
1999
+ "graphics_ram_type" => "Graphics Ram Type",
2000
+ "graphics_coprocessor" => "Graphics Coprocessor",
2001
+ "computer_memory_size_unit_of_measure" => "Computer Memory Size Unit Of Measure",
2002
+ "system_ram_type" => "RAM Type",
2003
+ "model_name" => "Model Name",
2004
+ "wireless_communication_technology" => "Wireless Technology",
2005
+ "human_interface_input" => "Human-Interface Input",
2006
+ "computer_cpu_type" => "Processor Series",
2007
+ "native_resolution" => "Native Resolution",
2008
+ "display_resolution_maximum" => "Display Resolution Maximum",
2009
+ "display_size" => "Screen Size",
2010
+ "display_size_unit_of_measure" => "Display Size Unit Of Measure",
2011
+ "tuner_technology" => "Tuner Type",
2012
+ "photo_sensor_resolution" => "Max Webcam Image Resolution",
2013
+ "photo_sensor_resolution_unit_of_measure" => "Photo Sensor Resolution Unit Of Measure",
2014
+ "hard_disk_rotational_speed" => "Hard Disk Rotational Speed",
2015
+ "hardware_platform" => "Hardware Platform",
2016
+ "hard_disk_description" => "Hard Disk Description",
2017
+ "hard_disk_size" => "Hard-Drive Size",
2018
+ "graphics_ram" => "Graphics Card Ram",
2019
+ "graphics_processor_manufacturer" => "Video Processor",
2020
+ "memory_clock_speed" => "EffectiveMemoryClock",
2021
+ "memory_clock_speed_unit_of_measure" => "Memory Clock Speed Unit Of Measure",
2022
+ "processor_socket" => "Processor Socket",
2023
+ "ram_memory_technology" => "RAM Memory Technology",
2024
+ "hard_disk_interface" => "Hard Disk Interface",
2025
+ "total_hdmi_ports" => "Total Number of HDMI Ports",
2026
+ "form_factor" => "Form Factor",
2027
+ "total_usb_2_0_ports" => "USB 2.0",
2028
+ "wireless_comm_standard" => "Wireless Compability",
2029
+ "hard_drive_size_unit_of_measure" => "Hard Drive Size Unit Of Measure",
2030
+ "secure_digital_association_speed_class" => "Secure Digital Association Speed Class",
2031
+ "write_speed_unit_of_measure" => "Write Speed Unit Of Measure",
2032
+ "gps_navigation" => "GPS Geotagging Functionality",
2033
+ "write_speed" => "Media Speed",
2034
+ "special_features" => "Additional Features",
2035
+ "memory_storage_capacity" => "Memory Storage Capacity",
2036
+ "memory_storage_capacity_unit_of_measure" => "Memory Storage Capacity Unit Of Measure",
2037
+ "display_technology" => "Display Technology",
2038
+ "image_contrast_ratio" => "Contrast Ratio",
2039
+ "image_brightness" => "Brightness",
2040
+ "image_brightness_unit_of_measure" => "Image Brightness Unit Of Measure",
2041
+ "cooling_method" => "Cooling Method",
2042
+ "light_type" => "Light Type",
2043
+ "memory_slots_available" => "Memory Slots Available",
2044
+ "number_of_pins" => "SSD Connector Pins",
2045
+ "operating_system" => "Operating System",
2046
+ "memory_bus_width" => "Memory Bus Width",
2047
+ "memory_bus_width_unit_of_measure" => "Memory Bus Width Unit Of Measure",
2048
+ "maximum_image_size" => "Maximum Image Size",
2049
+ "zoom_type" => "Zoom",
2050
+ "image_aspect_ratio" => "Image Aspect Ration",
2051
+ "remote_control_description" => "Remote Control Description",
2052
+ "max_horizontal_resolution" => "Maximum horizontal resolution",
2053
+ "capacity_name" => "capacity_name",
2054
+ "included_components" => "Built-In Media",
2055
+ "specific_uses_for_product" => "Specific Uses For Product",
2056
+ "photo_sensor_technology" => "Photo Sensor Technology",
2057
+ "effective_still_resolution" => "Effective Still Resolution",
2058
+ "effective_still_resolution_unit_of_measure" => "Effective Still Resolution Unit Of Measure",
2059
+ "output_wattage" => "Output Wattage",
2060
+ "output_channel_quantity" => "Output Channel Quantity",
2061
+ "surround_sound_channel_configuration" => "Number of Audio Channels",
2062
+ "speakers_maximum_output_power" => "Speaker Maximum Output Power",
2063
+ "connectivity_technology" => "Connectivity Technology",
2064
+ "radio_bands_supported" => "Radio Bands Supported",
2065
+ "material_type" => "Enclosure Material",
2066
+ "compatible_devices" => "Compatible Devices",
2067
+ "frequency_response_curve" => "Frequency Response Curve",
2068
+ "supported_motherboard" => "Supported Motherboard",
2069
+ "speaker_connectivity" => "Speaker Connectivity",
2070
+ "hard_disk_form_factor" => "Hard Disk Form Factor",
2071
+ "flash_memory_type" => "Flash Memory Type",
2072
+ "data_transfer_rate" => "Data Transfer Rate",
2073
+ );
2074
+ return $attributes;
2075
+ }
2076
+ public function amazon_CameraAndPhotoAttributes (){
2077
+ $attributes = array(
2078
+ "item_sku" => "Seller SKU",
2079
+ "external_product_id" => "Product ID",
2080
+ "external_product_id_type" => "Product ID Type",
2081
+ "item_name" => "Title",
2082
+ "brand_name" => "Brand",
2083
+ "manufacturer" => "Manufacturer",
2084
+ "product_description" => "Description",
2085
+ "item_type" => "Item Type",
2086
+ "feed_product_type" => "Product Type",
2087
+ "part_number" => "Mfr Part Number",
2088
+ "model" => "Model Number",
2089
+ "update_delete" => "Update Delete",
2090
+ "standard_price" => "Standard Price",
2091
+ "list_price" => "Manufacturer's Suggested Retail Price",
2092
+ "quantity" => "Quantity",
2093
+ "max_order_quantity" => "Max Order Quantity",
2094
+ "condition_type" => "Item Condition",
2095
+ "condition_note" => "Condition Note",
2096
+ "map_price" => "Minimum Advertised Price",
2097
+ "sale_price" => "Sale Price",
2098
+ "sale_from_date" => "Sale Start Date",
2099
+ "sale_end_date" => "Sale End Date",
2100
+ "product_tax_code" => "Product Tax Code",
2101
+ "product_site_launch_date" => "Launch Date",
2102
+ "merchant_release_date" => "Release Date",
2103
+ "fulfillment_latency" => "Fulfillment Latency",
2104
+ "restock_date" => "Restock Date",
2105
+ "max_aggregate_ship_quantity" => "Maximum Aggregate Ship Quantity",
2106
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2107
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2108
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
2109
+ "missing_keyset_reason" => "Registered Parameter",
2110
+ "merchant_shipping_group_name" => "Shipping-Template",
2111
+ "website_shipping_weight" => "Shipping Weight",
2112
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2113
+ "item_length" => "Item Length",
2114
+ "item_width" => "Item Width",
2115
+ "item_height" => "Item Height",
2116
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
2117
+ "item_weight" => "Item Weight",
2118
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2119
+ "bullet_point1" => "Bullet Point1",
2120
+ "bullet_point2" => "Bullet Point2",
2121
+ "bullet_point3" => "Bullet Point3",
2122
+ "bullet_point4" => "Bullet Point4",
2123
+ "bullet_point5" => "Bullet Point5",
2124
+ "generic_keywords" => "Search Terms",
2125
+ "style_keywords" => "Style-specific Terms",
2126
+ "main_image_url" => "Main Image URL",
2127
+ "other_image_url1" => "Other Image URL1",
2128
+ "other_image_url2" => "Other Image URL2",
2129
+ "other_image_url3" => "Other Image URL3",
2130
+ "fulfillment_center_id" => "Fulfillment Center ID",
2131
+ "package_height" => "Package Height",
2132
+ "package_width" => "Package Width",
2133
+ "package_length" => "Package Length",
2134
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
2135
+ "package_weight" => "Package Weight",
2136
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2137
+ "country_of_origin" => "Country of Origin",
2138
+ "legal_disclaimer_description" => "Legal Disclaimer",
2139
+ "prop_65" => "Prop 65",
2140
+ "safety_warning" => "Warnings",
2141
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2142
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2143
+ "number_of_batteries" => "Number of Batteries Required",
2144
+ "battery_type" => "BatteryType",
2145
+ "battery_cell_composition" => "Battery Cell Type",
2146
+ "mfg_warranty_description_type" => "Manufacturer Warranty Type",
2147
+ "mfg_warranty_description_parts" => "Manufacturer Parts Warranty",
2148
+ "alarm_clock" => "Alarm Clock",
2149
+ "compatible_mountings" => "Compatible Camera Mount",
2150
+ "optical_sensor_technology" => "Image Sensor Type",
2151
+ "media_format_digital_video" => "Media Storage",
2152
+ "mounting_type" => "Mounting Type",
2153
+ "included_components" => "Number of Included Cameras",
2154
+ "remote_control_description" => "Remote",
2155
+ "signal_format" => "Signal Type",
2156
+ "video_capture_resolution" => "Video Resolution",
2157
+ "wireless_communication_technology" => "Wireless Technology",
2158
+ "special_features" => "Features",
2159
+ "digital_zoom" => "Digital Zoom",
2160
+ "includes_external_memory" => "External Memory Included",
2161
+ "focus_description" => "Focus Features",
2162
+ "gps_navigation" => "Geotagging or GPS Functionality",
2163
+ "supported_image_type" => "Image Format",
2164
+ "computer_memory_size" => "Internal Memory Size",
2165
+ "ram_memory_technology" => "Internal Memory Type",
2166
+ "monitor_size" => "LCD Screen Size",
2167
+ "monitor_size_unit_of_measure" => "Monitor Size Unit Of Measure",
2168
+ "photo_sensor_technology" => "Sensor Type",
2169
+ "total_hdmi_ports" => "Total Number of HDMI Ports",
2170
+ "total_usb_2_0_ports" => "Total USB 2.0 Ports",
2171
+ "total_usb_3_0_ports" => "Total USB 3.0 Ports",
2172
+ "human_interface_input" => "Touchscreen",
2173
+ "iso_range" => "ISO Range",
2174
+ "optical_zoom" => "Optical Zoom",
2175
+ "min_focal_length" => "Minimum Focal Length",
2176
+ "water_resistance_level" => "Water Resistance Level",
2177
+ "lens_type" => "Lens Type",
2178
+ "platform" => "Computer Platform",
2179
+ "max_aperture" => "Maximum Aperture",
2180
+ "max_focal_length" => "Maximum Focal Length",
2181
+ "min_aperture" => "Minimum Aperture",
2182
+ "viewfinder_type" => "Viewfinder Type",
2183
+ "film_lighting_type" => "Lighting Type",
2184
+ "specific_uses_for_product" => "Specific Uses",
2185
+ "photo_filter_mount_type" => "Mount Type",
2186
+ "photo_filter_thread_size" => "Thread Size",
2187
+ "photo_filter_effect_type" => "Special Effect",
2188
+ "included_flash_type" => "Flash Type",
2189
+ "flash_dedication" => "Flash Dedication",
2190
+ "objective_lens_diameter" => "Objective Lens Diameter",
2191
+ "real_angle_of_view" => "Real Angle of View",
2192
+ "focus_type" => "Focus Type",
2193
+ "film_format_type" => "Film Format",
2194
+ "continuous_shooting_speed" => "Continuous Shooting",
2195
+ "exposure_control_type" => "Exposure Control",
2196
+ "flash_modes_description" => "Flash Modes",
2197
+ "macro_focus_range" => "Macro Focus",
2198
+ "max_shutter_speed" => "Maximum Shutter Speed",
2199
+ "min_shutter_speed" => "Minimum Shutter Speed",
2200
+ "metering_description" => "Metering Methods",
2201
+ "size_name" => "Size",
2202
+ "specification_met" => "Outdoor Use",
2203
+ "display_size" => "Display Size",
2204
+ "zoom_type" => "Focal Type",
2205
+ "tripod_head_type" => "Head Type",
2206
+ "material_type" => "Material Type",
2207
+ "power_source_type" => "Power Source",
2208
+ "telescope_mount_description" => "Mount",
2209
+ );
2210
+ return $attributes;
2211
+ }
2212
+
2213
+ public function amazon_BookLoaderAttributes (){
2214
+ $attributes = array(
2215
+ "item_sku" => "Seller SKU",
2216
+ "external_product_id" => "Product ID",
2217
+ "external_product_id_type" => "Product ID Type",
2218
+ "item_name" => "Title",
2219
+ "manufacturer" => "Publisher",
2220
+ "product_description" => "Product Description",
2221
+ "update_delete" => "Update Delete",
2222
+ "author" => "Author",
2223
+ "binding" => "Binding",
2224
+ "publication_date" => "Publication date",
2225
+ "edition" => "Edition Number",
2226
+ "standard_price" => "Standard Price",
2227
+ "quantity" => "Quantity",
2228
+ "merchant_shipping_group_name" => "Shipping-Template",
2229
+ "condition_type" => "Item Condition",
2230
+ "condition_note" => "Offer Condition Note",
2231
+ "product_tax_code" => "Product Tax Code",
2232
+ "expedited_shipping" => "Expedited Shipping",
2233
+ "will_ship_internationally" => "Will Ship Internationally",
2234
+ "standard_plus" => "Standard Plus",
2235
+ "delivery_schedule_group_id" => "Scheduled Delivery SKU List",
2236
+ "generic_keywords1" => "Search Terms1",
2237
+ "generic_keywords2" => "Search Terms2",
2238
+ "generic_keywords3" => "Search Terms3",
2239
+ "generic_keywords4" => "Search Terms4",
2240
+ "generic_keywords5" => "Search Terms5",
2241
+ "main_image_url" => "Main Image URL",
2242
+ "main_offer_image" => "Main Offer Image",
2243
+ "offer_image1" => "Offer Image1",
2244
+ "offer_image2" => "Offer Image2",
2245
+ "offer_image3" => "Offer Image3",
2246
+ "offer_image4" => "Offer Image4",
2247
+ "offer_image5" => "Offer Image5",
2248
+ "fulfillment_center_id" => "Fulfillment Center ID",
2249
+ "package_height" => "Package Height",
2250
+ "package_width" => "Package Width",
2251
+ "package_length" => "Package Length",
2252
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
2253
+ "package_weight" => "Package Weight",
2254
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2255
+ "unknown_subject" => "Subject",
2256
+ "illustrator" => "Illustrator",
2257
+ "pages" => "Pages",
2258
+ "series_number" => "Number in Series",
2259
+ "collection_name" => "Series Title",
2260
+ "editor" => "Editor",
2261
+ "preface" => "Preface",
2262
+ "colorist" => "Colorist",
2263
+ "compiler" => "Compiler",
2264
+ "composer1" => "Composer1",
2265
+ "composer2" => "Composer2",
2266
+ "composer3" => "Composer3",
2267
+ "composer4" => "Composer4",
2268
+ "composer5" => "Composer5",
2269
+ "composer6" => "Composer6",
2270
+ "composer7" => "Composer7",
2271
+ "composer8" => "Composer8",
2272
+ "composer9" => "Composer9",
2273
+ "composer10" => "Composer10",
2274
+ "creator" => "Creator",
2275
+ "drawings" => "Drawings",
2276
+ "painter" => "Painter",
2277
+ "reader" => "Reader",
2278
+ "series_editor" => "Series Editor",
2279
+ "technical_editor" => "Technical editor",
2280
+ "adapter" => "Adapter",
2281
+ "afterword" => "Afterword",
2282
+ "artist1" => "Artist1",
2283
+ "artist2" => "Artist2",
2284
+ "artist3" => "Artist3",
2285
+ "artist4" => "Artist4",
2286
+ "artist5" => "Artist5",
2287
+ "artist6" => "Artist6",
2288
+ "artist7" => "Artist7",
2289
+ "artist8" => "Artist8",
2290
+ "artist9" => "Artist9",
2291
+ "artist10" => "Artist10",
2292
+ "foreword" => "Foreword",
2293
+ "introduction" => "Introduction",
2294
+ "translator" => "Translator",
2295
+ "photographer" => "Photographer",
2296
+ "format1" => "Format1",
2297
+ "format2" => "Format2",
2298
+ "format3" => "Format3",
2299
+ "format4" => "Format4",
2300
+ "format5" => "Format5",
2301
+ "format6" => "Format6",
2302
+ "format7" => "Format7",
2303
+ "format8" => "Format8",
2304
+ "format9" => "Format9",
2305
+ "format10" => "Format10",
2306
+ "dust_jacket_description" => "Dust Jacket Condition",
2307
+ "signed_by" => "Signed By",
2308
+ );
2309
+ return $attributes;
2310
+ }
2311
+ public function amazon_tiresandwheelsAttributes (){
2312
+ $attributes = array(
2313
+ "item_sku" => "Seller SKU",
2314
+ "external_product_id" => "Product ID",
2315
+ "external_product_id_type" => "Product ID Type",
2316
+ "item_name" => "Product Name",
2317
+ "brand_name" => "Brand",
2318
+ "manufacturer" => "Manufacturer",
2319
+ "part_number" => "Manufacturer Part Number",
2320
+ "product_description" => "Product Description",
2321
+ "feed_product_type" => "Product Type",
2322
+ "item_type" => "Item Type Keyword",
2323
+ "update_delete" => "Update Delete",
2324
+ "item_package_quantity" => "Package Quantity",
2325
+ "product_tax_code" => "Product Tax Code",
2326
+ "product_site_launch_date" => "Launch Date",
2327
+ "merchant_release_date" => "Release Date",
2328
+ "restock_date" => "Restock Date",
2329
+ "map_price" => "Minimum Advertised Price",
2330
+ "list_price" => "Manufacturer's Suggested Retail Price",
2331
+ "standard_price" => "Standard Price",
2332
+ "sale_price" => "Sale Price",
2333
+ "sale_from_date" => "Sale Start Date",
2334
+ "sale_end_date" => "Sale End Date",
2335
+ "condition_type" => "Item Condition",
2336
+ "condition_note" => "Offer Condition Note",
2337
+ "quantity" => "Quantity",
2338
+ "fulfillment_latency" => "Production Time",
2339
+ "max_aggregate_ship_quantity" => "Maximum Aggregate Ship Quantity",
2340
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2341
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2342
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2343
+ "merchant_shipping_group_name" => "Shipping-Template",
2344
+ "item_weight" => "Item Weight",
2345
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2346
+ "item_length" => "Item Length",
2347
+ "item_height" => "Item Height",
2348
+ "item_width" => "Item Width",
2349
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
2350
+ "website_shipping_weight" => "Shipping Weight",
2351
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2352
+ "catalog_number" => "Merchant Catalog Number",
2353
+ "bullet_point1" => "Bullet Point1",
2354
+ "bullet_point2" => "Bullet Point2",
2355
+ "bullet_point3" => "Bullet Point3",
2356
+ "bullet_point4" => "Bullet Point4",
2357
+ "bullet_point5" => "Bullet Point5",
2358
+ "specific_uses_keywords" => "Intended Use",
2359
+ "target_audience_keywords" => "Target Audience",
2360
+ "thesaurus_subject_keywords" => "Subject Matter",
2361
+ "generic_keywords" => "Search Terms",
2362
+ "main_image_url" => "Main Image URL",
2363
+ "other_image_url1" => "Other Image URL1",
2364
+ "other_image_url2" => "Other Image URL2",
2365
+ "other_image_url3" => "Other Image URL3",
2366
+ "fulfillment_center_id" => "Fulfillment Center ID",
2367
+ "prop_65" => "Consumer Notice",
2368
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2369
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2370
+ "legal_disclaimer_description" => "Legal Disclaimer",
2371
+ "part_type_id" => "Part Type ID",
2372
+ "thesaurus_attribute_keywords" => "Other Attributes",
2373
+ "model_name" => "Series",
2374
+ "rim_size" => "Bike Rim Size",
2375
+ "rim_size_unit_of_measure" => "Rim Size Unit Of Measure",
2376
+ "compatible_with_vehicle_type" => "Vehicle Service Type",
2377
+ "load_index" => "Load Index",
2378
+ "speed_rating" => "Performance Description",
2379
+ "uniform_tire_quality_grade_rating" => "UTQG Rating",
2380
+ "section_width" => "Section Width",
2381
+ "section_width_unit_of_measure" => "Tyre Section Width Unit of Measure",
2382
+ "tire_aspect_ratio" => "Tire Aspect Ratio",
2383
+ "tire_aspect_ratio_unit_of_measure" => "Tire Aspect Ratio Unit Of Measure",
2384
+ "tread_depth" => "Tread Depth",
2385
+ "tread_depth_unit_of_measure" => "Tread Depth Unit Of Measure",
2386
+ "pitch_circle_diameter1" => "Pitch Circle Diameter1",
2387
+ "pitch_circle_diameter2" => "Pitch Circle Diameter2",
2388
+ "construction_type" => "Mechanical Structure",
2389
+ "color_name" => "Color",
2390
+ "color_map" => "Color Map",
2391
+ "exterior_finish" => "Body Part Exterior Finish",
2392
+ "exterior_finish_map" => "exterior-finish-map",
2393
+ "special_features" => "Additional Features",
2394
+ "hole_count" => "Hole Count",
2395
+ "number_of_spokes" => "Number Of Spokes",
2396
+ "wheel_backspacing" => "Wheel Backspacing",
2397
+ "wheel_backspacing_unit_of_measure" => "Wheel Backspacing Unit Of Measure",
2398
+ "rim_width" => "Rim Width",
2399
+ "rim_width_unit_of_measure" => "Rim Width Unit Of Measure",
2400
+ "item_offset" => "Offset",
2401
+ "item_offset_unit_of_measure" => "Item Offset Unit Of Measure",
2402
+ "pitch_circle_diameter_unit_of_measure" => "Pitch Circle Diameter Unit Of Measure",
2403
+ );
2404
+ return $attributes;
2405
+ }
2406
+ public function amazon_autoaccessoryAttributes (){
2407
+ $attributes = array(
2408
+ "item_sku" => "Seller SKU",
2409
+ "external_product_id" => "Product ID",
2410
+ "external_product_id_type" => "Product ID Type",
2411
+ "item_name" => "Product Name",
2412
+ "manufacturer" => "Manufacturer",
2413
+ "part_number" => "Manufacturer Part Number",
2414
+ "feed_product_type" => "Product Type",
2415
+ "item_type" => "Item Type Keyword",
2416
+ "product_subtype" => "Clothing Type",
2417
+ "product_description" => "Product Description",
2418
+ "brand_name" => "Brand Name",
2419
+ "update_delete" => "Update Delete",
2420
+ "item_package_quantity" => "Package Quantity",
2421
+ "product_tax_code" => "Product Tax Code",
2422
+ "product_site_launch_date" => "Launch Date",
2423
+ "merchant_release_date" => "Release Date",
2424
+ "restock_date" => "Restock Date",
2425
+ "map_price" => "Minimum Advertised Price",
2426
+ "list_price" => "Manufacturer's Suggested Retail Price",
2427
+ "standard_price" => "Standard Price",
2428
+ "sale_price" => "Sale Price",
2429
+ "sale_from_date" => "Sale Start Date",
2430
+ "sale_end_date" => "Sale End Date",
2431
+ "condition_type" => "Item Condition",
2432
+ "condition_note" => "Offer Condition Note",
2433
+ "quantity" => "Quantity",
2434
+ "fulfillment_latency" => "Fulfillment Latency",
2435
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
2436
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2437
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2438
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2439
+ "missing_keyset_reason" => "Registered Parameter",
2440
+ "merchant_shipping_group_name" => "Shipping-Template",
2441
+ "item_volume_unit_of_measure" => "Item Volume Unit Of Measure",
2442
+ "item_volume" => "Volume",
2443
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2444
+ "item_weight" => "Item Weight",
2445
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
2446
+ "item_length" => "Item Length",
2447
+ "item_height" => "Item Height",
2448
+ "item_width" => "Item Width",
2449
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2450
+ "website_shipping_weight" => "Shipping Weight",
2451
+ "item_display_diameter_unit_of_measure" => "Item Display Diameter Unit Of Measure",
2452
+ "item_display_diameter" => "Diameter",
2453
+ "style_keywords" => "Style-specific Terms",
2454
+ "bullet_point1" => "Key Product Features1",
2455
+ "bullet_point2" => "Key Product Features2",
2456
+ "bullet_point3" => "Key Product Features3",
2457
+ "bullet_point4" => "Key Product Features4",
2458
+ "bullet_point5" => "Key Product Features5",
2459
+ "specific_uses_keywords" => "Intended Use",
2460
+ "target_audience_keywords" => "Target Audience",
2461
+ "generic_keywords" => "Search Terms",
2462
+ "catalog_number" => "Catalog Number",
2463
+ "thesaurus_subject_keywords" => "Subject Matter",
2464
+ "main_image_url" => "Main Image URL",
2465
+ "other_image_url1" => "Other Image URL1",
2466
+ "other_image_url2" => "Other Image URL2",
2467
+ "other_image_url3" => "Other Image URL3",
2468
+ "swatch_image_url" => "Swatch Image URL",
2469
+ "fulfillment_center_id" => "Fulfillment Center ID",
2470
+ "package_length" => "Package Length",
2471
+ "package_width" => "Package Width",
2472
+ "package_height" => "Package Height",
2473
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
2474
+ "package_weight" => "Package Weight",
2475
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2476
+ "parent_child" => "Parentage",
2477
+ "parent_sku" => "Parent SKU",
2478
+ "relationship_type" => "Relationship Type",
2479
+ "variation_theme" => "Variation Theme",
2480
+ "legal_disclaimer_description" => "Legal Disclaimer",
2481
+ "prop_65" => "Consumer Notice",
2482
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2483
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2484
+ "country_of_origin" => "Country of Publication",
2485
+ "fabric_type" => "Fabric Type",
2486
+ "legal_compliance_certification_metadata" => "Please provide the Executive Number (EO) required for sale into California.",
2487
+ "legal_compliance_certification_expiration_date" => "Please provide the expiration date of the EO Number.",
2488
+ "exterior_finish" => "Body Part Exterior Finish",
2489
+ "color_name" => "Color",
2490
+ "color_map" => "Color Map",
2491
+ "oe_manufacturer" => "OE Manufacturer",
2492
+ "part_interchange_info" => "Part Interchange Info",
2493
+ "department_name" => "Department",
2494
+ "model_name" => "Series",
2495
+ "thesaurus_attribute_keywords" => "Other Attributes",
2496
+ "part_type_id" => "Part Type ID",
2497
+ "size_name" => "Size",
2498
+ "size_map" => "Size Map",
2499
+ "material_type" => "Material",
2500
+ "viscosity" => "Viscosity",
2501
+ "orientation" => "Orientation",
2502
+ "control_type" => "Mirror Adjustment",
2503
+ "light_type" => "Mirror Turn Signal Indicator",
2504
+ "special_features" => "Additional Features",
2505
+ "external_testing_certification" => "External Testing Certification",
2506
+ "light_source_type" => "Light Source Type",
2507
+ "operation_mode" => "Window Regulator Lift Type",
2508
+ "warranty_description" => "Manufacturer Warranty Description",
2509
+ "lifestyle" => "Occasion Lifestyle",
2510
+ "inner_material_type" => "Inner Material",
2511
+ "outer_material_type" => "Outer Material",
2512
+ "sole_material" => "Sole Material",
2513
+ "compatible_with_vehicle_type" => "Vehicle Type Compatibility",
2514
+ "voltage" => "Voltage",
2515
+ "wattage" => "Wattage",
2516
+ "amperage_unit_of_measure" => "Amperage Unit Of Measure",
2517
+ "amperage" => "Amperage",
2518
+ "mfg_warranty_description_type" => "Manufacturer Warranty Type",
2519
+ "abpa_partslink_number1" => "Partslink Number1",
2520
+ "abpa_partslink_number2" => "Partslink Number2",
2521
+ "abpa_partslink_number3" => "Partslink Number3",
2522
+ "abpa_partslink_number4" => "Partslink Number4",
2523
+ );
2524
+ return $attributes;
2525
+ }
2526
+
2527
+ public function amazon_wirelessAttributes (){
2528
+ $attributes = array(
2529
+ "item_sku" => "Seller SKU",
2530
+ "item_name" => "Title",
2531
+ "manufacturer" => "Manufacturer",
2532
+ "item_type" => "Item Type",
2533
+ "external_product_id" => "Product ID",
2534
+ "external_product_id_type" => "Product ID Type",
2535
+ "part_number" => "Manufacturing Part Number",
2536
+ "product_description" => "Description",
2537
+ "brand_name" => "Brand",
2538
+ "update_delete" => "Update Delete",
2539
+ "product_site_launch_date" => "Launch Date",
2540
+ "standard_price" => "Standard Price",
2541
+ "sale_price" => "Sale Price",
2542
+ "sale_from_date" => "Sale Start Date",
2543
+ "sale_end_date" => "Sale End Date",
2544
+ "condition_type" => "Item Condition",
2545
+ "condition_note" => "Condition Note",
2546
+ "product_tax_code" => "Product Tax Code",
2547
+ "merchant_release_date" => "Release Date",
2548
+ "map_price" => "Minimum Advertised Price",
2549
+ "list_price" => "Manufacturer's Suggested Retail Price",
2550
+ "quantity" => "Quantity",
2551
+ "fulfillment_latency" => "Fulfillment Latency",
2552
+ "restock_date" => "Restock Date",
2553
+ "max_aggregate_ship_quantity" => "Maximum Aggregate Ship Quantity",
2554
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2555
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2556
+ "is_discontinued_by_manufacturer" => "Is Discontinued By Manufacturer",
2557
+ "item_package_quantity" => "Package Quantity",
2558
+ "merchant_shipping_group_name" => "Shipping-Template",
2559
+ "item_weight" => "Item Weight",
2560
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2561
+ "item_length" => "Item Length",
2562
+ "item_height" => "Item Height",
2563
+ "item_width" => "Item Width",
2564
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
2565
+ "website_shipping_weight" => "Shipping Weight",
2566
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2567
+ "bullet_point1" => "Bullet Point1",
2568
+ "bullet_point2" => "Bullet Point2",
2569
+ "bullet_point3" => "Bullet Point3",
2570
+ "bullet_point4" => "Bullet Point4",
2571
+ "bullet_point5" => "Bullet Point5",
2572
+ "generic_keywords" => "Search Terms",
2573
+ "target_audience_keywords1" => "Target Audience1",
2574
+ "target_audience_keywords2" => "Target Audience2",
2575
+ "target_audience_keywords3" => "Target Audience3",
2576
+ "catalog_number" => "Catalog Number",
2577
+ "specific_uses_keywords" => "Intended Use",
2578
+ "thesaurus_subject_keywords1" => "Subject Matter1",
2579
+ "thesaurus_subject_keywords2" => "Subject Matter2",
2580
+ "thesaurus_subject_keywords3" => "Subject Matter3",
2581
+ "thesaurus_subject_keywords4" => "Subject Matter4",
2582
+ "thesaurus_subject_keywords5" => "Subject Matter5",
2583
+ "other_image_url1" => "Other Image URL1",
2584
+ "other_image_url2" => "Other Image URL2",
2585
+ "other_image_url3" => "Other Image URL3",
2586
+ "main_image_url" => "Main Image URL",
2587
+ "swatch_image_url" => "Swatch Image URL",
2588
+ "fulfillment_center_id" => "Fulfillment Center ID",
2589
+ "package_length" => "Package Length",
2590
+ "package_width" => "Package Width",
2591
+ "package_height" => "Package Height",
2592
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
2593
+ "package_weight" => "Package Weight",
2594
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2595
+ "parent_child" => "Parentage",
2596
+ "parent_sku" => "Parent SKU",
2597
+ "relationship_type" => "Relationship Type",
2598
+ "variation_theme" => "Variation Theme",
2599
+ "legal_disclaimer_description" => "Legal Disclaimer",
2600
+ "prop_65" => "Prop 65",
2601
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2602
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2603
+ "thesaurus_attribute_keywords" => "Other Attributes",
2604
+ "color_name" => "Color",
2605
+ "color_map" => "Color Map",
2606
+ "fit_type" => "Headphone Fit",
2607
+ "special_features" => "Additional Features",
2608
+ "compatible_phone_models1" => "Compatible Phone Models1",
2609
+ "compatible_phone_models2" => "Compatible Phone Models2",
2610
+ "compatible_phone_models3" => "Compatible Phone Models3",
2611
+ "compatible_phone_models4" => "Compatible Phone Models4",
2612
+ "compatible_phone_models5" => "Compatible Phone Models5",
2613
+ "subject_keywords1" => "Subject Keywords1",
2614
+ "subject_keywords2" => "Subject Keywords2",
2615
+ "subject_keywords3" => "Subject Keywords3",
2616
+ "subject_keywords4" => "Subject Keywords4",
2617
+ "subject_keywords5" => "Subject Keywords5",
2618
+ );
2619
+ return $attributes;
2620
+ }
2621
+ public function amazon_babyAttributes (){
2622
+ $attributes = array(
2623
+ "item_sku" => "Seller SKU",
2624
+ "item_name" => "Title",
2625
+ "external_product_id" => "Product ID",
2626
+ "external_product_id_type" => "Product ID Type",
2627
+ "feed_product_type" => "Product Type",
2628
+ "item_type" => "Item Type Keyword",
2629
+ "brand_name" => "Brand",
2630
+ "model" => "Model Number",
2631
+ "manufacturer" => "Manufacturer",
2632
+ "part_number" => "Part Number",
2633
+ "product_description" => "Description",
2634
+ "update_delete" => "Update Delete",
2635
+ "quantity" => "Quantity",
2636
+ "list_price" => "Manufacturer's Suggested Retail Price",
2637
+ "map_price" => "Minimum Advertised Price",
2638
+ "standard_price" => "Standard Price",
2639
+ "condition_type" => "Item Condition",
2640
+ "condition_note" => "Offer Condition Note",
2641
+ "product_site_launch_date" => "Launch Date",
2642
+ "fulfillment_latency" => "Fulfillment Latency",
2643
+ "merchant_release_date" => "Release Date",
2644
+ "restock_date" => "Restock Date",
2645
+ "sale_price" => "Sale Price",
2646
+ "sale_from_date" => "Sale Start Date",
2647
+ "sale_end_date" => "Sale End Date",
2648
+ "number_of_items" => "Number of Items",
2649
+ "item_package_quantity" => "Item Package Quantity",
2650
+ "offering_end_date" => "Stop Selling Date",
2651
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
2652
+ "product_tax_code" => "Product Tax Code",
2653
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2654
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2655
+ "missing_keyset_reason" => "Registered Parameter",
2656
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2657
+ "merchant_shipping_group_name" => "Shipping-Template",
2658
+ "website_shipping_weight" => "shipping-weight",
2659
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2660
+ "item_length" => "Item Length",
2661
+ "item_height" => "Item Height",
2662
+ "item_width" => "item Width",
2663
+ "item_weight" => "Item Weight",
2664
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2665
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
2666
+ "item_display_weight" => "Display Weight",
2667
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
2668
+ "item_display_volume" => "Display Volume",
2669
+ "item_display_volume_unit_of_measure" => "Item Display Volume Unit Of Measure",
2670
+ "item_display_length" => "Display Length",
2671
+ "item_display_length_unit_of_measure" => "Item Display Length Unit Of Measure",
2672
+ "bullet_point1" => "Bullet Point1",
2673
+ "bullet_point2" => "Bullet Point2",
2674
+ "bullet_point3" => "Bullet Point3",
2675
+ "bullet_point4" => "Bullet Point4",
2676
+ "bullet_point5" => "Bullet Point5",
2677
+ "recommended_browse_nodes" => "Recommended Browse Nodes",
2678
+ "generic_keywords" => "Search Terms",
2679
+ "specific_uses_keywords" => "Intended Use",
2680
+ "target_audience_keywords" => "Target Audience",
2681
+ "catalog_number" => "Merchant Catalog Number",
2682
+ "thesaurus_subject_keywords" => "Subject Matter",
2683
+ "main_image_url" => "Main Image URL",
2684
+ "swatch_image_url" => "Swatch Image URL",
2685
+ "other_image_url1" => "Other Image URL1",
2686
+ "other_image_url2" => "Other Image URL2",
2687
+ "other_image_url3" => "Other Image URL3",
2688
+ "fulfillment_center_id" => "Fulfillment Center ID",
2689
+ "package_height" => "Package Height",
2690
+ "package_width" => "Package Width",
2691
+ "package_length" => "Package Length",
2692
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
2693
+ "package_weight" => "Package Weight",
2694
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2695
+ "parent_child" => "Parentage",
2696
+ "relationship_type" => "Relationship Type",
2697
+ "parent_sku" => "Parent SKU",
2698
+ "variation_theme" => "Variation Theme",
2699
+ "legal_disclaimer_description" => "Legal Disclaimer",
2700
+ "prop_65" => "Consumer Notice",
2701
+ "safety_warning" => "Safety Warning",
2702
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2703
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2704
+ "country_of_origin" => "Country of Origin",
2705
+ "color_name" => "Color",
2706
+ "color_map" => "Color Map",
2707
+ "size_name" => "Size",
2708
+ "size_map" => "Size Map",
2709
+ "specific_uses_for_product" => "Specific Uses For Product",
2710
+ "mfg_minimum" => "Minimum Manufacturer Age Recommended",
2711
+ "mfg_minimum_unit_of_measure" => "Mfg Minimum Unit Of Measure",
2712
+ "mfg_maximum" => "Maximum Manufacturer Age Recommended",
2713
+ "mfg_maximum_unit_of_measure" => "Mfg Maximum Unit Of Measure",
2714
+ "minimum_weight_recommendation" => "Minimum Weight Recommended",
2715
+ "minimum_weight_recommendation_unit_of_measure" => "Minimum Weight Recommendation Unit Of Measure",
2716
+ "maximum_weight_recommendation" => "Maximum Manufacturer Weight Recommended",
2717
+ "maximum_weight_recommendation_unit_of_measure" => "Maximum Weight Recommendation Unit Of Measure",
2718
+ "material_type" => "Material Type",
2719
+ "material_composition" => "Material Composition",
2720
+ "fabric_type" => "Fabric Type",
2721
+ "import_designation" => "Import Designation",
2722
+ "country_as_labeled" => "Country as Labeled",
2723
+ "fur_description" => "Fur Description",
2724
+ "care_instructions" => "Care Instructions",
2725
+ "assembly_instructions" => "Assembly Instructions",
2726
+ "target_gender" => "Target Gender",
2727
+ "special_features" => "Special Features",
2728
+ "lifestyle" => "Occasion Lifestyle",
2729
+ "material_type_free" => "Material Type FREE",
2730
+ "unit_count_type" => "Unit Count Unit of Measure",
2731
+ "style_name" => "Style",
2732
+ "battery_type" => "BatteryType",
2733
+ "number_of_batteries" => "Number of Batteries Required",
2734
+ "battery_average_life" => "Battery Average Life",
2735
+ "battery_average_life_unit_of_measure" => "Battery Average Life Unit Of Measure",
2736
+ "lithium_battery_weight" => "Lithium Battery Weight",
2737
+ "thesaurus_attribute_keywords" => "Other Attributes",
2738
+ );
2739
+ return $attributes;
2740
+ }
2741
+ public function amazon_healthAttributes(){
2742
  $attributes=array(
2743
+ "item_sku" => "Seller SKU",
2744
+ "item_name" => "Product Name",
2745
+ "external_product_id" => "Product ID",
2746
+ "external_product_id_type" => "Product ID Type",
2747
+ "feed_product_type" => "Product Type",
2748
+ "brand_name" => "Brand Name",
2749
+ "manufacturer" => "Manufacturer",
2750
+ "part_number" => "Manufacturer Part Number",
2751
+ "product_description" => "Product Description",
2752
+ "item_type" => "Item Type Keyword",
2753
+ "update_delete" => "Update Delete",
2754
+ "list_price" => "Manufacturer's Suggested Retail Price",
2755
+ "standard_price" => "Standard Price",
2756
+ "quantity" => "Quantity",
2757
+ "product_site_launch_date" => "Launch Date",
2758
+ "merchant_release_date" => "Release Date",
2759
+ "restock_date" => "Restock Date",
2760
+ "fulfillment_latency" => "Fulfillment Latency",
2761
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
2762
+ "sale_price" => "Sale Price",
2763
+ "sale_from_date" => "Sale Start Date",
2764
+ "sale_end_date" => "Sale End Date",
2765
+ "item_package_quantity" => "Package Quantity",
2766
+ "number_of_items" => "Number of Items",
2767
+ "product_tax_code" => "Product Tax Code",
2768
+ "max_order_quantity" => "Max Order Quantity",
2769
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2770
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2771
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2772
+ "merchant_shipping_group_name" => "Shipping-Template",
2773
+ "item_weight" => "Item Weight",
2774
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2775
+ "item_length" => "Item Length",
2776
+ "item_width" => "Item Width",
2777
+ "item_height" => "Item Height",
2778
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
2779
+ "website_shipping_weight" => "Shipping Weight",
2780
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2781
+ "bullet_point1" => "Key Product Features1",
2782
+ "bullet_point2" => "Key Product Features2",
2783
+ "bullet_point3" => "Key Product Features3",
2784
+ "bullet_point4" => "Key Product Features4",
2785
+ "bullet_point5" => "Key Product Features5",
2786
+ "catalog_number" => "Catalog Number",
2787
+ "generic_keywords" => "Search Terms",
2788
+ "specific_uses_keywords" => "Intended Use",
2789
+ "thesaurus_subject_keywords" => "Subject Matter",
2790
+ "target_audience_keywords" => "Target Audience",
2791
+ "main_image_url" => "Main Image URL",
2792
+ "swatch_image_url" => "Swatch Image URL",
2793
+ "other_image_url1" => "Other Image URL1",
2794
+ "other_image_url2" => "Other Image URL2",
2795
+ "other_image_url3" => "Other Image URL3",
2796
+ "fulfillment_center_id" => "Fulfillment Center ID",
2797
+ "package_length" => "Package Length",
2798
+ "package_width" => "Package Width",
2799
+ "package_height" => "Package Height",
2800
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
2801
+ "package_weight" => "Package Weight",
2802
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2803
+ "parent_sku" => "Parent SKU",
2804
+ "parent_child" => "Parentage",
2805
+ "relationship_type" => "Relationship Type",
2806
+ "variation_theme" => "Variation Theme",
2807
+ "safety_warning" => "Safety Warning",
2808
+ "legal_disclaimer_description" => "Legal Disclaimer",
2809
+ "prop_65" => "Consumer Notice",
2810
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2811
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
2812
+ "thesaurus_attribute_keywords" => "Other Attributes",
2813
+ "unit_count_type" => "Unit Count Type",
2814
+ "unit_count" => "Unit Count",
2815
+ "size_name" => "Size",
2816
+ "color_name" => "Color",
2817
+ "scent_name" => "Scent Name",
2818
+ "flavor_name" => "Flavor",
2819
+ "skin_type" => "Skin Type",
2820
+ "material_type" => "Material Type",
2821
+ "hair_type" => "Hair Type",
2822
+ "target_gender" => "Target Gender",
2823
+ "item_form" => "Item Form",
2824
+ "ingredients" => "Ingredients",
2825
+ "indications" => "Indications",
2826
+ "directions" => "Directions",
2827
+ "specialty" => "Specialty",
2828
+ "battery_type" => "Battery Type",
2829
+ "number_of_batteries" => "Number of Batteries Required",
2830
+ "lithium_battery_weight" => "Lithium Battery Weight",
2831
+ "missing_keyset_reason" => "Registered Parameter",
2832
+ "style_name" => "Style Name",
2833
+ "model_name" => "Model Name",
2834
+ "size_map" => "Size Map",
2835
+ "color_map" => "Colour Map",
2836
+ "lithium_battery_weight_unit_of_measure" => "Lithium Battery Weight Unit Of Measure",
2837
+ "maximum_weight_recommendation" => "Weight Supported",
2838
+ "weight_recommendation_unit_of_measure" => "Weight Recommendation Unit of Measure",
2839
+ "power_source_type" => "Power Source",
2840
+ "is_adult_product" => "Adult Product",
2841
+ "minimum_weight_recommendation" => "Minimum Weight Recommendation",
2842
+ );
2843
+ return $attributes;
2844
+ }
2845
+ public function amazon_foodandbeveragesAttributes(){
2846
+ $attributes=array(
2847
+ "item_sku" => "Seller SKU",
2848
+ "external_product_id" => "Product ID",
2849
+ "external_product_id_type" => "Product ID Type",
2850
+ "item_name" => "Product Name",
2851
+ "brand_name" => "Brand Name",
2852
+ "manufacturer" => "Manufacturer",
2853
+ "product_description" => "Product Description",
2854
+ "feed_product_type" => "Product Type",
2855
+ "item_type" => "Item Type Keyword",
2856
+ "update_delete" => "Update Delete",
2857
+ "item_package_quantity" => "Package Quantity",
2858
+ "standard_price" => "Standard Price",
2859
+ "list_price" => "Manufacturer's Suggested Retail Price",
2860
+ "quantity" => "Quantity",
2861
+ "sale_price" => "Sale Price",
2862
+ "sale_from_date" => "Sale Start Date",
2863
+ "sale_end_date" => "Sale End Date",
2864
+ "number_of_items" => "Number of Items",
2865
+ "product_tax_code" => "Product Tax Code",
2866
+ "product_site_launch_date" => "Launch Date",
2867
+ "merchant_release_date" => "Release Date",
2868
+ "fulfillment_latency" => "Production Time",
2869
+ "restock_date" => "Restock Date",
2870
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
2871
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2872
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2873
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2874
+ "merchant_shipping_group_name" => "Shipping-Template",
2875
+ "website_shipping_weight" => "Shipping Weight",
2876
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2877
+ "item_length" => "Item Length",
2878
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
2879
+ "item_width" => "Item Width",
2880
+ "item_height" => "Item Height",
2881
+ "item_weight" => "Item Weight",
2882
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2883
+ "bullet_point1" => "Key Product Features1",
2884
+ "bullet_point2" => "Key Product Features2",
2885
+ "bullet_point3" => "Key Product Features3",
2886
+ "bullet_point4" => "Key Product Features4",
2887
+ "bullet_point5" => "Key Product Features5",
2888
+ "specific_uses_keywords1" => "Intended Use1",
2889
+ "specific_uses_keywords2" => "Intended Use2",
2890
+ "specific_uses_keywords3" => "Intended Use3",
2891
+ "specific_uses_keywords4" => "Intended Use4",
2892
+ "specific_uses_keywords5" => "Intended Use5",
2893
+ "generic_keywords" => "Search Terms",
2894
+ "catalog_number" => "Catalog Number",
2895
+ "main_image_url" => "Main Image URL",
2896
+ "other_image_url1" => "Other Image URL1",
2897
+ "other_image_url2" => "Other Image URL2",
2898
+ "other_image_url3" => "Other Image URL3",
2899
+ "fulfillment_center_id" => "Fulfillment Center ID",
2900
+ "package_height" => "Package Height",
2901
+ "package_width" => "Package Width",
2902
+ "package_length" => "Package Length",
2903
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
2904
+ "package_weight" => "Package Weight",
2905
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
2906
+ "parent_child" => "Parentage",
2907
+ "parent_sku" => "Parent SKU",
2908
+ "relationship_type" => "Relationship Type",
2909
+ "variation_theme" => "Variation Theme",
2910
+ "country_string" => "Country of declaration",
2911
+ "legal_disclaimer_description" => "Legal Disclaimer",
2912
+ "prop_65" => "Consumer Notice",
2913
+ "cpsia_cautionary_statement" => "Cpsia Warning",
2914
+ "thesaurus_attribute_keywords1" => "Other Attributes1",
2915
+ "thesaurus_attribute_keywords2" => "Other Attributes2",
2916
+ "thesaurus_attribute_keywords3" => "Other Attributes3",
2917
+ "thesaurus_attribute_keywords4" => "Other Attributes4",
2918
+ "thesaurus_attribute_keywords5" => "Other Attributes5",
2919
+ "size_name" => "Size",
2920
+ "flavor_name" => "Flavor",
2921
+ "cuisine" => "Cuisine",
2922
+ "directions" => "Directions",
2923
+ "unit_count" => "Unit Count",
2924
+ "unit_count_type" => "Unit Count Type",
2925
+ "style_name" => "Style Name",
2926
+ "each_unit_count" => "Each Unit Count",
2927
+ "product_expiration_type" => "Product Expiration Type",
2928
+ "fc_shelf_life" => "Shelf Life",
2929
+ "fc_shelf_life_pad_time" => "Shelf Life Pad Time",
2930
+ "fc_shelf_life_pad_time_2q" => "Shelf Life Pad Time 2",
2931
+ "hazmat_exception" => "Hazmat Exception",
2932
+ "hazmat_proper_shipping_name" => "Hazmat Proper Shipping Name",
2933
+ "hazmat_regulatory_packing_group" => "Hazmat Regulatory Packing Group",
2934
+ "hazmat_storage_regulatory_class" => "Hazmat Storage Regulatory Class",
2935
+ "hazmat_transportation_regulatory_class" => "Hazmat Transportation Regulatory Class",
2936
+ "hazmat_type" => "Hazmat Type",
2937
+ "hazmat_united_nations_regulatory_id" => "Hazmat United Nations Regulatory ID",
2938
+ "sales_restriction" => "Sales Restriction",
2939
+ "size_map" => "Size Map",
2940
+ "temperature_rating" => "Temperature Rating",
2941
+ "ingredients" => "Ingredients",
2942
+ "is_expiration_dated_product" => "Expiration Dated Product",
2943
+ "fc_storage_method" => "Raw Meat or Egg",
2944
+ );
2945
+ return $attributes;
2946
+ }
2947
+ public function amazon_homeAttributes(){
2948
+ $attributes=array(
2949
+ "item_sku" => "Seller SKU",
2950
+ "external_product_id" => "Product ID",
2951
+ "external_product_id_type" => "Product ID Type",
2952
+ "item_name" => "Product Name",
2953
+ "product_description" => "Product Description",
2954
+ "feed_product_type" => "Product Type",
2955
+ "brand_name" => "Brand Name",
2956
+ "manufacturer" => "Manufacturer",
2957
+ "part_number" => "Manufacturer Part Number",
2958
+ "item_type" => "Item Type Keyword",
2959
+ "update_delete" => "Update Delete",
2960
+ "model" => "model",
2961
+ "standard_price" => "Standard Price",
2962
+ "condition_type" => "Item Condition",
2963
+ "condition_note" => "Offer Condition Note",
2964
+ "quantity" => "Quantity",
2965
+ "list_price" => "Manufacturer's Suggested Retail Price",
2966
+ "map_price" => "Minimum Advertised Price",
2967
+ "product_site_launch_date" => "Launch Date",
2968
+ "merchant_release_date" => "Release Date",
2969
+ "restock_date" => "Restock Date",
2970
+ "fulfillment_latency" => "Fulfillment Latency",
2971
+ "product_tax_code" => "Product Tax Code",
2972
+ "sale_price" => "Sale Price",
2973
+ "sale_from_date" => "Sale Start Date",
2974
+ "sale_end_date" => "Sale End Date",
2975
+ "item_package_quantity" => "Package Quantity",
2976
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
2977
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
2978
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
2979
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
2980
+ "max_order_quantity" => "Max Order Quantity",
2981
+ "number_of_items" => "Number of Items",
2982
+ "offering_start_date" => "Offering Release Date",
2983
+ "merchant_shipping_group_name" => "Shipping-Template",
2984
+ "website_shipping_weight" => "Shipping Weight",
2985
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
2986
+ "item_display_length" => "Item Display Length",
2987
+ "item_display_width" => "Item Display Width",
2988
+ "item_display_height" => "Item Display Height",
2989
+ "display_dimensions_unit_of_measure" => "Display Dimensions Unit Of Measure",
2990
+ "item_display_weight" => "Item Display Weight",
2991
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
2992
+ "volume_capacity_name" => "Volume",
2993
+ "volume_capacity_name_unit_of_measure" => "Volume Capacity Name Unit Of Measure",
2994
+ "item_height" => "Item Height",
2995
+ "item_length" => "Item Length",
2996
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
2997
+ "item_weight" => "Item Weight",
2998
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
2999
+ "item_width" => "Item Width",
3000
+ "bullet_point1" => "Key Product Features1",
3001
+ "bullet_point2" => "Key Product Features2",
3002
+ "bullet_point3" => "Key Product Features3",
3003
+ "bullet_point4" => "Key Product Features4",
3004
+ "bullet_point5" => "Key Product Features5",
3005
+ "target_audience_base" => "Target Audience",
3006
+ "catalog_number" => "Catalog Number",
3007
+ "specific_uses_keywords1" => "Used For1 - Used For31",
3008
+ "specific_uses_keywords2" => "Used For1 - Used For32",
3009
+ "specific_uses_keywords3" => "Used For1 - Used For33",
3010
+ "specific_uses_keywords4" => "Used For1 - Used For34",
3011
+ "specific_uses_keywords5" => "Used For1 - Used For35",
3012
+ "target_audience_keywords1" => "Target Audience1",
3013
+ "target_audience_keywords2" => "Target Audience2",
3014
+ "target_audience_keywords3" => "Target Audience3",
3015
+ "thesaurus_subject_keywords1" => "Subject Matter1",
3016
+ "thesaurus_subject_keywords2" => "Subject Matter2",
3017
+ "thesaurus_subject_keywords3" => "Subject Matter3",
3018
+ "generic_keywords" => "Search Terms",
3019
+ "main_image_url" => "Main Image URL",
3020
+ "swatch_image_url" => "Swatch Image URL",
3021
+ "other_image_url1" => "Other Image URL1",
3022
+ "other_image_url2" => "Other Image URL2",
3023
+ "other_image_url3" => "Other Image URL3",
3024
+ "fulfillment_center_id" => "Fulfillment Center ID",
3025
+ "package_height" => "Package Height",
3026
+ "package_width" => "Package Width",
3027
+ "package_length" => "Package Length",
3028
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
3029
+ "package_weight" => "Package Weight",
3030
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
3031
+ "legal_compliance_certification_metadata" => "Please provide the Executive Number (EO) required for sale into California.",
3032
+ "legal_compliance_certification_expiration_date" => "Please provide the expiration date of the EO Number.",
3033
+ "parent_child" => "Parentage",
3034
+ "parent_sku" => "Parent SKU",
3035
+ "relationship_type" => "Relationship Type",
3036
+ "variation_theme" => "Variation Theme",
3037
+ "prop_65" => "Consumer Notice",
3038
+ "cpsia_cautionary_statement" => "Cpsia Warning",
3039
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
3040
+ "country_string" => "Country of Origin",
3041
+ "country_of_origin" => "Country of Publication",
3042
+ "legal_disclaimer_description" => "Legal Disclaimer",
3043
+ "safety_warning" => "Safety Warning",
3044
+ "lighting_facts_image_url" => "Lighting Facts Label",
3045
+ "energy_efficiency_image_url" => "Energy Guide Label",
3046
+ "fabric_type" => "Fabric Type",
3047
+ "import_designation" => "Import Designation",
3048
+ "warranty_description" => "Manufacturer Warranty Description",
3049
+ "thesaurus_attribute_keywords1" => "Other Attributes1",
3050
+ "thesaurus_attribute_keywords2" => "Other Attributes2",
3051
+ "thesaurus_attribute_keywords3" => "Other Attributes3",
3052
+ "thesaurus_attribute_keywords4" => "Other Attributes4",
3053
+ "country_as_labeled" => "Country as Labeled",
3054
+ "fur_description" => "Fur Description",
3055
+ "number_of_sets" => "Number of Sets",
3056
+ "occasion" => "Occasion",
3057
+ "thread_count" => "Thread Count",
3058
+ "number_of_pieces" => "Number of Pieces",
3059
+ "item_shape" => "Shape",
3060
+ "scent_name" => "Scent Name",
3061
+ "included_components" => "Included Components",
3062
+ "light_source_type" => "Light Source Type",
3063
+ "color_name" => "Color",
3064
+ "color_map" => "Color Map",
3065
+ "size_name" => "Size",
3066
+ "material_type" => "Material Type",
3067
+ "style_name" => "Style Name",
3068
+ "wattage" => "Wattage",
3069
+ "specific_uses_for_product" => "Specific Uses For Product",
3070
+ "special_features" => "Additional Features",
3071
+ "usda_hardiness_zone1" => "USDA Hardiness Zone1",
3072
+ "usda_hardiness_zone2" => "USDA Hardiness Zone2",
3073
+ "pattern_name" => "Pattern",
3074
+ "battery_type" => "Battery Type",
3075
+ "number_of_batteries" => "Number of Batteries Required",
3076
+ "lithium_battery_weight" => "Lithium Battery Weight",
3077
+ "specification_met" => "Specification Met",
3078
+ "mfg_minimum" => "Minimum Age Recommendation",
3079
+ "mfg_maximum" => "Maximum Age Recommendation",
3080
+ "material_composition" => "Material Composition",
3081
+ "fill_material_type" => "Fill Material Type",
3082
+ "lithium_battery_weight_unit_of_measure" => "Lithium Battery Weight Unit Of Measure",
3083
+ "wattage_unit_of_measure" => "Wattage Unit of Measure",
3084
+ "size_map" => "Size Map",
3085
+ "blade_edge_type" => "Blade Type",
3086
+ "blade_material_type" => "Blade Material Type",
3087
+ "theme" => "Theme",
3088
+ "power_source_type" => "Power Source",
3089
+ "voltage" => "Voltage",
3090
+ "engine_type" => "Engine Type",
3091
+ "hose_length" => "Hose Length",
3092
+ "hose_length_unit_of_measure" => "Hose Length Unit Of Measure",
3093
+ "paint_type" => "Paint Type",
3094
+ "ingredients" => "Ingredients",
3095
+ "age_range_description" => "Age Range Description",
3096
+ "flavor_name" => "Flavor",
3097
+ "external_testing_certification" => "External Testing Certification",
3098
  );
3099
+ return $attributes;
3100
+ }
3101
+ public function amazon_jewelryAttributes(){
3102
+ $attributes=array(
3103
+ "item_sku" => "Seller SKU",
3104
+ "item_name" => "Title",
3105
+ "manufacturer" => "Manufacturer",
3106
+ "model" => "Model Number",
3107
+ "feed_product_type" => "Product Type",
3108
+ "item_type" => "Item Type Keyword",
3109
+ "brand_name" => "Brand Name",
3110
+ "update_delete" => "Update Delete",
3111
+ "external_product_id" => "Product ID",
3112
+ "external_product_id_type" => "Product ID Type",
3113
+ "product_description" => "Product Description",
3114
+ "standard_price" => "Standard Price",
3115
+ "quantity" => "Quantity",
3116
+ "product_site_launch_date" => "Launch Date",
3117
+ "product_tax_code" => "Product Tax Code",
3118
+ "list_price" => "Manufacturer's Suggested Retail Price",
3119
+ "sale_price" => "Sale Price",
3120
+ "sale_from_date" => "Sale Start Date",
3121
+ "sale_end_date" => "Sale End Date",
3122
+ "merchant_release_date" => "Release Date",
3123
+ "item_package_quantity" => "Package Quantity",
3124
+ "fulfillment_latency" => "Production Time",
3125
+ "restock_date" => "Restock Date",
3126
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
3127
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
3128
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
3129
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
3130
+ "merchant_shipping_group_name" => "Shipping-Template",
3131
+ "website_shipping_weight" => "Shipping Weight",
3132
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
3133
+ "item_display_width" => "Width",
3134
+ "item_display_length" => "Item Display Length",
3135
+ "display_dimensions_unit_of_measure" => "Display Dimensions Unit Of Measure",
3136
+ "item_length" => "Item Length",
3137
+ "item_width" => "Item Width",
3138
+ "item_height" => "Item Height",
3139
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
3140
+ "bullet_point1" => "Key Product Features1",
3141
+ "bullet_point2" => "Key Product Features2",
3142
+ "bullet_point3" => "Key Product Features3",
3143
+ "bullet_point4" => "Key Product Features4",
3144
+ "bullet_point5" => "Key Product Features5",
3145
+ "target_audience_keywords1" => "Target Audience1",
3146
+ "target_audience_keywords2" => "Target Audience2",
3147
+ "target_audience_keywords3" => "Target Audience3",
3148
+ "catalog_number" => "Catalog Number",
3149
+ "specific_uses_keywords1" => "Intended Use1",
3150
+ "specific_uses_keywords2" => "Intended Use2",
3151
+ "specific_uses_keywords3" => "Intended Use3",
3152
+ "specific_uses_keywords4" => "Intended Use4",
3153
+ "specific_uses_keywords5" => "Intended Use5",
3154
+ "thesaurus_subject_keywords1" => "Subject Matter1",
3155
+ "thesaurus_subject_keywords2" => "Subject Matter2",
3156
+ "thesaurus_subject_keywords3" => "Subject Matter3",
3157
+ "thesaurus_subject_keywords4" => "Subject Matter4",
3158
+ "thesaurus_subject_keywords5" => "Subject Matter5",
3159
+ "generic_keywords" => "Search Terms",
3160
+ "main_image_url" => "Main Image URL",
3161
+ "swatch_image_url" => "Swatch Image URL",
3162
+ "other_image_url1" => "Other Image URL1",
3163
+ "other_image_url2" => "Other Image URL2",
3164
+ "other_image_url3" => "Other Image URL3",
3165
+ "fulfillment_center_id" => "Fulfillment Center ID",
3166
+ "package_width" => "Package Width",
3167
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
3168
+ "package_weight" => "Package Weight",
3169
+ "package_length" => "Package Length",
3170
+ "package_height" => "Package Height",
3171
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
3172
+ "parent_child" => "Parentage",
3173
+ "parent_sku" => "Parent SKU",
3174
+ "relationship_type" => "Relationship Type",
3175
+ "variation_theme" => "Variation Theme",
3176
+ "country_of_origin" => "Country of Publication",
3177
+ "prop_65" => "Consumer Notice",
3178
+ "cpsia_cautionary_statement1" => "Cpsia Warning1",
3179
+ "cpsia_cautionary_statement2" => "Cpsia Warning2",
3180
+ "cpsia_cautionary_statement3" => "Cpsia Warning3",
3181
+ "cpsia_cautionary_statement4" => "Cpsia Warning4",
3182
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
3183
+ "department_name" => "Gender",
3184
+ "thesaurus_attribute_keywords1" => "Other Attributes1",
3185
+ "thesaurus_attribute_keywords2" => "Other Attributes2",
3186
+ "thesaurus_attribute_keywords3" => "Other Attributes3",
3187
+ "thesaurus_attribute_keywords4" => "Other Attributes4",
3188
+ "thesaurus_attribute_keywords5" => "Other Attributes5",
3189
+ "total_metal_weight" => "Total Metal Weight",
3190
+ "total_metal_weight_unit_of_measure" => "Total Metal Weight Unit Of Measure",
3191
+ "total_diamond_weight" => "Total Diamond Weight",
3192
+ "total_diamond_weight_unit_of_measure" => "Total Diamond Weight Unit Of Measure",
3193
+ "total_gem_weight" => "Total Gem Weight",
3194
+ "total_gem_weight_unit_of_measure" => "Total Gem Weight Unit Of Measure",
3195
+ "material_type" => "Material Type",
3196
+ "metal_type" => "Metal Type",
3197
+ "metal_stamp" => "Metal Stamp",
3198
+ "setting_type" => "Setting Type",
3199
+ "number_of_stones" => "Number Of Stones",
3200
+ "clasp_type" => "Clasp Type",
3201
+ "chain_type" => "Chain Type",
3202
+ "ring_size" => "Ring Size",
3203
+ "ring_sizing_lower_range" => "Ring Sizing Lower Range",
3204
+ "ring_sizing_upper_range" => "Ring Sizing Upper Range",
3205
+ "back_finding" => "Back Finding",
3206
+ "gem_type1" => "Gem Type1",
3207
+ "gem_type2" => "Gem Type2",
3208
+ "gem_type3" => "Gem Type3",
3209
+ "stone_cut" => "Stone Cut",
3210
+ "stone_color1" => "Stone Color1",
3211
+ "stone_color2" => "Stone Color2",
3212
+ "stone_clarity1" => "Stone Clarity1",
3213
+ "stone_clarity2" => "Stone Clarity2",
3214
+ "stone_shape1" => "Stone Shape1",
3215
+ "stone_shape2" => "Stone Shape2",
3216
+ "stone_creation_method1" => "Stone Creation Method1",
3217
+ "stone_creation_method2" => "Stone Creation Method2",
3218
+ "stone_treatment_method1" => "Stone Treatment Method1",
3219
+ "stone_treatment_method2" => "Stone Treatment Method2",
3220
+ "stone_weight1" => "Stone Weight1",
3221
+ "stone_weight2" => "Stone Weight2",
3222
+ "certificate_type" => "Certificate Type",
3223
+ "pearl_type" => "Pearl Type",
3224
+ "pearl_minimum_color" => "Pearl Minimum Color",
3225
+ "pearl_lustre" => "Pearl Lustre",
3226
+ "pearl_shape" => "Pearl Shape",
3227
+ "pearl_uniformity" => "Pearl Uniformity",
3228
+ "pearl_surface_blemishes" => "Pearl Surface Blemishes",
3229
+ "pearl_stringing_method" => "Pearl Stringing Method",
3230
+ "size_per_pearl" => "Size Per Pearl",
3231
+ "number_of_pearls" => "Number Of Pearls",
3232
+ "style_name" => "Style",
3233
+ "color_name" => "Color",
3234
+ "color_map" => "Colour Map",
3235
+ );
3236
+ return $attributes;
3237
+ }
3238
+
3239
+ public function amazon_jewelry_fr_first_row(){
3240
+ $row=array("TemplateType=jewelry","Version=2017.0302","Les 3 lignes supérieures sont réservées à Amazon.com. Ne pas modifier ou supprimer les 3 lignes supérieures.","","","","","","","","Offre-Informations sur l'offre : ces attributs sont requis pour que votre article puisse être acheté par les clients sur le site.","","","","","","","","","","","","","Dimensions-Dimensions du produit : ces attributs spécifient la taille et le poids d'un produit.","","","","","","","Découverte d'article-Informations de découverte d'article : ces attributs ont un effet sur la manière dont les clients peuvent trouver votre produit sur le site à l'aide du navigateur ou de la fonction de recherche.","","","","","","","","","","Images-Informations d'image : voir l'onglet Instructions sur l'image pour plus de détails.","","","","","","","","","","Expédition-Ces colonnes sont destinées à toute information concernant l’expédition de commandes traitées par Expédié par Amazon ou par le vendeur.","","","","","","","","","Variation-Informations de variation : diffusez ces attributs si votre produit est disponible en différents modèles (par exemple, couleur ou puissance en watts).","","","","Dégroupé - Ces attributs créer des listes de produits riches pour vos acheteurs.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",);
3241
+ return $row;
3242
+ }
3243
+ public function amazon_jewelry_frAttributes(){
3244
+ $attributes=array(
3245
+ "item_sku"=>"SKU du vendeur [item_sku]",
3246
+ "item_name"=>"Titre [item_name]",
3247
+ "manufacturer"=>"Fabricant [manufacturer]",
3248
+ "feed_product_type"=>"Type de produit [feed_product_type]",
3249
+ "brand_name"=>"Marque [brand_name]",
3250
+ "external_product_id"=>"ID du produit [external_product_id]",
3251
+ "external_product_id_type"=>"Type d'ID du produit [external_product_id_type]",
3252
+ "product_description"=>"Description du produit [product_description]",
3253
+ "update_delete"=>"Mettre à jour Supprimer [update_delete]",
3254
+ "part_number"=>"Numéro du modèle [part_number]",
3255
+ "standard_price"=>"Prix ​​standard [standard_price]",
3256
+ "quantity"=>"quantité [quantity]",
3257
+ "currency"=>"Devise [currency]",
3258
+ "sale_price"=>"Prix réduit [sale_price]",
3259
+ "sale_from_date"=>"Date de début de la remise [sale_from_date]",
3260
+ "sale_end_date"=>"Date de fin de la remise [sale_end_date]",
3261
+ "fulfillment_latency"=>"Délai de traitement [fulfillment_latency]",
3262
+ "restock_date"=>"Date de remise en stock [restock_date]",
3263
+ "offering_can_be_gift_messaged"=>"Message cadeau disponible [offering_can_be_gift_messaged]",
3264
+ "offering_can_be_giftwrapped"=>"Emballage cadeau disponible [offering_can_be_giftwrapped]",
3265
+ "missing_keyset_reason"=>"Modification de l'identifiant produit [missing_keyset_reason]",
3266
+ "merchant_shipping_group_name"=>"Régions d’expéditions du vendeur [merchant_shipping_group_name]",
3267
+ "product_tax_code"=>"Code d'imposition du produit [product_tax_code]",
3268
+ "website_shipping_weight"=>"Poids de l'envoi [website_shipping_weight]",
3269
+ "website_shipping_weight_unit_of_measure"=>"Unité de mesure du poids de l’expédition du site internet [website_shipping_weight_unit_of_measure]",
3270
+ "item_display_diameter"=>"Diamètre du produit [item_display_diameter]",
3271
+ "item_display_length"=>"Longueur du produit [item_display_length]",
3272
+ "item_display_height"=>"Hauteur [item_display_height]",
3273
+ "item_display_width"=>"Largeur [item_display_width]",
3274
+ "display_dimensions_unit_of_measure"=>"Unité de mesure des dimensions de l’affichage [display_dimensions_unit_of_measure]",
3275
+ "target_audience_base1"=>"Cible1 [target_audience_base1]",
3276
+ "target_audience_base2"=>"Cible2 [target_audience_base2]",
3277
+ "recommended_browse_nodes"=>"Catégorie de produits (Code arborescence recommandé) [recommended_browse_nodes]",
3278
+ "bullet_point1"=>"Caractéristiques clés du produit1 [bullet_point1]",
3279
+ "bullet_point2"=>"Caractéristiques clés du produit2 [bullet_point2]",
3280
+ "bullet_point3"=>"Caractéristiques clés du produit3 [bullet_point3]",
3281
+ "generic_keywords"=>"Termes de recherche [generic_keywords]",
3282
+ "platinum_keywords1"=>"Mots-clés platinum1 [platinum_keywords1]",
3283
+ "platinum_keywords2"=>"Mots-clés platinum2 [platinum_keywords2]",
3284
+ "platinum_keywords3"=>"Mots-clés platinum3 [platinum_keywords3]",
3285
+ "main_image_url"=>"URL de l'image principale [main_image_url]",
3286
+ "swatch_image_url"=>"URL d'une image swap [swatch_image_url]",
3287
+ "other_image_url1"=>"URL d'une autre image1 [other_image_url1]",
3288
+ "other_image_url2"=>"URL d'une autre image2 [other_image_url2]",
3289
+ "other_image_url3"=>"URL d'une autre image3 [other_image_url3]",
3290
+ "other_image_url4"=>"URL d'une autre image4 [other_image_url4]",
3291
+ "other_image_url5"=>"URL d'une autre image5 [other_image_url5]",
3292
+ "other_image_url6"=>"URL d'une autre image6 [other_image_url6]",
3293
+ "other_image_url7"=>"URL d'une autre image7 [other_image_url7]",
3294
+ "other_image_url8"=>"URL d'une autre image8 [other_image_url8]",
3295
+ "fulfillment_center_id"=>"ID du centre de distribution [fulfillment_center_id]",
3296
+ "package_height"=>"Hauteur paquet [package_height]",
3297
+ "package_width_unit_of_measure"=>"Unité de mesure de la largeur du paquet [package_width_unit_of_measure]",
3298
+ "package_width"=>"largeur du colis [package_width]",
3299
+ "package_length"=>"Longueur paquet [package_length]",
3300
+ "package_length_unit_of_measure"=>"Unité de mesure longueur [package_length_unit_of_measure]",
3301
+ "package_weight"=>"Poids du Colis [package_weight]",
3302
+ "package_weight_unit_of_measure"=>"Unite de mesure Poids [package_weight_unit_of_measure]",
3303
+ "package_height_unit_of_measure"=>"Unité de mesure du poids du colis. [package_height_unit_of_measure]",
3304
+ "parent_child"=>"Parenté [parent_child]",
3305
+ "parent_sku"=>"SKU Parent [parent_sku]",
3306
+ "relationship_type"=>"Type de relation [relationship_type]",
3307
+ "variation_theme"=>"Thème de la variation [variation_theme]",
3308
+ "model"=>"Numéro de modèle [model]",
3309
+ "total_metal_weight"=>"Poids total du métal [total_metal_weight]",
3310
+ "total_metal_weight_unit_of_measure"=>"Unité de mesure du poids total du métal [total_metal_weight_unit_of_measure]",
3311
+ "total_diamond_weight"=>"Poids total du diamant [total_diamond_weight]",
3312
+ "total_gem_weight"=>"poids total de la gemme [total_gem_weight]",
3313
+ "material_type"=>"Type de matériau [material_type]",
3314
+ "metal_type"=>"Type de métal [metal_type]",
3315
+ "metal_stamp"=>"Cachet (Poinçon) métal [metal_stamp]",
3316
+ "setting_type"=>"type de sertissage [setting_type]",
3317
+ "number_of_stones"=>"Nombre de pierres [number_of_stones]",
3318
+ "clasp_type"=>"type de fermoir [clasp_type]",
3319
+ "chain_type"=>"type de chaine [chain_type]",
3320
+ "back_finding"=>"Type de fermeture de la boucle d'oreilles [back_finding]",
3321
+ "certificate_type"=>"type de certificat [certificate_type]",
3322
+ "warranty_type"=>"Type de garantie [warranty_type]",
3323
+ "warranty_description"=>"Description garantie [warranty_description]",
3324
+ "gem_type1"=>"type de gemme1 [gem_type1]",
3325
+ "gem_type2"=>"type de gemme2 [gem_type2]",
3326
+ "gem_type3"=>"type de gemme3 [gem_type3]",
3327
+ "stone_cut1"=>"Coupe (taille) de la pierre1 [stone_cut1]",
3328
+ "stone_cut2"=>"Coupe (taille) de la pierre2 [stone_cut2]",
3329
+ "stone_cut3"=>"Coupe (taille) de la pierre3 [stone_cut3]",
3330
+ "stone_color1"=>"Couleur de la pierre1 [stone_color1]",
3331
+ "stone_color2"=>"Couleur de la pierre2 [stone_color2]",
3332
+ "stone_color3"=>"Couleur de la pierre3 [stone_color3]",
3333
+ "stone_clarity1"=>"Clarté de la pierre1 [stone_clarity1]",
3334
+ "stone_clarity2"=>"Clarté de la pierre2 [stone_clarity2]",
3335
+ "stone_clarity3"=>"Clarté de la pierre3 [stone_clarity3]",
3336
+ "stone_shape1"=>"Forme de la pierre1 [stone_shape1]",
3337
+ "stone_shape2"=>"Forme de la pierre2 [stone_shape2]",
3338
+ "stone_shape3"=>"Forme de la pierre3 [stone_shape3]",
3339
+ "stone_weight1"=>"Poids de la pierre1 [stone_weight1]",
3340
+ "stone_weight2"=>"Poids de la pierre2 [stone_weight2]",
3341
+ "stone_weight3"=>"Poids de la pierre3 [stone_weight3]",
3342
+ "is_lab_created1"=>"a été créé dans un laboratoire1 [is_lab_created1]",
3343
+ "is_lab_created2"=>"a été créé dans un laboratoire2 [is_lab_created2]",
3344
+ "is_lab_created3"=>"a été créé dans un laboratoire3 [is_lab_created3]",
3345
+ "stone_symmetry1"=>"Symétrie de la pierre1 [stone_symmetry1]",
3346
+ "stone_symmetry2"=>"Symétrie de la pierre2 [stone_symmetry2]",
3347
+ "stone_symmetry3"=>"Symétrie de la pierre3 [stone_symmetry3]",
3348
+ "stone_polish1"=>"Brillance/Polissage de la pierre1 [stone_polish1]",
3349
+ "stone_polish2"=>"Brillance/Polissage de la pierre2 [stone_polish2]",
3350
+ "stone_polish3"=>"Brillance/Polissage de la pierre3 [stone_polish3]",
3351
+ "pearl_type"=>"type de perle [pearl_type]",
3352
+ "pearl_minimum_color"=>"Couleur de la perle [pearl_minimum_color]",
3353
+ "pearl_lustre"=>"Lustre de la perle [pearl_lustre]",
3354
+ "pearl_shape"=>"Forme de la perle [pearl_shape]",
3355
+ "pearl_uniformity"=>"Uniformité de la perle [pearl_uniformity]",
3356
+ "pearl_surface_blemishes"=>"Défauts superficiels de la perle [pearl_surface_blemishes]",
3357
+ "pearl_stringing_method"=>"Technique d'enfilage de perles [pearl_stringing_method]",
3358
+ "size_per_pearl"=>"taille par perle [size_per_pearl]",
3359
+ "number_of_pearls"=>"Nombre de perles [number_of_pearls]",
3360
+ "theme"=>"Thème [theme]",
3361
+ "style_name"=>"Style [style_name]",
3362
+ "model_name"=>"Model Name [model_name]",
3363
+ "item_shape"=>"Type de produit [item_shape]",
3364
+ "color_name"=>"Color [color_name]",
3365
+ "color_map"=>"couleur standardiséee [color_map]",
3366
+ "ring_size"=>"Taille de la Bague [ring_size]",
3367
+ "is_resizable"=>"est ajustable [is_resizable]",
3368
+ "ring_sizing_lower_range"=>"taille maximale en cas d'ajustement [ring_sizing_lower_range]",
3369
+ "ring_sizing_upper_range"=>"taille minimale en cas d'ajustement [ring_sizing_upper_range]",
3370
+ "occasion_type1"=>"Occasion1 [occasion_type1]",
3371
+ "occasion_type2"=>"Occasion2 [occasion_type2]",
3372
+ "occasion_type3"=>"Occasion3 [occasion_type3]",
3373
+ "occasion_type4"=>"Occasion4 [occasion_type4]",
3374
+ "occasion_type5"=>"Occasion5 [occasion_type5]",
3375
+ "occasion_type6"=>"Occasion6 [occasion_type6]",
3376
+ "occasion_type7"=>"Occasion7 [occasion_type7]",
3377
+ "occasion_type8"=>"Occasion8 [occasion_type8]",
3378
+ "occasion_type9"=>"Occasion9 [occasion_type9]",
3379
+ "occasion_type10"=>"Occasion10 [occasion_type10]",
3380
+ "occasion_type11"=>"Occasion11 [occasion_type11]",
3381
+ "occasion_type12"=>"Occasion12 [occasion_type12]",
3382
+ "occasion_type13"=>"Occasion13 [occasion_type13]",
3383
+ "occasion_type14"=>"Occasion14 [occasion_type14]",
3384
+ "occasion_type15"=>"Occasion15 [occasion_type15]",
3385
+ "occasion_type16"=>"Occasion16 [occasion_type16]",
3386
+ "occasion_type17"=>"Occasion17 [occasion_type17]",
3387
+ "occasion_type18"=>"Occasion18 [occasion_type18]",
3388
+ "occasion_type19"=>"Occasion19 [occasion_type19]",
3389
+ "occasion_type20"=>"Occasion20 [occasion_type20]",
3390
+ "occasion_type21"=>"Occasion21 [occasion_type21]",
3391
+ "occasion_type22"=>"Occasion22 [occasion_type22]",
3392
+ "occasion_type23"=>"Occasion23 [occasion_type23]",
3393
+ "occasion_type24"=>"Occasion24 [occasion_type24]",
3394
+ "occasion_type25"=>"Occasion25 [occasion_type25]",
3395
+ "occasion_type26"=>"Occasion26 [occasion_type26]",
3396
+ "occasion_type27"=>"Occasion27 [occasion_type27]",
3397
+ );
3398
+ return $attributes;
3399
+ }
3400
+ public function amazon_lightingAttributes(){
3401
+ $attributes=array(
3402
+ "item_sku" => "Seller SKU",
3403
+ "external_product_id" => "Product ID",
3404
+ "external_product_id_type" => "Product ID Type",
3405
+ "item_name" => "Product Name",
3406
+ "brand_name" => "Brand Name",
3407
+ "manufacturer" => "Manufacturer",
3408
+ "part_number" => "Manufacturer Part Number",
3409
+ "product_description" => "Product Description",
3410
+ "feed_product_type" => "Product Type",
3411
+ "item_type" => "Item Type Keyword",
3412
+ "update_delete" => "Update Delete",
3413
+ "standard_price" => "Standard Price",
3414
+ "condition_type" => "Item Condition",
3415
+ "condition_note" => "Offer Condition Note",
3416
+ "quantity" => "Quantity",
3417
+ "list_price" => "Manufacturer's Suggested Retail Price",
3418
+ "map_price" => "Minimum Advertised Price",
3419
+ "product_site_launch_date" => "Launch Date",
3420
+ "merchant_release_date" => "Release Date",
3421
+ "fulfillment_latency" => "Production Time",
3422
+ "restock_date" => "Restock Date",
3423
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
3424
+ "product_tax_code" => "Product Tax Code",
3425
+ "sale_price" => "Sale Price",
3426
+ "sale_from_date" => "Sale Start Date",
3427
+ "sale_end_date" => "Sale End Date",
3428
+ "item_package_quantity" => "Package Quantity",
3429
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
3430
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
3431
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
3432
+ "merchant_shipping_group_name" => "Shipping-Template",
3433
+ "item_height" => "Item Height",
3434
+ "item_length" => "Item Length",
3435
+ "item_width" => "Item Width",
3436
+ "item_dimensions_unit_of_measure" => "Item Dimensions Unit Of Measure",
3437
+ "item_weight" => "Item Weight",
3438
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
3439
+ "website_shipping_weight" => "Shipping Weight",
3440
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
3441
+ "item_display_weight" => "Item Display Weight",
3442
+ "item_display_weight_unit_of_measure" => "Item Display Weight Unit Of Measure",
3443
+ "item_display_height" => "Item Display Height",
3444
+ "item_display_height_unit_of_measure" => "Item Display Height Unit Of Measure",
3445
+ "item_display_length" => "Item Display Length",
3446
+ "item_display_length_unit_of_measure" => "Item Display Length Unit Of Measure",
3447
+ "item_display_width" => "Item Display Width",
3448
+ "item_display_width_unit_of_measure" => "Item Display Width Unit Of Measure",
3449
+ "catalog_number" => "Catalog Number",
3450
+ "bullet_point1" => "Key Product Features1",
3451
+ "bullet_point2" => "Key Product Features2",
3452
+ "bullet_point3" => "Key Product Features3",
3453
+ "bullet_point4" => "Key Product Features4",
3454
+ "bullet_point5" => "Key Product Features5",
3455
+ "specific_uses_keywords" => "Intended Use",
3456
+ "target_audience_keywords" => "Target Audience",
3457
+ "thesaurus_subject_keywords" => "Subject Matter",
3458
+ "generic_keywords" => "Search Terms",
3459
+ "main_image_url" => "Main Image URL",
3460
+ "swatch_image_url" => "Swatch Image URL",
3461
+ "other_image_url1" => "Other Image URL1",
3462
+ "other_image_url2" => "Other Image URL2",
3463
+ "other_image_url3" => "Other Image URL3",
3464
+ "fulfillment_center_id" => "Fulfillment Center ID",
3465
+ "package_height" => "Package Height",
3466
+ "package_width" => "Package Width",
3467
+ "package_length" => "Package Length",
3468
+ "package_dimensions_unit_of_measure" => "Package Dimensions Unit Of Measure",
3469
+ "package_weight" => "Package Weight",
3470
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
3471
+ "parent_child" => "Parentage",
3472
+ "parent_sku" => "Parent SKU",
3473
+ "relationship_type" => "Relationship Type",
3474
+ "variation_theme" => "Variation Theme",
3475
+ "prop_65" => "Consumer Notice",
3476
+ "cpsia_cautionary_statement" => "Cpsia Warning",
3477
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
3478
+ "country_of_origin" => "Country of Origin",
3479
+ "lighting_facts_image_url" => "Lighting Facts Label",
3480
+ "warranty_type" => "Warranty Type",
3481
+ "thesaurus_attribute_keywords" => "Other AttributesOther Attributes",
3482
+ "specification_met" => "Certification",
3483
+ "color_name" => "Color",
3484
+ "color_map" => "Color Map",
3485
+ "specific_uses_for_product" => "Specific Uses",
3486
+ "material_type" => "Material Type",
3487
+ "style_name" => "Style Name",
3488
+ "collection_name" => "Collection",
3489
+ "included_components" => "Included Component",
3490
+ "lighting_method" => "LightingMethod",
3491
+ "shade_material_type" => "Shade Material",
3492
+ "number_of_light_sources" => "Number Of Bulb Sockets",
3493
+ "blade_color" => "Fan Blade Colour",
3494
+ "number_of_blades" => "Number Of Blades",
3495
+ "switch_type" => "Switch Style",
3496
+ "power_source_type" => "Power Source",
3497
+ "maximum_compatible_light_source_wattage" => "Maximum Supported Wattage",
3498
+ "light_source_type" => "Light Source Type",
3499
+ "item_shape" => "Item Shape",
3500
+ "wattage" => "Wattage",
3501
+ "color_temperature" => "Color Temperature",
3502
+ "special_features" => "Special Features",
3503
+ "unit_count_type" => "PPU Count Type",
3504
+ "battery_type" => "Battery Type",
3505
+ "number_of_batteries" => "Number of Batteries Required",
3506
+ "lithium_battery_weight" => "Lithium Battery Weight",
3507
+ "brightness" => "Luminous Flux",
3508
+ "voltage" => "Voltage",
3509
+ "wattage_unit_of_measure" => "Wattage Unit of Measure",
3510
+ "unit_count" => "PPU Count",
3511
+ "lithium_battery_weight_unit_of_measure" => "lithium_battery_weight_unit_of_measure",
3512
+ );
3513
+ return $attributes;
3514
+ }
3515
+ public function amazon_clothingAttributes(){
3516
+ $attributes=array(
3517
+ "item_sku" => "Seller SKU",
3518
+ "item_name" => "Product Name",
3519
+ "external_product_id" => "Product ID",
3520
+ "external_product_id_type" => "Product ID Type",
3521
+ "brand_name" => "Brand Name",
3522
+ "product_description" => "Product Description",
3523
+ "item_type" => "Item Type Keyword",
3524
+ "model" => "Style Number",
3525
+ "update_delete" => "Update Delete",
3526
+ "standard_price" => "Standard Price",
3527
+ "list_price" => "Manufacturer's Suggested Retail Price",
3528
+ "product_tax_code" => "Product Tax Code",
3529
+ "fulfillment_latency" => "Fulfillment Latency",
3530
+ "product_site_launch_date" => "Launch Date",
3531
+ "merchant_release_date" => "Release Date",
3532
+ "restock_date" => "Restock Date",
3533
+ "quantity" => "Quantity",
3534
+ "sale_price" => "Sale Price",
3535
+ "sale_from_date" => "Sale Start Date",
3536
+ "sale_end_date" => "Sale End Date",
3537
+ "max_aggregate_ship_quantity" => "Max Aggregate Ship Quantity",
3538
+ "item_package_quantity" => "Package Quantity",
3539
+ "number_of_items" => "Number of Items",
3540
+ "offering_can_be_gift_messaged" => "Offering Can Be Gift Messaged",
3541
+ "offering_can_be_giftwrapped" => "Is Gift Wrap Available",
3542
+ "is_discontinued_by_manufacturer" => "Is Discontinued by Manufacturer",
3543
+ "missing_keyset_reason" => "Registered Parameter",
3544
+ "merchant_shipping_group_name" => "Shipping-Template",
3545
+ "website_shipping_weight" => "Shipping Weight",
3546
+ "website_shipping_weight_unit_of_measure" => "Website Shipping Weight Unit Of Measure",
3547
+ "item_weight_unit_of_measure" => "Item Weight Unit Of Measure",
3548
+ "item_weight" => "Item Weight",
3549
+ "item_length_unit_of_measure" => "Item Length Unit Of Measure",
3550
+ "item_length" => "Item Length",
3551
+ "item_width" => "Item Width",
3552
+ "item_height" => "Item Height",
3553
+ "bullet_point1" => "Key Product Features1",
3554
+ "bullet_point2" => "Key Product Features2",
3555
+ "bullet_point3" => "Key Product Features3",
3556
+ "bullet_point4" => "Key Product Features4",
3557
+ "bullet_point5" => "Key Product Features5",
3558
+ "generic_keywords" => "Search Terms",
3559
+ "main_image_url" => "Main Image URL",
3560
+ "other_image_url1" => "Other Image URL1",
3561
+ "other_image_url2" => "Other Image URL2",
3562
+ "other_image_url3" => "Other Image URL3",
3563
+ "swatch_image_url" => "Swatch Image URL",
3564
+ "fulfillment_center_id" => "Fulfillment Center ID",
3565
+ "package_height" => "Package Height",
3566
+ "package_width" => "Package Width",
3567
+ "package_length" => "Package Length",
3568
+ "package_length_unit_of_measure" => "Package Length Unit Of Measure",
3569
+ "package_weight" => "Package Weight",
3570
+ "package_weight_unit_of_measure" => "Package Weight Unit Of Measure",
3571
+ "parent_child" => "Parentage",
3572
+ "parent_sku" => "Parent SKU",
3573
+ "relationship_type" => "Relationship Type",
3574
+ "variation_theme" => "Variation Theme",
3575
+ "cpsia_cautionary_statement" => "Cpsia Warning",
3576
+ "cpsia_cautionary_description" => "CPSIA Warning Description",
3577
+ "fabric_type" => "Fabric Type",
3578
+ "import_designation" => "Import Designation",
3579
+ "closure_type" => "Closure Type",
3580
+ "belt_style" => "Belt Style",
3581
+ "bottom_style" => "Bottom Style",
3582
+ "subject_character" => "character",
3583
+ "chest_size" => "Chest Size",
3584
+ "chest_size_unit_of_measure" => "Chest Size Unit Of Measure",
3585
+ "band_size_num" => "Band Size Numeric",
3586
+ "band_size_num_unit_of_measure" => "Band Size Num Unit Of Measure",
3587
+ "collar_style" => "Collar Type",
3588
+ "color_name" => "Color",
3589
+ "color_map" => "Color Map",
3590
+ "control_type" => "Control Type",
3591
+ "cup_size" => "Cup Size",
3592
+ "department_name" => "Department",
3593
+ "fabric_wash" => "Fabric Wash",
3594
+ "fit_type" => "Fit Type",
3595
+ "front_style" => "Front Pleat Type",
3596
+ "inseam_length" => "Inseam",
3597
+ "inseam_length_unit_of_measure" => "Inseam Length Unit Of Measure",
3598
+ "rise_height" => "Rise Height",
3599
+ "rise_height_unit_of_measure" => "Rise Height Unit Of Measure",
3600
+ "leg_diameter" => "Leg Diameter",
3601
+ "leg_diameter_unit_of_measure" => "Leg Diameter Unit Of Measure",
3602
+ "leg_style" => "Leg Style",
3603
+ "country_as_labeled" => "Country as Labeled",
3604
+ "fur_description" => "Fur Description",
3605
+ "opacity" => "Opacity / Transparency",
3606
+ "neck_size" => "Neck Size",
3607
+ "neck_size_unit_of_measure" => "Neck Size Unit Of Measure",
3608
+ "neck_style" => "NeckStyle",
3609
+ "pattern_type" => "Pattern Style",
3610
+ "pocket_description" => "Pocket Description",
3611
+ "rise_style" => "Rise Style",
3612
+ "shoe_width" => "Shoe Width",
3613
+ "size_name" => "Size",
3614
+ "size_map" => "Size Map",
3615
+ "special_size_type" => "Special Size Type",
3616
+ "sleeve_length" => "SleeveLength",
3617
+ "sleeve_length_unit_of_measure" => "Sleeve Length Unit Of Measure",
3618
+ "sleeve_type" => "Sleeve Type",
3619
+ "special_features" => "Additional Features",
3620
+ "strap_type" => "Strap Type",
3621
+ "style_name" => "Style",
3622
+ "theme" => "theme",
3623
+ "toe_style" => "Toe Style",
3624
+ "top_style" => "Top Style",
3625
+ "underwire_type" => "Underwire Type",
3626
+ "waist_size" => "WaistSize",
3627
+ "waist_size_unit_of_measure" => "Waist Size Unit Of Measure",
3628
+ "water_resistance_level" => "Water Resistance Level",
3629
+ "sport_type" => "Sport Type",
3630
+ "wheel_type" => "wheel-type",
3631
+ );
3632
+ return $attributes;
3633
  }
3634
 
3635
  public function googleAttributes()
3668
  "brand" => "Manufacturer[brand]",
3669
  "upc" => "GTIN[gtin]",
3670
  "sku" => "MPN[mpn]",
3671
+ "identifier_exists" => "Identifier Exist[identifier_exists]",
3672
  "---3" => "",
3673
 
3674
  "--4" =>"Detailed Product Attributes",
4024
  return $attributes;
4025
  }
4026
 
4027
+ public function leguideAttribute(){
4028
  $attributes=array(
4029
+ "--1" =>"",
4030
+ "category" =>"category",
4031
+ "unique_id" =>"unique_id",
4032
+ "category" =>"category",
4033
+ "title"=>"title",
4034
+ "description"=>"description",
4035
+ "price"=>"price",
4036
+ "product_URL"=>"product_URL",
4037
+ "image_URL"=>"image_URL",
4038
+ "EAN"=>"EAN",
4039
+ "delivery_charge"=>"delivery_charge",
4040
+ "availability"=>"availability",
4041
+ "delivery_time"=>"delivery_time",
4042
+ "guarantee"=>"guarantee",
4043
+ "model_reference"=>"model_reference",
4044
+ "marque"=>"marque",
4045
+ "MPN"=>"MPN",
4046
+ "full_price"=>"full_price",
4047
+ "colour"=>"colour",
4048
+ "size"=>"size",
4049
+ "material"=>"material",
4050
+ "currency"=>"currency",
4051
+ "second-hand"=>"second-hand",
4052
+ "type_promotion"=>"type_promotion",
4053
+ "mobile_URL"=>"mobile_URL",
4054
+ "unit_price"=>"unit_price",
4055
  "---1" =>"",
4056
+ );
4057
+ return $attributes;
4058
+ }
4059
+
4060
+ public function pricespyAttribute(){
4061
+ $attributes=array(
4062
+ "--1" =>"",
4063
+ "Product-name" =>"Product-name",
4064
+ "Your-item-number" =>"Your-item-number",
4065
+ "category" =>"category",
4066
+ "price-including-gst"=>"price-including-gst",
4067
+ "Product-URL"=>"Product-URL",
4068
+ "manufacturer"=>"manufacturer",
4069
+ "manufacturer-SKU"=>"manufacturer-SKU",
4070
+ "shipping"=>"shipping",
4071
+ "image-URL"=>"image-URL",
4072
+ "stock status"=>"stock status",
4073
+ "---1" =>"",
4074
+ );
4075
+ return $attributes;
4076
+ }
4077
 
4078
+ public function prisjaktAttribute(){
4079
+ $attributes=array(
4080
+ "--1" =>"",
4081
+ "Produktnamn" =>"Produktnamn",
4082
+ "Art.nr." =>"Art.nr.",
4083
+ "Kategori" =>"Kategori",
4084
+ "Pris inkl.moms"=>"Pris inkl.moms",
4085
+ "Produkt-URL"=>"Produkt-URL",
4086
+ "Tillverkare"=>"Tillverkare",
4087
+ "Tillverkar-SKU"=>"Tillverkar-SKU",
4088
+ "Frakt"=>"Frakt",
4089
+ "Bild-URL"=>"Bild-URL",
4090
+ "Lagerstatus"=>"Lagerstatus",
4091
+ "---1" =>"",
4092
+ );
4093
+ return $attributes;
4094
+ }
4095
+
4096
+ public function bingAttribute(){
4097
+ $attributes=array(
4098
+ "id" =>"MerchantProductID",
4099
+ "title" =>"Title",
4100
+ "link" =>"Product URL",
4101
+ "price" =>"Price",
4102
+ "description" =>"Description",
4103
+ "image_link" =>"ImageURL",
4104
+ "required" =>"",
4105
+ "brand" =>"Brand",
4106
+ "mpn" =>"MPN",
4107
+ "gtin" =>"GTIN",
4108
+ "gender" =>"Gender",
4109
+ "age_group" =>"Age Group",
4110
+ "color" =>"Color",
4111
+ "size" =>"Size",
4112
+ "item_group_id" =>"Item Group Id",
4113
+ "material" =>"Material",
4114
+ "pattern" =>"Pattern",
4115
+ "adult" =>"Adult",
4116
+ "availability" =>"Availability",
4117
+ "product_category" =>"Product Category",
4118
+ "condition" =>"Condition",
4119
+ "expiration_date" =>"Expiration Date",
4120
+ "multipack" =>"Multipack",
4121
+ "product_type" =>"Product Type",
4122
+ "mobile_link" =>"Mobile Link",
4123
+ "seller_name" =>"Seller Name",
4124
+ "bingads_grouping" =>"bingads_grouping",
4125
+ "bingads_label" =>"bingads_label",
4126
+ "bingads_redirect" =>"bingads_redirect",
4127
+ "custom_label_0" =>"custom_label_0",
4128
+ "custom_label_1" =>"custom_label_1",
4129
+ "custom_label_2" =>"custom_label_2",
4130
+ "custom_label_3" =>"custom_label_3",
4131
+ "custom_label_4" =>"custom_label_4",
4132
+ "sale_price" =>"Sale Price",
4133
+ "sale_price_effective_date" =>"Sale Price Effective Date",
4134
+ "promotion_ID" =>"Promotion Id",
4135
  );
4136
  return $attributes;
4137
  }
includes/classes/class-woo-feed-dropdown.php CHANGED
@@ -42,6 +42,539 @@ class Woo_Feed_Dropdown
42
  return $str;
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  /**
46
  * Dropdown of Google Attribute List
47
  *
42
  return $str;
43
  }
44
 
45
+
46
+ public function amazon_clothingAttributesDropdown($selected = "")
47
+ {
48
+ $attributes = new Woo_Feed_Default_Attributes();
49
+ $str = "<option></option>";
50
+ foreach ($attributes->amazon_clothingAttributes() as $key => $value) {
51
+ if (substr($key, 0, 2) == "--") {
52
+ $str .= "<optgroup label='$value'>";
53
+ } elseif (substr($key, 0, 2) == "---") {
54
+ $str .= "</optgroup>";
55
+ } else {
56
+ $sltd = "";
57
+ if ($selected == $key)
58
+ $sltd = 'selected="selected"';
59
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
60
+ }
61
+
62
+ }
63
+ return $str;
64
+ }
65
+
66
+ public function amazon_jewelryAttributesDropdown($selected = "")
67
+ {
68
+ $attributes = new Woo_Feed_Default_Attributes();
69
+ $str = "<option></option>";
70
+ foreach ($attributes->amazon_jewelryAttributes() as $key => $value) {
71
+ if (substr($key, 0, 2) == "--") {
72
+ $str .= "<optgroup label='$value'>";
73
+ } elseif (substr($key, 0, 2) == "---") {
74
+ $str .= "</optgroup>";
75
+ } else {
76
+ $sltd = "";
77
+ if ($selected == $key)
78
+ $sltd = 'selected="selected"';
79
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
80
+ }
81
+
82
+ }
83
+ return $str;
84
+ }
85
+
86
+ public function amazon_jewelry_frAttributesDropdown($selected = "")
87
+ {
88
+ $attributes = new Woo_Feed_Default_Attributes();
89
+ $str = "<option></option>";
90
+ foreach ($attributes->amazon_jewelry_frAttributes() as $key => $value) {
91
+ if (substr($key, 0, 2) == "--") {
92
+ $str .= "<optgroup label='$value'>";
93
+ } elseif (substr($key, 0, 2) == "---") {
94
+ $str .= "</optgroup>";
95
+ } else {
96
+ $sltd = "";
97
+ if ($selected == $key)
98
+ $sltd = 'selected="selected"';
99
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
100
+ }
101
+
102
+ }
103
+ return $str;
104
+ }
105
+
106
+ public function amazon_lightingAttributesDropdown($selected = "")
107
+ {
108
+ $attributes = new Woo_Feed_Default_Attributes();
109
+ $str = "<option></option>";
110
+ foreach ($attributes->amazon_lightingAttributes() as $key => $value) {
111
+ if (substr($key, 0, 2) == "--") {
112
+ $str .= "<optgroup label='$value'>";
113
+ } elseif (substr($key, 0, 2) == "---") {
114
+ $str .= "</optgroup>";
115
+ } else {
116
+ $sltd = "";
117
+ if ($selected == $key)
118
+ $sltd = 'selected="selected"';
119
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
120
+ }
121
+
122
+ }
123
+ return $str;
124
+ }
125
+ public function amazon_wirelessAttributesDropdown($selected = "")
126
+ {
127
+ $attributes = new Woo_Feed_Default_Attributes();
128
+ $str = "<option></option>";
129
+ foreach ($attributes->amazon_wirelessAttributes() as $key => $value) {
130
+ if (substr($key, 0, 2) == "--") {
131
+ $str .= "<optgroup label='$value'>";
132
+ } elseif (substr($key, 0, 2) == "---") {
133
+ $str .= "</optgroup>";
134
+ } else {
135
+ $sltd = "";
136
+ if ($selected == $key)
137
+ $sltd = 'selected="selected"';
138
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
139
+ }
140
+
141
+ }
142
+ return $str;
143
+ }
144
+ public function amazon_autoaccessoryAttributesDropdown($selected = "")
145
+ {
146
+ $attributes = new Woo_Feed_Default_Attributes();
147
+ $str = "<option></option>";
148
+ foreach ($attributes->amazon_autoaccessoryAttributes() as $key => $value) {
149
+ if (substr($key, 0, 2) == "--") {
150
+ $str .= "<optgroup label='$value'>";
151
+ } elseif (substr($key, 0, 2) == "---") {
152
+ $str .= "</optgroup>";
153
+ } else {
154
+ $sltd = "";
155
+ if ($selected == $key)
156
+ $sltd = 'selected="selected"';
157
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
158
+ }
159
+
160
+ }
161
+ return $str;
162
+ }
163
+ public function amazon_tiresandwheelsAttributesDropdown($selected = "")
164
+ {
165
+ $attributes = new Woo_Feed_Default_Attributes();
166
+ $str = "<option></option>";
167
+ foreach ($attributes->amazon_tiresandwheelsAttributes() as $key => $value) {
168
+ if (substr($key, 0, 2) == "--") {
169
+ $str .= "<optgroup label='$value'>";
170
+ } elseif (substr($key, 0, 2) == "---") {
171
+ $str .= "</optgroup>";
172
+ } else {
173
+ $sltd = "";
174
+ if ($selected == $key)
175
+ $sltd = 'selected="selected"';
176
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
177
+ }
178
+
179
+ }
180
+ return $str;
181
+ }
182
+ public function amazon_homeAttributesDropdown($selected = "")
183
+ {
184
+ $attributes = new Woo_Feed_Default_Attributes();
185
+ $str = "<option></option>";
186
+ foreach ($attributes->amazon_homeAttributes() as $key => $value) {
187
+ if (substr($key, 0, 2) == "--") {
188
+ $str .= "<optgroup label='$value'>";
189
+ } elseif (substr($key, 0, 2) == "---") {
190
+ $str .= "</optgroup>";
191
+ } else {
192
+ $sltd = "";
193
+ if ($selected == $key)
194
+ $sltd = 'selected="selected"';
195
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
196
+ }
197
+
198
+ }
199
+ return $str;
200
+ }
201
+ public function amazon_healthAttributesDropdown($selected = "")
202
+ {
203
+ $attributes = new Woo_Feed_Default_Attributes();
204
+ $str = "<option></option>";
205
+ foreach ($attributes->amazon_healthAttributes() as $key => $value) {
206
+ if (substr($key, 0, 2) == "--") {
207
+ $str .= "<optgroup label='$value'>";
208
+ } elseif (substr($key, 0, 2) == "---") {
209
+ $str .= "</optgroup>";
210
+ } else {
211
+ $sltd = "";
212
+ if ($selected == $key)
213
+ $sltd = 'selected="selected"';
214
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
215
+ }
216
+
217
+ }
218
+ return $str;
219
+ }
220
+ public function amazon_babyAttributesDropdown($selected = "")
221
+ {
222
+ $attributes = new Woo_Feed_Default_Attributes();
223
+ $str = "<option></option>";
224
+ foreach ($attributes->amazon_babyAttributes() as $key => $value) {
225
+ if (substr($key, 0, 2) == "--") {
226
+ $str .= "<optgroup label='$value'>";
227
+ } elseif (substr($key, 0, 2) == "---") {
228
+ $str .= "</optgroup>";
229
+ } else {
230
+ $sltd = "";
231
+ if ($selected == $key)
232
+ $sltd = 'selected="selected"';
233
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
234
+ }
235
+
236
+ }
237
+ return $str;
238
+ }
239
+ public function amazon_BookLoaderAttributesDropdown($selected = "")
240
+ {
241
+ $attributes = new Woo_Feed_Default_Attributes();
242
+ $str = "<option></option>";
243
+ foreach ($attributes->amazon_BookLoaderAttributes() as $key => $value) {
244
+ if (substr($key, 0, 2) == "--") {
245
+ $str .= "<optgroup label='$value'>";
246
+ } elseif (substr($key, 0, 2) == "---") {
247
+ $str .= "</optgroup>";
248
+ } else {
249
+ $sltd = "";
250
+ if ($selected == $key)
251
+ $sltd = 'selected="selected"';
252
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
253
+ }
254
+
255
+ }
256
+ return $str;
257
+ }
258
+ public function amazon_CameraAndPhotoAttributesDropdown($selected = "")
259
+ {
260
+ $attributes = new Woo_Feed_Default_Attributes();
261
+ $str = "<option></option>";
262
+ foreach ($attributes->amazon_CameraAndPhotoAttributes() as $key => $value) {
263
+ if (substr($key, 0, 2) == "--") {
264
+ $str .= "<optgroup label='$value'>";
265
+ } elseif (substr($key, 0, 2) == "---") {
266
+ $str .= "</optgroup>";
267
+ } else {
268
+ $sltd = "";
269
+ if ($selected == $key)
270
+ $sltd = 'selected="selected"';
271
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
272
+ }
273
+
274
+ }
275
+ return $str;
276
+ }
277
+ public function amazon_foodandbeveragesAttributesDropdown($selected = "")
278
+ {
279
+ $attributes = new Woo_Feed_Default_Attributes();
280
+ $str = "<option></option>";
281
+ foreach ($attributes->amazon_foodandbeveragesAttributes() as $key => $value) {
282
+ if (substr($key, 0, 2) == "--") {
283
+ $str .= "<optgroup label='$value'>";
284
+ } elseif (substr($key, 0, 2) == "---") {
285
+ $str .= "</optgroup>";
286
+ } else {
287
+ $sltd = "";
288
+ if ($selected == $key)
289
+ $sltd = 'selected="selected"';
290
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
291
+ }
292
+
293
+ }
294
+ return $str;
295
+ }
296
+ public function amazon_computersAttributesDropdown($selected = "")
297
+ {
298
+ $attributes = new Woo_Feed_Default_Attributes();
299
+ $str = "<option></option>";
300
+ foreach ($attributes->amazon_computersAttributes() as $key => $value) {
301
+ if (substr($key, 0, 2) == "--") {
302
+ $str .= "<optgroup label='$value'>";
303
+ } elseif (substr($key, 0, 2) == "---") {
304
+ $str .= "</optgroup>";
305
+ } else {
306
+ $sltd = "";
307
+ if ($selected == $key)
308
+ $sltd = 'selected="selected"';
309
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
310
+ }
311
+
312
+ }
313
+ return $str;
314
+ }
315
+ public function amazon_ConsumerElectronicsAttributesDropdown($selected = "")
316
+ {
317
+ $attributes = new Woo_Feed_Default_Attributes();
318
+ $str = "<option></option>";
319
+ foreach ($attributes->amazon_ConsumerElectronicsAttributes() as $key => $value) {
320
+ if (substr($key, 0, 2) == "--") {
321
+ $str .= "<optgroup label='$value'>";
322
+ } elseif (substr($key, 0, 2) == "---") {
323
+ $str .= "</optgroup>";
324
+ } else {
325
+ $sltd = "";
326
+ if ($selected == $key)
327
+ $sltd = 'selected="selected"';
328
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
329
+ }
330
+
331
+ }
332
+ return $str;
333
+ }
334
+ public function amazon_entertainmentcollectiblesAttributesDropdown($selected = "")
335
+ {
336
+ $attributes = new Woo_Feed_Default_Attributes();
337
+ $str = "<option></option>";
338
+ foreach ($attributes->amazon_entertainmentcollectiblesAttributes() as $key => $value) {
339
+ if (substr($key, 0, 2) == "--") {
340
+ $str .= "<optgroup label='$value'>";
341
+ } elseif (substr($key, 0, 2) == "---") {
342
+ $str .= "</optgroup>";
343
+ } else {
344
+ $sltd = "";
345
+ if ($selected == $key)
346
+ $sltd = 'selected="selected"';
347
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
348
+ }
349
+
350
+ }
351
+ return $str;
352
+ }
353
+ public function amazon_homeimprovementAttributesDropdown($selected = "")
354
+ {
355
+ $attributes = new Woo_Feed_Default_Attributes();
356
+ $str = "<option></option>";
357
+ foreach ($attributes->amazon_homeimprovementAttributes() as $key => $value) {
358
+ if (substr($key, 0, 2) == "--") {
359
+ $str .= "<optgroup label='$value'>";
360
+ } elseif (substr($key, 0, 2) == "---") {
361
+ $str .= "</optgroup>";
362
+ } else {
363
+ $sltd = "";
364
+ if ($selected == $key)
365
+ $sltd = 'selected="selected"';
366
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
367
+ }
368
+
369
+ }
370
+ return $str;
371
+ }
372
+ public function amazon_officeAttributesDropdown($selected = "")
373
+ {
374
+ $attributes = new Woo_Feed_Default_Attributes();
375
+ $str = "<option></option>";
376
+ foreach ($attributes->amazon_officeAttributes() as $key => $value) {
377
+ if (substr($key, 0, 2) == "--") {
378
+ $str .= "<optgroup label='$value'>";
379
+ } elseif (substr($key, 0, 2) == "---") {
380
+ $str .= "</optgroup>";
381
+ } else {
382
+ $sltd = "";
383
+ if ($selected == $key)
384
+ $sltd = 'selected="selected"';
385
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
386
+ }
387
+
388
+ }
389
+ return $str;
390
+ }
391
+ public function amazon_petsuppliesAttributesDropdown($selected = "")
392
+ {
393
+ $attributes = new Woo_Feed_Default_Attributes();
394
+ $str = "<option></option>";
395
+ foreach ($attributes->amazon_petsuppliesAttributes() as $key => $value) {
396
+ if (substr($key, 0, 2) == "--") {
397
+ $str .= "<optgroup label='$value'>";
398
+ } elseif (substr($key, 0, 2) == "---") {
399
+ $str .= "</optgroup>";
400
+ } else {
401
+ $sltd = "";
402
+ if ($selected == $key)
403
+ $sltd = 'selected="selected"';
404
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
405
+ }
406
+
407
+ }
408
+ return $str;
409
+ }
410
+
411
+ public function amazon_sportsmemorabiliaAttributesDropdown($selected = "")
412
+ {
413
+ $attributes = new Woo_Feed_Default_Attributes();
414
+ $str = "<option></option>";
415
+ foreach ($attributes->amazon_sportsmemorabiliaAttributes() as $key => $value) {
416
+ if (substr($key, 0, 2) == "--") {
417
+ $str .= "<optgroup label='$value'>";
418
+ } elseif (substr($key, 0, 2) == "---") {
419
+ $str .= "</optgroup>";
420
+ } else {
421
+ $sltd = "";
422
+ if ($selected == $key)
423
+ $sltd = 'selected="selected"';
424
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
425
+ }
426
+
427
+ }
428
+ return $str;
429
+ }
430
+ public function amazon_shoesAttributesDropdown($selected = "")
431
+ {
432
+ $attributes = new Woo_Feed_Default_Attributes();
433
+ $str = "<option></option>";
434
+ foreach ($attributes->amazon_shoesAttributes() as $key => $value) {
435
+ if (substr($key, 0, 2) == "--") {
436
+ $str .= "<optgroup label='$value'>";
437
+ } elseif (substr($key, 0, 2) == "---") {
438
+ $str .= "</optgroup>";
439
+ } else {
440
+ $sltd = "";
441
+ if ($selected == $key)
442
+ $sltd = 'selected="selected"';
443
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
444
+ }
445
+
446
+ }
447
+ return $str;
448
+ }
449
+ public function amazon_sportsAttributesDropdown($selected = "")
450
+ {
451
+ $attributes = new Woo_Feed_Default_Attributes();
452
+ $str = "<option></option>";
453
+ foreach ($attributes->amazon_sportsAttributes() as $key => $value) {
454
+ if (substr($key, 0, 2) == "--") {
455
+ $str .= "<optgroup label='$value'>";
456
+ } elseif (substr($key, 0, 2) == "---") {
457
+ $str .= "</optgroup>";
458
+ } else {
459
+ $sltd = "";
460
+ if ($selected == $key)
461
+ $sltd = 'selected="selected"';
462
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
463
+ }
464
+
465
+ }
466
+ return $str;
467
+ }
468
+ public function amazon_toysAttributesDropdown($selected = "")
469
+ {
470
+ $attributes = new Woo_Feed_Default_Attributes();
471
+ $str = "<option></option>";
472
+ foreach ($attributes->amazon_toysAttributes() as $key => $value) {
473
+ if (substr($key, 0, 2) == "--") {
474
+ $str .= "<optgroup label='$value'>";
475
+ } elseif (substr($key, 0, 2) == "---") {
476
+ $str .= "</optgroup>";
477
+ } else {
478
+ $sltd = "";
479
+ if ($selected == $key)
480
+ $sltd = 'selected="selected"';
481
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
482
+ }
483
+
484
+ }
485
+ return $str;
486
+ }
487
+ public function amazon_TradingCardsAttributesDropdown($selected = "")
488
+ {
489
+ $attributes = new Woo_Feed_Default_Attributes();
490
+ $str = "<option></option>";
491
+ foreach ($attributes->amazon_TradingCardsAttributes() as $key => $value) {
492
+ if (substr($key, 0, 2) == "--") {
493
+ $str .= "<optgroup label='$value'>";
494
+ } elseif (substr($key, 0, 2) == "---") {
495
+ $str .= "</optgroup>";
496
+ } else {
497
+ $sltd = "";
498
+ if ($selected == $key)
499
+ $sltd = 'selected="selected"';
500
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
501
+ }
502
+
503
+ }
504
+ return $str;
505
+ }
506
+ public function amazon_watchesAttributesDropdown($selected = "")
507
+ {
508
+ $attributes = new Woo_Feed_Default_Attributes();
509
+ $str = "<option></option>";
510
+ foreach ($attributes->amazon_watchesAttributes() as $key => $value) {
511
+ if (substr($key, 0, 2) == "--") {
512
+ $str .= "<optgroup label='$value'>";
513
+ } elseif (substr($key, 0, 2) == "---") {
514
+ $str .= "</optgroup>";
515
+ } else {
516
+ $sltd = "";
517
+ if ($selected == $key)
518
+ $sltd = 'selected="selected"';
519
+ $str .= "<option $sltd value='$key'>" . $value ." [".$key."]". "</option>";
520
+ }
521
+
522
+ }
523
+ return $str;
524
+ }
525
+
526
+ /**
527
+ * Dropdown of pricespy Attribute List
528
+ *
529
+ * @param string $selected
530
+ * @return string
531
+ */
532
+ public function pricespyAttributesDropdown($selected = "")
533
+ {
534
+ $attributes = new Woo_Feed_Default_Attributes();
535
+ $str = "<option></option>";
536
+ foreach ($attributes->pricespyAttribute() as $key => $value) {
537
+ if (substr($key, 0, 2) == "--") {
538
+ $str .= "<optgroup label='$value'>";
539
+ } elseif (substr($key, 0, 2) == "---") {
540
+ $str .= "</optgroup>";
541
+ } else {
542
+ $sltd = "";
543
+ if ($selected == $key)
544
+ $sltd = 'selected="selected"';
545
+ $str .= "<option $sltd value='$key'>" . $value . "</option>";
546
+ }
547
+
548
+ }
549
+ return $str;
550
+ }
551
+
552
+ /**
553
+ * Dropdown of pricespy Attribute List
554
+ *
555
+ * @param string $selected
556
+ * @return string
557
+ */
558
+ public function prisjaktAttributesDropdown($selected = "")
559
+ {
560
+ $attributes = new Woo_Feed_Default_Attributes();
561
+ $str = "<option></option>";
562
+ foreach ($attributes->prisjaktAttribute() as $key => $value) {
563
+ if (substr($key, 0, 2) == "--") {
564
+ $str .= "<optgroup label='$value'>";
565
+ } elseif (substr($key, 0, 2) == "---") {
566
+ $str .= "</optgroup>";
567
+ } else {
568
+ $sltd = "";
569
+ if ($selected == $key)
570
+ $sltd = 'selected="selected"';
571
+ $str .= "<option $sltd value='$key'>" . $value . "</option>";
572
+ }
573
+
574
+ }
575
+ return $str;
576
+ }
577
+
578
  /**
579
  * Dropdown of Google Attribute List
580
  *
includes/classes/class-woo-feed-engine.php CHANGED
@@ -215,18 +215,39 @@ class WF_Engine
215
  # Prefix and Suffix Assign
216
  if (strpos($output, "<![CDATA[") !== false) {
217
  $output = str_replace(array("<![CDATA[", "]]>"), array("", ""), $output);
218
- $output = $rules['prefix'] . $output . " " . $rules['suffix'];
 
 
 
 
 
 
 
 
 
219
  $output = '<![CDATA[' . $output . ']]>';
220
  } else {
221
- $output = $rules['prefix'] . " " . $output . " " . $rules['suffix'];
 
 
 
 
 
 
 
 
 
222
  }
223
- } else {
224
- $output = "";
 
 
225
  }
226
 
227
  $attr = trim($attr);
228
  $this->products[$key][$attr] = $output;
229
  } else {
 
230
  if (!empty($default[$i])) {
231
  $output = str_replace("wf_pattern_", "", $rules['value']);
232
  if (!empty($output)) {
@@ -269,23 +290,43 @@ class WF_Engine
269
  if (strpos($output, "<![CDATA[") !== false) {
270
  $output = str_replace(array("<![CDATA[", "]]>"), array("", ""), $output);
271
  if(substr($output, 0, 4 ) === "http"){
272
- $output = $rules['prefix'] . " " . $output.$rules['suffix'];
273
  }else{
274
- $output = $rules['prefix'] . " " . $output . " " . $rules['suffix'];
 
 
 
 
 
275
  }
276
  $output = '<![CDATA[' . $output . ']]>';
277
  } else {
278
  if(substr($output, 0, 4 ) === "http"){
279
- $output = $rules['prefix'] . " " . $output.$rules['suffix'];
280
  }else{
281
- $output = $rules['prefix'] . " " . $output . " " . $rules['suffix'];
 
 
 
 
 
282
  }
283
  }
 
 
 
 
284
  }
 
285
  $attr = trim($attr);
286
  $this->products[$key][$attr] = $output;
287
  } else {
288
- $output = "";
 
 
 
 
 
289
  $attr = trim($attr);
290
  $this->products[$key][$attr] = $output;
291
  }
@@ -312,6 +353,86 @@ class WF_Engine
312
  return $this->products;
313
  }
314
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  /**
316
  * Responsible to make XML feed header
317
  *
@@ -399,17 +520,18 @@ class WF_Engine
399
  public function processStringForTXT($string){
400
  if(!empty($string)){
401
  $string = html_entity_decode( $string, ENT_HTML401 | ENT_QUOTES ); // Convert any HTML entities
402
- $string = iconv(
403
- 'UTF-8',
404
- 'ASCII//TRANSLIT',
405
- $string
406
- );
407
 
408
  if (stristr( $string,'"' ) ) {
409
  $string = str_replace( '"', '""', $string );
410
  }
411
  $string = str_replace( "\n", ' ', $string );
412
  $string = str_replace( "\r", ' ', $string );
 
413
  $string = trim($string);
414
 
415
  return $string;
215
  # Prefix and Suffix Assign
216
  if (strpos($output, "<![CDATA[") !== false) {
217
  $output = str_replace(array("<![CDATA[", "]]>"), array("", ""), $output);
218
+ if(substr($output, 0, 4 ) === "http"){
219
+ $output = $this->make_url_with_parameter($rules['prefix'],$output,$rules['suffix']);
220
+ }else{
221
+ if($attr=='price'){
222
+ $suffix=!empty($rules['suffix'])?trim($rules['suffix']):$rules['suffix'];
223
+ $output = $rules['prefix'].$output." ".$suffix;
224
+ }else{
225
+ $output = $rules['prefix'].$output.$rules['suffix'];
226
+ }
227
+ }
228
  $output = '<![CDATA[' . $output . ']]>';
229
  } else {
230
+ if(substr($output, 0, 4 ) === "http"){
231
+ $output = $this->make_url_with_parameter($rules['prefix'],$output,$rules['suffix']);
232
+ }else{
233
+ if($attr=='price'){
234
+ $suffix=!empty($rules['suffix'])?trim($rules['suffix']):$rules['suffix'];
235
+ $output = $rules['prefix'].$output." ".$suffix;
236
+ }else{
237
+ $output = $rules['prefix'].$output.$rules['suffix'];
238
+ }
239
+ }
240
  }
241
+ } elseif ($output=="0"){
242
+ $output="0";
243
+ } else{
244
+ $output="";
245
  }
246
 
247
  $attr = trim($attr);
248
  $this->products[$key][$attr] = $output;
249
  } else {
250
+
251
  if (!empty($default[$i])) {
252
  $output = str_replace("wf_pattern_", "", $rules['value']);
253
  if (!empty($output)) {
290
  if (strpos($output, "<![CDATA[") !== false) {
291
  $output = str_replace(array("<![CDATA[", "]]>"), array("", ""), $output);
292
  if(substr($output, 0, 4 ) === "http"){
293
+ $output = $this->make_url_with_parameter($rules['prefix'],$output,$rules['suffix']);
294
  }else{
295
+ if($attr=='price'){
296
+ $suffix=!empty($rules['suffix'])?trim($rules['suffix']):$rules['suffix'];
297
+ $output = $rules['prefix'].$output." ".$suffix;
298
+ }else{
299
+ $output = $rules['prefix'].$output.$rules['suffix'];
300
+ }
301
  }
302
  $output = '<![CDATA[' . $output . ']]>';
303
  } else {
304
  if(substr($output, 0, 4 ) === "http"){
305
+ $output = $this->make_url_with_parameter($rules['prefix'],$output,$rules['suffix']);
306
  }else{
307
+ if($attr=='price'){
308
+ $suffix=!empty($rules['suffix'])?trim($rules['suffix']):$rules['suffix'];
309
+ $output = $rules['prefix'].$output." ".$suffix;
310
+ }else{
311
+ $output = $rules['prefix'].$output.$rules['suffix'];
312
+ }
313
  }
314
  }
315
+ } elseif ($output=="0"){
316
+ $output="0";
317
+ } else{
318
+ $output="";
319
  }
320
+
321
  $attr = trim($attr);
322
  $this->products[$key][$attr] = $output;
323
  } else {
324
+ $output = str_replace("wf_pattern_", "", $rules['value']);
325
+ if ($output=="0"){
326
+ $output="0";
327
+ } else{
328
+ $output="";
329
+ }
330
  $attr = trim($attr);
331
  $this->products[$key][$attr] = $output;
332
  }
353
  return $this->products;
354
  }
355
 
356
+ /**
357
+ * Make proper URL using parameters
358
+ * @param $prefix
359
+ * @param $output
360
+ * @param $suffix
361
+ * @return string
362
+ */
363
+
364
+ public function make_url_with_parameter($prefix='',$output='',$suffix='')
365
+ {
366
+ $getParam=explode('?',$output);
367
+ $URLParam=array();
368
+ if($getParam[1]){
369
+ $URLParam=$this->proper_parse_str($getParam[1]);
370
+ }
371
+
372
+ $EXTRAParam=array();
373
+ if(!empty($suffix)){
374
+ $EXTRAParam=$this->proper_parse_str($suffix);
375
+ }
376
+
377
+ $params=array_merge($URLParam,$EXTRAParam);
378
+ if(!empty($params)){
379
+ $params=http_build_query($params);
380
+ $baseURL=isset($getParam)?$getParam[0]:$output;
381
+ $output = $prefix.$baseURL."?".$params;
382
+ }else{
383
+ $output = $prefix.$output.$suffix;
384
+ }
385
+
386
+ return $output;
387
+ }
388
+
389
+ /**
390
+ * Parse URL parameter
391
+ * @param $str
392
+ * @return array
393
+ */
394
+ public function proper_parse_str($str="") {
395
+
396
+ # result array
397
+ $arr = array();
398
+
399
+ if(empty($str)){
400
+ return $arr;
401
+ }
402
+
403
+ # split on outer delimiter
404
+ $pairs = explode('&', $str);
405
+
406
+ if(!empty($pairs)){
407
+
408
+ # loop through each pair
409
+ foreach ($pairs as $i) {
410
+ # split into name and value
411
+ list($name,$value) = explode('=', $i, 2);
412
+
413
+ # if name already exists
414
+ if( isset($arr[$name]) ) {
415
+ # stick multiple values into an array
416
+ if( is_array($arr[$name]) ) {
417
+ $arr[$name][] = $value;
418
+ }else {
419
+ $arr[$name] = array($arr[$name], $value);
420
+ }
421
+ }
422
+ # otherwise, simply stick it in a scalar
423
+ else {
424
+ $arr[$name] = $value;
425
+ }
426
+ }
427
+ }elseif (!empty($str)){
428
+ list($name,$value) = explode('=', $str, 2);
429
+ $arr[$name] = $value;
430
+ }
431
+
432
+ # return result array
433
+ return $arr;
434
+ }
435
+
436
  /**
437
  * Responsible to make XML feed header
438
  *
520
  public function processStringForTXT($string){
521
  if(!empty($string)){
522
  $string = html_entity_decode( $string, ENT_HTML401 | ENT_QUOTES ); // Convert any HTML entities
523
+ // $string = iconv(
524
+ // 'UTF-8',
525
+ // 'ASCII//TRANSLIT',
526
+ // $string
527
+ // );
528
 
529
  if (stristr( $string,'"' ) ) {
530
  $string = str_replace( '"', '""', $string );
531
  }
532
  $string = str_replace( "\n", ' ', $string );
533
  $string = str_replace( "\r", ' ', $string );
534
+ $string = str_replace( "\t", ' ', $string );
535
  $string = trim($string);
536
 
537
  return $string;
includes/classes/class-woo-feed-error-message.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * The file that defines the error messages
4
- *
5
- * @link https://webappick.com/
6
- * @since 1.0.0
7
- *
8
- * @package Woo_Feed
9
- * @subpackage Woo_Feed/includes
10
- * @author Ohidul Islam <wahid@webappick.com>
11
- */
12
-
13
- class Woo_Feed_Errors
14
- {
15
- public $SaveFile=array();
16
-
17
- public function set_saveFileError($message){
18
- return $this->SaveFile[]=$message;
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/classes/class-woo-feed-products.php CHANGED
@@ -63,13 +63,20 @@ class Woo_Feed_Products
63
  * @var array $attributeList attributes list array.
64
  */
65
  public $attributeList;
 
 
66
 
67
  /**
68
- * Get WooCommerce Products
 
69
  * @return array
70
  */
71
- public function woo_feed_get_visible_product()
72
  {
 
 
 
 
73
  # Query Database for products
74
  $loop = new WP_Query(
75
  array(
@@ -121,7 +128,11 @@ class Woo_Feed_Products
121
  $mainImage = wp_get_attachment_url($product->get_image_id());
122
  $link = $product->get_permalink($this->childID);
123
 
124
- if (substr(trim($link), 0, 4) === "http" && substr(trim($mainImage), 0, 4) === "http") {
 
 
 
 
125
 
126
  $this->productsList[$i]['id'] = $this->childID;
127
  $this->productsList[$i]['variation_type'] = "child";
@@ -184,13 +195,13 @@ class Woo_Feed_Products
184
  $from = $this->sale_price_effective_date($this->childID, '_sale_price_dates_from');
185
  $to = $this->sale_price_effective_date($this->childID, '_sale_price_dates_to');
186
  if (!empty($from) && !empty($to)) {
187
- $from = date('Y-m-d\TH:iO', strtotime($from));
188
- $to = date('Y-m-d\TH:iO', strtotime($to));
189
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
190
  } else {
191
  $this->productsList[$i]['sale_price_effective_date'] = "";
192
  }
193
- }
194
  }
195
  } elseif (get_post_type() == 'product') {
196
  if ($type1 == 'simple') {
@@ -198,7 +209,12 @@ class Woo_Feed_Products
198
  $mainImage = wp_get_attachment_url($product->get_image_id());
199
  $link = get_permalink($post->ID);
200
 
201
- if (substr(trim($link), 0, 4) === "http" && substr(trim($mainImage), 0, 4) === "http") {
 
 
 
 
 
202
  $this->productsList[$i]['id'] = $product->id;
203
  $this->productsList[$i]['variation_type'] = "simple";
204
  $this->productsList[$i]['title'] = $product->get_title();
@@ -252,20 +268,98 @@ class Woo_Feed_Products
252
  $from = $this->sale_price_effective_date($product->id, '_sale_price_dates_from');
253
  $to = $this->sale_price_effective_date($product->id, '_sale_price_dates_to');
254
  if (!empty($from) && !empty($to)) {
255
- $from = date('Y-m-d\TH:iO', $from);
256
- $to = date('Y-m-d\TH:iO', $to);
257
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
258
  } else {
259
  $this->productsList[$i]['sale_price_effective_date'] = "";
260
  }
 
 
 
 
 
 
 
 
 
 
261
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  } else if ($type1 == 'variable' && $product->has_child()) {
263
 
264
  # Check Valid URL
265
  $mainImage = wp_get_attachment_url($product->get_image_id());
266
  $link = get_permalink($post->ID);
267
 
268
- if (substr(trim($link), 0, 4) === "http" && substr(trim($mainImage), 0, 4) === "http") {
 
 
 
 
 
269
 
270
  $this->productsList[$i]['id'] = $product->id;
271
  $this->productsList[$i]['variation_type'] = "parent";
@@ -321,13 +415,13 @@ class Woo_Feed_Products
321
  $from = $this->sale_price_effective_date($product->id, '_sale_price_dates_from');
322
  $to = $this->sale_price_effective_date($product->id, '_sale_price_dates_to');
323
  if (!empty($from) && !empty($to)) {
324
- $from = date('Y-m-d\TH:iO', $from);
325
- $to = date('Y-m-d\TH:iO', $to);
326
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
327
  } else {
328
  $this->productsList[$i]['sale_price_effective_date'] = "";
329
  }
330
- }
331
  }
332
  }
333
  $i++;
@@ -387,7 +481,7 @@ class Woo_Feed_Products
387
  if ($qty) {
388
  return $qty + 0;
389
  }
390
- return false;
391
  }
392
 
393
  /**
@@ -750,6 +844,9 @@ class Woo_Feed_Products
750
  return $str;
751
  }
752
 
 
 
 
753
  public function load_attributes()
754
  {
755
  # Get All WooCommerce Attributes
@@ -842,7 +939,6 @@ class Woo_Feed_Products
842
  }
843
 
844
  # Get All WooCommerce Attributes
845
- //$vAttributes = $this->getAllAttributes();
846
  $vAttributes = get_option("wpfw_vAttributes");
847
  if ($vAttributes) {
848
  $str .= "<optgroup label='Product Attributes'>";
@@ -857,7 +953,6 @@ class Woo_Feed_Products
857
  }
858
 
859
  # Get All Custom Attributes
860
- //$customAttributes = $this->getAllCustomAttributes();
861
  $customAttributes = get_option("wpfw_customAttributes");
862
  if ($customAttributes) {
863
  $str .= "<optgroup label='Variation & Custom Attributes'>";
63
  * @var array $attributeList attributes list array.
64
  */
65
  public $attributeList;
66
+
67
+ public $feedRule;
68
 
69
  /**
70
+ * Get WooCommerce Product
71
+ * @param string $feedRule
72
  * @return array
73
  */
74
+ public function woo_feed_get_visible_product($feedRule="")
75
  {
76
+
77
+ if(!empty($feedRule)){
78
+ $this->feedRule=$feedRule;
79
+ }
80
  # Query Database for products
81
  $loop = new WP_Query(
82
  array(
128
  $mainImage = wp_get_attachment_url($product->get_image_id());
129
  $link = $product->get_permalink($this->childID);
130
 
131
+ if($this->feedRule['provider']!='custom'){
132
+ if (substr(trim($link), 0, 4) !== "http" && substr(trim($mainImage), 0, 4) !== "http") {
133
+ continue;
134
+ }
135
+ }
136
 
137
  $this->productsList[$i]['id'] = $this->childID;
138
  $this->productsList[$i]['variation_type'] = "child";
195
  $from = $this->sale_price_effective_date($this->childID, '_sale_price_dates_from');
196
  $to = $this->sale_price_effective_date($this->childID, '_sale_price_dates_to');
197
  if (!empty($from) && !empty($to)) {
198
+ $from = date("c", strtotime($from));
199
+ $to = date("c", strtotime($to));
200
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
201
  } else {
202
  $this->productsList[$i]['sale_price_effective_date'] = "";
203
  }
204
+
205
  }
206
  } elseif (get_post_type() == 'product') {
207
  if ($type1 == 'simple') {
209
  $mainImage = wp_get_attachment_url($product->get_image_id());
210
  $link = get_permalink($post->ID);
211
 
212
+ if($this->feedRule['provider']!='custom'){
213
+ if (substr(trim($link), 0, 4) !== "http" && substr(trim($mainImage), 0, 4) !== "http") {
214
+ continue;
215
+ }
216
+ }
217
+
218
  $this->productsList[$i]['id'] = $product->id;
219
  $this->productsList[$i]['variation_type'] = "simple";
220
  $this->productsList[$i]['title'] = $product->get_title();
268
  $from = $this->sale_price_effective_date($product->id, '_sale_price_dates_from');
269
  $to = $this->sale_price_effective_date($product->id, '_sale_price_dates_to');
270
  if (!empty($from) && !empty($to)) {
271
+ $from = date("c", strtotime($from));
272
+ $to = date("c", strtotime($to));
273
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
274
  } else {
275
  $this->productsList[$i]['sale_price_effective_date'] = "";
276
  }
277
+
278
+ }else if($type1 == 'external'){
279
+ $mainImage = wp_get_attachment_url($product->get_image_id());
280
+
281
+ $getLink=new WC_Product_External($post->ID);
282
+ $link = $getLink->get_product_url();
283
+ if($this->feedRule['provider']!='custom'){
284
+ if (substr(trim($link), 0, 4) !== "http" && substr(trim($mainImage), 0, 4) !== "http") {
285
+ continue;
286
+ }
287
  }
288
+
289
+ $this->productsList[$i]['id'] = $product->id;
290
+ $this->productsList[$i]['variation_type'] = "external";
291
+ $this->productsList[$i]['title'] = $product->get_title();
292
+ $this->productsList[$i]['description'] = do_shortcode($post->post_content);
293
+
294
+ $this->productsList[$i]['short_description'] = $post->post_excerpt;
295
+ $this->productsList[$i]['product_type'] = $this->get_product_term_list($post->ID, 'product_cat', "", ">");// $this->categories($this->parentID);//TODO
296
+ $this->productsList[$i]['link'] = $link;
297
+ $this->productsList[$i]['image'] = $this->get_formatted_url($mainImage);
298
+
299
+ # Featured Image
300
+ if (has_post_thumbnail($post->ID)):
301
+ $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
302
+ $this->productsList[$i]['feature_image'] = $this->get_formatted_url($image[0]);
303
+ else:
304
+ $this->productsList[$i]['feature_image'] = $this->get_formatted_url($mainImage);
305
+ endif;
306
+
307
+ # Additional Images
308
+ $images = $this->additionalImages($product->get_gallery_attachment_ids());
309
+ if ($images and is_array($images)) {
310
+ foreach ($images as $key => $value) {
311
+ if ($value != $this->productsList[$i]['image']) {
312
+ $this->productsList[$i]["image_$key"] = $this->get_formatted_url($value);
313
+ }
314
+ }
315
+ }
316
+
317
+ $this->productsList[$i]['condition'] = "New";
318
+ $this->productsList[$i]['type'] = $product->get_type();
319
+ $this->productsList[$i]['visibility'] = $product->visibility;
320
+ $this->productsList[$i]['rating_total'] = $product->get_rating_count();
321
+ $this->productsList[$i]['rating_average'] = $product->get_average_rating();
322
+ $this->productsList[$i]['tags'] = $this->get_product_term_list($post->ID, 'product_tag');
323
+
324
+ $this->productsList[$i]['item_group_id'] = $product->id;
325
+ $this->productsList[$i]['sku'] = $product->get_sku();
326
+
327
+ $this->productsList[$i]['availability'] = $this->availability($product->stock_status);
328
+
329
+ $this->productsList[$i]['quantity'] = $this->get_quantity($product->id, "_stock");
330
+ $this->productsList[$i]['sale_price_sdate'] = $this->get_date($product->id, "_sale_price_dates_from");
331
+ $this->productsList[$i]['sale_price_edate'] = $this->get_date($product->id, "_sale_price_dates_to");
332
+ $this->productsList[$i]['price'] = ($product->get_regular_price()) ? $product->get_regular_price() : false;
333
+ $this->productsList[$i]['price_with_tax'] = ($product->is_taxable()) ? $product->get_price_including_tax() : $product->get_regular_price();
334
+ $this->productsList[$i]['sale_price'] = ($product->get_sale_price()) ? $product->get_sale_price() : false;
335
+ $this->productsList[$i]['weight'] = ($product->get_weight()) ? $product->get_weight() : false;
336
+ $this->productsList[$i]['width'] = ($product->get_width()) ? $product->get_width() : false;
337
+ $this->productsList[$i]['height'] = ($product->get_height()) ? $product->get_height() : false;
338
+ $this->productsList[$i]['length'] = ($product->get_length()) ? $product->get_length() : false;
339
+
340
+ # Sale price effective date
341
+ $from = $this->sale_price_effective_date($product->id, '_sale_price_dates_from');
342
+ $to = $this->sale_price_effective_date($product->id, '_sale_price_dates_to');
343
+ if (!empty($from) && !empty($to)) {
344
+ $from = date("c", strtotime($from));
345
+ $to = date("c", strtotime($to));
346
+ $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
347
+ } else {
348
+ $this->productsList[$i]['sale_price_effective_date'] = "";
349
+ }
350
+
351
  } else if ($type1 == 'variable' && $product->has_child()) {
352
 
353
  # Check Valid URL
354
  $mainImage = wp_get_attachment_url($product->get_image_id());
355
  $link = get_permalink($post->ID);
356
 
357
+ if($this->feedRule['provider']!='custom'){
358
+ if (substr(trim($link), 0, 4) !== "http" && substr(trim($mainImage), 0, 4) !== "http") {
359
+ continue;
360
+ }
361
+ }
362
+
363
 
364
  $this->productsList[$i]['id'] = $product->id;
365
  $this->productsList[$i]['variation_type'] = "parent";
415
  $from = $this->sale_price_effective_date($product->id, '_sale_price_dates_from');
416
  $to = $this->sale_price_effective_date($product->id, '_sale_price_dates_to');
417
  if (!empty($from) && !empty($to)) {
418
+ $from = date("c", strtotime($from));
419
+ $to = date("c", strtotime($to));
420
  $this->productsList[$i]['sale_price_effective_date'] = "$from" . "/" . "$to";
421
  } else {
422
  $this->productsList[$i]['sale_price_effective_date'] = "";
423
  }
424
+
425
  }
426
  }
427
  $i++;
481
  if ($qty) {
482
  return $qty + 0;
483
  }
484
+ return "0";
485
  }
486
 
487
  /**
844
  return $str;
845
  }
846
 
847
+ /**
848
+ * Load all WooCommerce attributes into an option
849
+ */
850
  public function load_attributes()
851
  {
852
  # Get All WooCommerce Attributes
939
  }
940
 
941
  # Get All WooCommerce Attributes
 
942
  $vAttributes = get_option("wpfw_vAttributes");
943
  if ($vAttributes) {
944
  $str .= "<optgroup label='Product Attributes'>";
953
  }
954
 
955
  # Get All Custom Attributes
 
956
  $customAttributes = get_option("wpfw_customAttributes");
957
  if ($customAttributes) {
958
  $str .= "<optgroup label='Variation & Custom Attributes'>";
includes/classes/class-woo-feed-progress.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Created by PhpStorm.
5
- * User: wahid
6
- * Date: 2/13/2016
7
- * Time: 6:52 PM
8
- */
9
- header('Content-Type: text/event-stream');
10
- // recommended to prevent caching of event data.
11
- header('Cache-Control: no-cache');
12
-
13
- class Woo_Feed_Progress
14
- {
15
- public function send_message($message, $progress)
16
- {
17
- sleep(1);
18
- $id = array('message' => $message, 'progress' => $progress);
19
-
20
- echo "id: $id" . PHP_EOL;
21
- echo "data: " . json_encode($id) . PHP_EOL;
22
- echo PHP_EOL;
23
-
24
- ob_flush();
25
- flush();
26
- }
27
- }
28
-
29
- $progress = new Woo_Feed_Progress();
30
- for ($i = 1; $i <= 10; $i++) {
31
- $progress->send_message($i, 'on iteration ' . $i . ' of 10', $i * 10);
32
-
33
- sleep(1);
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/feeds/class-woo-feed-amazon.php ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Amazon
5
+ *
6
+ * Responsible for processing and generating amazon feed
7
+ *
8
+ * @since 1.0.0
9
+ * @package Shopping
10
+ *
11
+ */
12
+ class Woo_Feed_Amazon
13
+ {
14
+ /**
15
+ * This variable is responsible for holding all product attributes and their values
16
+ *
17
+ * @since 1.0.0
18
+ * @var array $products Contains all the product attributes to generate feed
19
+ * @access public
20
+ */
21
+ public $products;
22
+
23
+ /**
24
+ * This variable is responsible for holding feed configuration form values
25
+ *
26
+ * @since 1.0.0
27
+ * @var Custom $rules Contains feed configuration form values
28
+ * @access public
29
+ */
30
+ public $rules;
31
+
32
+
33
+ /**
34
+ * Store product information
35
+ *
36
+ * @since 1.0.0
37
+ * @var array $storeProducts
38
+ * @access public
39
+ */
40
+ private $storeProducts;
41
+
42
+ private $engine;
43
+
44
+ /**
45
+ * Define the core functionality to generate feed.
46
+ *
47
+ * Set the feed rules. Map products according to the rules and Check required attributes
48
+ * and their values according to merchant specification.
49
+ * @var Woo_Generate_Feed $feedRule Contain Feed Configuration
50
+ * @since 1.0.0
51
+ */
52
+ public function __construct($feedRule)
53
+ {
54
+ $products = new Woo_Feed_Products();
55
+ $storeProducts = $products->woo_feed_get_visible_product($feedRule);
56
+ $this->engine = new WF_Engine($storeProducts, $feedRule);
57
+ $this->products = $this->engine->mapProductsByRules();
58
+ $this->rules = $feedRule;
59
+ $this->rules['feedType'] = 'txt';
60
+ }
61
+
62
+
63
+ /**
64
+ * Responsible to make TXT feed
65
+ * @return string
66
+ */
67
+ public function get_txt_feed()
68
+ {
69
+ if (count($this->products)) {
70
+
71
+ $delimiter = "\t";
72
+ $enclosure = "";
73
+ $getHeader=new Woo_Feed_Default_Attributes();
74
+
75
+ if (count($this->products)) {
76
+ $provider= $this->rules['provider'];
77
+ $firstRow=$provider."_first_row";
78
+ $method=$provider."Attributes";
79
+
80
+ $feed[]=$getHeader->$firstRow();
81
+ $feed[] = array_values($getHeader->$method());
82
+ $feed[] = array_keys($getHeader->$method());
83
+
84
+ foreach ($this->products as $no => $product) {
85
+ $row = array();
86
+ foreach ($feed[2] as $key => $header) {
87
+ $row[] = isset($product[$header]) ? $this->engine->processStringForTXT($product[$header]):"";
88
+ }
89
+ $feed[] = $row;
90
+ }
91
+ $str = "";
92
+ foreach ($feed as $fields) {
93
+ $str .= $enclosure . implode("$enclosure$delimiter$enclosure", $fields) . $enclosure . "\n";
94
+ }
95
+ return $str;
96
+ }
97
+ }
98
+
99
+ return false;
100
+ }
101
+
102
+
103
+ /**
104
+ * Return Feed
105
+ *
106
+ * @return array|bool|string
107
+ */
108
+ public function returnFinalProduct()
109
+ {
110
+ return $this->get_txt_feed();
111
+ }
112
+
113
+
114
+ }
includes/feeds/class-woo-feed-custom.php CHANGED
@@ -50,7 +50,7 @@ class Woo_Feed_Custom
50
  public function __construct($feedRule)
51
  {
52
  $products = new Woo_Feed_Products();
53
- $storeProducts = $products->woo_feed_get_visible_product();
54
  $engine = new WF_Engine($storeProducts, $feedRule);
55
  $this->products = $engine->mapProductsByRules();
56
  $this->rules = $feedRule;
50
  public function __construct($feedRule)
51
  {
52
  $products = new Woo_Feed_Products();
53
+ $storeProducts = $products->woo_feed_get_visible_product($feedRule);
54
  $engine = new WF_Engine($storeProducts, $feedRule);
55
  $this->products = $engine->mapProductsByRules();
56
  $this->rules = $feedRule;
includes/feeds/class-woo-feed-facebook.php CHANGED
@@ -86,16 +86,14 @@ class Woo_Feed_Facebook
86
  public function __construct($feedRule)
87
  {
88
  $products = new Woo_Feed_Products();
89
- $storeProducts = $products->woo_feed_get_visible_product();
90
  $engine = new WF_Engine($storeProducts, $feedRule);
91
  $this->products = $engine->mapProductsByRules();
92
  $this->rules = $feedRule;
93
  if ($feedRule['feedType'] == 'xml') {
94
  $this->mapAttributeForXML();
95
- $this->process_google_shipping_attribute_for_xml();
96
  } else {
97
  $this->mapAttributeForCSVTXT();
98
- $this->process_google_shipping_attribute_for_CSVTXT();
99
  }
100
 
101
  }
@@ -124,89 +122,82 @@ class Woo_Feed_Facebook
124
  */
125
  public function mapAttributeForXML()
126
  {
127
- //Basic product information
128
- $this->mapAttribute('id', 'g:id', true);
129
- $this->mapAttribute('title', 'g:title', true);
130
- $this->mapAttribute('description', 'g:description', true);
131
- $this->mapAttribute('link', 'g:link', true);
132
- $this->mapAttribute('product_type', 'g:product_type', true);
133
- $this->mapAttribute('current_category', 'g:google_product_category', true);
134
- $this->mapAttribute('image', 'g:image_link', true);
135
- $this->mapAttribute('images', 'g:additional_image_link', false);
136
- $this->mapAttribute('condition', 'g:condition', false);
137
-
138
- //Availability & Price
139
- $this->mapAttribute('availability', 'g:availability', false);
140
- $this->mapAttribute('price', 'g:price', false);
141
- $this->mapAttribute('sale_price', 'g:sale_price', false);
142
- $this->mapAttribute('sale_price_effective_date', 'g:sale_price_effective_date', true);
143
-
144
- //Unique Product Identifiers
145
- $this->mapAttribute('brand', 'g:brand', true);
146
- $this->mapAttribute('sku', 'g:mpn', true);
147
- $this->mapAttribute('upc', 'g:gtin', true);
148
- $this->mapAttribute('identifier_exists', 'g:identifier_exists', true);
149
-
150
- //Detailed Product Attributes
151
- $this->mapAttribute('item_group_id', 'g:item_group_id', false);
152
- $this->mapAttribute('color', 'g:color', true);
153
- $this->mapAttribute('gender', 'g:gender', true);
154
- $this->mapAttribute('age_group', 'g:age_group', false);
155
- $this->mapAttribute('material', 'g:material', true);
156
- $this->mapAttribute('pattern', 'g:pattern', true);
157
- $this->mapAttribute('size', 'g:size', true);
158
- $this->mapAttribute('size_type', 'g:size_type', true);
159
- $this->mapAttribute('size_system', 'g:size_system', true);
160
-
161
- //Tax & Shipping
162
- //$this->mapAttribute('tax', 'g:tax', false);
163
- $this->mapAttribute('weight', 'g:shipping_weight', false);
164
- $this->mapAttribute('length', 'g:shipping_length', false);
165
- $this->mapAttribute('width', 'g:shipping_width', false);
166
- $this->mapAttribute('height', 'g:shipping_height', false);
167
- $this->mapAttribute('shipping_label', 'g:shipping_label', false);
168
- $this->mapAttribute('shipping_country', 'g:shipping_country', false);
169
- $this->mapAttribute('shipping_service', 'g:shipping_service', false);
170
- $this->mapAttribute('shipping_price', 'g:shipping_price', false);
171
-
172
-
173
- //Product Combinations
174
- $this->mapAttribute('multipack', 'g:multipack', true);
175
- $this->mapAttribute('is_bundle', 'g:is_bundle', true);
176
- $this->mapAttribute('adult', 'g:adult', true);
177
-
178
- //Adults Product
179
- $this->mapAttribute('adult', 'g:adult', true);
180
-
181
- //AdWord Attributes
182
- $this->mapAttribute('adwords_redirect', 'g:adwords_redirect', true);
183
 
184
- //Custom Label Attributes for Shopping Campaigns
185
- $this->mapAttribute('custom_label_0', 'g:custom_label_0', true);
186
- $this->mapAttribute('custom_label_1', 'g:custom_label_1', true);
187
- $this->mapAttribute('custom_label_2', 'g:custom_label_2', true);
188
- $this->mapAttribute('custom_label_3', 'g:custom_label_3', true);
189
- $this->mapAttribute('custom_label_4', 'g:custom_label_4', true);
190
-
191
- //Additional Attributes
192
- $this->mapAttribute('excluded_destination', 'g:excluded_destination', true);
193
- $this->mapAttribute('expiration_date', 'g:expiration_date', true);
194
-
195
- //Unit Prices
196
- $this->mapAttribute('unit_pricing_measure', 'g:unit_pricing_measure', true);
197
- $this->mapAttribute('unit_pricing_base_measure', 'g:unit_pricing_base_measure', true);
198
-
199
- //Energy Labels
200
- $this->mapAttribute('energy_efficiency_class', 'g:energy_efficiency_class', true);
201
-
202
- //Loyalty Points (Japan Only)
203
- $this->mapAttribute('loyalty_points', 'g:loyalty_points', true);
204
-
205
- //Multiple Installments (Brazil Only)
206
- $this->mapAttribute('installment', 'g:installment', true);
207
-
208
- //Merchant Promotions Attribute
209
- $this->mapAttribute('promotion_id', 'g:promotion_id', true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  }
211
 
212
  /**
@@ -215,193 +206,151 @@ class Woo_Feed_Facebook
215
  public function mapAttributeForCSVTXT()
216
  {
217
  //Basic product information
218
- $this->mapAttribute('id', 'id', false);
219
- $this->mapAttribute('title', 'title', true);
220
- $this->mapAttribute('description', 'description', true);
221
- $this->mapAttribute('link', 'link', true);
222
- $this->mapAttribute('mobile_link', 'mobile link', true);
223
- $this->mapAttribute('product_type', 'product type', true);
224
- $this->mapAttribute('current_category', 'google product category', true);
225
- $this->mapAttribute('image', 'image link', true);
226
- $this->mapAttribute('images_1', 'additional image link 1', true);
227
- $this->mapAttribute('images_2', 'additional image link 2', true);
228
- $this->mapAttribute('images_3', 'additional image link 3', true);
229
- $this->mapAttribute('images_4', 'additional image link 4', true);
230
- $this->mapAttribute('images_5', 'additional image link 5', true);
231
- $this->mapAttribute('images_6', 'additional image link 6', true);
232
- $this->mapAttribute('images_7', 'additional image link 7', true);
233
- $this->mapAttribute('images_8', 'additional image link 8', true);
234
- $this->mapAttribute('images_9', 'additional image link 9', true);
235
- $this->mapAttribute('images_10', 'additional image link 10', true);
236
- $this->mapAttribute('condition', 'condition', false);
237
-
238
- //Availability & Price
239
- $this->mapAttribute('availability', 'availability', false);
240
- $this->mapAttribute('price', 'price', false);
241
- $this->mapAttribute('sale_price', 'sale price', false);
242
- $this->mapAttribute('sale_price_effective_date', 'sale price effective date', true);
243
-
244
- //Unique Product Identifiers
245
- $this->mapAttribute('brand', 'brand', true);
246
- $this->mapAttribute('sku', 'mpn', true);
247
- $this->mapAttribute('upc', 'gtin', true);
248
- $this->mapAttribute('identifier_exists', 'identifier exists', true);
249
-
250
- //Detailed Product Attributes
251
- $this->mapAttribute('item_group_id', 'item group id', false);
252
- $this->mapAttribute('color', 'color', true);
253
- $this->mapAttribute('gender', 'gender', true);
254
- $this->mapAttribute('age_group', 'age group', false);
255
- $this->mapAttribute('material', 'material', true);
256
- $this->mapAttribute('pattern', 'pattern', true);
257
- $this->mapAttribute('size', 'size', true);
258
- $this->mapAttribute('size_type', 'size type', true);
259
- $this->mapAttribute('size_system', 'size system', true);
260
-
261
- //Tax & Shipping
262
- $this->mapAttribute('tax', 'tax', false);
263
- $this->mapAttribute('weight', 'shipping weight', false);
264
- $this->mapAttribute('length', 'shipping length', false);
265
- $this->mapAttribute('width', 'shipping width', false);
266
- $this->mapAttribute('height', 'shipping height', false);
267
- $this->mapAttribute('shipping_label', 'shipping label', false);
268
- $this->mapAttribute('shipping_country', 'shipping country', false);
269
- $this->mapAttribute('shipping_service', 'shipping service', false);
270
- $this->mapAttribute('shipping_price', 'shipping price', false);
271
-
272
- //Product Combinations
273
- $this->mapAttribute('multipack', 'multipack', true);
274
- $this->mapAttribute('is_bundle', 'is bundle', true);
275
- $this->mapAttribute('adult', 'adult', true);
276
-
277
- //Adults Product
278
- $this->mapAttribute('adult', 'adult', true);
279
-
280
- //AdWord Attributes
281
- $this->mapAttribute('adwords_redirect', 'adwords redirect', true);
282
-
283
- //Custom Label Attributes for Shopping Campaigns
284
- $this->mapAttribute('custom_label_0', 'custom label 0', true);
285
- $this->mapAttribute('custom_label_1', 'custom label 1', true);
286
- $this->mapAttribute('custom_label_2', 'custom label 2', true);
287
- $this->mapAttribute('custom_label_3', 'custom label 3', true);
288
- $this->mapAttribute('custom_label_4', 'custom label 4', true);
289
-
290
- //Additional Attributes
291
- $this->mapAttribute('excluded_destination', 'excluded destination', true);
292
- $this->mapAttribute('expiration_date', 'expiration date', true);
293
-
294
- //Unit Prices
295
- $this->mapAttribute('unit_pricing_measure', 'unit pricing measure', true);
296
- $this->mapAttribute('unit_pricing_base_measure', 'unit pricing base measure', true);
297
-
298
- //Energy Labels
299
- $this->mapAttribute('energy_efficiency_class', 'energy efficiency class', true);
300
-
301
- //Loyalty Points (Japan Only)
302
- $this->mapAttribute('loyalty_points', 'loyalty points', true);
303
-
304
- //Multiple Installments (Brazil Only)
305
- $this->mapAttribute('installment', 'installment', true);
306
-
307
- //Merchant Promotions Attribute
308
- $this->mapAttribute('promotion_id', 'promotion id', true);
309
  }
310
 
311
  /**
312
  * Map to google attribute
 
313
  * @param $from
314
  * @param $to
 
315
  * @param bool $cdata
 
316
  */
317
- public function mapAttribute($from, $to, $cdata = false)
318
  {
319
- $i = 0;
320
- $identifier = array('brand', 'upc', 'sku');
321
- if ($this->products) {
322
- foreach ($this->products as $no => $product) {
323
- foreach ($product as $key => $value) {
324
- if ($key == $from) {
325
- unset($this->products[$no][$from]);
326
- if ($this->rules['feedType'] == 'xml') {
327
- $this->products[$no][$to] = $this->formatXMLLine($to, $value, $cdata);
328
- } else {
329
- if (!empty($value)) {
330
- $this->products[$no][$to] = trim($value);
331
- } else {
332
- $this->products[$no][$to] = $value;
333
- }
334
-
335
- }
336
- }
337
- }
338
- $i++;
339
- }
340
  }
341
  }
342
 
343
- /**
344
- * Process google shipping attribute for xml
345
- */
346
- public function process_google_shipping_attribute_for_xml()
347
  {
348
- $shipping = array('g:shipping_country', 'g:shipping_service', 'g:shipping_price');
349
  $shippingAttr = array();
350
- $i = 0;
351
- if ($this->products) {
352
- foreach ($this->products as $no => $products) {
353
- foreach ($products as $keyAttr => $valueAttr) {
354
- if (in_array($keyAttr, $shipping)) {
355
- array_push($shippingAttr, array($keyAttr => $valueAttr));
356
- unset($this->products[$no][$keyAttr]);
357
- }
358
- }
359
- if (count($shippingAttr)) {
360
- $str = "";
361
- foreach ($shippingAttr as $key => $attributes) {
362
- foreach ($attributes as $keyAttr => $valueAttr) {
363
- $str .= str_replace("shipping_", "", $valueAttr);
364
- }
365
- }
366
- $this->products[$no]['g:shipping'] = $this->formatXMLLine("g:shipping", $str, false);
367
  }
368
- $i++;
369
- $shippingAttr = array();
370
  }
 
371
  }
 
372
  }
373
 
374
- /**
375
- * Process google shipping attribute for csv and txt
376
- */
377
- public function process_google_shipping_attribute_for_CSVTXT()
378
  {
379
- $shipping = array('shipping country', 'shipping service', 'shipping price');
380
  $shippingAttr = array();
381
- $i = 0;
382
- if ($this->products) {
383
- foreach ($this->products as $no => $products) {
384
- foreach ($products as $keyAttr => $valueAttr) {
385
- if (in_array($keyAttr, $shipping)) {
386
- array_push($shippingAttr, array($keyAttr => $valueAttr));
387
- unset($this->products[$no][$keyAttr]);
388
- }
389
- }
390
- if (count($shippingAttr)) {
391
- $str = "";
392
- foreach ($shippingAttr as $key => $attributes) {
393
- foreach ($attributes as $keyAttr => $valueAttr) {
394
- $country = ($keyAttr == "shipping country") ? $str .= $valueAttr . ":" : "";
395
- $service = ($keyAttr == "shipping service") ? $str .= $valueAttr . ":" : "";
396
- $price = ($keyAttr == "shipping price") ? $str .= $valueAttr : "";
397
- }
398
- }
399
- $this->products[$no]['shipping(country:service:price)'] = str_replace(" : ", ":", $str);
400
  }
401
- $i++;
402
- $shippingAttr = array();
403
  }
 
404
  }
 
405
  }
406
 
407
  /**
@@ -413,17 +362,19 @@ class Woo_Feed_Facebook
413
  * @param string $space
414
  * @return string
415
  */
416
- function formatXMLLine($attribute, $value, $cdata, $space ="")
417
  {
418
  //Make single XML node
419
- if(!empty($value))
420
- $value=trim($value);
421
  if (gettype($value) == 'array')
422
  $value = json_encode($value);
423
  if (strpos($value, "<![CDATA[") === false && substr(trim($value), 0, 4) == "http") {
424
  $value = "<![CDATA[$value]]>";
425
  } elseif (strpos($value, "<![CDATA[") === false && $cdata === true && !empty($value)) {
426
  $value = "<![CDATA[$value]]>";
 
 
427
  }
428
 
429
  return "
86
  public function __construct($feedRule)
87
  {
88
  $products = new Woo_Feed_Products();
89
+ $storeProducts = $products->woo_feed_get_visible_product($feedRule);
90
  $engine = new WF_Engine($storeProducts, $feedRule);
91
  $this->products = $engine->mapProductsByRules();
92
  $this->rules = $feedRule;
93
  if ($feedRule['feedType'] == 'xml') {
94
  $this->mapAttributeForXML();
 
95
  } else {
96
  $this->mapAttributeForCSVTXT();
 
97
  }
98
 
99
  }
122
  */
123
  public function mapAttributeForXML()
124
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
 
126
+ $googleXMLAttribute = array(
127
+ "id" => array("g:id", false),
128
+ "title" => array("g:title", true),
129
+ "description" => array("g:description", true),
130
+ "link" => array("g:link", true),
131
+ "mobile_link" => array("g:mobile_link", true),
132
+ "product_type" => array("g:product_type", true),
133
+ "current_category" => array("g:google_product_category", true),
134
+ "image" => array("g:image_link", true),
135
+ "images" => array("g:additional_image_link", false),
136
+ "images_1" => array("g:additional_image_link", true),
137
+ "images_2" => array("g:additional_image_link", true),
138
+ "images_3" => array("g:additional_image_link", true),
139
+ "images_4" => array("g:additional_image_link", true),
140
+ "images_5" => array("g:additional_image_link", true),
141
+ "images_6" => array("g:additional_image_link", true),
142
+ "images_7" => array("g:additional_image_link", true),
143
+ "images_8" => array("g:additional_image_link", true),
144
+ "images_9" => array("g:additional_image_link", true),
145
+ "images_10" => array("g:additional_image_link", true),
146
+ "condition" => array("g:condition", false),
147
+ "availability" => array("g:availability", false),
148
+ "price" => array("g:price", true),
149
+ "sale_price" => array("g:sale_price", true),
150
+ "sale_price_effective_date" => array("g:sale_price_effective_date", true),
151
+ "brand" => array("g:brand", true),
152
+ "sku" => array("g:mpn", true),
153
+ "upc" => array("g:gtin", true),
154
+ "identifier_exists" => array("g:identifier_exists", true),
155
+ "item_group_id" => array("g:item_group_id", false),
156
+ "color" => array("g:color", true),
157
+ "gender" => array("g:gender", true),
158
+ "age_group" => array("g:age_group", true),
159
+ "material" => array("g:material", true),
160
+ "pattern" => array("g:pattern", true),
161
+ "size" => array("g:size", true),
162
+ "size_type" => array("g:size_type", true),
163
+ "size_system" => array("g:size_system", true),
164
+ "tax" => array("tax", true),
165
+ "weight" => array("g:shipping_weight", false),
166
+ "length" => array("g:shipping_length", false),
167
+ "width" => array("g:shipping_width", false),
168
+ "height" => array("g:shipping_height", false),
169
+ "shipping_label" => array("g:shipping_label", false),
170
+ "shipping_country" => array("g:shipping_country", false),
171
+ "shipping_service" => array("g:shipping_service", false),
172
+ "shipping_price" => array("g:shipping_price", false),
173
+ "shipping_region" => array("g:shipping_region", false),
174
+ "multipack" => array("g:multipack", true),
175
+ "is_bundle" => array("g:is_bundle", true),
176
+ "adult" => array("g:adult", true),
177
+ "adwords_redirect" => array("g:adwords_redirect", true),
178
+ "custom_label_0" => array("g:custom_label_0", true),
179
+ "custom_label_1" => array("g:custom_label_1", true),
180
+ "custom_label_2" => array("g:custom_label_2", true),
181
+ "custom_label_3" => array("g:custom_label_3", true),
182
+ "custom_label_4" => array("g:custom_label_4", true),
183
+ "excluded_destination" => array("g:excluded_destination", true),
184
+ "expiration_date" => array("g:expiration_date", true),
185
+ "unit_pricing_measure" => array("g:unit_pricing_measure", true),
186
+ "unit_pricing_base_measure" => array("g:unit_pricing_base_measure", true),
187
+ "energy_efficiency_class" => array("g:energy_efficiency_class", true),
188
+ "loyalty_points" => array("g:loyalty_points", true),
189
+ "installment" => array("g:installment", true),
190
+ "promotion_id" => array("g:promotion_id", true),
191
+ );
192
+
193
+ if (count($this->products)) {
194
+ foreach ($this->products as $no => $product) {
195
+ foreach ($product as $key => $value) {
196
+ $this->mapAttribute($no, $key, $googleXMLAttribute[$key][0], $value, $googleXMLAttribute[$key][0]);
197
+ }
198
+ $this->process_google_shipping_attribute_for_xml($no);
199
+ }
200
+ }
201
  }
202
 
203
  /**
206
  public function mapAttributeForCSVTXT()
207
  {
208
  //Basic product information
209
+ $googleCSVTXTAttribute = array(
210
+ "id" => array("id", false),
211
+ "title" => array("title", true),
212
+ "description" => array("description", true),
213
+ "link" => array("link", true),
214
+ "mobile_link" => array("mobile_link", true),
215
+ "product_type" => array("product type", true),
216
+ "current_category" => array("google product category", true),
217
+ "image" => array("image link", true),
218
+ "images_1" => array("additional image link 1", true),
219
+ "images_2" => array("additional image link 2", true),
220
+ "images_3" => array("additional image link 3", true),
221
+ "images_4" => array("additional image link 4", true),
222
+ "images_5" => array("additional image link 5", true),
223
+ "images_6" => array("additional image link 6", true),
224
+ "images_7" => array("additional image link 7", true),
225
+ "images_8" => array("additional image link 8", true),
226
+ "images_9" => array("additional image link 9", true),
227
+ "images_10" => array("additional image link 10", true),
228
+ "condition" => array("condition", false),
229
+ "availability" => array("availability", false),
230
+ "price" => array("price", true),
231
+ "sale_price" => array("sale price", true),
232
+ "sale_price_effective_date" => array("sale price effective date", true),
233
+ "brand" => array("brand", true),
234
+ "sku" => array("mpn", true),
235
+ "upc" => array("gtin", true),
236
+ "identifier_exists" => array("identifier exists", true),
237
+ "item_group_id" => array("item group id", false),
238
+ "color" => array("color", true),
239
+ "gender" => array("gender", true),
240
+ "age_group" => array("age group", true),
241
+ "material" => array("material", true),
242
+ "pattern" => array("pattern", true),
243
+ "size" => array("size", true),
244
+ "size_type" => array("size type", true),
245
+ "size_system" => array("size system", true),
246
+ "tax" => array("tax", true),
247
+ "weight" => array("shipping weight", false),
248
+ "length" => array("shipping length", false),
249
+ "width" => array("shipping width", false),
250
+ "height" => array("shipping height", false),
251
+ "shipping_label" => array("shipping label", false),
252
+ "shipping_country" => array("shipping country", false),
253
+ "shipping_service" => array("shipping service", false),
254
+ "shipping_price" => array("shipping price", false),
255
+ "shipping_region" => array("shipping region", false),
256
+ "multipack" => array("multipack", true),
257
+ "is_bundle" => array("is bundle", true),
258
+ "adult" => array("adult", true),
259
+ "adwords_redirect" => array("adwords redirect", true),
260
+ "custom_label_0" => array("custom label 0", true),
261
+ "custom_label_1" => array("custom label 1", true),
262
+ "custom_label_2" => array("custom label 2", true),
263
+ "custom_label_3" => array("custom label 3", true),
264
+ "custom_label_4" => array("custom label 4", true),
265
+ "excluded_destination" => array("excluded destination", true),
266
+ "expiration_date" => array("expiration date", true),
267
+ "unit_pricing_measure" => array("unit pricing measure", true),
268
+ "unit_pricing_base_measure" => array("unit pricing base measure", true),
269
+ "energy_efficiency_class" => array("energy efficiency class", true),
270
+ "loyalty_points" => array("loyalty points", true),
271
+ "installment" => array("installment", true),
272
+ "promotion_id" => array("promotion id", true),
273
+ );
274
+
275
+ if (count($this->products)) {
276
+ foreach ($this->products as $no => $product) {
277
+ foreach ($product as $key => $value) {
278
+ $this->mapAttribute($no, $key, str_replace(" ", "_", $googleCSVTXTAttribute[$key][0]), $value, $googleCSVTXTAttribute[$key][0]);
279
+ }
280
+ $this->process_google_shipping_attribute_for_CSVTXT($no);
281
+ }
282
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  }
284
 
285
  /**
286
  * Map to google attribute
287
+ * @param $no
288
  * @param $from
289
  * @param $to
290
+ * @param $value
291
  * @param bool $cdata
292
+ * @return array
293
  */
294
+ public function mapAttribute($no, $from, $to, $value, $cdata = false)
295
  {
296
+ unset($this->products[$no][$from]);
297
+ if ($this->rules['feedType'] == 'xml') {
298
+ return $this->products[$no][$to] = $this->formatXMLLine($to, $value, $cdata);
299
+ } else {
300
+ return $this->products[$no][$to] = $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  }
302
  }
303
 
304
+
305
+ public
306
+ function process_google_shipping_attribute_for_xml($no)
 
307
  {
308
+ $shipping = array('g:shipping_country', 'g:shipping_service', 'g:shipping_price', 'g:shipping_region');
309
  $shippingAttr = array();
310
+ $products = $this->products[$no];
311
+ foreach ($products as $keyAttr => $valueAttr) {
312
+ if (in_array($keyAttr, $shipping)) {
313
+ array_push($shippingAttr, array($keyAttr => $valueAttr));
314
+ unset($this->products[$no][$keyAttr]);
315
+ }
316
+ }
317
+ if (count($shippingAttr)) {
318
+ $str = "";
319
+ foreach ($shippingAttr as $key => $attributes) {
320
+ foreach ($attributes as $keyAttr => $valueAttr) {
321
+ $str .= str_replace("shipping_", "", $valueAttr);
 
 
 
 
 
322
  }
 
 
323
  }
324
+ return $this->products[$no]['g:shipping'] = $this->formatXMLLine("g:shipping", $str, false);
325
  }
326
+ return false;
327
  }
328
 
329
+ public
330
+ function process_google_shipping_attribute_for_CSVTXT($no)
 
 
331
  {
332
+ $shipping = array('shipping_country', 'shipping_service', 'shipping_price', 'shipping_region');
333
  $shippingAttr = array();
334
+ $products = $this->products[$no];
335
+ foreach ($products as $keyAttr => $valueAttr) {
336
+ if (in_array($keyAttr, $shipping)) {
337
+ array_push($shippingAttr, array($keyAttr => $valueAttr));
338
+ unset($this->products[$no][$keyAttr]);
339
+ }
340
+ }
341
+ if (count($shippingAttr)) {
342
+ $str = "";
343
+ foreach ($shippingAttr as $key => $attributes) {
344
+ foreach ($attributes as $keyAttr => $valueAttr) {
345
+ $country = ($keyAttr == "shipping_country") ? $str .= $valueAttr . ":" : "";
346
+ $service = ($keyAttr == "shipping_service") ? $str .= $valueAttr . ":" : "";
347
+ $price = ($keyAttr == "shipping_price") ? $str .= $valueAttr : "";
348
+ $region = ($keyAttr == "shipping_region") ? $str .= $valueAttr . ":" : "";
 
 
 
 
349
  }
 
 
350
  }
351
+ return $this->products[$no]['shipping(country:region:service:price)'] = str_replace(" : ", ":", $str);
352
  }
353
+ return false;
354
  }
355
 
356
  /**
362
  * @param string $space
363
  * @return string
364
  */
365
+ function formatXMLLine($attribute, $value, $cdata, $space = "")
366
  {
367
  //Make single XML node
368
+ if (!empty($value))
369
+ $value = trim($value);
370
  if (gettype($value) == 'array')
371
  $value = json_encode($value);
372
  if (strpos($value, "<![CDATA[") === false && substr(trim($value), 0, 4) == "http") {
373
  $value = "<![CDATA[$value]]>";
374
  } elseif (strpos($value, "<![CDATA[") === false && $cdata === true && !empty($value)) {
375
  $value = "<![CDATA[$value]]>";
376
+ } elseif ($cdata) {
377
+ $value = "<![CDATA[$value]]>";
378
  }
379
 
380
  return "
includes/feeds/class-woo-feed-google.php CHANGED
@@ -43,10 +43,19 @@ class Woo_Feed_Google
43
  * This variable is responsible for generate error logs
44
  *
45
  * @since 1.0.0
46
- * @var array $errorLog Generate error logs
47
  * @access public
48
  */
49
- public $errorLog;
 
 
 
 
 
 
 
 
 
50
 
51
  /**
52
  * This variable is responsible for making error number
@@ -86,17 +95,14 @@ class Woo_Feed_Google
86
  public function __construct($feedRule)
87
  {
88
  $products = new Woo_Feed_Products();
89
- $storeProducts = $products->woo_feed_get_visible_product();
90
  $engine = new WF_Engine($storeProducts, $feedRule);
91
  $this->products = $engine->mapProductsByRules();
92
  $this->rules = $feedRule;
93
  if ($feedRule['feedType'] == 'xml') {
94
- $this->identifier_status_add();
95
  $this->mapAttributeForXML();
96
- $this->process_google_shipping_attribute_for_xml();
97
  } else {
98
  $this->mapAttributeForCSVTXT();
99
- $this->process_google_shipping_attribute_for_CSVTXT();
100
  }
101
  }
102
 
@@ -124,90 +130,86 @@ class Woo_Feed_Google
124
  */
125
  public function mapAttributeForXML()
126
  {
127
- //Basic product information
128
- $this->mapAttribute('id', 'g:id', true);
129
- $this->mapAttribute('title', 'title', true);
130
- $this->mapAttribute('description', 'description', true);
131
- $this->mapAttribute('link', 'link', true);
132
- $this->mapAttribute('product_type', 'g:product_type', true);
133
- $this->mapAttribute('current_category', 'g:google_product_category', true);
134
- $this->mapAttribute('image', 'g:image_link', true);
135
- $this->mapAttribute('images', 'g:additional_image_link', false);
136
- $this->mapAttribute('condition', 'g:condition', false);
137
-
138
- //Availability & Price
139
- $this->mapAttribute('availability', 'g:availability', false);
140
- $this->mapAttribute('price', 'g:price', false);
141
- $this->mapAttribute('sale_price', 'g:sale_price', false);
142
- $this->mapAttribute('sale_price_effective_date', 'g:sale_price_effective_date', true);
143
-
144
- //Unique Product Identifiers
145
- $this->mapAttribute('brand', 'g:brand', true);
146
- $this->mapAttribute('sku', 'g:mpn', true);
147
- $this->mapAttribute('upc', 'g:gtin', true);
148
- $this->mapAttribute('identifier_exists', 'g:identifier_exists', true);
149
-
150
- //Detailed Product Attributes
151
- $this->mapAttribute('item_group_id', 'g:item_group_id', false);
152
- $this->mapAttribute('color', 'g:color', true);
153
- $this->mapAttribute('gender', 'g:gender', true);
154
- $this->mapAttribute('age_group', 'g:age_group', false);
155
- $this->mapAttribute('material', 'g:material', true);
156
- $this->mapAttribute('pattern', 'g:pattern', true);
157
- $this->mapAttribute('size', 'g:size', true);
158
- $this->mapAttribute('size_type', 'g:size_type', true);
159
- $this->mapAttribute('size_system', 'g:size_system', true);
160
-
161
- //Tax & Shipping
162
- //$this->mapAttribute('tax', 'g:tax', false);
163
- $this->mapAttribute('weight', 'g:shipping_weight', false);
164
- $this->mapAttribute('length', 'g:shipping_length', false);
165
- $this->mapAttribute('width', 'g:shipping_width', false);
166
- $this->mapAttribute('height', 'g:shipping_height', false);
167
- $this->mapAttribute('shipping_label', 'g:shipping_label', false);
168
- $this->mapAttribute('shipping_country', 'g:shipping_country', false);
169
- $this->mapAttribute('shipping_region', 'g:shipping_region', false);
170
- $this->mapAttribute('shipping_service', 'g:shipping_service', false);
171
- $this->mapAttribute('shipping_price', 'g:shipping_price', false);
172
-
173
-
174
- //Product Combinations
175
- $this->mapAttribute('multipack', 'g:multipack', true);
176
- $this->mapAttribute('is_bundle', 'g:is_bundle', true);
177
- $this->mapAttribute('adult', 'g:adult', true);
178
-
179
- //Adults Product
180
- $this->mapAttribute('adult', 'g:adult', true);
181
-
182
- //AdWord Attributes
183
- $this->mapAttribute('adwords_redirect', 'g:adwords_redirect', true);
184
-
185
- //Custom Label Attributes for Shopping Campaigns
186
- $this->mapAttribute('custom_label_0', 'g:custom_label_0', true);
187
- $this->mapAttribute('custom_label_1', 'g:custom_label_1', true);
188
- $this->mapAttribute('custom_label_2', 'g:custom_label_2', true);
189
- $this->mapAttribute('custom_label_3', 'g:custom_label_3', true);
190
- $this->mapAttribute('custom_label_4', 'g:custom_label_4', true);
191
-
192
- //Additional Attributes
193
- $this->mapAttribute('excluded_destination', 'g:excluded_destination', true);
194
- $this->mapAttribute('expiration_date', 'g:expiration_date', true);
195
-
196
- //Unit Prices
197
- $this->mapAttribute('unit_pricing_measure', 'g:unit_pricing_measure', true);
198
- $this->mapAttribute('unit_pricing_base_measure', 'g:unit_pricing_base_measure', true);
199
-
200
- //Energy Labels
201
- $this->mapAttribute('energy_efficiency_class', 'g:energy_efficiency_class', true);
202
-
203
- //Loyalty Points (Japan Only)
204
- $this->mapAttribute('loyalty_points', 'g:loyalty_points', true);
205
-
206
- //Multiple Installments (Brazil Only)
207
- $this->mapAttribute('installment', 'g:installment', true);
208
-
209
- //Merchant Promotions Attribute
210
- $this->mapAttribute('promotion_id', 'g:promotion_id', true);
211
  }
212
 
213
  /**
@@ -216,213 +218,217 @@ class Woo_Feed_Google
216
  public function mapAttributeForCSVTXT()
217
  {
218
  //Basic product information
219
- $this->mapAttribute('id', 'id', false);
220
- $this->mapAttribute('title', 'title', true);
221
- $this->mapAttribute('description', 'description', true);
222
- $this->mapAttribute('link', 'link', true);
223
- $this->mapAttribute('mobile_link', 'mobile link', true);
224
- $this->mapAttribute('product_type', 'product type', true);
225
- $this->mapAttribute('current_category', 'google product category', true);
226
- $this->mapAttribute('image', 'image link', true);
227
- $this->mapAttribute('images_1', 'additional image link 1', true);
228
- $this->mapAttribute('images_2', 'additional image link 2', true);
229
- $this->mapAttribute('images_3', 'additional image link 3', true);
230
- $this->mapAttribute('images_4', 'additional image link 4', true);
231
- $this->mapAttribute('images_5', 'additional image link 5', true);
232
- $this->mapAttribute('images_6', 'additional image link 6', true);
233
- $this->mapAttribute('images_7', 'additional image link 7', true);
234
- $this->mapAttribute('images_8', 'additional image link 8', true);
235
- $this->mapAttribute('images_9', 'additional image link 9', true);
236
- $this->mapAttribute('images_10', 'additional image link 10', true);
237
- $this->mapAttribute('condition', 'condition', false);
238
-
239
- //Availability & Price
240
- $this->mapAttribute('availability', 'availability', false);
241
- $this->mapAttribute('price', 'price', false);
242
- $this->mapAttribute('sale_price', 'sale price', false);
243
- $this->mapAttribute('sale_price_effective_date', 'sale price effective date', true);
244
-
245
- //Unique Product Identifiers
246
- $this->mapAttribute('brand', 'brand', true);
247
- $this->mapAttribute('sku', 'mpn', true);
248
- $this->mapAttribute('upc', 'gtin', true);
249
- $this->mapAttribute('identifier_exists', 'identifier exists', true);
250
-
251
- //Detailed Product Attributes
252
- $this->mapAttribute('item_group_id', 'item group id', false);
253
- $this->mapAttribute('color', 'color', true);
254
- $this->mapAttribute('gender', 'gender', true);
255
- $this->mapAttribute('age_group', 'age group', false);
256
- $this->mapAttribute('material', 'material', true);
257
- $this->mapAttribute('pattern', 'pattern', true);
258
- $this->mapAttribute('size', 'size', true);
259
- $this->mapAttribute('size_type', 'size type', true);
260
- $this->mapAttribute('size_system', 'size system', true);
261
-
262
- //Tax & Shipping
263
- $this->mapAttribute('tax', 'tax', false);
264
- $this->mapAttribute('weight', 'shipping weight', false);
265
- $this->mapAttribute('length', 'shipping length', false);
266
- $this->mapAttribute('width', 'shipping width', false);
267
- $this->mapAttribute('height', 'shipping height', false);
268
- $this->mapAttribute('shipping_label', 'shipping label', false);
269
- $this->mapAttribute('shipping_country', 'shipping country', false);
270
- $this->mapAttribute('shipping_region', 'shipping region', false);
271
- $this->mapAttribute('shipping_service', 'shipping service', false);
272
- $this->mapAttribute('shipping_price', 'shipping price', false);
273
-
274
- //Product Combinations
275
- $this->mapAttribute('multipack', 'multipack', true);
276
- $this->mapAttribute('is_bundle', 'is bundle', true);
277
- $this->mapAttribute('adult', 'adult', true);
278
-
279
- //Adults Product
280
- $this->mapAttribute('adult', 'adult', true);
281
-
282
- //AdWord Attributes
283
- $this->mapAttribute('adwords_redirect', 'adwords redirect', true);
284
-
285
- //Custom Label Attributes for Shopping Campaigns
286
- $this->mapAttribute('custom_label_0', 'custom label 0', true);
287
- $this->mapAttribute('custom_label_1', 'custom label 1', true);
288
- $this->mapAttribute('custom_label_2', 'custom label 2', true);
289
- $this->mapAttribute('custom_label_3', 'custom label 3', true);
290
- $this->mapAttribute('custom_label_4', 'custom label 4', true);
291
-
292
- //Additional Attributes
293
- $this->mapAttribute('excluded_destination', 'excluded destination', true);
294
- $this->mapAttribute('expiration_date', 'expiration date', true);
295
-
296
- //Unit Prices
297
- $this->mapAttribute('unit_pricing_measure', 'unit pricing measure', true);
298
- $this->mapAttribute('unit_pricing_base_measure', 'unit pricing base measure', true);
299
-
300
- //Energy Labels
301
- $this->mapAttribute('energy_efficiency_class', 'energy efficiency class', true);
302
-
303
- //Loyalty Points (Japan Only)
304
- $this->mapAttribute('loyalty_points', 'loyalty points', true);
305
-
306
- //Multiple Installments (Brazil Only)
307
- $this->mapAttribute('installment', 'installment', true);
308
-
309
- //Merchant Promotions Attribute
310
- $this->mapAttribute('promotion_id', 'promotion id', true);
311
  }
312
 
313
  /**
314
  * Map to google attribute
 
315
  * @param $from
316
  * @param $to
 
317
  * @param bool $cdata
 
318
  */
319
- public function mapAttribute($from, $to, $cdata = false)
320
  {
321
- $i = 0;
322
- if ($this->products) {
323
- foreach ($this->products as $no => $product) {
324
- foreach ($product as $key => $value) {
325
- if ($key == $from) {
326
- unset($this->products[$no][$from]);
327
- if ($this->rules['feedType'] == 'xml') {
328
- $this->products[$no][$to] = $this->formatXMLLine($to, $value, $cdata);
329
- } else {
330
- $this->products[$no][$to] = $value;
331
- }
332
- }
333
- }
334
- $i++;
335
- }
336
  }
337
  }
338
 
339
- public function identifier_status_add()
340
  {
341
- $identifier = array('brand', 'upc', 'sku', 'EAN', 'JAN', 'ISBN', 'ITF-14', 'mpn', 'gtin');
342
- if ($this->products) {
343
- foreach ($this->products as $no => $product) {
344
- if ($this->rules['feedType'] == 'xml') {
345
- if (count(array_intersect_key(array_flip($identifier), $product)) >=2) {
346
- # Any 2 required keys exist!
347
- $this->products[$no]["g:identifier_exists"] = $this->formatXMLLine("g:identifier_exists", "TRUE", $cdata = true);
348
- } else {
349
- $this->products[$no]["g:identifier_exists"] = $this->formatXMLLine("g:identifier_exists", "FALSE", $cdata = true);
350
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  }
 
 
352
  }
353
  }
354
  }
355
 
356
- public function process_google_shipping_attribute_for_xml()
 
 
 
 
 
 
357
  {
358
- $shipping = array('g:shipping_country', 'g:shipping_service', 'g:shipping_price','g:shipping_region');
359
  $shippingAttr = array();
360
- $i = 0;
361
- if ($this->products) {
362
- foreach ($this->products as $no => $products) {
363
- foreach ($products as $keyAttr => $valueAttr) {
364
- if (in_array($keyAttr, $shipping)) {
365
- array_push($shippingAttr, array($keyAttr => $valueAttr));
366
- unset($this->products[$no][$keyAttr]);
367
- }
368
- }
369
- if (count($shippingAttr)) {
370
- $str = "";
371
- foreach ($shippingAttr as $key => $attributes) {
372
- foreach ($attributes as $keyAttr => $valueAttr) {
373
- $str .= str_replace("shipping_", "", $valueAttr);
374
- }
375
- }
376
- $this->products[$no]['g:shipping'] = $this->formatXMLLine("g:shipping", $str, false);
377
  }
378
- $i++;
379
- $shippingAttr = array();
380
  }
 
381
  }
 
382
  }
383
 
384
- public function process_google_shipping_attribute_for_CSVTXT()
 
 
 
 
 
385
  {
386
- $shipping = array('shipping country', 'shipping service', 'shipping price','shipping region');
387
  $shippingAttr = array();
388
- $i = 0;
389
- if ($this->products) {
390
- foreach ($this->products as $no => $products) {
391
- foreach ($products as $keyAttr => $valueAttr) {
392
- if (in_array($keyAttr, $shipping)) {
393
- array_push($shippingAttr, array($keyAttr => $valueAttr));
394
- unset($this->products[$no][$keyAttr]);
395
- }
396
- }
397
- if (count($shippingAttr)) {
398
- $str = "";
399
- foreach ($shippingAttr as $key => $attributes) {
400
- foreach ($attributes as $keyAttr => $valueAttr) {
401
- $country = ($keyAttr == "shipping country") ? $str .= $valueAttr . ":" : "";
402
- $region = ($keyAttr == "shipping region") ? $str .= $valueAttr . ":" : "";
403
- $service = ($keyAttr == "shipping service") ? $str .= $valueAttr . ":" : "";
404
- $price = ($keyAttr == "shipping price") ? $str .= $valueAttr : "";
405
- }
406
- }
407
- $this->products[$no]['shipping(country:service:price)'] = str_replace(" : ", ":", $str);
408
  }
409
- $i++;
410
- $shippingAttr = array();
411
  }
 
412
  }
 
413
  }
414
 
415
- function formatXMLLine($attribute, $value, $cdata, $space ="")
416
  {
417
  //Make single XML node
418
- if(!empty($value))
419
- $value=trim($value);
420
  if (gettype($value) == 'array')
421
  $value = json_encode($value);
422
  if (strpos($value, "<![CDATA[") === false && substr(trim($value), 0, 4) == "http") {
423
  $value = "<![CDATA[$value]]>";
424
  } elseif (strpos($value, "<![CDATA[") === false && $cdata === true && !empty($value)) {
425
  $value = "<![CDATA[$value]]>";
 
 
 
 
 
 
 
426
  }
427
 
428
  return "
@@ -430,6 +436,7 @@ class Woo_Feed_Google
430
  }
431
 
432
 
 
433
  public function get_feed_header()
434
  {
435
  $output = '<?xml version="1.0" encoding="UTF-8" ?>
43
  * This variable is responsible for generate error logs
44
  *
45
  * @since 1.0.0
46
+ * @var array $errors hold error logs
47
  * @access public
48
  */
49
+ public $errors;
50
+
51
+ /**
52
+ * This variable is responsible for generate error logs
53
+ *
54
+ * @since 1.0.0
55
+ * @var array $warnings hold warnings logs
56
+ * @access public
57
+ */
58
+ public $warnings;
59
 
60
  /**
61
  * This variable is responsible for making error number
95
  public function __construct($feedRule)
96
  {
97
  $products = new Woo_Feed_Products();
98
+ $storeProducts = $products->woo_feed_get_visible_product($feedRule);
99
  $engine = new WF_Engine($storeProducts, $feedRule);
100
  $this->products = $engine->mapProductsByRules();
101
  $this->rules = $feedRule;
102
  if ($feedRule['feedType'] == 'xml') {
 
103
  $this->mapAttributeForXML();
 
104
  } else {
105
  $this->mapAttributeForCSVTXT();
 
106
  }
107
  }
108
 
130
  */
131
  public function mapAttributeForXML()
132
  {
133
+
134
+ $googleXMLAttribute = array(
135
+ "id" => array("g:id", false),
136
+ "title" => array("title", true),
137
+ "description" => array("description", true),
138
+ "link" => array("link", true),
139
+ "mobile_link" => array("mobile_link", true),
140
+ "product_type" => array("g:product_type", true),
141
+ "current_category" => array("g:google_product_category", true),
142
+ "image" => array("g:image_link", true),
143
+ "images" => array("g:additional_image_link", false),
144
+ "images_1" => array("g:additional_image_link", true),
145
+ "images_2" => array("g:additional_image_link", true),
146
+ "images_3" => array("g:additional_image_link", true),
147
+ "images_4" => array("g:additional_image_link", true),
148
+ "images_5" => array("g:additional_image_link", true),
149
+ "images_6" => array("g:additional_image_link", true),
150
+ "images_7" => array("g:additional_image_link", true),
151
+ "images_8" => array("g:additional_image_link", true),
152
+ "images_9" => array("g:additional_image_link", true),
153
+ "images_10" => array("g:additional_image_link", true),
154
+ "condition" => array("g:condition", false),
155
+ "availability" => array("g:availability", false),
156
+ "price" => array("g:price", true),
157
+ "sale_price" => array("g:sale_price", true),
158
+ "sale_price_effective_date" => array("g:sale_price_effective_date", true),
159
+ "brand" => array("g:brand", true),
160
+ "sku" => array("g:mpn", true),
161
+ "upc" => array("g:gtin", true),
162
+ "identifier_exists" => array("g:identifier_exists", true),
163
+ "item_group_id" => array("g:item_group_id", false),
164
+ "color" => array("g:color", true),
165
+ "gender" => array("g:gender", true),
166
+ "age_group" => array("g:age_group", true),
167
+ "material" => array("g:material", true),
168
+ "pattern" => array("g:pattern", true),
169
+ "size" => array("g:size", true),
170
+ "size_type" => array("g:size_type", true),
171
+ "size_system" => array("g:size_system", true),
172
+ "tax" => array("tax", true),
173
+ "weight" => array("g:shipping_weight", false),
174
+ "length" => array("g:shipping_length", false),
175
+ "width" => array("g:shipping_width", false),
176
+ "height" => array("g:shipping_height", false),
177
+ "shipping_label" => array("g:shipping_label", false),
178
+ "shipping_country" => array("g:shipping_country", false),
179
+ "shipping_service" => array("g:shipping_service", false),
180
+ "shipping_price" => array("g:shipping_price", false),
181
+ "shipping_region" => array("g:shipping_region", false),
182
+ "multipack" => array("g:multipack", true),
183
+ "is_bundle" => array("g:is_bundle", true),
184
+ "adult" => array("g:adult", true),
185
+ "adwords_redirect" => array("g:adwords_redirect", true),
186
+ "custom_label_0" => array("g:custom_label_0", true),
187
+ "custom_label_1" => array("g:custom_label_1", true),
188
+ "custom_label_2" => array("g:custom_label_2", true),
189
+ "custom_label_3" => array("g:custom_label_3", true),
190
+ "custom_label_4" => array("g:custom_label_4", true),
191
+ "excluded_destination" => array("g:excluded_destination", true),
192
+ "expiration_date" => array("g:expiration_date", true),
193
+ "unit_pricing_measure" => array("g:unit_pricing_measure", true),
194
+ "unit_pricing_base_measure" => array("g:unit_pricing_base_measure", true),
195
+ "energy_efficiency_class" => array("g:energy_efficiency_class", true),
196
+ "loyalty_points" => array("g:loyalty_points", true),
197
+ "installment" => array("g:installment", true),
198
+ "promotion_id" => array("g:promotion_id", true),
199
+ );
200
+
201
+ if (count($this->products)) {
202
+ foreach ($this->products as $no => $product) {
203
+ //echo "<pre>";
204
+ //print_r($product);die();
205
+ $this->identifier_status_add($no);
206
+ foreach ($product as $key => $value) {
207
+ $this->mapAttribute($no, $key, $googleXMLAttribute[$key][0], $value, $googleXMLAttribute[$key][0]);
208
+ }
209
+
210
+ $this->process_google_shipping_attribute_for_xml($no);
211
+ }
212
+ }
 
 
 
 
213
  }
214
 
215
  /**
218
  public function mapAttributeForCSVTXT()
219
  {
220
  //Basic product information
221
+ $googleCSVTXTAttribute = array(
222
+ "id" => array("id", false),
223
+ "title" => array("title", true),
224
+ "description" => array("description", true),
225
+ "link" => array("link", true),
226
+ "mobile_link" => array("mobile_link", true),
227
+ "product_type" => array("product type", true),
228
+ "current_category" => array("google product category", true),
229
+ "image" => array("image link", true),
230
+ "images_1" => array("additional image link 1", true),
231
+ "images_2" => array("additional image link 2", true),
232
+ "images_3" => array("additional image link 3", true),
233
+ "images_4" => array("additional image link 4", true),
234
+ "images_5" => array("additional image link 5", true),
235
+ "images_6" => array("additional image link 6", true),
236
+ "images_7" => array("additional image link 7", true),
237
+ "images_8" => array("additional image link 8", true),
238
+ "images_9" => array("additional image link 9", true),
239
+ "images_10" => array("additional image link 10", true),
240
+ "condition" => array("condition", false),
241
+ "availability" => array("availability", false),
242
+ "price" => array("price", true),
243
+ "sale_price" => array("sale price", true),
244
+ "sale_price_effective_date" => array("sale price effective date", true),
245
+ "brand" => array("brand", true),
246
+ "sku" => array("mpn", true),
247
+ "upc" => array("gtin", true),
248
+ "identifier_exists" => array("identifier exists", true),
249
+ "item_group_id" => array("item group id", false),
250
+ "color" => array("color", true),
251
+ "gender" => array("gender", true),
252
+ "age_group" => array("age group", true),
253
+ "material" => array("material", true),
254
+ "pattern" => array("pattern", true),
255
+ "size" => array("size", true),
256
+ "size_type" => array("size type", true),
257
+ "size_system" => array("size system", true),
258
+ "tax" => array("tax", true),
259
+ "weight" => array("shipping weight", false),
260
+ "length" => array("shipping length", false),
261
+ "width" => array("shipping width", false),
262
+ "height" => array("shipping height", false),
263
+ "shipping_label" => array("shipping label", false),
264
+ "shipping_country" => array("shipping country", false),
265
+ "shipping_service" => array("shipping service", false),
266
+ "shipping_price" => array("shipping price", false),
267
+ "shipping_region" => array("shipping region", false),
268
+ "multipack" => array("multipack", true),
269
+ "is_bundle" => array("is bundle", true),
270
+ "adult" => array("adult", true),
271
+ "adwords_redirect" => array("adwords redirect", true),
272
+ "custom_label_0" => array("custom label 0", true),
273
+ "custom_label_1" => array("custom label 1", true),
274
+ "custom_label_2" => array("custom label 2", true),
275
+ "custom_label_3" => array("custom label 3", true),
276
+ "custom_label_4" => array("custom label 4", true),
277
+ "excluded_destination" => array("excluded destination", true),
278
+ "expiration_date" => array("expiration date", true),
279
+ "unit_pricing_measure" => array("unit pricing measure", true),
280
+ "unit_pricing_base_measure" => array("unit pricing base measure", true),
281
+ "energy_efficiency_class" => array("energy efficiency class", true),
282
+ "loyalty_points" => array("loyalty points", true),
283
+ "installment" => array("installment", true),
284
+ "promotion_id" => array("promotion id", true),
285
+ );
286
+
287
+ if (count($this->products)) {
288
+ foreach ($this->products as $no => $product) {
289
+ foreach ($product as $key => $value) {
290
+ $this->mapAttribute($no, $key, $googleCSVTXTAttribute[$key][0], $value, $googleCSVTXTAttribute[$key][0]);
291
+ }
292
+ $this->process_google_shipping_attribute_for_CSVTXT($no);
293
+ }
294
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  }
296
 
297
  /**
298
  * Map to google attribute
299
+ * @param $no
300
  * @param $from
301
  * @param $to
302
+ * @param $value
303
  * @param bool $cdata
304
+ * @return array
305
  */
306
+ public function mapAttribute($no, $from, $to, $value, $cdata = false)
307
  {
308
+ unset($this->products[$no][$from]);
309
+ if($to=='g:color'){
310
+ $value=str_replace(",","/",$value);
311
+ }
312
+ if ($this->rules['feedType'] == 'xml') {
313
+ return $this->products[$no][$to] = $this->formatXMLLine($to, $value, $cdata);
314
+ } else {
315
+ return $this->products[$no][$to] = $value;
 
 
 
 
 
 
 
316
  }
317
  }
318
 
319
+ public function identifier_status_add($no)
320
  {
321
+ $identifier = array('brand', 'upc', 'sku', 'mpn', 'gtin');
322
+ $product = $this->products[$no];
323
+
324
+ if(!array_key_exists('g:identifier_exists',$product)) {
325
+ if (count(array_intersect_key(array_flip($identifier), $product)) >= 2) {
326
+ # Any 2 required keys exist!
327
+ $countIdentifier=0;
328
+ if(array_key_exists('brand',$product) && !empty($product['brand'])){
329
+ $countIdentifier++;
330
+ }
331
+ if(array_key_exists('upc',$product) && !empty($product['upc'])){
332
+ $countIdentifier++;
333
+ }
334
+ if(array_key_exists('sku',$product) && !empty($product['sku'])){
335
+ $countIdentifier++;
336
+ }
337
+ if(array_key_exists('mpn',$product) && !empty($product['mpn'])){
338
+ $countIdentifier++;
339
+ }
340
+ if(array_key_exists('gtin',$product) && !empty($product['gtin'])){
341
+ $countIdentifier++;
342
+ }
343
+ if($countIdentifier>=2){
344
+ $this->products[$no]["g:identifier_exists"] = $this->formatXMLLine("g:identifier_exists", "yes", $cdata = true);
345
+ }else{
346
+ $this->products[$no]["g:identifier_exists"] = $this->formatXMLLine("g:identifier_exists", "no", $cdata = true);
347
  }
348
+ } else {
349
+ $this->products[$no]["g:identifier_exists"] = $this->formatXMLLine("g:identifier_exists", "no", $cdata = true);
350
  }
351
  }
352
  }
353
 
354
+
355
+ /**
356
+ * @param $no
357
+ * @return bool|string
358
+ */
359
+ public
360
+ function process_google_shipping_attribute_for_xml($no)
361
  {
362
+ $shipping = array('g:shipping_country', 'g:shipping_service', 'g:shipping_price', 'g:shipping_region');
363
  $shippingAttr = array();
364
+ $products = $this->products[$no];
365
+ foreach ($products as $keyAttr => $valueAttr) {
366
+ if (in_array($keyAttr, $shipping)) {
367
+ array_push($shippingAttr, array($keyAttr => $valueAttr));
368
+ unset($this->products[$no][$keyAttr]);
369
+ }
370
+ }
371
+ if (count($shippingAttr)) {
372
+ $str = "";
373
+ foreach ($shippingAttr as $key => $attributes) {
374
+ foreach ($attributes as $keyAttr => $valueAttr) {
375
+ $str .= str_replace("shipping_", "", $valueAttr);
 
 
 
 
 
376
  }
 
 
377
  }
378
+ return $this->products[$no]['g:shipping'] = $this->formatXMLLine("g:shipping", $str, false);
379
  }
380
+ return false;
381
  }
382
 
383
+ /**
384
+ * @param $no
385
+ * @return bool|mixed
386
+ */
387
+ public
388
+ function process_google_shipping_attribute_for_CSVTXT($no)
389
  {
390
+ $shipping = array('shipping country', 'shipping service', 'shipping price', 'shipping region');
391
  $shippingAttr = array();
392
+ $products = $this->products[$no];
393
+ foreach ($products as $keyAttr => $valueAttr) {
394
+ if (in_array($keyAttr, $shipping)) {
395
+ array_push($shippingAttr, array($keyAttr => $valueAttr));
396
+ unset($this->products[$no][$keyAttr]);
397
+ }
398
+ }
399
+ if (count($shippingAttr)) {
400
+ $str = "";
401
+ foreach ($shippingAttr as $key => $attributes) {
402
+ foreach ($attributes as $keyAttr => $valueAttr) {
403
+ $country = ($keyAttr == "shipping country") ? $str .= $valueAttr . ":" : "";
404
+ $service = ($keyAttr == "shipping service") ? $str .= $valueAttr . ":" : "";
405
+ $price = ($keyAttr == "shipping price") ? $str .= $valueAttr : "";
406
+ $region = ($keyAttr == "shipping region") ? $str .= $valueAttr . ":" : "";
 
 
 
 
 
407
  }
 
 
408
  }
409
+ return $this->products[$no]['shipping(country:region:service:price)'] = str_replace(" : ",":", $str);
410
  }
411
+ return false;
412
  }
413
 
414
+ function formatXMLLine($attribute, $value, $cdata, $space = "")
415
  {
416
  //Make single XML node
417
+ if (!empty($value))
418
+ $value = trim($value);
419
  if (gettype($value) == 'array')
420
  $value = json_encode($value);
421
  if (strpos($value, "<![CDATA[") === false && substr(trim($value), 0, 4) == "http") {
422
  $value = "<![CDATA[$value]]>";
423
  } elseif (strpos($value, "<![CDATA[") === false && $cdata === true && !empty($value)) {
424
  $value = "<![CDATA[$value]]>";
425
+ } else if ($cdata) {
426
+ if(!empty($value)){
427
+ $value = "<![CDATA[$value]]>";
428
+ }else{
429
+ $value = $value;
430
+ }
431
+
432
  }
433
 
434
  return "
436
  }
437
 
438
 
439
+
440
  public function get_feed_header()
441
  {
442
  $output = '<?xml version="1.0" encoding="UTF-8" ?>
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This is a wordpress plugin to generate woocommerce product feed for Shopping Engines like Google Shopping,eBay,Amazon,Pricegrabber and many more..
19
- * Version: 1.5.36
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -106,9 +106,14 @@ function feed_merchant_view()
106
  check_ajax_referer('wpf_feed_nonce');
107
  $dropDown = new Woo_Feed_Dropdown();
108
  $product = new Woo_Feed_Products();
 
109
  $merchant = sanitize_text_field($_POST['merchant']);
110
  $provider = sanitize_text_field($_POST['merchant']);
111
- include plugin_dir_path(__FILE__) . "admin/partials/$merchant/add-feed.php";
 
 
 
 
112
  die();
113
  }
114
 
@@ -158,6 +163,8 @@ function makeAjaxFeed()
158
  $merchant = "Woo_Feed_Google";
159
  } elseif ($info['provider'] == 'facebook') {
160
  $merchant = "Woo_Feed_Facebook";
 
 
161
  } else {
162
  $merchant = "Woo_Feed_Custom";
163
  }
@@ -241,7 +248,9 @@ function woo_feed_add_update($info = "", $name = "")
241
  $merchant = "Woo_Feed_Google";
242
  } elseif ($info['provider'] == 'facebook') {
243
  $merchant = "Woo_Feed_Facebook";
244
- } else {
 
 
245
  $merchant = "Woo_Feed_Custom";
246
  }
247
 
@@ -416,10 +425,20 @@ function woo_feed_manage_feed()
416
  }
417
  }
418
 
 
 
 
419
  function woo_feed_pro_vs_free(){
420
  require plugin_dir_path(__FILE__) . 'admin/partials/woo-feed-pro-vs-free.php';
421
  }
422
 
 
 
 
 
 
 
 
423
 
424
  /*
425
  * Scheduled Action Hook
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This is a wordpress plugin to generate woocommerce product feed for Shopping Engines like Google Shopping,eBay,Amazon,Pricegrabber and many more..
19
+ * Version: 2.0.13
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
106
  check_ajax_referer('wpf_feed_nonce');
107
  $dropDown = new Woo_Feed_Dropdown();
108
  $product = new Woo_Feed_Products();
109
+ $attributes=new Woo_Feed_Default_Attributes();
110
  $merchant = sanitize_text_field($_POST['merchant']);
111
  $provider = sanitize_text_field($_POST['merchant']);
112
+ if(strpos($merchant,'amazon')!==false){
113
+ include plugin_dir_path(__FILE__) . "admin/partials/amazon/add-feed.php";
114
+ }else{
115
+ include plugin_dir_path(__FILE__) . "admin/partials/$merchant/add-feed.php";
116
+ }
117
  die();
118
  }
119
 
163
  $merchant = "Woo_Feed_Google";
164
  } elseif ($info['provider'] == 'facebook') {
165
  $merchant = "Woo_Feed_Facebook";
166
+ }elseif (strpos($info['provider'],'amazon') !==FALSE) {
167
+ $merchant = "Woo_Feed_Amazon";
168
  } else {
169
  $merchant = "Woo_Feed_Custom";
170
  }
248
  $merchant = "Woo_Feed_Google";
249
  } elseif ($info['provider'] == 'facebook') {
250
  $merchant = "Woo_Feed_Facebook";
251
+ }elseif (strpos($info['provider'],'amazon') !==FALSE) {
252
+ $merchant = "Woo_Feed_Amazon";
253
+ } else {
254
  $merchant = "Woo_Feed_Custom";
255
  }
256
 
425
  }
426
  }
427
 
428
+ /**
429
+ * Difference between free and premium plugin
430
+ */
431
  function woo_feed_pro_vs_free(){
432
  require plugin_dir_path(__FILE__) . 'admin/partials/woo-feed-pro-vs-free.php';
433
  }
434
 
435
+ /**
436
+ * Difference between free and premium plugin
437
+ */
438
+ function woo_feed_feed_optimization(){
439
+ require plugin_dir_path(__FILE__) . 'admin/partials/woo-feed-pro-vs-free.php';
440
+ }
441
+
442
 
443
  /*
444
  * Scheduled Action Hook