CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.0.15

Version Description

Download this release

Release Info

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

Code changes from version 3.0.14 to 3.0.15

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.1
7
- Stable tag: 3.0.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -170,6 +170,7 @@ In one word WooCommerce Product Feed is a revolution. Yah, it’s a revolution o
170
  * <a target="_blank" href="http://www.miinto.com/">Miinto.com</a>
171
  * <a target="_blank" href="https://www.ricardo.ch/">Ricardo.ch</a>
172
  * <a target="_blank" href="https://www.kauftipp.ch/">Kauftipp.ch</a>
 
173
 
174
  <blockquote>
175
  <h4>If you like Free Version, you'll love the Pro Version</h4>
@@ -295,6 +296,9 @@ Using pro version:
295
 
296
  == Changelog ==
297
 
 
 
 
298
  = 3.0.14(2019-04-01) =
299
  * Added: Zap.co.il template added
300
 
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.1
7
+ Stable tag: 3.0.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
170
  * <a target="_blank" href="http://www.miinto.com/">Miinto.com</a>
171
  * <a target="_blank" href="https://www.ricardo.ch/">Ricardo.ch</a>
172
  * <a target="_blank" href="https://www.kauftipp.ch/">Kauftipp.ch</a>
173
+ * <a target="_blank" href="https://zap.co.il/">Zap.co.il</a>
174
 
175
  <blockquote>
176
  <h4>If you like Free Version, you'll love the Pro Version</h4>
296
 
297
  == Changelog ==
298
 
299
+ = 3.0.15(2019-04-04) =
300
+ * Fixed: Zap.co.il template header issue fixed
301
+
302
  = 3.0.14(2019-04-01) =
303
  * Added: Zap.co.il template added
304
 
