CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.0.18

Version Description

Download this release

Release Info

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

Code changes from version 3.0.16 to 3.0.18

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.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -53,10 +53,10 @@ In one word WooCommerce Product Feed is a revolution. Yah, it’s a revolution o
53
  * It is highly customizable, having access to 100+ merchant sites & also very responsive of user commands.
54
  * 10+ pre configured template for Google Shopping,Google Adword,Facebook,Nextag.com,pricegrabber.com,Shopping.com,
55
  become.com,conexity.com,shopmania.com,shopzilla.com,bing.com
56
- * You can post your product feeds either manually from your site to shopping engines
57
  or you can also set FTP to post your feeds automatically to your desired engines.
58
  * Feeds are also accessible via HTTP or HTTPS. So that merchant can easily and automatically fetch product feed using given Feed URL.
59
- * There are 3 supported file formats for feeds. They are: XML, TXT, CSV.
60
  * Attribute Prefix and Suffix. You can easily add Marketing or Promo Text with Product Title, Description And its also possible to add Price symbol,currency code with price.
61
  * Output formatting using Strip Tags,UTF-8 encode,Remove Space,CDATA,Htmentities,Price and Number format
62
  * Output Limitation. You can Limit output length according to your merchant feed specification.
@@ -237,7 +237,7 @@ WooCommerce Product Feed Pro supports multi-vendor product feed generation. You
237
 
238
  **SUPPORT TEAM**
239
 
240
- We’ve a dedicated team of coders and wordpress experts to make your journey to us friendlier & error free. So, if you want to use our plugin or if you are facing any problem with our plugin feel free to say us by emailing here: support@webappick.com.
241
 
242
  == Installation ==
243
 
@@ -270,7 +270,7 @@ e.g.
270
 
271
  = which shopping engines are supported? =
272
 
273
- This plugin support all the sopping engines.
274
 
275
  = Does the plugin support product variation? =
276
 
@@ -298,6 +298,12 @@ Using pro version:
298
 
299
  == Changelog ==
300
 
 
 
 
 
 
 
301
  = 3.0.16(2019-04-08) =
302
  * Added: fruugoaustralia.com template added
303
  * Fixed: fruugo.com template updated
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.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
53
  * It is highly customizable, having access to 100+ merchant sites & also very responsive of user commands.
54
  * 10+ pre configured template for Google Shopping,Google Adword,Facebook,Nextag.com,pricegrabber.com,Shopping.com,
55
  become.com,conexity.com,shopmania.com,shopzilla.com,bing.com
56
+ * You can post your product feeds either manually from your site to shopping engines
57
  or you can also set FTP to post your feeds automatically to your desired engines.
58
  * Feeds are also accessible via HTTP or HTTPS. So that merchant can easily and automatically fetch product feed using given Feed URL.
59
+ * There are 3 supported file formats for feeds. They are: XML, TXT, CSV.
60
  * Attribute Prefix and Suffix. You can easily add Marketing or Promo Text with Product Title, Description And its also possible to add Price symbol,currency code with price.
61
  * Output formatting using Strip Tags,UTF-8 encode,Remove Space,CDATA,Htmentities,Price and Number format
62
  * Output Limitation. You can Limit output length according to your merchant feed specification.
237
 
238
  **SUPPORT TEAM**
239
 
240
+ We’ve a dedicated team of coders and wordpress experts to make your journey to us friendlier & error free. So, if you want to use our plugin or if you are facing any problem with our plugin feel free to say us by emailing here: support@webappick.com.
241
 
242
  == Installation ==
243
 
270
 
271
  = which shopping engines are supported? =
272
 
273
+ This plugin support all the sopping engines.
274
 
275
  = Does the plugin support product variation? =
276
 
298
 
299
  == Changelog ==
300
 
301
+ = 3.0.18(2019-04-11) =
302
+ * Added: Pinterest template added
303
+
304
+ = 3.0.17(2019-04-10) =
305
+ * Fixed: Template UI loading conflict with popup builder plugin
306
+
307
  = 3.0.16(2019-04-08) =
308
  * Added: fruugoaustralia.com template added
309
  * Fixed: fruugo.com template updated
admin/css/woo-feed-admin.css CHANGED
@@ -468,4 +468,8 @@ input[class=woo_feed_status_input]:checked + label:before{
468
  border-top: 1px solid #eee;
469
  padding: 12px 20px;
470
  text-align: right;
 
 
 
 
471
  }
468
  border-top: 1px solid #eee;
