CTX Feed – WooCommerce Product Feed Manager Plugin - Version 2.1.22

Version Description

Download this release

Release Info

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

Code changes from version 2.1.21 to 2.1.22

README.txt CHANGED
@@ -216,6 +216,10 @@ Using pro version:
216
 
217
  == Changelog ==
218
 
 
 
 
 
219
  = 2.1.21(2017-10-08) =
220
  * Added: Adroll.com product feed template added
221
 
216
 
217
  == Changelog ==
218
 
219
+ = 2.1.22(2017-10-17) =
220
+ * Added: PriceSpy product feed template added
221
+ * Added: PrisJakt product feed template added
222
+
223
  = 2.1.21(2017-10-08) =
224
  * Added: Adroll.com product feed template added
225
 
admin/partials/pricespy/add-feed.php ADDED
@@ -0,0 +1,592 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <ul class="wf_tabs">
2
+ <li>
3
+ <input type="radio" name="wf_tabs" id="tab1" checked/>
4
+ <label class="wf-tab-name" for="tab1"><?php echo _e('Feed Config', 'woo-feed'); ?></label>
5
+
6
+ <div id="wf-tab-content1" class="wf-tab-content">
7
+ <table class="table tree widefat fixed sorted_table mtable" width="100%" id="table-1">
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>
15
+ <th><?php echo _e('Suffix', 'woo-feed'); ?></th>
16
+ <th><?php echo _e('Output Type', 'woo-feed'); ?></th>
17
+ <th><?php echo _e('Output Limit', 'woo-feed'); ?></th>
18
+ <th></th>
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="Product-name"/>
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('title'); ?>
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="Your-item-number"/>
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('id'); ?>
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="category"/>
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('product_type'); ?>
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="price-including-gst"/>
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('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
+ <input type="text" name="mattributes[]" autocomplete="off" required
224
+ class="wf_validate_attr wf_mattributes" value="Product-URL"/>
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('link'); ?>
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="manufacturer"/>
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" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
282
+ </select>
283
+ </td>
284
+ <td>
285
+ <select name="attributes[]" id="" style=" display: none;"
286
+ class="wf_validate_attr wf_attr wf_attributes">
287
+ <?php echo $product->attributeDropdown(''); ?>
288
+ </select>
289
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
290
+ />
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="manufacturer-SKU"/>
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("sku"); ?>
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="shipping"/>
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" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
380
+ </select>
381
+ </td>
382
+ <td>
383
+ <select name="attributes[]" id="" style=" display: none;"
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
+ />
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="image-URL"/>
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"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
429
+ </select>
430
+ </td>
431
+ <td>
432
+ <select name="attributes[]" id="" required="required"
433
+ class="wf_validate_attr wf_attr wf_attributes">
434
+ <?php echo $product->attributeDropdown("image"); ?>
435
+ </select>
436
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
437
+ value="mens, womens" style=" display: none;" />
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="stock status"/>
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('condition'); ?>
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
+
513
+ </tbody>
514
+ <tfoot>
515
+ <tr>
516
+ <td>
517
+ <button type="button" class="button-small button-primary" id="wf_newRow">
518
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
519
+ </button>
520
+ </td>
521
+ <td colspan="8">
522
+
523
+ </td>
524
+ </tr>
525
+ </tfoot>
526
+ </table>
527
+ <table class=" widefat fixed">
528
+ <tr>
529
+ <td align="left" class="">
530
+ <div class="makeFeedResponse"></div>
531
+ <div class="makeFeedComplete"></div>
532
+ </td>
533
+ <td align="right">
534
+ <button type="submit" id="wf_submit" class="wfbtn">
535
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
536
+ </button>
537
+ </td>
538
+ </tr>
539
+ </table>
540
+ </div>
541
+ </li>
542
+
543
+ <li>
544
+ <input type="radio" name="wf_tabs" id="tab3"/>
545
+ <label class="wf-tab-name" for="tab3"><?php echo _e('FTP', 'woo-feed'); ?></label>
546
+
547
+ <div id="wf-tab-content3" class="wf-tab-content">
548
+ <table class="table widefat fixed mtable" width="100%">
549
+ <tbody>
550
+ <tr>
551
+ <td><?php echo _e('Enabled', 'woo-feed'); ?></td>
552
+ <td>
553
+ <select name="ftpenabled" id="">
554
+ <option value="0"><?php echo _e('Disabled', 'woo-feed'); ?></option>
555
+ <option value="1"><?php echo _e('Enabled', 'woo-feed'); ?></option>
556
+ </select>
557
+ </td>
558
+ </tr>
559
+ <tr>
560
+ <td><?php echo _e('Host Name', 'woo-feed'); ?></td>
561
+ <td><input type="text" name="ftphost"/></td>
562
+ </tr>
563
+ <tr>
564
+ <td><?php echo _e('User Name', 'woo-feed'); ?></td>
565
+ <td><input type="text" name="ftpuser"/></td>
566
+ </tr>
567
+ <tr>
568
+ <td><?php echo _e('Password', 'woo-feed'); ?></td>
569
+ <td><input type="password" name="ftppassword"/></td>
570
+ </tr>
571
+ <tr>
572
+ <td><?php echo _e('Path', 'woo-feed'); ?></td>
573
+ <td><input type="text" name="ftppath"/></td>
574
+ </tr>
575
+ </tbody>
576
+ </table>
577
+ <table class=" widefat fixed">
578
+ <tr>
579
+ <td align="left" class="makeFeedResponse">
580
+
581
+ </td>
582
+ <td align="right">
583
+ <button type="submit" id="wf_submit" class="wfbtn">
584
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
585
+ </button>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+ </li>
591
+
592
+ </ul>
admin/partials/prisjakt/add-feed.php ADDED
@@ -0,0 +1,592 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <ul class="wf_tabs">
2
+ <li>
3
+ <input type="radio" name="wf_tabs" id="tab1" checked/>
4
+ <label class="wf-tab-name" for="tab1"><?php echo _e('Feed Config', 'woo-feed'); ?></label>
5
+
6
+ <div id="wf-tab-content1" class="wf-tab-content">
7
+ <table class="table tree widefat fixed sorted_table mtable" width="100%" id="table-1">
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>
15
+ <th><?php echo _e('Suffix', 'woo-feed'); ?></th>
16
+ <th><?php echo _e('Output Type', 'woo-feed'); ?></th>
17
+ <th><?php echo _e('Output Limit', 'woo-feed'); ?></th>
18
+ <th></th>
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="Produktnamn"/>
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('title'); ?>
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="Art.nr."/>
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('id'); ?>
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="Kategori"/>
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('product_type'); ?>
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="Pris inkl.moms"/>
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('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
+ <input type="text" name="mattributes[]" autocomplete="off" required
224
+ class="wf_validate_attr wf_mattributes" value="Produkt-URL"/>
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('link'); ?>
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="Tillverkare"/>
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" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
282
+ </select>
283
+ </td>
284
+ <td>
285
+ <select name="attributes[]" id="" style=" display: none;"
286
+ class="wf_validate_attr wf_attr wf_attributes">
287
+ <?php echo $product->attributeDropdown(''); ?>
288
+ </select>
289
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
290
+ />
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="Tillverkar-SKU"/>
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("sku"); ?>
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="Frakt"/>
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" selected> <?php echo _e('Pattern', 'woo-feed'); ?></option>
380
+ </select>
381
+ </td>
382
+ <td>
383
+ <select name="attributes[]" id="" style=" display: none;"
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
+ />
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="Bild-URL"/>
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"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
429
+ </select>
430
+ </td>
431
+ <td>
432
+ <select name="attributes[]" id="" required="required"
433
+ class="wf_validate_attr wf_attr wf_attributes">
434
+ <?php echo $product->attributeDropdown("image"); ?>
435
+ </select>
436
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
437
+ value="mens, womens" style=" display: none;" />
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="Lagerstatus"/>
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('condition'); ?>
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
+
513
+ </tbody>
514
+ <tfoot>
515
+ <tr>
516
+ <td>
517
+ <button type="button" class="button-small button-primary" id="wf_newRow">
518
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
519
+ </button>
520
+ </td>
521
+ <td colspan="8">
522
+
523
+ </td>
524
+ </tr>
525
+ </tfoot>
526
+ </table>
527
+ <table class=" widefat fixed">
528
+ <tr>
529
+ <td align="left" class="">
530
+ <div class="makeFeedResponse"></div>
531
+ <div class="makeFeedComplete"></div>
532
+ </td>
533
+ <td align="right">
534
+ <button type="submit" id="wf_submit" class="wfbtn">
535
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
536
+ </button>
537
+ </td>
538
+ </tr>
539
+ </table>
540
+ </div>
541
+ </li>
542
+
543
+ <li>
544
+ <input type="radio" name="wf_tabs" id="tab3"/>
545
+ <label class="wf-tab-name" for="tab3"><?php echo _e('FTP', 'woo-feed'); ?></label>
546
+
547
+ <div id="wf-tab-content3" class="wf-tab-content">
548
+ <table class="table widefat fixed mtable" width="100%">
549
+ <tbody>
550
+ <tr>
551
+ <td><?php echo _e('Enabled', 'woo-feed'); ?></td>
552
+ <td>
553
+ <select name="ftpenabled" id="">
554
+ <option value="0"><?php echo _e('Disabled', 'woo-feed'); ?></option>
555
+ <option value="1"><?php echo _e('Enabled', 'woo-feed'); ?></option>
556
+ </select>
557
+ </td>
558
+ </tr>
559
+ <tr>
560
+ <td><?php echo _e('Host Name', 'woo-feed'); ?></td>
561
+ <td><input type="text" name="ftphost"/></td>
562
+ </tr>
563
+ <tr>
564
+ <td><?php echo _e('User Name', 'woo-feed'); ?></td>
565
+ <td><input type="text" name="ftpuser"/></td>
566
+ </tr>
567
+ <tr>
568
+ <td><?php echo _e('Password', 'woo-feed'); ?></td>
569
+ <td><input type="password" name="ftppassword"/></td>
570
+ </tr>
571
+ <tr>
572
+ <td><?php echo _e('Path', 'woo-feed'); ?></td>
573
+ <td><input type="text" name="ftppath"/></td>
574
+ </tr>
575
+ </tbody>
576
+ </table>
577
+ <table class=" widefat fixed">
578
+ <tr>
579
+ <td align="left" class="makeFeedResponse">
580
+
581
+ </td>
582
+ <td align="right">
583
+ <button type="submit" id="wf_submit" class="wfbtn">
584
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
585
+ </button>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+ </li>
591
+
592
+ </ul>
includes/class-woo-feed.php CHANGED
@@ -71,7 +71,7 @@ class Woo_Feed
71
  {
72
 
73
  $this->woo_feed = 'woo-feed';
74
- $this->version = '2.1.21';
75
 
76
  $this->load_dependencies();
77
  $this->set_locale();
71
  {
72
 
73
  $this->woo_feed = 'woo-feed';
74
+ $this->version = '2.1.22';
75
 
76
  $this->load_dependencies();
77
  $this->set_locale();
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -46,6 +46,8 @@ class Woo_Feed_Default_Attributes
46
  "become" =>"Become",
47
  "connexity" =>"Connexity",
48
  "adroll" =>"AdRoll",
 
 
49
  "---2" =>"",
50
  "--3" =>"Amazon Template",
51
  "amazon_clothing" =>"Clothing",
46
  "become" =>"Become",
47
  "connexity" =>"Connexity",
48
  "adroll" =>"AdRoll",
49
+ "pricespy" =>"PriceSpy",
50
+ "prisjakt" =>"Prisjakt",
51
  "---2" =>"",
52
  "--3" =>"Amazon Template",
53
  "amazon_clothing" =>"Clothing",
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
- * Version: 2.1.21
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -651,7 +651,7 @@ function woo_feed_manage_feed()
651
  $feedInfo = unserialize(get_option($fname));
652
  $provider = strtolower($feedInfo['feedrules']['provider']);
653
  $feedRules = $feedInfo['feedrules'];
654
- if ($provider == "custom" || $provider == "amazon" || $provider == "adwords") {
655
  require plugin_dir_path(__FILE__) . "admin/partials/custom/edit-feed.php";
656
  } else {
657
  require plugin_dir_path(__FILE__) . "admin/partials/woo-feed-edit-template.php";
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
+ * Version: 2.1.22
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
651
  $feedInfo = unserialize(get_option($fname));
652
  $provider = strtolower($feedInfo['feedrules']['provider']);
653
  $feedRules = $feedInfo['feedrules'];
654
+ if ($provider == "custom" || $provider == "pricespy" || $provider == "prisjakt" || $provider == "amazon" || $provider == "adwords") {
655
  require plugin_dir_path(__FILE__) . "admin/partials/custom/edit-feed.php";
656
  } else {
657
  require plugin_dir_path(__FILE__) . "admin/partials/woo-feed-edit-template.php";