admin/partials/fruugo.au/add-feed.php ADDED
@@ -0,0 +1,652 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 wf_mattr" value="ProductId"/>
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[]" required="required"
41
+ class="wf_validate_attr wf_attr wf_attributes">
42
+ <?php echo $product->attributeDropdown("id"); ?>
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[][]" 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
+
72
+ <tr>
73
+ <td>
74
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
75
+ </td>
76
+ <td>
77
+ <input type="text" name="mattributes[]" autocomplete="off" required
78
+ class="wf_validate_attr wf_mattributes wf_mattr" value="SkuId"/>
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[]" required="required"
91
+ class="wf_validate_attr wf_attr wf_attributes">
92
+ <?php echo $product->attributeDropdown("sku"); ?>
93
+ </select>
94
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
95
+ style=" display: none;"/>
96
+ </td>
97
+ <td>
98
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
99
+ </td>
100
+ <td>
101
+ <select name="output_type[][]" class="outputType wfnoempty">
102
+ <option value="1">Default</option>
103
+ <option value="2">Strip Tags</option>
104
+ <option value="3">UTF-8 Encode</option>
105
+ <option value="4">htmlentities</option>
106
+ <option value="5">Integer</option>
107
+ <option value="6">Price</option>
108
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
109
+ <option value="8">CDATA</option>
110
+ </select>
111
+ <i class="dashicons dashicons-editor-expand expandType"></i>
112
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
113
+ </td>
114
+ <td>
115
+ <input type="text" name="limit[]" class="wf_ps"/>
116
+ </td>
117
+ <td>
118
+ <i class="delRow dashicons dashicons-trash"></i>
119
+ </td>
120
+ </tr>
121
+
122
+ <tr>
123
+ <td>
124
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
125
+ </td>
126
+ <td>
127
+ <input type="text" name="mattributes[]" autocomplete="off" required
128
+ class="wf_validate_attr wf_mattributes wf_mattr" value="EAN"/>
129
+ </td>
130
+ <td>
131
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
132
+ </td>
133
+ <td>
134
+ <select name="type[]" class="attr_type wfnoempty">
135
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
136
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
137
+ </select>
138
+ </td>
139
+ <td>
140
+ <select name="attributes[]" required="required"
141
+ class="wf_validate_attr wf_attr wf_attributes">
142
+ <?php echo $product->attributeDropdown(); ?>
143
+ </select>
144
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
145
+ style=" display: none;"/>
146
+ </td>
147
+ <td>
148
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
149
+ </td>
150
+ <td>
151
+ <select name="output_type[][]" class="outputType wfnoempty">
152
+ <option value="1">Default</option>
153
+ <option value="2">Strip Tags</option>
154
+ <option value="3">UTF-8 Encode</option>
155
+ <option value="4">htmlentities</option>
156
+ <option value="5">Integer</option>
157
+ <option value="6">Price</option>
158
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
159
+ <option value="8">CDATA</option>
160
+ </select>
161
+ <i class="dashicons dashicons-editor-expand expandType"></i>
162
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
163
+ </td>
164
+ <td>
165
+ <input type="text" name="limit[]" class="wf_ps"/>
166
+ </td>
167
+ <td>
168
+ <i class="delRow dashicons dashicons-trash"></i>
169
+ </td>
170
+ </tr>
171
+
172
+ <tr>
173
+ <td>
174
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
175
+ </td>
176
+ <td>
177
+ <input type="text" name="mattributes[]" autocomplete="off" required
178
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Brand"/>
179
+ </td>
180
+ <td>
181
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
182
+ </td>
183
+ <td>
184
+ <select name="type[]" class="attr_type wfnoempty">
185
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
186
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
187
+ </select>
188
+ </td>
189
+ <td>
190
+ <select name="attributes[]" required="required"
191
+ class="wf_validate_attr wf_attr wf_attributes">
192
+ <?php echo $product->attributeDropdown(); ?>
193
+ </select>
194
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
195
+ style=" display: none;"/>
196
+ </td>
197
+ <td>
198
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
199
+ </td>
200
+ <td>
201
+ <select name="output_type[][]" class="outputType wfnoempty">
202
+ <option value="1">Default</option>
203
+ <option value="2">Strip Tags</option>
204
+ <option value="3">UTF-8 Encode</option>
205
+ <option value="4">htmlentities</option>
206
+ <option value="5">Integer</option>
207
+ <option value="6">Price</option>
208
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
209
+ <option value="8">CDATA</option>
210
+ </select>
211
+ <i class="dashicons dashicons-editor-expand expandType"></i>
212
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
213
+ </td>
214
+ <td>
215
+ <input type="text" name="limit[]" class="wf_ps"/>
216
+ </td>
217
+ <td>
218
+ <i class="delRow dashicons dashicons-trash"></i>
219
+ </td>
220
+ </tr>
221
+
222
+ <tr>
223
+ <td>
224
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
225
+ </td>
226
+ <td>
227
+ <input type="text" name="mattributes[]" autocomplete="off" required
228
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Category"/>
229
+ </td>
230
+ <td>
231
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
232
+ </td>
233
+ <td>
234
+ <select name="type[]" class="attr_type wfnoempty">
235
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
236
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
237
+ </select>
238
+ </td>
239
+ <td>
240
+ <select name="attributes[]" required="required"
241
+ class="wf_validate_attr wf_attr wf_attributes">
242
+ <?php echo $product->attributeDropdown(); ?>
243
+ </select>
244
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
245
+ style=" display: none;"/>
246
+ </td>
247
+ <td>
248
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
249
+ </td>
250
+ <td>
251
+ <select name="output_type[][]" class="outputType wfnoempty">
252
+ <option value="1">Default</option>
253
+ <option value="2">Strip Tags</option>
254
+ <option value="3">UTF-8 Encode</option>
255
+ <option value="4">htmlentities</option>
256
+ <option value="5">Integer</option>
257
+ <option value="6">Price</option>
258
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
259
+ <option value="8">CDATA</option>
260
+ </select>
261
+ <i class="dashicons dashicons-editor-expand expandType"></i>
262
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
263
+ </td>
264
+ <td>
265
+ <input type="text" name="limit[]" class="wf_ps"/>
266
+ </td>
267
+ <td>
268
+ <i class="delRow dashicons dashicons-trash"></i>
269
+ </td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td>
274
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
275
+ </td>
276
+ <td>
277
+ <input type="text" name="mattributes[]" autocomplete="off" required
278
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Imageurl1"/>
279
+ </td>
280
+ <td>
281
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
282
+ </td>
283
+ <td>
284
+ <select name="type[]" class="attr_type wfnoempty">
285
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
286
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
287
+ </select>
288
+ </td>
289
+ <td>
290
+ <select name="attributes[]" required="required"
291
+ class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('image'); ?>
293
+ </select>
294
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
+ style=" display: none;"/>
296
+ </td>
297
+ <td>
298
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
299
+ </td>
300
+ <td>
301
+ <select name="output_type[][]" class="outputType wfnoempty">
302
+ <option value="1">Default</option>
303
+ <option value="2">Strip Tags</option>
304
+ <option value="3">UTF-8 Encode</option>
305
+ <option value="4">htmlentities</option>
306
+ <option value="5">Integer</option>
307
+ <option value="6">Price</option>
308
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
309
+ <option value="8">CDATA</option>
310
+ </select>
311
+ <i class="dashicons dashicons-editor-expand expandType"></i>
312
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
313
+ </td>
314
+ <td>
315
+ <input type="text" name="limit[]" class="wf_ps"/>
316
+ </td>
317
+ <td>
318
+ <i class="delRow dashicons dashicons-trash"></i>
319
+ </td>
320
+ </tr>
321
+
322
+ <tr>
323
+ <td>
324
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
325
+ </td>
326
+ <td>
327
+ <input type="text" name="mattributes[]" autocomplete="off" required
328
+ class="wf_validate_attr wf_mattributes wf_mattr" value="StockStatus"/>
329
+ </td>
330
+ <td>
331
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
332
+ </td>
333
+ <td>
334
+ <select name="type[]" class="attr_type wfnoempty">
335
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
336
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
337
+ </select>
338
+ </td>
339
+ <td>
340
+ <select name="attributes[]" required="required"
341
+ class="wf_validate_attr wf_attr wf_attributes">
342
+ <?php echo $product->attributeDropdown("availability"); ?>
343
+ </select>
344
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
345
+ style=" display: none;"/>
346
+ </td>
347
+ <td>
348
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
349
+ </td>
350
+ <td>
351
+ <select name="output_type[][]" class="outputType wfnoempty">
352
+ <option value="1">Default</option>
353
+ <option value="2">Strip Tags</option>
354
+ <option value="3">UTF-8 Encode</option>
355
+ <option value="4">htmlentities</option>
356
+ <option value="5">Integer</option>
357
+ <option value="6">Price</option>
358
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
359
+ <option value="8">CDATA</option>
360
+ </select>
361
+ <i class="dashicons dashicons-editor-expand expandType"></i>
362
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
363
+ </td>
364
+ <td>
365
+ <input type="text" name="limit[]" class="wf_ps"/>
366
+ </td>
367
+ <td>
368
+ <i class="delRow dashicons dashicons-trash"></i>
369
+ </td>
370
+ </tr>
371
+
372
+ <tr>
373
+ <td>
374
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
375
+ </td>
376
+ <td>
377
+ <input type="text" name="mattributes[]" autocomplete="off" required
378
+ class="wf_validate_attr wf_mattributes wf_mattr" value="StockQuantity"/>
379
+ </td>
380
+ <td>
381
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
382
+ </td>
383
+ <td>
384
+ <select name="type[]" class="attr_type wfnoempty">
385
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
386
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
387
+ </select>
388
+ </td>
389
+ <td>
390
+ <select name="attributes[]" required="required"
391
+ class="wf_validate_attr wf_attr wf_attributes">
392
+ <?php echo $product->attributeDropdown(); ?>
393
+ </select>
394
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
395
+ style=" display: none;"/>
396
+ </td>
397
+ <td>
398
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
399
+ </td>
400
+ <td>
401
+ <select name="output_type[][]" class="outputType wfnoempty">
402
+ <option value="1">Default</option>
403
+ <option value="2">Strip Tags</option>
404
+ <option value="3">UTF-8 Encode</option>
405
+ <option value="4">htmlentities</option>
406
+ <option value="5">Integer</option>
407
+ <option value="6">Price</option>
408
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
409
+ <option value="8">CDATA</option>
410
+ </select>
411
+ <i class="dashicons dashicons-editor-expand expandType"></i>
412
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
413
+ </td>
414
+ <td>
415
+ <input type="text" name="limit[]" class="wf_ps"/>
416
+ </td>
417
+ <td>
418
+ <i class="delRow dashicons dashicons-trash"></i>
419
+ </td>
420
+ </tr>
421
+
422
+ <tr>
423
+ <td>
424
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
425
+ </td>
426
+ <td>
427
+ <input type="text" name="mattributes[]" autocomplete="off" required
428
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Title"/>
429
+ </td>
430
+ <td>
431
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
432
+ </td>
433
+ <td>
434
+ <select name="type[]" class="attr_type wfnoempty">
435
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
436
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
437
+ </select>
438
+ </td>
439
+ <td>
440
+ <select name="attributes[]" required="required"
441
+ class="wf_validate_attr wf_attr wf_attributes">
442
+ <?php echo $product->attributeDropdown('title'); ?>
443
+ </select>
444
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
445
+ style=" display: none;"/>
446
+ </td>
447
+ <td>
448
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
449
+ </td>
450
+ <td>
451
+ <select name="output_type[][]" class="outputType wfnoempty">
452
+ <option value="1">Default</option>
453
+ <option value="2">Strip Tags</option>
454
+ <option value="3">UTF-8 Encode</option>
455
+ <option value="4">htmlentities</option>
456
+ <option value="5">Integer</option>
457
+ <option value="6">Price</option>
458
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
459
+ <option value="8">CDATA</option>
460
+ </select>
461
+ <i class="dashicons dashicons-editor-expand expandType"></i>
462
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
463
+ </td>
464
+ <td>
465
+ <input type="text" name="limit[]" class="wf_ps"/>
466
+ </td>
467
+ <td>
468
+ <i class="delRow dashicons dashicons-trash"></i>
469
+ </td>
470
+ </tr>
471
+
472
+ <tr>
473
+ <td>
474
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
475
+ </td>
476
+ <td>
477
+ <input type="text" name="mattributes[]" autocomplete="off" required
478
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Description"/>
479
+ </td>
480
+ <td>
481
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
482
+ </td>
483
+ <td>
484
+ <select name="type[]" class="attr_type wfnoempty">
485
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
486
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
487
+ </select>
488
+ </td>
489
+ <td>
490
+ <select name="attributes[]" required="required"
491
+ class="wf_validate_attr wf_attr wf_attributes">
492
+ <?php echo $product->attributeDropdown('description'); ?>
493
+ </select>
494
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
495
+ style=" display: none;"/>
496
+ </td>
497
+ <td>
498
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
499
+ </td>
500
+ <td>
501
+ <select name="output_type[][]" class="outputType wfnoempty">
502
+ <option value="1">Default</option>
503
+ <option value="2">Strip Tags</option>
504
+ <option value="3">UTF-8 Encode</option>
505
+ <option value="4">htmlentities</option>
506
+ <option value="5">Integer</option>
507
+ <option value="6">Price</option>
508
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
509
+ <option value="8">CDATA</option>
510
+ </select>
511
+ <i class="dashicons dashicons-editor-expand expandType"></i>
512
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
513
+ </td>
514
+ <td>
515
+ <input type="text" name="limit[]" class="wf_ps"/>
516
+ </td>
517
+ <td>
518
+ <i class="delRow dashicons dashicons-trash"></i>
519
+ </td>
520
+ </tr>
521
+
522
+ <tr>
523
+ <td>
524
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
525
+ </td>
526
+ <td>
527
+ <input type="text" name="mattributes[]" autocomplete="off" required
528
+ class="wf_validate_attr wf_mattributes wf_mattr" value="NormalPriceWithVat"/>
529
+ </td>
530
+ <td>
531
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
532
+ </td>
533
+ <td>
534
+ <select name="type[]" class="attr_type wfnoempty">
535
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
536
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
537
+ </select>
538
+ </td>
539
+ <td>
540
+ <select name="attributes[]" required="required"
541
+ class="wf_validate_attr wf_attr wf_attributes">
542
+ <?php echo $product->attributeDropdown('current_price'); ?>
543
+ </select>
544
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
545
+ style=" display: none;"/>
546
+ </td>
547
+ <td>
548
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
549
+ </td>
550
+ <td>
551
+ <select name="output_type[][]" class="outputType wfnoempty">
552
+ <option value="1">Default</option>
553
+ <option value="2">Strip Tags</option>
554
+ <option value="3">UTF-8 Encode</option>
555
+ <option value="4">htmlentities</option>
556
+ <option value="5">Integer</option>
557
+ <option value="6">Price</option>
558
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
559
+ <option value="8">CDATA</option>
560
+ </select>
561
+ <i class="dashicons dashicons-editor-expand expandType"></i>
562
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
563
+ </td>
564
+ <td>
565
+ <input type="text" name="limit[]" class="wf_ps"/>
566
+ </td>
567
+ <td>
568
+ <i class="delRow dashicons dashicons-trash"></i>
569
+ </td>
570
+ </tr>
571
+
572
+ <tr>
573
+ <td>
574
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
575
+ </td>
576
+ <td>
577
+ <input type="text" name="mattributes[]" autocomplete="off" required
578
+ class="wf_validate_attr wf_mattributes wf_mattr" value="VatRate"/>
579
+ </td>
580
+ <td>
581
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
582
+ </td>
583
+ <td>
584
+ <select name="type[]" class="attr_type wfnoempty">
585
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
586
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
587
+ </select>
588
+ </td>
589
+ <td>
590
+ <select name="attributes[]" required="required"
591
+ class="wf_validate_attr wf_attr wf_attributes">
592
+ <?php echo $product->attributeDropdown(); ?>
593
+ </select>
594
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
595
+ style=" display: none;"/>
596
+ </td>
597
+ <td>
598
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
599
+ </td>
600
+ <td>
601
+ <select name="output_type[][]" class="outputType wfnoempty">
602
+ <option value="1">Default</option>
603
+ <option value="2">Strip Tags</option>
604
+ <option value="3">UTF-8 Encode</option>
605
+ <option value="4">htmlentities</option>
606
+ <option value="5">Integer</option>
607
+ <option value="6">Price</option>
608
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
609
+ <option value="8">CDATA</option>
610
+ </select>
611
+ <i class="dashicons dashicons-editor-expand expandType"></i>
612
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
613
+ </td>
614
+ <td>
615
+ <input type="text" name="limit[]" class="wf_ps"/>
616
+ </td>
617
+ <td>
618
+ <i class="delRow dashicons dashicons-trash"></i>
619
+ </td>
620
+ </tr>
621
+ </tbody>
622
+ <tfoot>
623
+ <tr>
624
+ <td>
625
+ <button type="button" class="button-small button-primary" id="wf_newRow">
626
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
627
+ </button>
628
+ </td>
629
+ <td colspan="8">
630
+
631
+ </td>
632
+ </tr>
633
+ </tfoot>
634
+ </table>
635
+ <table class=" widefat fixed">
636
+ <tr>
637
+ <td align="left" class="">
638
+ <div class="makeFeedResponse"></div>
639
+ <div class="makeFeedComplete"></div>
640
+ </td>
641
+ <td align="right">
642
+ <button type="submit" class="wfbtn">
643
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
644
+ </button>
645
+ </td>
646
+ </tr>
647
+ </table>
648
+ </div>
649
+ </li>
650
+ <?php include plugin_dir_path(__FILE__) . "../woo-feed-ftp-sftp-template.php"; ?>
651
+
652
+ </ul>
admin/partials/myshopping.com.au/add-feed.php ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 wf_mattr" value="id"/>
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[]" required="required"
41
+ class="wf_validate_attr wf_attr wf_attributes">
42
+ <?php echo $product->attributeDropdown('id'); ?>
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[][]" 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
+
72
+ <tr>
73
+ <td>
74
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
75
+ </td>
76
+ <td>
77
+ <input type="text" name="mattributes[]" autocomplete="off" required
78
+ class="wf_validate_attr wf_mattributes wf_mattr" value="title"/>
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[]" required="required"
91
+ class="wf_validate_attr wf_attr wf_attributes">
92
+ <?php echo $product->attributeDropdown('title'); ?>
93
+ </select>
94
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
95
+ style=" display: none;"/>
96
+ </td>
97
+ <td>
98
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
99
+ </td>
100
+ <td>
101
+ <select name="output_type[][]" class="outputType wfnoempty">
102
+ <option value="1">Default</option>
103
+ <option value="2">Strip Tags</option>
104
+ <option value="3">UTF-8 Encode</option>
105
+ <option value="4">htmlentities</option>
106
+ <option value="5">Integer</option>
107
+ <option value="6">Price</option>
108
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
109
+ <option value="8">CDATA</option>
110
+ </select>
111
+ <i class="dashicons dashicons-editor-expand expandType"></i>
112
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
113
+ </td>
114
+ <td>
115
+ <input type="text" name="limit[]" class="wf_ps"/>
116
+ </td>
117
+ <td>
118
+ <i class="delRow dashicons dashicons-trash"></i>
119
+ </td>
120
+ </tr>
121
+
122
+ <tr>
123
+ <td>
124
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
125
+ </td>
126
+ <td>
127
+ <input type="text" name="mattributes[]" autocomplete="off" required
128
+ class="wf_validate_attr wf_mattributes wf_mattr" value="description"/>
129
+ </td>
130
+ <td>
131
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
132
+ </td>
133
+ <td>
134
+ <select name="type[]" class="attr_type wfnoempty">
135
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
136
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
137
+ </select>
138
+ </td>
139
+ <td>
140
+ <select name="attributes[]" required="required"
141
+ class="wf_validate_attr wf_attr wf_attributes">
142
+ <?php echo $product->attributeDropdown('description'); ?>
143
+ </select>
144
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
145
+ style=" display: none;"/>
146
+ </td>
147
+ <td>
148
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
149
+ </td>
150
+ <td>
151
+ <select name="output_type[][]" class="outputType wfnoempty">
152
+ <option value="1">Default</option>
153
+ <option value="2">Strip Tags</option>
154
+ <option value="3">UTF-8 Encode</option>
155
+ <option value="4">htmlentities</option>
156
+ <option value="5">Integer</option>
157
+ <option value="6">Price</option>
158
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
159
+ <option value="8">CDATA</option>
160
+ </select>
161
+ <i class="dashicons dashicons-editor-expand expandType"></i>
162
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
163
+ </td>
164
+ <td>
165
+ <input type="text" name="limit[]" class="wf_ps"/>
166
+ </td>
167
+ <td>
168
+ <i class="delRow dashicons dashicons-trash"></i>
169
+ </td>
170
+ </tr>
171
+
172
+ <tr>
173
+ <td>
174
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
175
+ </td>
176
+ <td>
177
+ <input type="text" name="mattributes[]" autocomplete="off" required
178
+ class="wf_validate_attr wf_mattributes wf_mattr" value="link"/>
179
+ </td>
180
+ <td>
181
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
182
+ </td>
183
+ <td>
184
+ <select name="type[]" class="attr_type wfnoempty">
185
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
186
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
187
+ </select>
188
+ </td>
189
+ <td>
190
+ <select name="attributes[]" required="required"
191
+ class="wf_validate_attr wf_attr wf_attributes">
192
+ <?php echo $product->attributeDropdown('link'); ?>
193
+ </select>
194
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
195
+ style=" display: none;"/>
196
+ </td>
197
+ <td>
198
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
199
+ </td>
200
+ <td>
201
+ <select name="output_type[][]" class="outputType wfnoempty">
202
+ <option value="1">Default</option>
203
+ <option value="2">Strip Tags</option>
204
+ <option value="3">UTF-8 Encode</option>
205
+ <option value="4">htmlentities</option>
206
+ <option value="5">Integer</option>
207
+ <option value="6">Price</option>
208
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
209
+ <option value="8">CDATA</option>
210
+ </select>
211
+ <i class="dashicons dashicons-editor-expand expandType"></i>
212
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
213
+ </td>
214
+ <td>
215
+ <input type="text" name="limit[]" class="wf_ps"/>
216
+ </td>
217
+ <td>
218
+ <i class="delRow dashicons dashicons-trash"></i>
219
+ </td>
220
+ </tr>
221
+
222
+ <tr>
223
+ <td>
224
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
225
+ </td>
226
+ <td>
227
+ <input type="text" name="mattributes[]" autocomplete="off" required
228
+ class="wf_validate_attr wf_mattributes wf_mattr" value="image_link"/>
229
+ </td>
230
+ <td>
231
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
232
+ </td>
233
+ <td>
234
+ <select name="type[]" class="attr_type wfnoempty">
235
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
236
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
237
+ </select>
238
+ </td>
239
+ <td>
240
+ <select name="attributes[]" required="required"
241
+ class="wf_validate_attr wf_attr wf_attributes">
242
+ <?php echo $product->attributeDropdown('image'); ?>
243
+ </select>
244
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
245
+ style=" display: none;"/>
246
+ </td>
247
+ <td>
248
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
249
+ </td>
250
+ <td>
251
+ <select name="output_type[][]" class="outputType wfnoempty">
252
+ <option value="1">Default</option>
253
+ <option value="2">Strip Tags</option>
254
+ <option value="3">UTF-8 Encode</option>
255
+ <option value="4">htmlentities</option>
256
+ <option value="5">Integer</option>
257
+ <option value="6">Price</option>
258
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
259
+ <option value="8">CDATA</option>
260
+ </select>
261
+ <i class="dashicons dashicons-editor-expand expandType"></i>
262
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
263
+ </td>
264
+ <td>
265
+ <input type="text" name="limit[]" class="wf_ps"/>
266
+ </td>
267
+ <td>
268
+ <i class="delRow dashicons dashicons-trash"></i>
269
+ </td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td>
274
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
275
+ </td>
276
+ <td>
277
+ <input type="text" name="mattributes[]" autocomplete="off" required
278
+ class="wf_validate_attr wf_mattributes wf_mattr" value="price"/>
279
+ </td>
280
+ <td>
281
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
282
+ </td>
283
+ <td>
284
+ <select name="type[]" class="attr_type wfnoempty">
285
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
286
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
287
+ </select>
288
+ </td>
289
+ <td>
290
+ <select name="attributes[]" required="required"
291
+ class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('current_price'); ?>
293
+ </select>
294
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
+ style=" display: none;"/>
296
+ </td>
297
+ <td>
298
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
299
+ </td>
300
+ <td>
301
+ <select name="output_type[][]" class="outputType wfnoempty">
302
+ <option value="1">Default</option>
303
+ <option value="2">Strip Tags</option>
304
+ <option value="3">UTF-8 Encode</option>
305
+ <option value="4">htmlentities</option>
306
+ <option value="5">Integer</option>
307
+ <option value="6">Price</option>
308
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
309
+ <option value="8">CDATA</option>
310
+ </select>
311
+ <i class="dashicons dashicons-editor-expand expandType"></i>
312
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
313
+ </td>
314
+ <td>
315
+ <input type="text" name="limit[]" class="wf_ps"/>
316
+ </td>
317
+ <td>
318
+ <i class="delRow dashicons dashicons-trash"></i>
319
+ </td>
320
+ </tr>
321
+
322
+ <tr>
323
+ <td>
324
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
325
+ </td>
326
+ <td>
327
+ <input type="text" name="mattributes[]" autocomplete="off" required
328
+ class="wf_validate_attr wf_mattributes wf_mattr" value="categories"/>
329
+ </td>
330
+ <td>
331
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
332
+ </td>
333
+ <td>
334
+ <select name="type[]" class="attr_type wfnoempty">
335
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
336
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
337
+ </select>
338
+ </td>
339
+ <td>
340
+ <select name="attributes[]" required="required"
341
+ class="wf_validate_attr wf_attr wf_attributes">
342
+ <?php echo $product->attributeDropdown('product_type'); ?>
343
+ </select>
344
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
345
+ style=" display: none;"/>
346
+ </td>
347
+ <td>
348
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
349
+ </td>
350
+ <td>
351
+ <select name="output_type[][]" class="outputType wfnoempty">
352
+ <option value="1">Default</option>
353
+ <option value="2">Strip Tags</option>
354
+ <option value="3">UTF-8 Encode</option>
355
+ <option value="4">htmlentities</option>
356
+ <option value="5">Integer</option>
357
+ <option value="6">Price</option>
358
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
359
+ <option value="8">CDATA</option>
360
+ </select>
361
+ <i class="dashicons dashicons-editor-expand expandType"></i>
362
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
363
+ </td>
364
+ <td>
365
+ <input type="text" name="limit[]" class="wf_ps"/>
366
+ </td>
367
+ <td>
368
+ <i class="delRow dashicons dashicons-trash"></i>
369
+ </td>
370
+ </tr>
371
+
372
+ <tr>
373
+ <td>
374
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
375
+ </td>
376
+ <td>
377
+ <input type="text" name="mattributes[]" autocomplete="off" required
378
+ class="wf_validate_attr wf_mattributes wf_mattr" value="brand"/>
379
+ </td>
380
+ <td>
381
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
382
+ </td>
383
+ <td>
384
+ <select name="type[]" class="attr_type wfnoempty">
385
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
386
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
387
+ </select>
388
+ </td>
389
+ <td>
390
+ <select name="attributes[]" required="required"
391
+ class="wf_validate_attr wf_attr wf_attributes">
392
+ <?php echo $product->attributeDropdown('brand'); ?>
393
+ </select>
394
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
395
+ style=" display: none;"/>
396
+ </td>
397
+ <td>
398
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
399
+ </td>
400
+ <td>
401
+ <select name="output_type[][]" class="outputType wfnoempty">
402
+ <option value="1">Default</option>
403
+ <option value="2">Strip Tags</option>
404
+ <option value="3">UTF-8 Encode</option>
405
+ <option value="4">htmlentities</option>
406
+ <option value="5">Integer</option>
407
+ <option value="6">Price</option>
408
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
409
+ <option value="8">CDATA</option>
410
+ </select>
411
+ <i class="dashicons dashicons-editor-expand expandType"></i>
412
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
413
+ </td>
414
+ <td>
415
+ <input type="text" name="limit[]" class="wf_ps"/>
416
+ </td>
417
+ <td>
418
+ <i class="delRow dashicons dashicons-trash"></i>
419
+ </td>
420
+ </tr>
421
+ </tbody>
422
+ <tfoot>
423
+ <tr>
424
+ <td>
425
+ <button type="button" class="button-small button-primary" id="wf_newRow">
426
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
427
+ </button>
428
+ </td>
429
+ <td colspan="8">
430
+
431
+ </td>
432
+ </tr>
433
+ </tfoot>
434
+ </table>
435
+ <table class=" widefat fixed">
436
+ <tr>
437
+ <td align="left" class="">
438
+ <div class="makeFeedResponse"></div>
439
+ <div class="makeFeedComplete"></div>
440
+ </td>
441
+ <td align="right">
442
+ <button type="submit" class="wfbtn">
443
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
444
+ </button>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </div>
449
+ </li>
450
+ <?php include plugin_dir_path(__FILE__) . "../woo-feed-ftp-sftp-template.php"; ?>
451
+
452
+ </ul>
admin/partials/smartly.io/add-feed.php ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 wf_mattr" value="id"/>
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[]" required="required"
41
+ class="wf_validate_attr wf_attr wf_attributes">
42
+ <?php echo $product->attributeDropdown('id'); ?>
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[][]" 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
+
72
+ <tr>
73
+ <td>
74
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
75
+ </td>
76
+ <td>
77
+ <input type="text" name="mattributes[]" autocomplete="off" required
78
+ class="wf_validate_attr wf_mattributes wf_mattr" value="title"/>
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[]" required="required"
91
+ class="wf_validate_attr wf_attr wf_attributes">
92
+ <?php echo $product->attributeDropdown('title'); ?>
93
+ </select>
94
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
95
+ style=" display: none;"/>
96
+ </td>
97
+ <td>
98
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
99
+ </td>
100
+ <td>
101
+ <select name="output_type[][]" class="outputType wfnoempty">
102
+ <option value="1">Default</option>
103
+ <option value="2">Strip Tags</option>
104
+ <option value="3">UTF-8 Encode</option>
105
+ <option value="4">htmlentities</option>
106
+ <option value="5">Integer</option>
107
+ <option value="6">Price</option>
108
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
109
+ <option value="8">CDATA</option>
110
+ </select>
111
+ <i class="dashicons dashicons-editor-expand expandType"></i>
112
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
113
+ </td>
114
+ <td>
115
+ <input type="text" name="limit[]" class="wf_ps"/>
116
+ </td>
117
+ <td>
118
+ <i class="delRow dashicons dashicons-trash"></i>
119
+ </td>
120
+ </tr>
121
+
122
+ <tr>
123
+ <td>
124
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
125
+ </td>
126
+ <td>
127
+ <input type="text" name="mattributes[]" autocomplete="off" required
128
+ class="wf_validate_attr wf_mattributes wf_mattr" value="description"/>
129
+ </td>
130
+ <td>
131
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
132
+ </td>
133
+ <td>
134
+ <select name="type[]" class="attr_type wfnoempty">
135
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
136
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
137
+ </select>
138
+ </td>
139
+ <td>
140
+ <select name="attributes[]" required="required"
141
+ class="wf_validate_attr wf_attr wf_attributes">
142
+ <?php echo $product->attributeDropdown('description'); ?>
143
+ </select>
144
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
145
+ style=" display: none;"/>
146
+ </td>
147
+ <td>
148
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
149
+ </td>
150
+ <td>
151
+ <select name="output_type[][]" class="outputType wfnoempty">
152
+ <option value="1">Default</option>
153
+ <option value="2">Strip Tags</option>
154
+ <option value="3">UTF-8 Encode</option>
155
+ <option value="4">htmlentities</option>
156
+ <option value="5">Integer</option>
157
+ <option value="6">Price</option>
158
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
159
+ <option value="8">CDATA</option>
160
+ </select>
161
+ <i class="dashicons dashicons-editor-expand expandType"></i>
162
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
163
+ </td>
164
+ <td>
165
+ <input type="text" name="limit[]" class="wf_ps"/>
166
+ </td>
167
+ <td>
168
+ <i class="delRow dashicons dashicons-trash"></i>
169
+ </td>
170
+ </tr>
171
+
172
+ <tr>
173
+ <td>
174
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
175
+ </td>
176
+ <td>
177
+ <input type="text" name="mattributes[]" autocomplete="off" required
178
+ class="wf_validate_attr wf_mattributes wf_mattr" value="link"/>
179
+ </td>
180
+ <td>
181
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
182
+ </td>
183
+ <td>
184
+ <select name="type[]" class="attr_type wfnoempty">
185
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
186
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
187
+ </select>
188
+ </td>
189
+ <td>
190
+ <select name="attributes[]" required="required"
191
+ class="wf_validate_attr wf_attr wf_attributes">
192
+ <?php echo $product->attributeDropdown('link'); ?>
193
+ </select>
194
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
195
+ style=" display: none;"/>
196
+ </td>
197
+ <td>
198
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
199
+ </td>
200
+ <td>
201
+ <select name="output_type[][]" class="outputType wfnoempty">
202
+ <option value="1">Default</option>
203
+ <option value="2">Strip Tags</option>
204
+ <option value="3">UTF-8 Encode</option>
205
+ <option value="4">htmlentities</option>
206
+ <option value="5">Integer</option>
207
+ <option value="6">Price</option>
208
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
209
+ <option value="8">CDATA</option>
210
+ </select>
211
+ <i class="dashicons dashicons-editor-expand expandType"></i>
212
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
213
+ </td>
214
+ <td>
215
+ <input type="text" name="limit[]" class="wf_ps"/>
216
+ </td>
217
+ <td>
218
+ <i class="delRow dashicons dashicons-trash"></i>
219
+ </td>
220
+ </tr>
221
+
222
+ <tr>
223
+ <td>
224
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
225
+ </td>
226
+ <td>
227
+ <input type="text" name="mattributes[]" autocomplete="off" required
228
+ class="wf_validate_attr wf_mattributes wf_mattr" value="image_link"/>
229
+ </td>
230
+ <td>
231
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
232
+ </td>
233
+ <td>
234
+ <select name="type[]" class="attr_type wfnoempty">
235
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
236
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
237
+ </select>
238
+ </td>
239
+ <td>
240
+ <select name="attributes[]" required="required"
241
+ class="wf_validate_attr wf_attr wf_attributes">
242
+ <?php echo $product->attributeDropdown('image'); ?>
243
+ </select>
244
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
245
+ style=" display: none;"/>
246
+ </td>
247
+ <td>
248
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
249
+ </td>
250
+ <td>
251
+ <select name="output_type[][]" class="outputType wfnoempty">
252
+ <option value="1">Default</option>
253
+ <option value="2">Strip Tags</option>
254
+ <option value="3">UTF-8 Encode</option>
255
+ <option value="4">htmlentities</option>
256
+ <option value="5">Integer</option>
257
+ <option value="6">Price</option>
258
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
259
+ <option value="8">CDATA</option>
260
+ </select>
261
+ <i class="dashicons dashicons-editor-expand expandType"></i>
262
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
263
+ </td>
264
+ <td>
265
+ <input type="text" name="limit[]" class="wf_ps"/>
266
+ </td>
267
+ <td>
268
+ <i class="delRow dashicons dashicons-trash"></i>
269
+ </td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td>
274
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
275
+ </td>
276
+ <td>
277
+ <input type="text" name="mattributes[]" autocomplete="off" required
278
+ class="wf_validate_attr wf_mattributes wf_mattr" value="Price"/>
279
+ </td>
280
+ <td>
281
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
282
+ </td>
283
+ <td>
284
+ <select name="type[]" class="attr_type wfnoempty">
285
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
286
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
287
+ </select>
288
+ </td>
289
+ <td>
290
+ <select name="attributes[]" required="required"
291
+ class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('current_price'); ?>
293
+ </select>
294
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
+ style=" display: none;"/>
296
+ </td>
297
+ <td>
298
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
299
+ </td>
300
+ <td>
301
+ <select name="output_type[][]" class="outputType wfnoempty">
302
+ <option value="1">Default</option>
303
+ <option value="2">Strip Tags</option>
304
+ <option value="3">UTF-8 Encode</option>
305
+ <option value="4">htmlentities</option>
306
+ <option value="5">Integer</option>
307
+ <option value="6">Price</option>
308
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
309
+ <option value="8">CDATA</option>
310
+ </select>
311
+ <i class="dashicons dashicons-editor-expand expandType"></i>
312
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
313
+ </td>
314
+ <td>
315
+ <input type="text" name="limit[]" class="wf_ps"/>
316
+ </td>
317
+ <td>
318
+ <i class="delRow dashicons dashicons-trash"></i>
319
+ </td>
320
+ </tr>
321
+
322
+ <tr>
323
+ <td>
324
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
325
+ </td>
326
+ <td>
327
+ <input type="text" name="mattributes[]" autocomplete="off" required
328
+ class="wf_validate_attr wf_mattributes wf_mattr" value="categories"/>
329
+ </td>
330
+ <td>
331
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
332
+ </td>
333
+ <td>
334
+ <select name="type[]" class="attr_type wfnoempty">
335
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
336
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
337
+ </select>
338
+ </td>
339
+ <td>
340
+ <select name="attributes[]" required="required"
341
+ class="wf_validate_attr wf_attr wf_attributes">
342
+ <?php echo $product->attributeDropdown('product_type'); ?>
343
+ </select>
344
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
345
+ style=" display: none;"/>
346
+ </td>
347
+ <td>
348
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
349
+ </td>
350
+ <td>
351
+ <select name="output_type[][]" class="outputType wfnoempty">
352
+ <option value="1">Default</option>
353
+ <option value="2">Strip Tags</option>
354
+ <option value="3">UTF-8 Encode</option>
355
+ <option value="4">htmlentities</option>
356
+ <option value="5">Integer</option>
357
+ <option value="6">Price</option>
358
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
359
+ <option value="8">CDATA</option>
360
+ </select>
361
+ <i class="dashicons dashicons-editor-expand expandType"></i>
362
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
363
+ </td>
364
+ <td>
365
+ <input type="text" name="limit[]" class="wf_ps"/>
366
+ </td>
367
+ <td>
368
+ <i class="delRow dashicons dashicons-trash"></i>
369
+ </td>
370
+ </tr>
371
+
372
+ <tr>
373
+ <td>
374
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
375
+ </td>
376
+ <td>
377
+ <input type="text" name="mattributes[]" autocomplete="off" required
378
+ class="wf_validate_attr wf_mattributes wf_mattr" value="brand"/>
379
+ </td>
380
+ <td>
381
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
382
+ </td>
383
+ <td>
384
+ <select name="type[]" class="attr_type wfnoempty">
385
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
386
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
387
+ </select>
388
+ </td>
389
+ <td>
390
+ <select name="attributes[]" required="required"
391
+ class="wf_validate_attr wf_attr wf_attributes">
392
+ <?php echo $product->attributeDropdown(); ?>
393
+ </select>
394
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
395
+ style=" display: none;"/>
396
+ </td>
397
+ <td>
398
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
399
+ </td>
400
+ <td>
401
+ <select name="output_type[][]" class="outputType wfnoempty">
402
+ <option value="1">Default</option>
403
+ <option value="2">Strip Tags</option>
404
+ <option value="3">UTF-8 Encode</option>
405
+ <option value="4">htmlentities</option>
406
+ <option value="5">Integer</option>
407
+ <option value="6">Price</option>
408
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
409
+ <option value="8">CDATA</option>
410
+ </select>
411
+ <i class="dashicons dashicons-editor-expand expandType"></i>
412
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
413
+ </td>
414
+ <td>
415
+ <input type="text" name="limit[]" class="wf_ps"/>
416
+ </td>
417
+ <td>
418
+ <i class="delRow dashicons dashicons-trash"></i>
419
+ </td>
420
+ </tr>
421
+ </tbody>
422
+ <tfoot>
423
+ <tr>
424
+ <td>
425
+ <button type="button" class="button-small button-primary" id="wf_newRow">
426
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
427
+ </button>
428
+ </td>
429
+ <td colspan="8">
430
+
431
+ </td>
432
+ </tr>
433
+ </tfoot>
434
+ </table>
435
+ <table class=" widefat fixed">
436
+ <tr>
437
+ <td align="left" class="">
438
+ <div class="makeFeedResponse"></div>
439
+ <div class="makeFeedComplete"></div>
440
+ </td>
441
+ <td align="right">
442
+ <button type="submit" class="wfbtn">
443
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
444
+ </button>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </div>
449
+ </li>
450
+ <?php include plugin_dir_path(__FILE__) . "../woo-feed-ftp-sftp-template.php"; ?>
451
+
452
+ </ul>
admin/partials/stylight.com/add-feed.php ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 wf_mattr" value="id" />
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[]" required="required"
41
+ class="wf_validate_attr wf_attr wf_attributes">
42
+ <?php echo $product->attributeDropdown("id"); ?>
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[][]" 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
+
72
+ <tr>
73
+ <td>
74
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
75
+ </td>
76
+ <td>
77
+ <input type="text" name="mattributes[]" autocomplete="off" required
78
+ class="wf_validate_attr wf_mattributes wf_mattr" value="title" />
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[]" required="required"
91
+ class="wf_validate_attr wf_attr wf_attributes">
92
+ <?php echo $product->attributeDropdown("title"); ?>
93
+ </select>
94
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
95
+ style=" display: none;"/>
96
+ </td>
97
+ <td>
98
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
99
+ </td>
100
+ <td>
101
+ <select name="output_type[][]" class="outputType wfnoempty">
102
+ <option value="1">Default</option>
103
+ <option value="2">Strip Tags</option>
104
+ <option value="3">UTF-8 Encode</option>
105
+ <option value="4">htmlentities</option>
106
+ <option value="5">Integer</option>
107
+ <option value="6">Price</option>
108
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
109
+ <option value="8">CDATA</option>
110
+ </select>
111
+ <i class="dashicons dashicons-editor-expand expandType"></i>
112
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
113
+ </td>
114
+ <td>
115
+ <input type="text" name="limit[]" class="wf_ps"/>
116
+ </td>
117
+ <td>
118
+ <i class="delRow dashicons dashicons-trash"></i>
119
+ </td>
120
+ </tr>
121
+
122
+ <tr>
123
+ <td>
124
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
125
+ </td>
126
+ <td>
127
+ <input type="text" name="mattributes[]" autocomplete="off" required
128
+ class="wf_validate_attr wf_mattributes wf_mattr" value="description" />
129
+ </td>
130
+ <td>
131
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
132
+ </td>
133
+ <td>
134
+ <select name="type[]" class="attr_type wfnoempty">
135
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
136
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
137
+ </select>
138
+ </td>
139
+ <td>
140
+ <select name="attributes[]" required="required"
141
+ class="wf_validate_attr wf_attr wf_attributes">
142
+ <?php echo $product->attributeDropdown("description"); ?>
143
+ </select>
144
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
145
+ style=" display: none;"/>
146
+ </td>
147
+ <td>
148
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
149
+ </td>
150
+ <td>
151
+ <select name="output_type[][]" class="outputType wfnoempty">
152
+ <option value="1">Default</option>
153
+ <option value="2">Strip Tags</option>
154
+ <option value="3">UTF-8 Encode</option>
155
+ <option value="4">htmlentities</option>
156
+ <option value="5">Integer</option>
157
+ <option value="6">Price</option>
158
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
159
+ <option value="8">CDATA</option>
160
+ </select>
161
+ <i class="dashicons dashicons-editor-expand expandType"></i>
162
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
163
+ </td>
164
+ <td>
165
+ <input type="text" name="limit[]" class="wf_ps"/>
166
+ </td>
167
+ <td>
168
+ <i class="delRow dashicons dashicons-trash"></i>
169
+ </td>
170
+ </tr>
171
+
172
+ <tr>
173
+ <td>
174
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
175
+ </td>
176
+ <td>
177
+ <input type="text" name="mattributes[]" autocomplete="off" required
178
+ class="wf_validate_attr wf_mattributes wf_mattr" value="link" />
179
+ </td>
180
+ <td>
181
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
182
+ </td>
183
+ <td>
184
+ <select name="type[]" class="attr_type wfnoempty">
185
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
186
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
187
+ </select>
188
+ </td>
189
+ <td>
190
+ <select name="attributes[]" required="required"
191
+ class="wf_validate_attr wf_attr wf_attributes">
192
+ <?php echo $product->attributeDropdown("link"); ?>
193
+ </select>
194
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
195
+ style=" display: none;"/>
196
+ </td>
197
+ <td>
198
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
199
+ </td>
200
+ <td>
201
+ <select name="output_type[][]" class="outputType wfnoempty">
202
+ <option value="1">Default</option>
203
+ <option value="2">Strip Tags</option>
204
+ <option value="3">UTF-8 Encode</option>
205
+ <option value="4">htmlentities</option>
206
+ <option value="5">Integer</option>
207
+ <option value="6">Price</option>
208
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
209
+ <option value="8">CDATA</option>
210
+ </select>
211
+ <i class="dashicons dashicons-editor-expand expandType"></i>
212
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
213
+ </td>
214
+ <td>
215
+ <input type="text" name="limit[]" class="wf_ps"/>
216
+ </td>
217
+ <td>
218
+ <i class="delRow dashicons dashicons-trash"></i>
219
+ </td>
220
+ </tr>
221
+
222
+ <tr>
223
+ <td>
224
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
225
+ </td>
226
+ <td>
227
+ <input type="text" name="mattributes[]" autocomplete="off" required
228
+ class="wf_validate_attr wf_mattributes wf_mattr" value="image_link" />
229
+ </td>
230
+ <td>
231
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
232
+ </td>
233
+ <td>
234
+ <select name="type[]" class="attr_type wfnoempty">
235
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
236
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
237
+ </select>
238
+ </td>
239
+ <td>
240
+ <select name="attributes[]" required="required"
241
+ class="wf_validate_attr wf_attr wf_attributes">
242
+ <?php echo $product->attributeDropdown("image"); ?>
243
+ </select>
244
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
245
+ style=" display: none;"/>
246
+ </td>
247
+ <td>
248
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
249
+ </td>
250
+ <td>
251
+ <select name="output_type[][]" class="outputType wfnoempty">
252
+ <option value="1">Default</option>
253
+ <option value="2">Strip Tags</option>
254
+ <option value="3">UTF-8 Encode</option>
255
+ <option value="4">htmlentities</option>
256
+ <option value="5">Integer</option>
257
+ <option value="6">Price</option>
258
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
259
+ <option value="8">CDATA</option>
260
+ </select>
261
+ <i class="dashicons dashicons-editor-expand expandType"></i>
262
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
263
+ </td>
264
+ <td>
265
+ <input type="text" name="limit[]" class="wf_ps"/>
266
+ </td>
267
+ <td>
268
+ <i class="delRow dashicons dashicons-trash"></i>
269
+ </td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td>
274
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
275
+ </td>
276
+ <td>
277
+ <input type="text" name="mattributes[]" autocomplete="off" required
278
+ class="wf_validate_attr wf_mattributes wf_mattr" value="price" />
279
+ </td>
280
+ <td>
281
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
282
+ </td>
283
+ <td>
284
+ <select name="type[]" class="attr_type wfnoempty">
285
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
286
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
287
+ </select>
288
+ </td>
289
+ <td>
290
+ <select name="attributes[]" required="required"
291
+ class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown("current_price"); ?>
293
+ </select>
294
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
+ style=" display: none;"/>
296
+ </td>
297
+ <td>
298
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
299
+ </td>
300
+ <td>
301
+ <select name="output_type[][]" class="outputType wfnoempty">
302
+ <option value="1">Default</option>
303
+ <option value="2">Strip Tags</option>
304
+ <option value="3">UTF-8 Encode</option>
305
+ <option value="4">htmlentities</option>
306
+ <option value="5">Integer</option>
307
+ <option value="6">Price</option>
308
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
309
+ <option value="8">CDATA</option>
310
+ </select>
311
+ <i class="dashicons dashicons-editor-expand expandType"></i>
312
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
313
+ </td>
314
+ <td>
315
+ <input type="text" name="limit[]" class="wf_ps"/>
316
+ </td>
317
+ <td>
318
+ <i class="delRow dashicons dashicons-trash"></i>
319
+ </td>
320
+ </tr>
321
+
322
+ <tr>
323
+ <td>
324
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
325
+ </td>
326
+ <td>
327
+ <input type="text" name="mattributes[]" autocomplete="off" required
328
+ class="wf_validate_attr wf_mattributes wf_mattr" value="categories" />
329
+ </td>
330
+ <td>
331
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
332
+ </td>
333
+ <td>
334
+ <select name="type[]" class="attr_type wfnoempty">
335
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
336
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
337
+ </select>
338
+ </td>
339
+ <td>
340
+ <select name="attributes[]" required="required"
341
+ class="wf_validate_attr wf_attr wf_attributes">
342
+ <?php echo $product->attributeDropdown("product_type"); ?>
343
+ </select>
344
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
345
+ style=" display: none;"/>
346
+ </td>
347
+ <td>
348
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
349
+ </td>
350
+ <td>
351
+ <select name="output_type[][]" class="outputType wfnoempty">
352
+ <option value="1">Default</option>
353
+ <option value="2">Strip Tags</option>
354
+ <option value="3">UTF-8 Encode</option>
355
+ <option value="4">htmlentities</option>
356
+ <option value="5">Integer</option>
357
+ <option value="6">Price</option>
358
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
359
+ <option value="8">CDATA</option>
360
+ </select>
361
+ <i class="dashicons dashicons-editor-expand expandType"></i>
362
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
363
+ </td>
364
+ <td>
365
+ <input type="text" name="limit[]" class="wf_ps"/>
366
+ </td>
367
+ <td>
368
+ <i class="delRow dashicons dashicons-trash"></i>
369
+ </td>
370
+ </tr>
371
+
372
+ <tr>
373
+ <td>
374
+ <i class="wf_sortedtable dashicons dashicons-menu"></i>
375
+ </td>
376
+ <td>
377
+ <input type="text" name="mattributes[]" autocomplete="off" required
378
+ class="wf_validate_attr wf_mattributes wf_mattr" value="brand" />
379
+ </td>
380
+ <td>
381
+ <input type="text" name="prefix[]" autocomplete="off" class="wf_ps"/>
382
+ </td>
383
+ <td>
384
+ <select name="type[]" class="attr_type wfnoempty">
385
+ <option value="attribute"> <?php echo _e('Attribute', 'woo-feed'); ?></option>
386
+ <option value="pattern"> <?php echo _e('Pattern', 'woo-feed'); ?></option>
387
+ </select>
388
+ </td>
389
+ <td>
390
+ <select name="attributes[]" required="required"
391
+ class="wf_validate_attr wf_attr wf_attributes">
392
+ <?php echo $product->attributeDropdown(); ?>
393
+ </select>
394
+ <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
395
+ style=" display: none;"/>
396
+ </td>
397
+ <td>
398
+ <input type="text" name="suffix[]" autocomplete="off" class="wf_ps"/>
399
+ </td>
400
+ <td>
401
+ <select name="output_type[][]" class="outputType wfnoempty">
402
+ <option value="1">Default</option>
403
+ <option value="2">Strip Tags</option>
404
+ <option value="3">UTF-8 Encode</option>
405
+ <option value="4">htmlentities</option>
406
+ <option value="5">Integer</option>
407
+ <option value="6">Price</option>
408
+ <option value="7">Remove Space</option><option value="10">Remove ShortCodes</option><option value="9">Remove Special Character</option>
409
+ <option value="8">CDATA</option>
410
+ </select>
411
+ <i class="dashicons dashicons-editor-expand expandType"></i>
412
+ <i style="display: none;" class="dashicons dashicons-editor-contract contractType"></i>
413
+ </td>
414
+ <td>
415
+ <input type="text" name="limit[]" class="wf_ps"/>
416
+ </td>
417
+ <td>
418
+ <i class="delRow dashicons dashicons-trash"></i>
419
+ </td>
420
+ </tr>
421
+ </tbody>
422
+ <tfoot>
423
+ <tr>
424
+ <td>
425
+ <button type="button" class="button-small button-primary" id="wf_newRow">
426
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
427
+ </button>
428
+ </td>
429
+ <td colspan="8">
430
+
431
+ </td>
432
+ </tr>
433
+ </tfoot>
434
+ </table>
435
+ <table class=" widefat fixed">
436
+ <tr>
437
+ <td align="left" class="">
438
+ <div class="makeFeedResponse"></div>
439
+ <div class="makeFeedComplete"></div>
440
+ </td>
441
+ <td align="right">
442
+ <button type="submit" class="wfbtn">
443
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
444
+ </button>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </div>
449
+ </li>
450
+ <?php include plugin_dir_path(__FILE__) . "../woo-feed-ftp-sftp-template.php"; ?>
451
+
452
+ </ul>
includes/class-woo-feed.php CHANGED
@@ -70,7 +70,7 @@ class Woo_Feed
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
- $this->version = '3.0.14';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
+ $this->version = '3.0.15';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -64,6 +64,10 @@ class Woo_Feed_Default_Attributes
64
  "jet" =>"Jet.com",