469
  padding: 12px 20px;
470
  text-align: right;
471
+ }
472
+
473
+ #wpbody-content.woofeed-body-content{
474
+ overflow:visible!important;
475
  }
admin/js/woo-feed-admin.js CHANGED
@@ -12,7 +12,13 @@
12
  * This enables you to define handlers, for when the DOM is ready:
13
  */
14
  $(function () {
15
-
 
 
 
 
 
 
16
 
17
  // Category Mapping (Auto Field Populate)
18
  $(".treegrid-parent").on('change keyup', function () {
@@ -181,6 +187,19 @@
181
  // Get Merchant View
182
  $("#provider").on('change', function (event) {
183
  event.preventDefault();
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  $("#providerPage").html("<h3>Loading...</h3>");
185
  var merchant = $(this).val();
186
  var this2 = this; //use in callback
@@ -370,20 +389,6 @@
370
 
371
  });
372
 
373
- /** When the window is loaded: */
374
-
375
- $(window).load(function () {
376
-
377
- });
378
- /**
379
- * ...and/or other possibilities.
380
- *
381
- * Ideally, it is not considered best practise to attach more than a
382
- * single DOM-ready or window-load handler for a particular page.
383
- * Although scripts in the WordPress core, Plugins and Themes may be
384
- * practising this, we should strive to set a better example in our own work.
385
- */
386
-
387
  })(jQuery);
388
 
389
  // Plugin deactivation pop up
12
  * This enables you to define handlers, for when the DOM is ready:
13
  */
14
  $(function () {
15
+
16
+ // Template loading ui conflict . Added by Shoroar
17
+ var pageURL = $(location). attr("href");
18
+ if(pageURL.indexOf('webappick-product-feed-for-woocommerce') >= 0 || pageURL.indexOf('woo_feed_manage_feed') >= 0) {
19
+ $('#wpbody-content').addClass('woofeed-body-content');
20
+ }
21
+
22
 
23
  // Category Mapping (Auto Field Populate)
24
  $(".treegrid-parent").on('change keyup', function () {
187
  // Get Merchant View
188
  $("#provider").on('change', function (event) {
189
  event.preventDefault();
190
+
191
+ // added by Zakaria
192
+ var _value = $(this).val();
193
+ if(_value == "fruugo" || _value == "fruugo.au")
194
+ {
195
+ $("#feedType").val("csv");
196
+ }
197
+ else
198
+ {
199
+ $("#feedType").val("");
200
+ }
201
+ // End
202
+
203
  $("#providerPage").html("<h3>Loading...</h3>");
204
  var merchant = $(this).val();
205
  var this2 = this; //use in callback
389
 
390
  });
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
  })(jQuery);
393
 
394
  // Plugin deactivation pop up
admin/partials/comparer.be/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('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/dooyoo/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('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/hintaseuranta.fi/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('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/incurvy/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('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/kijiji.ca/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('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/marktplaats.nl/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('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/myshopping.com.au/add-feed.php CHANGED
@@ -289,7 +289,7 @@
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;"/>
289
  <td>
290
  <select name="attributes[]" required="required"
291
  class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('price'); ?>
293
  </select>
294
  <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
  style=" display: none;"/>
admin/partials/nextad/add-feed.php CHANGED
@@ -289,7 +289,7 @@
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;"/>
289
  <td>
290
  <select name="attributes[]" required="required"
291
  class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown("price"); ?>
293
  </select>
294
  <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
  style=" display: none;"/>
admin/partials/rakuten.de/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('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/shopalike.fr/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('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/smartly.io/add-feed.php CHANGED
@@ -289,7 +289,7 @@
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;"/>
289
  <td>
290
  <select name="attributes[]" required="required"
291
  class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('price'); ?>
293
  </select>
294
  <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
  style=" display: none;"/>
admin/partials/spartoo.fi/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('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 CHANGED
@@ -289,7 +289,7 @@
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;"/>
289
  <td>
290
  <select name="attributes[]" required="required"
291
  class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown("price"); ?>
293
  </select>
294
  <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
  style=" display: none;"/>
admin/partials/webmarchand/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('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/yahoo_nfa/add-feed.php ADDED
@@ -0,0 +1,502 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="image_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('image'); ?>
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="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('link'); ?>
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="availability" />
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('availability'); ?>
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="condition" />
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('condition'); ?>
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="price" />
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('price'); ?>
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="gtin" />
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('gtin'); ?>
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
+ </tbody>
472
+ <tfoot>
473
+ <tr>
474
+ <td>
475
+ <button type="button" class="button-small button-primary" id="wf_newRow">
476
+ <?php echo _e('Add New Row', 'woo-feed'); ?>
477
+ </button>
478
+ </td>
479
+ <td colspan="8">
480
+
481
+ </td>
482
+ </tr>
483
+ </tfoot>
484
+ </table>
485
+ <table class=" widefat fixed">
486
+ <tr>
487
+ <td align="left" class="">
488
+ <div class="makeFeedResponse"></div>
489
+ <div class="makeFeedComplete"></div>
490
+ </td>
491
+ <td align="right">
492
+ <button type="submit" class="wfbtn">
493
+ <?php echo _e('Save & Generate Feed', 'woo-feed'); ?>
494
+ </button>
495
+ </td>
496
+ </tr>
497
+ </table>
498
+ </div>
499
+ </li>
500
+ <?php include plugin_dir_path(__FILE__) . "../woo-feed-ftp-sftp-template.php"; ?>
501
+
502
+ </ul>
admin/partials/zap.co.il/add-feed.php CHANGED
@@ -289,7 +289,7 @@
289
  <td>
290
  <select name="attributes[]" id="" 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;"/>
289
  <td>
290
  <select name="attributes[]" id="" required="required"
291
  class="wf_validate_attr wf_attr wf_attributes">
292
+ <?php echo $product->attributeDropdown('price'); ?>
293
  </select>
294
  <input type="text" name="default[]" autocomplete="off" class="wf_default wf_attributes"
295
  style=" display: none;"/>
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.16';
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.18';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -31,12 +31,13 @@ class Woo_Feed_Default_Attributes
31
  "custom" =>"Custom Feed",
32
  "---1" => "",
33
 
34
- "--2" => "Feed Template",
35
  "google" =>"Google Shopping",
36
  "google_local" =>"Google Local Product",
37
  "google_local_inventory" =>"Google Local Product Inventory",
38
  "adwords" =>"Google Adwords",
39
  "facebook" =>"Facebook",
 
40
  "shopping" =>"eBay (Shopping.com)",
41
  "adroll" =>"AdRoll",
42
  "adform" =>"AdForm",
@@ -70,6 +71,17 @@ class Woo_Feed_Default_Attributes
70
  // "stylight.com" => "Stylight.com",
71
  // "nextad" => "TheNextAd",
72
  // "skinflint.co.uk" => "SkinFlint.co.uk",
 
 
 
 
 
 
 
 
 
 
 
73
  "---2" =>"",
74
  "--3" =>"Amazon Template",
75
  "amazon_clothing" =>"Clothing",
31
  "custom" =>"Custom Feed",
32
  "---1" => "",
33
 
34
+ "--2" =>"Feed Template",
35
  "google" =>"Google Shopping",
36
  "google_local" =>"Google Local Product",
37
  "google_local_inventory" =>"Google Local Product Inventory",
38
  "adwords" =>"Google Adwords",
39
  "facebook" =>"Facebook",
40
+ "pinterest" => "Pinterest",
41
  "shopping" =>"eBay (Shopping.com)",
42
  "adroll" =>"AdRoll",
43
  "adform" =>"AdForm",
71
  // "stylight.com" => "Stylight.com",
72
  // "nextad" => "TheNextAd",
73
  // "skinflint.co.uk" => "SkinFlint.co.uk",
74
+ // "yahoo_nfa" => "Yahoo NFA",
75
+ // "comparer.be" => "Comparer.be",
76
+ // "dooyoo" => "Dooyoo",
77
+ // "hintaseuranta.fi" => "Hintaseuranta.fi",
78
+ // "incurvy" => "Incurvy",
79
+ // "kijiji.ca" => "Kijiji.ca",
80
+ // "marktplaats.nl" => "Marktplaats.nl",
81
+ // "rakuten.de" => "Rakuten.de",
82
+ // "shopalike.fr" => "Shopalike.fr",
83
+ // "spartoo.fi" => "Spartoo.fi",
84
+ // "webmarchand" => "Webmarchand",
85
  "---2" =>"",
86
  "--3" =>"Amazon Template",
87
  "amazon_clothing" =>"Clothing",
includes/feeds/class-woo-feed-custom.php CHANGED
@@ -200,6 +200,86 @@ class Woo_Feed_Custom
200
  <link>". get_bloginfo('url') ."</link>
201
  <description>". get_bloginfo('description') ."</description>";
202
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  else
204
  {
205
  return $engine->get_xml_feed_header();
@@ -208,7 +288,7 @@ class Woo_Feed_Custom
208
 
209
  public function get_footer($engine)
210
  {
211
- if(in_array($this->rules['provider'], ['fruugo.au','myshopping.com.au', 'stylight.com', 'nextad', 'skinflint.co.uk'])) {
212
  return "</products>";
213
  }
214
  else if($this->rules['provider'] == 'zap.co.il')
200
  <link>". get_bloginfo('url') ."</link>
201
  <description>". get_bloginfo('description') ."</description>";
202
  }
203
+ else if($this->rules['provider'] == 'comparer.be')
204
+ {
205
+ return "<products version=\"1.0\" standalone=\"yes\">
206
+ <datetime>$datetime_now</datetime>
207
+ <title>". get_bloginfo('name') ."</title>
208
+ <link>". get_bloginfo('url') ."</link>
209
+ <description>". get_bloginfo('description') ."</description>";
210
+ }
211
+ else if($this->rules['provider'] == 'dooyoo')
212
+ {
213
+ return "<products version=\"1.0\" standalone=\"yes\">
214
+ <datetime>$datetime_now</datetime>
215
+ <title>". get_bloginfo('name') ."</title>
216
+ <link>". get_bloginfo('url') ."</link>
217
+ <description>". get_bloginfo('description') ."</description>";
218
+ }
219
+ else if($this->rules['provider'] == 'hintaseuranta.fi')
220
+ {
221
+ return "<products version=\"1.0\" standalone=\"yes\">
222
+ <datetime>$datetime_now</datetime>
223
+ <title>". get_bloginfo('name') ."</title>
224
+ <link>". get_bloginfo('url') ."</link>
225
+ <description>". get_bloginfo('description') ."</description>";
226
+ }
227
+ else if($this->rules['provider'] == 'incurvy')
228
+ {
229
+ return "<products version=\"1.0\" standalone=\"yes\">
230
+ <datetime>$datetime_now</datetime>
231
+ <title>". get_bloginfo('name') ."</title>
232
+ <link>". get_bloginfo('url') ."</link>
233
+ <description>". get_bloginfo('description') ."</description>";
234
+ }
235
+ else if($this->rules['provider'] == 'kijiji.ca')
236
+ {
237
+ return "<products version=\"1.0\" standalone=\"yes\">
238
+ <datetime>$datetime_now</datetime>
239
+ <title>". get_bloginfo('name') ."</title>
240
+ <link>". get_bloginfo('url') ."</link>
241
+ <description>". get_bloginfo('description') ."</description>";
242
+ }
243
+ else if($this->rules['provider'] == 'marktplaats.nl')
244
+ {
245
+ return "<products version=\"1.0\" standalone=\"yes\">
246
+ <datetime>$datetime_now</datetime>
247
+ <title>". get_bloginfo('name') ."</title>
248
+ <link>". get_bloginfo('url') ."</link>
249
+ <description>". get_bloginfo('description') ."</description>";
250
+ }
251
+ else if($this->rules['provider'] == 'rakuten.de')
252
+ {
253
+ return "<products version=\"1.0\" standalone=\"yes\">
254
+ <datetime>$datetime_now</datetime>
255
+ <title>". get_bloginfo('name') ."</title>
256
+ <link>". get_bloginfo('url') ."</link>
257
+ <description>". get_bloginfo('description') ."</description>";
258
+ }
259
+ else if($this->rules['provider'] == 'shopalike.fr')
260
+ {
261
+ return "<products version=\"1.0\" standalone=\"yes\">
262
+ <datetime>$datetime_now</datetime>
263
+ <title>". get_bloginfo('name') ."</title>
264
+ <link>". get_bloginfo('url') ."</link>
265
+ <description>". get_bloginfo('description') ."</description>";
266
+ }
267
+ else if($this->rules['provider'] == 'spartoo.fi')
268
+ {
269
+ return "<products version=\"1.0\" standalone=\"yes\">
270
+ <datetime>$datetime_now</datetime>
271
+ <title>". get_bloginfo('name') ."</title>
272
+ <link>". get_bloginfo('url') ."</link>
273
+ <description>". get_bloginfo('description') ."</description>";
274
+ }
275
+ else if($this->rules['provider'] == 'webmarchand')
276
+ {
277
+ return "<products version=\"1.0\" standalone=\"yes\">
278
+ <datetime>$datetime_now</datetime>
279
+ <title>". get_bloginfo('name') ."</title>
280
+ <link>". get_bloginfo('url') ."</link>
281
+ <description>". get_bloginfo('description') ."</description>";
282
+ }
283
  else
284
  {
285
  return $engine->get_xml_feed_header();
288
 
289
  public function get_footer($engine)
290
  {
291
+ if(in_array($this->rules['provider'], ['fruugo.au','myshopping.com.au', 'stylight.com', 'nextad', 'skinflint.co.uk', 'comparer.be', 'dooyoo', 'hintaseuranta.fi', 'incurvy', 'kijiji.ca', 'marktplaats.nl', 'rakuten.de', 'shopalike.fr', 'spartoo.fi', 'webmarchand'])) {
292
  return "</products>";
293
  }
294
  else if($this->rules['provider'] == 'zap.co.il')
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.16
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -114,6 +114,10 @@ function feed_merchant_view()
114
  $provider = sanitize_text_field($_POST['merchant']);
115
  if(strpos($merchant,'amazon')!==false){
116
  include plugin_dir_path(__FILE__) . "admin/partials/amazon/add-feed.php";
 
 
 
 
117
  }else{
118
  include plugin_dir_path(__FILE__) . "admin/partials/$merchant/add-feed.php";
119
  }
@@ -129,7 +133,7 @@ function woo_feed_add_update($info = "", $name = "")
129
  set_time_limit(0);
130
  if (count($info) && isset($info['provider'])) {
131
  # GEt Post data
132
- if ($info['provider'] == 'google' || $info['provider'] == 'adroll') {
133
  $merchant = "Woo_Feed_Google";
134
  } elseif ($info['provider'] == 'facebook') {
135
  $merchant = "Woo_Feed_Facebook";
@@ -338,7 +342,7 @@ function woo_feed_generate_feed_data($info){
338
  try{
339
  if (count($info) && isset($info['provider'])) {
340
  # GEt Post data
341
- if ($info['provider'] == 'google' || $info['provider'] == 'adroll') {
342
  $merchant = "Woo_Feed_Google";
343
  } elseif ($info['provider'] == 'facebook') {
344
  $merchant = "Woo_Feed_Facebook";
@@ -759,7 +763,17 @@ function woo_feed_manage_feed()
759
  }
760
 
761
  $merchants=array(
762
- "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", "nextad", "skinflint.co.uk"
 
 
 
 
 
 
 
 
 
 
763
  );
764
 
765
  if (isset($fname)) {
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.18
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
114
  $provider = sanitize_text_field($_POST['merchant']);
115
  if(strpos($merchant,'amazon')!==false){
116
  include plugin_dir_path(__FILE__) . "admin/partials/amazon/add-feed.php";
117
+ }
118
+ else if($merchant == 'pinterest')
119
+ {
120
+ include plugin_dir_path(__FILE__) . "admin/partials/google/add-feed.php";
121
  }else{
122
  include plugin_dir_path(__FILE__) . "admin/partials/$merchant/add-feed.php";
123
  }
133
  set_time_limit(0);
134
  if (count($info) && isset($info['provider'])) {
135
  # GEt Post data
136
+ if ($info['provider'] == 'google' || $info['provider'] == 'adroll' || $info['provider'] == 'pinterest') {
137
  $merchant = "Woo_Feed_Google";
138
  } elseif ($info['provider'] == 'facebook') {
139
  $merchant = "Woo_Feed_Facebook";
342
  try{
343
  if (count($info) && isset($info['provider'])) {
344
  # GEt Post data
345
+ if ($info['provider'] == 'google' || $info['provider'] == 'adroll' || $info['provider'] == 'pinterest') {
346
  $merchant = "Woo_Feed_Google";
347
  } elseif ($info['provider'] == 'facebook') {
348
  $merchant = "Woo_Feed_Facebook";
763
  }
764
 
765
  $merchants=array(
766
+ "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", "nextad", "skinflint.co.uk", "yahoo_nfa", "pinterest"
767
+ // "comparer.be",
768
+ // "dooyoo",
769
+ // "hintaseuranta.fi",
770
+ // "incurvy",
771
+ // "kijiji.ca",
772
+ // "marktplaats.nl",
773
+ // "rakuten.de",
774
+ // "shopalike.fr",
775
+ // "spartoo.fi",
776
+ // "webmarchand"
777
  );
778
 
779
  if (isset($fname)) {