65
  "wish" =>"Wish.com",
66
  "zap.co.il" => "Zap.co.il",
 
 
 
 
67
  "---2" =>"",
68
  "--3" =>"Amazon Template",
69
  "amazon_clothing" =>"Clothing",
64
  "jet" =>"Jet.com",
65
  "wish" =>"Wish.com",
66
  "zap.co.il" => "Zap.co.il",
67
+ // "fruugo.au" => "Fruugoaustralia.com",
68
+ // "myshopping.com.au" => "Myshopping.com.au",
69
+ // "smartly.io" => "Smartly.io",
70
+ // "stylight.com" => "Stylight.com",
71
  "---2" =>"",
72
  "--3" =>"Amazon Template",
73
  "amazon_clothing" =>"Clothing",
includes/feeds/class-woo-feed-custom.php CHANGED
@@ -113,9 +113,9 @@ class Woo_Feed_Custom
113
  if ($this->rules['feedType'] == 'xml') {
114
  //return $engine->get_feed($this->products);
115
  $feed=array(
116
- "header"=>$engine->get_xml_feed_header(),
117
  "body"=>$engine->get_xml_feed_body(),
118
- "footer"=>$engine->get_xml_feed_footer(),
119
  );
120
  return $feed;
121
  } elseif ($this->rules['feedType'] == 'txt') {
@@ -144,4 +144,64 @@ class Woo_Feed_Custom
144
  );
145
  return $feed;
146
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  }
113
  if ($this->rules['feedType'] == 'xml') {
114
  //return $engine->get_feed($this->products);
115
  $feed=array(
116
+ "header"=> $this->get_header($engine),
117
  "body"=>$engine->get_xml_feed_body(),
118
+ "footer"=> $this->get_footer($engine),
119
  );
120
  return $feed;
121
  } elseif ($this->rules['feedType'] == 'txt') {
144
  );
145
  return $feed;
146
  }
147
+
148
+ public function get_header($engine)
149
+ {
150
+ $datetime_now = date("Y-m-d H:i:s");
151
+ if($this->rules["provider"] == 'fruugo.au')
152
+ {
153
+ $fruugo_au = "<products version=\"1.0\" standalone=\"yes\">
154
+ <datetime>$datetime_now</datetime>
155
+ <title>". get_bloginfo('name') ."</title>
156
+ <link>". get_bloginfo('url') ."</link>
157
+ <description>". get_bloginfo('description') ."</description>";
158
+ return $fruugo_au;
159
+ }
160
+ else if($this->rules['provider'] == 'zap.co.il')
161
+ {
162
+ $zap = "<STORE>
163
+ <datetime>$datetime_now</datetime>
164
+ <title>". get_bloginfo('name') ."</title>
165
+ <link>". get_bloginfo('url') ."</link>
166
+ <description>". get_bloginfo('description') ."</description>
167
+ <agency>". get_bloginfo('name') ."</agency>
168
+ <email>". get_bloginfo('admin_email') ."</email>";
169
+ return $zap;
170
+ }
171
+ else if($this->rules['provider'] == 'myshopping.com.au')
172
+ {
173
+ return "<products version=\"1.0\" standalone=\"yes\">
174
+ <datetime>$datetime_now</datetime>
175
+ <title>". get_bloginfo('name') ."</title>
176
+ <link>". get_bloginfo('url') ."</link>
177
+ <description>". get_bloginfo('description') ."</description>";
178
+ }
179
+ else if($this->rules['provider'] == 'stylight.com')
180
+ {
181
+ return "<products version=\"1.0\" standalone=\"yes\">
182
+ <datetime>$datetime_now</datetime>
183
+ <title>". get_bloginfo('name') ."</title>
184
+ <link>". get_bloginfo('url') ."</link>
185
+ <description>". get_bloginfo('description') ."</description>";
186
+ }
187
+ else
188
+ {
189
+ return $engine->get_xml_feed_header();
190
+ }
191
+ }
192
+
193
+ public function get_footer($engine)
194
+ {
195
+ if(in_array($this->rules['provider'], ['fruugo.au','myshopping.com.au', 'stylight.com'])) {
196
+ return "</products>";
197
+ }
198
+ else if($this->rules['provider'] == 'zap.co.il')
199
+ {
200
+ return "</STORE>";
201
+ }
202
+ else
203
+ {
204
+ return $engine->get_xml_feed_footer();
205
+ }
206
+ }
207
  }
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: 3.0.14
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -758,7 +758,7 @@ function woo_feed_manage_feed()
758
  }
759
 
760
  $merchants=array(
761
- "custom","fruugo","twenga","pricespy","prisjakt","amazon","adwords","polyvore","bol","pricerunner","adform","bonanza","leeguide","real","crowdfox","jet","wish","google_local_inventory", "google_local", "zap.co.il"
762
  );
763
 
764
  if (isset($fname)) {
@@ -1085,7 +1085,7 @@ function woo_feed_review_notice() {
1085
  $installDate=strtotime('-16 days',$installDate);
1086
 
1087
  $notice = '<div class="woo-feed-review-notice notice notice-info is-dismissible">';
1088
- $notice .= '<p><b>:) We have spent countless hours developing this free plugin for you, and we would really appreciate it if you dropped us a quick rating. Your opinion matters a lot to us. It helps us to get better. Thanks for using WooCommerce Product Feed.</b></p>';
1089
  $notice .= '<ul>';
1090
  $notice .= '<li><a val="later" href="#">Remind me later</a></li>';
1091
  $notice .= '<li><a val="never" href="#">I would not</a></li>';
@@ -1141,3 +1141,166 @@ function woo_feed_save_wpml_notice() {
1141
  wp_send_json_success();
1142
  }
1143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 3.0.15
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
758
  }
759
 
760
  $merchants=array(
761
+ "custom","fruugo","twenga","pricespy","prisjakt","amazon","adwords","polyvore","bol","pricerunner","adform","bonanza","leeguide","real","crowdfox","jet","wish","google_local_inventory", "google_local", "zap.co.il", "fruugo.au", "myshopping.com.au", "smartly.io", "stylight.com"
762
  );
763
 
764
  if (isset($fname)) {
1085
  $installDate=strtotime('-16 days',$installDate);
1086
 
1087
  $notice = '<div class="woo-feed-review-notice notice notice-info is-dismissible">';
1088
+ $notice .= '<p><b>:) We have spent countless hours developing this free plugin for you, and we would really appreciate it if you dropped us a quick rating. Your opinion matters a lot to us. It helps us to get better. Thanks for using <i>WooCommerce Product Feed</i>.</b></p>';
1089
  $notice .= '<ul>';
1090
  $notice .= '<li><a val="later" href="#">Remind me later</a></li>';
1091
  $notice .= '<li><a val="never" href="#">I would not</a></li>';
1141
  wp_send_json_success();
1142
  }
1143
 
1144
+ // Add GTIN, MPN, UPC, EAN, Brand, Age Group custom fields in variations menu
1145
+ //add_action('woocommerce_product_after_variable_attributes', 'woo_feed_add_variation_options', 10, 3);
1146
+ //
1147
+ //function woo_feed_add_variation_options($loop, $variation_data, $variation)
1148
+ //{
1149
+ // woocommerce_wp_text_input([
1150
+ // "id" => 'woo_feed_gtin[' . $loop . ']',
1151
+ // "class" => "short",
1152
+ // "placeholder" => "GTIN",
1153
+ // "label" => __('GTIN <br>', 'woo-feed'),
1154
+ // "value" => get_post_meta($variation->ID, 'woo_feed_gtin', true),
1155
+ // ]);
1156
+ //
1157
+ // woocommerce_wp_text_input([
1158
+ // "id" => 'woo_feed_mpn[' . $loop . ']',
1159
+ // "class" => "short",
1160
+ // "placeholder" => "MPN",
1161
+ // "label" => __('MPN <br>', 'woo-feed'),
1162
+ // "value" => get_post_meta($variation->ID, 'woo_feed_mpn', true),
1163
+ // ]);
1164
+ //
1165
+ // woocommerce_wp_text_input([
1166
+ // "id" => 'woo_feed_upc[' . $loop . ']',
1167
+ // "class" => "short",
1168
+ // "placeholder" => "UPC",
1169
+ // "label" => __('UPC <br>', 'woo-feed'),
1170
+ // "value" => get_post_meta($variation->ID, 'woo_feed_upc', true),
1171
+ // ]);
1172
+ //
1173
+ // woocommerce_wp_text_input([
1174
+ // "id" => 'woo_feed_ean[' . $loop . ']',
1175
+ // "class" => "short",
1176
+ // "placeholder" => "EAN",
1177
+ // "label" => __('EAN <br>', 'woo-feed'),
1178
+ // "value" => get_post_meta($variation->ID, 'woo_feed_ean', true),
1179
+ // ]);
1180
+ //
1181
+ // woocommerce_wp_text_input([
1182
+ // "id" => 'woo_feed_brand[' . $loop . ']',
1183
+ // "class" => "short",
1184
+ // "placeholder" => "Brand",
1185
+ // "label" => __('Brand <br>', 'woo-feed'),
1186
+ // "value" => get_post_meta($variation->ID, 'woo_feed_brand', true),
1187
+ // ]);
1188
+ //
1189
+ // woocommerce_wp_text_input([
1190
+ // "id" => 'woo_feed_age_group[' . $loop . ']',
1191
+ // "class" => "short",
1192
+ // "placeholder" => "Age Group",
1193
+ // "label" => __('Age Group <br>', 'woo-feed'),
1194
+ // "value" => get_post_meta($variation->ID, 'woo_feed_age_group', true),
1195
+ // ]);
1196
+ //}
1197
+ //
1198
+ //add_action( 'woocommerce_save_product_variation', 'woo_feed_save_custom_field_variations', 10, 2 );
1199
+ //
1200
+ //function woo_feed_save_custom_field_variations( $variation_id, $i ) {
1201
+ // $gtin_field = $_POST['woo_feed_gtin'][$i];
1202
+ // if ( isset( $gtin_field ) ) update_post_meta( $variation_id, 'woo_feed_gtin', esc_attr( $gtin_field ) );
1203
+ //
1204
+ // $mpn_field = $_POST['woo_feed_mpn'][$i];
1205
+ // if ( isset( $mpn_field ) ) update_post_meta( $variation_id, 'woo_feed_mpn', esc_attr( $mpn_field ) );
1206
+ //
1207
+ // $upc_field = $_POST['woo_feed_upc'][$i];
1208
+ // if ( isset( $upc_field ) ) update_post_meta( $variation_id, 'woo_feed_upc', esc_attr( $upc_field ) );
1209
+ //
1210
+ // $ean_field = $_POST['woo_feed_ean'][$i];
1211
+ // if ( isset( $ean_field ) ) update_post_meta( $variation_id, 'woo_feed_ean', esc_attr( $ean_field ) );
1212
+ //
1213
+ // $brand_field = $_POST['woo_feed_brand'][$i];
1214
+ // if ( isset( $brand_field ) ) update_post_meta( $variation_id, 'woo_feed_brand', esc_attr( $brand_field ) );
1215
+ //
1216
+ // $age_group_field = $_POST['woo_feed_age_group'][$i];
1217
+ // if ( isset( $age_group_field ) ) update_post_meta( $variation_id, 'woo_feed_age_group', esc_attr( $age_group_field ) );
1218
+ //}
1219
+ //
1220
+ //add_filter( 'woocommerce_available_variation', 'wpp_feed_add_custom_field_variation_data' );
1221
+ //
1222
+ //function wpp_feed_add_custom_field_variation_data( $variations ) {
1223
+ // $variations['woo_feed_gtin'] = '<div class="woocommerce_gtin_field">GTIN Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_gtin', true ) . '</span></div>';
1224
+ // $variations['woo_feed_mpn'] = '<div class="woocommerce_mpn_field">MPN Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_mpn', true ) . '</span></div>';
1225
+ // $variations['woo_feed_upc'] = '<div class="woocommerce_upc_field">UPC Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_upc', true ) . '</span></div>';
1226
+ // $variations['woo_feed_ean'] = '<div class="woocommerce_ean_field">EAN Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_ean', true ) . '</span></div>';
1227
+ // $variations['woo_feed_brand'] = '<div class="woocommerce_brand_field">Brand Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_brand', true ) . '</span></div>';
1228
+ // $variations['woo_feed_age_group'] = '<div class="woocommerce_age_group_field">Age Group Field: <span>' . get_post_meta( $variations[ 'variation_id' ], 'woo_feed_age_group', true ) . '</span></div>';
1229
+ // return $variations;
1230
+ //}
1231
+ //
1232
+ //// Add custom fields in general menu - GTIN, MPN, UPC, EAN, Brand, Age group
1233
+ //add_action('woocommerce_product_options_general_product_data', "woo_feed_add_general_custom_fields");
1234
+ //
1235
+ //function woo_feed_add_general_custom_fields()
1236
+ //{
1237
+ // woocommerce_wp_text_input([
1238
+ // "id" => 'woo_feed_gtin',
1239
+ // "class" => "short",
1240
+ // "placeholder" => "GTIN",
1241
+ // "label" => __('GTIN', 'woo-feed'),
1242
+ // ]);
1243
+ //
1244
+ // woocommerce_wp_text_input([
1245
+ // "id" => 'woo_feed_mpn',
1246
+ // "class" => "short",
1247
+ // "placeholder" => "MPN",
1248
+ // "label" => __('MPN', 'woo-feed'),
1249
+ // ]);
1250
+ //
1251
+ // woocommerce_wp_text_input([
1252
+ // "id" => 'woo_feed_upc',
1253
+ // "class" => "short",
1254
+ // "placeholder" => "UPC",
1255
+ // "label" => __('UPC', 'woo-feed'),
1256
+ // ]);
1257
+ //
1258
+ // woocommerce_wp_text_input([
1259
+ // "id" => 'woo_feed_ean',
1260
+ // "class" => "short",
1261
+ // "placeholder" => "EAN",
1262
+ // "label" => __('EAN', 'woo-feed'),
1263
+ // ]);
1264
+ //
1265
+ // woocommerce_wp_text_input([
1266
+ // "id" => 'woo_feed_brand',
1267
+ // "class" => "short",
1268
+ // "placeholder" => "Brand",
1269
+ // "label" => __('Brand', 'woo-feed'),
1270
+ // ]);
1271
+ //
1272
+ // woocommerce_wp_text_input([
1273
+ // "id" => 'woo_feed_age_group',
1274
+ // "class" => "short",
1275
+ // "placeholder" => "Age Group",
1276
+ // "label" => __('Age Group', 'woo-feed'),
1277
+ // ]);
1278
+ //}
1279
+ //
1280
+ //// save custom fields in general menu
1281
+ //add_action('woocommerce_process_product_meta', "woo_feed_save_general_custom_fields");
1282
+ //
1283
+ //function woo_feed_save_general_custom_fields($product_id)
1284
+ //{
1285
+ // $product = wc_get_product( $product_id );
1286
+ //
1287
+ // $gtin = (isset( $_POST['woo_feed_gtin'] ) && ($_POST['woo_feed_gtin'] != "Array" && gettype($_POST['woo_feed_gtin']) != "array")) ? $_POST['woo_feed_gtin'] : '';
1288
+ // $product->update_meta_data('woo_feed_gtin', sanitize_text_field($gtin));
1289
+ //
1290
+ // $mpn = (isset( $_POST['woo_feed_mpn'] ) && ($_POST['woo_feed_mpn'] != "Array" && gettype($_POST['woo_feed_mpn']) != "array")) ? $_POST['woo_feed_mpn'] : '';
1291
+ // $product->update_meta_data('woo_feed_mpn', sanitize_text_field($mpn));
1292
+ //
1293
+ // $upc = (isset( $_POST['woo_feed_upc'] ) && ($_POST['woo_feed_upc'] != "Array" && gettype($_POST['woo_feed_upc']) != "array")) ? $_POST['woo_feed_upc'] : '';
1294
+ // $product->update_meta_data('woo_feed_upc', sanitize_text_field($upc));
1295
+ //
1296
+ // $ean = (isset( $_POST['woo_feed_ean'] ) && ($_POST['woo_feed_ean'] != "Array" && gettype($_POST['woo_feed_ean']) != "array")) ? $_POST['woo_feed_ean'] : '';
1297
+ // $product->update_meta_data('woo_feed_ean', sanitize_text_field($ean));
1298
+ //
1299
+ // $brand = (isset( $_POST['woo_feed_brand'] ) && ($_POST['woo_feed_brand'] != "Array" && gettype($_POST['woo_feed_brand']) != "array")) ? $_POST['woo_feed_brand'] : '';
1300
+ // $product->update_meta_data('woo_feed_brand', sanitize_text_field($brand));
1301
+ // $product->save();
1302
+ //
1303
+ // $age_group = (isset( $_POST['woo_feed_age_group'] ) && ($_POST['woo_feed_age_group'] != "Array" && gettype($_POST['woo_feed_age_group']) != "array")) ? $_POST['woo_feed_age_group'] : '';
1304
+ // $product->update_meta_data('woo_feed_age_group', sanitize_text_field($age_group));
1305
+ // $product->save();
1306
+ //}