WooCommerce Checkout Field Editor (Manager) Pro - Version 1.3.4

Version Description

  • Dynamic fields translation issue resolved.
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

checkout-form-designer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHiGH
6
- * Version: 1.3.3
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
@@ -39,7 +39,7 @@ if(is_woocommerce_active()) {
39
  global $supress_field_modification;
40
  $supress_field_modification = false;
41
 
42
- define('TH_WCFD_VERSION', '1.3.2');
43
  !defined('TH_WCFD_BASE_NAME') && define('TH_WCFD_BASE_NAME', plugin_basename( __FILE__ ));
44
  !defined('TH_WCFD_URL') && define('TH_WCFD_URL', plugins_url( '/', __FILE__ ));
45
  !defined('TH_WCFD_ASSETS_URL') && define('TH_WCFD_ASSETS_URL', TH_WCFD_URL . 'assets/');
@@ -323,6 +323,14 @@ if(is_woocommerce_active()) {
323
  if(apply_filters('thwcfd_enable_select2_for_select_fields', true)){
324
  $new_field['input_class'][] = 'thwcfd-enhanced-select';
325
  }
 
 
 
 
 
 
 
 
326
  }
327
 
328
  $new_field['order'] = isset($field['order']) && is_numeric($field['order']) ? $field['order'] : 0;
@@ -333,10 +341,10 @@ if(is_woocommerce_active()) {
333
  }
334
 
335
  if(isset($new_field['label'])){
336
- $new_field['label'] = __($new_field['label'], 'woocommerce');
337
  }
338
  if(isset($new_field['placeholder'])){
339
- $new_field['placeholder'] = __($new_field['placeholder'], 'woocommerce');
340
  }
341
 
342
  $fields[$name] = $new_field;
@@ -378,7 +386,7 @@ if(is_woocommerce_active()) {
378
  $label = esc_attr($label);
379
 
380
  $custom_field = array();
381
- $custom_field['label'] = $label;
382
  $custom_field['value'] = $value;
383
 
384
  $custom_fields[$key] = $custom_field;
@@ -459,6 +467,27 @@ if(is_woocommerce_active()) {
459
  ----- Display Field Values - END --------
460
  *****************************************/
461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  function thwcfd_woo_version_check( $version = '3.0' ) {
463
  if(function_exists( 'is_woocommerce_active' ) && is_woocommerce_active() ) {
464
  global $woocommerce;
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHiGH
6
+ * Version: 1.3.4
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
39
  global $supress_field_modification;
40
  $supress_field_modification = false;
41
 
42
+ define('TH_WCFD_VERSION', '1.3.4');
43
  !defined('TH_WCFD_BASE_NAME') && define('TH_WCFD_BASE_NAME', plugin_basename( __FILE__ ));
44
  !defined('TH_WCFD_URL') && define('TH_WCFD_URL', plugins_url( '/', __FILE__ ));
45
  !defined('TH_WCFD_ASSETS_URL') && define('TH_WCFD_ASSETS_URL', TH_WCFD_URL . 'assets/');
323
  if(apply_filters('thwcfd_enable_select2_for_select_fields', true)){
324
  $new_field['input_class'][] = 'thwcfd-enhanced-select';
325
  }
326
+
327
+ if(isset($new_field['options']) && is_array($new_field['options'])){
328
+ $options = array();
329
+ foreach($new_field['options'] as $key => $value) {
330
+ $options[$key] = __($value, 'woo-checkout-field-editor-pro');
331
+ }
332
+ $new_field['options'] = $options;
333
+ }
334
  }
335
 
336
  $new_field['order'] = isset($field['order']) && is_numeric($field['order']) ? $field['order'] : 0;
341
  }
342
 
343
  if(isset($new_field['label'])){
344
+ $new_field['label'] = thwcfd__t($new_field['label']); //__($new_field['label'], 'woocommerce');
345
  }
346
  if(isset($new_field['placeholder'])){
347
+ $new_field['placeholder'] = thwcfd__t($new_field['placeholder']); //__($new_field['placeholder'], 'woocommerce');
348
  }
349
 
350
  $fields[$name] = $new_field;
386
  $label = esc_attr($label);
387
 
388
  $custom_field = array();
389
+ $custom_field['label'] = thwcfd__t($label);
390
  $custom_field['value'] = $value;
391
 
392
  $custom_fields[$key] = $custom_field;
467
  ----- Display Field Values - END --------
468
  *****************************************/
469
 
470
+ function thwcfd__t($text){
471
+ if(!empty($text)){
472
+ $otext = $text;
473
+ $text = __($text, 'woo-checkout-field-editor-pro');
474
+ if($text === $otext){
475
+ $text = __($text, 'woocommerce');
476
+ }
477
+ }
478
+ return $text;
479
+ }
480
+ function thwcfd_et($text){
481
+ if(!empty($text)){
482
+ $otext = $text;
483
+ $text = __($text, 'woo-checkout-field-editor-pro');
484
+ if($text === $otext){
485
+ $text = __($text, 'woocommerce');
486
+ }
487
+ }
488
+ echo $text;
489
+ }
490
+
491
  function thwcfd_woo_version_check( $version = '3.0' ) {
492
  if(function_exists( 'is_woocommerce_active' ) && is_woocommerce_active() ) {
493
  global $woocommerce;
classes/class-wc-checkout-field-editor.php CHANGED
@@ -243,8 +243,8 @@ class WC_Checkout_Field_Editor {
243
 
244
  public function get_field_types(){
245
  return array(
246
- 'text' => 'Text',
247
- 'select' => 'Select',
248
  );
249
  }
250
 
@@ -261,7 +261,7 @@ class WC_Checkout_Field_Editor {
261
  <td colspan="2" class="err_msgs"></td>
262
  </tr>
263
  <tr>
264
- <td width="40%">Type</td>
265
  <td>
266
  <select name="ftype" style="width:150px;" onchange="fieldTypeChangeListner(this)">
267
  <?php foreach($field_types as $value=>$label){ ?>
@@ -271,38 +271,38 @@ class WC_Checkout_Field_Editor {
271
  </td>
272
  </tr>
273
  <tr>
274
- <td>Name</td>
275
  <td><input type="text" name="fname" style="width:250px;"/></td>
276
  </tr>
277
  <tr>
278
- <td>Label</td>
279
  <td><input type="text" name="flabel" style="width:250px;"/></td>
280
  </tr>
281
  <tr class="rowPlaceholder">
282
- <td>Placeholder</td>
283
  <td><input type="text" name="fplaceholder" style="width:250px;"/></td>
284
  </tr>
285
  <tr class="rowOptions">
286
- <td>Options</td>
287
- <td><input type="text" name="foptions" placeholder="Seperate options with pipe(|)" style="width:250px;"/></td>
288
  </tr>
289
  <tr class="rowClass">
290
- <td>Class</td>
291
- <td><input type="text" name="fclass" placeholder="Seperate classes with comma" style="width:250px;"/></td>
292
  </tr>
293
  <!--<tr class="rowLabelClass">
294
  <td>Label Class</td>
295
  <td><input type="text" name="flabelclass" placeholder="Seperate classes with comma" style="width:250px;"/></td>
296
  </tr>-->
297
  <tr class="rowValidate">
298
- <td>Validation</td>
299
  <td>
300
- <select multiple="multiple" name="fvalidate" placeholder="Select validations" class="thwcfd-enhanced-multi-select"
301
  style="width: 250px; height:30px;">
302
- <option value="email">Email</option>
303
- <option value="phone">Phone</option>
304
- <option value="postcode">Postcode</option>
305
- <option value="state">State</option>
306
  </select>
307
  </td>
308
  </tr>
@@ -310,27 +310,27 @@ class WC_Checkout_Field_Editor {
310
  <td>&nbsp;</td>
311
  <td>
312
  <input type="checkbox" name="frequired" value="yes" checked/>
313
- <label>Required</label><br/>
314
 
315
  <input type="checkbox" name="fclearRow" value="yes" checked/>
316
- <label>Clear Row</label><br/>
317
 
318
  <input type="checkbox" name="fenabled" value="yes" checked/>
319
- <label>Enabled</label>
320
  </td>
321
  </tr>
322
  <tr class="rowShowInEmail">
323
  <td>&nbsp;</td>
324
  <td>
325
  <input type="checkbox" name="fshowinemail" value="email" checked/>
326
- <label>Display in Emails</label>
327
  </td>
328
  </tr>
329
  <tr class="rowShowInOrder">
330
  <td>&nbsp;</td>
331
  <td>
332
  <input type="checkbox" name="fshowinorder" value="order-review" checked/>
333
- <label>Display in Order Detail Pages</label>
334
  </td>
335
  </tr>
336
  </table>
@@ -352,7 +352,7 @@ class WC_Checkout_Field_Editor {
352
  <td colspan="2" class="err_msgs"></td>
353
  </tr>
354
  <tr>
355
- <td width="40%">Name</td>
356
  <td>
357
  <input type="hidden" name="rowId"/>
358
  <input type="hidden" name="fname"/>
@@ -360,7 +360,7 @@ class WC_Checkout_Field_Editor {
360
  </td>
361
  </tr>
362
  <tr>
363
- <td>Type</td>
364
  <td>
365
  <select name="ftype" style="width:150px;" onchange="fieldTypeChangeListner(this)">
366
  <?php foreach($field_types as $value=>$label){ ?>
@@ -370,20 +370,20 @@ class WC_Checkout_Field_Editor {
370
  </td>
371
  </tr>
372
  <tr>
373
- <td>Label</td>
374
  <td><input type="text" name="flabel" style="width:250px;"/></td>
375
  </tr>
376
  <tr class="rowPlaceholder">
377
- <td>Placeholder</td>
378
  <td><input type="text" name="fplaceholder" style="width:250px;"/></td>
379
  </tr>
380
  <tr class="rowOptions">
381
- <td>Options</td>
382
- <td><input type="text" name="foptions" placeholder="Seperate options with pipe(|)" style="width:250px;"/></td>
383
  </tr>
384
  <tr class="rowClass">
385
- <td>Class</td>
386
- <td><input type="text" name="fclass" placeholder="Seperate classes with comma" style="width:250px;"/></td>
387
  </tr>
388
  <!--<tr class="rowLabelClass">
389
  <td>Label Class</td>
@@ -392,12 +392,12 @@ class WC_Checkout_Field_Editor {
392
  <tr class="rowValidate">
393
  <td>Validation</td>
394
  <td>
395
- <select multiple="multiple" name="fvalidate" placeholder="Select validations" class="thwcfd-enhanced-multi-select"
396
  style="width: 250px; height:30px;">
397
- <option value="email">Email</option>
398
- <option value="phone">Phone</option>
399
- <option value="postcode">Postcode</option>
400
- <option value="state">State</option>
401
  </select>
402
  </td>
403
  </tr>
@@ -405,27 +405,27 @@ class WC_Checkout_Field_Editor {
405
  <td>&nbsp;</td>
406
  <td>
407
  <input type="checkbox" name="frequired" value="yes" checked/>
408
- <label>Required</label><br/>
409
 
410
  <input type="checkbox" name="fclearRow" value="yes" checked/>
411
- <label>Clear Row</label><br/>
412
 
413
  <input type="checkbox" name="fenabled" value="yes" checked/>
414
- <label>Enabled</label>
415
  </td>
416
  </tr>
417
  <tr class="rowShowInEmail">
418
  <td>&nbsp;</td>
419
  <td>
420
  <input type="checkbox" name="fshowinemail" value="email" checked/>
421
- <label>Display in Emails</label>
422
  </td>
423
  </tr>
424
  <tr class="rowShowInOrder">
425
  <td>&nbsp;</td>
426
  <td>
427
  <input type="checkbox" name="fshowinorder" value="order-review" checked/>
428
- <label>Display in Order Detail Pages</label>
429
  </td>
430
  </tr>
431
  </table>
@@ -435,7 +435,7 @@ class WC_Checkout_Field_Editor {
435
  }
436
 
437
  public function render_tabs_and_sections(){
438
- $tabs = array( 'fields' => 'Checkout Fields' );
439
  $tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'fields';
440
 
441
  $sections = ''; $section = '';
@@ -486,14 +486,14 @@ class WC_Checkout_Field_Editor {
486
  ?>
487
  <th class="sort"></th>
488
  <th class="check-column"><input type="checkbox" style="margin:0px 4px -1px -1px;" onclick="thwcfdSelectAllCheckoutFields(this)"/></th>
489
- <th class="name">Name</th>
490
- <th class="id">Type</th>
491
- <th>Label</th>
492
- <th>Placeholder</th>
493
- <th>Validation Rules</th>
494
- <th class="status">Required</th>
495
- <th class="status">Enabled</th>
496
- <th class="status">Edit</th>
497
  <?php
498
  }
499
 
@@ -651,8 +651,8 @@ class WC_Checkout_Field_Editor {
651
  <td class="td_select"><input type="checkbox" name="select_field"/></td>
652
  <td class="td_name"><?php echo esc_attr( $name ); ?></td>
653
  <td class="td_type"><?php echo $options['type']; ?></td>
654
- <td class="td_label"><?php echo $options['label']; ?></td>
655
- <td class="td_placeholder"><?php echo $options['placeholder']; ?></td>
656
  <td class="td_validate"><?php echo $options['validate']; ?></td>
657
  <td class="td_required status"><?php echo($options['required'] == 1 ? '<span class="dashicons dashicons-yes tips" data-tip="Yes"></span>' : '-' ) ?></td>
658
  <td class="td_enabled status"><?php echo($options['enabled'] == 1 ? '<span class="dashicons dashicons-yes tips" data-tip="Yes"></span>' : '-' ) ?></td>
@@ -778,8 +778,8 @@ class WC_Checkout_Field_Editor {
778
  $fields[$name]['custom'] = false;
779
  }
780
 
781
- $fields[$name]['label'] = __($fields[$name]['label'], 'woocommerce');
782
- $fields[$name]['placeholder'] = __($fields[$name]['placeholder'], 'woocommerce');
783
  }
784
 
785
  uasort( $fields, array( $this, 'sort_fields_by_order' ) );
243
 
244
  public function get_field_types(){
245
  return array(
246
+ 'text' => __('Text', 'woo-checkout-field-editor-pro'),
247
+ 'select' => __('Select', 'woo-checkout-field-editor-pro'),
248
  );
249
  }
250
 
261
  <td colspan="2" class="err_msgs"></td>
262
  </tr>
263
  <tr>
264
+ <td width="40%"><?php _e('Type', 'woo-checkout-field-editor-pro'); ?></td>
265
  <td>
266
  <select name="ftype" style="width:150px;" onchange="fieldTypeChangeListner(this)">
267
  <?php foreach($field_types as $value=>$label){ ?>
271
  </td>
272
  </tr>
273
  <tr>
274
+ <td><?php _e('Name', 'woo-checkout-field-editor-pro'); ?></td>
275
  <td><input type="text" name="fname" style="width:250px;"/></td>
276
  </tr>
277
  <tr>
278
+ <td><?php _e('Label', 'woo-checkout-field-editor-pro'); ?></td>
279
  <td><input type="text" name="flabel" style="width:250px;"/></td>
280
  </tr>
281
  <tr class="rowPlaceholder">
282
+ <td><?php _e('Placeholder', 'woo-checkout-field-editor-pro'); ?></td>
283
  <td><input type="text" name="fplaceholder" style="width:250px;"/></td>
284
  </tr>
285
  <tr class="rowOptions">
286
+ <td><?php _e('Options', 'woo-checkout-field-editor-pro'); ?></td>
287
+ <td><input type="text" name="foptions" placeholder="<?php _e('Seperate options with pipe', 'woo-checkout-field-editor-pro'); ?>(|)" style="width:250px;"/></td>
288
  </tr>
289
  <tr class="rowClass">
290
+ <td><?php _e('Class', 'woo-checkout-field-editor-pro'); ?></td>
291
+ <td><input type="text" name="fclass" placeholder="<?php _e('Seperate classes with comma', 'woo-checkout-field-editor-pro'); ?>" style="width:250px;"/></td>
292
  </tr>
293
  <!--<tr class="rowLabelClass">
294
  <td>Label Class</td>
295
  <td><input type="text" name="flabelclass" placeholder="Seperate classes with comma" style="width:250px;"/></td>
296
  </tr>-->
297
  <tr class="rowValidate">
298
+ <td><?php _e('Validation', 'woo-checkout-field-editor-pro'); ?></td>
299
  <td>
300
+ <select multiple="multiple" name="fvalidate" placeholder="<?php _e('Select validations', 'woo-checkout-field-editor-pro'); ?>" class="thwcfd-enhanced-multi-select"
301
  style="width: 250px; height:30px;">
302
+ <option value="email"><?php _e('Email', 'woo-checkout-field-editor-pro'); ?></option>
303
+ <option value="phone"><?php _e('Phone', 'woo-checkout-field-editor-pro'); ?></option>
304
+ <option value="postcode"><?php _e('Postcode', 'woo-checkout-field-editor-pro'); ?></option>
305
+ <option value="state"><?php _e('State', 'woo-checkout-field-editor-pro'); ?></option>
306
  </select>
307
  </td>
308
  </tr>
310
  <td>&nbsp;</td>
311
  <td>
312
  <input type="checkbox" name="frequired" value="yes" checked/>
313
+ <label><?php _e('Required', 'woo-checkout-field-editor-pro'); ?></label><br/>
314
 
315
  <input type="checkbox" name="fclearRow" value="yes" checked/>
316
+ <label><?php _e('Clear Row', 'woo-checkout-field-editor-pro'); ?></label><br/>
317
 
318
  <input type="checkbox" name="fenabled" value="yes" checked/>
319
+ <label><?php _e('Enabled', 'woo-checkout-field-editor-pro'); ?></label>
320
  </td>
321
  </tr>
322
  <tr class="rowShowInEmail">
323
  <td>&nbsp;</td>
324
  <td>
325
  <input type="checkbox" name="fshowinemail" value="email" checked/>
326
+ <label><?php _e('Display in Emails', 'woo-checkout-field-editor-pro'); ?></label>
327
  </td>
328
  </tr>
329
  <tr class="rowShowInOrder">
330
  <td>&nbsp;</td>
331
  <td>
332
  <input type="checkbox" name="fshowinorder" value="order-review" checked/>
333
+ <label><?php _e('Display in Order Detail Pages', 'woo-checkout-field-editor-pro'); ?></label>
334
  </td>
335
  </tr>
336
  </table>
352
  <td colspan="2" class="err_msgs"></td>
353
  </tr>
354
  <tr>
355
+ <td width="40%"><?php _e('Name', 'woo-checkout-field-editor-pro'); ?></td>
356
  <td>
357
  <input type="hidden" name="rowId"/>
358
  <input type="hidden" name="fname"/>
360
  </td>
361
  </tr>
362
  <tr>
363
+ <td><?php _e('Type', 'woo-checkout-field-editor-pro'); ?></td>
364
  <td>
365
  <select name="ftype" style="width:150px;" onchange="fieldTypeChangeListner(this)">
366
  <?php foreach($field_types as $value=>$label){ ?>
370
  </td>
371
  </tr>
372
  <tr>
373
+ <td><?php _e('Label', 'woo-checkout-field-editor-pro'); ?></td>
374
  <td><input type="text" name="flabel" style="width:250px;"/></td>
375
  </tr>
376
  <tr class="rowPlaceholder">
377
+ <td><?php _e('Placeholder', 'woo-checkout-field-editor-pro'); ?></td>
378
  <td><input type="text" name="fplaceholder" style="width:250px;"/></td>
379
  </tr>
380
  <tr class="rowOptions">
381
+ <td><?php _e('Options', 'woo-checkout-field-editor-pro'); ?></td>
382
+ <td><input type="text" name="foptions" placeholder="<?php _e('Seperate options with pipe', 'woo-checkout-field-editor-pro'); ?>(|)" style="width:250px;"/></td>
383
  </tr>
384
  <tr class="rowClass">
385
+ <td><?php _e('Class', 'woo-checkout-field-editor-pro'); ?></td>
386
+ <td><input type="text" name="fclass" placeholder="<?php _e('Seperate classes with comma', 'woo-checkout-field-editor-pro'); ?>" style="width:250px;"/></td>
387
  </tr>
388
  <!--<tr class="rowLabelClass">
389
  <td>Label Class</td>
392
  <tr class="rowValidate">
393
  <td>Validation</td>
394
  <td>
395
+ <select multiple="multiple" name="fvalidate" placeholder="<?php _e('Select validations', 'woo-checkout-field-editor-pro'); ?>" class="thwcfd-enhanced-multi-select"
396
  style="width: 250px; height:30px;">
397
+ <option value="email"><?php _e('Email', 'woo-checkout-field-editor-pro'); ?></option>
398
+ <option value="phone"><?php _e('Phone', 'woo-checkout-field-editor-pro'); ?></option>
399
+ <option value="postcode"><?php _e('Postcode', 'woo-checkout-field-editor-pro'); ?></option>
400
+ <option value="state"><?php _e('State', 'woo-checkout-field-editor-pro'); ?></option>
401
  </select>
402
  </td>
403
  </tr>
405
  <td>&nbsp;</td>
406
  <td>
407
  <input type="checkbox" name="frequired" value="yes" checked/>
408
+ <label><?php _e('Required', 'woo-checkout-field-editor-pro'); ?></label><br/>
409
 
410
  <input type="checkbox" name="fclearRow" value="yes" checked/>
411
+ <label><?php _e('Clear Row', 'woo-checkout-field-editor-pro'); ?></label><br/>
412
 
413
  <input type="checkbox" name="fenabled" value="yes" checked/>
414
+ <label><?php _e('Enabled', 'woo-checkout-field-editor-pro'); ?></label>
415
  </td>
416
  </tr>
417
  <tr class="rowShowInEmail">
418
  <td>&nbsp;</td>
419
  <td>
420
  <input type="checkbox" name="fshowinemail" value="email" checked/>
421
+ <label><?php _e('Display in Emails', 'woo-checkout-field-editor-pro'); ?></label>
422
  </td>
423
  </tr>
424
  <tr class="rowShowInOrder">
425
  <td>&nbsp;</td>
426
  <td>
427
  <input type="checkbox" name="fshowinorder" value="order-review" checked/>
428
+ <label><?php _e('Display in Order Detail Pages', 'woo-checkout-field-editor-pro'); ?></label>
429
  </td>
430
  </tr>
431
  </table>
435
  }
436
 
437
  public function render_tabs_and_sections(){
438
+ $tabs = array( 'fields' => __('Checkout Fields', 'woo-checkout-field-editor-pro') );
439
  $tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'fields';
440
 
441
  $sections = ''; $section = '';
486
  ?>
487
  <th class="sort"></th>
488
  <th class="check-column"><input type="checkbox" style="margin:0px 4px -1px -1px;" onclick="thwcfdSelectAllCheckoutFields(this)"/></th>
489
+ <th class="name"><?php _e('Name', 'woo-checkout-field-editor-pro'); ?></th>
490
+ <th class="id"><?php _e('Type', 'woo-checkout-field-editor-pro'); ?></th>
491
+ <th><?php _e('Label', 'woo-checkout-field-editor-pro'); ?></th>
492
+ <th><?php _e('Placeholder', 'woo-checkout-field-editor-pro'); ?></th>
493
+ <th><?php _e('Validation Rules', 'woo-checkout-field-editor-pro'); ?></th>
494
+ <th class="status"><?php _e('Required', 'woo-checkout-field-editor-pro'); ?></th>
495
+ <th class="status"><?php _e('Enabled', 'woo-checkout-field-editor-pro'); ?></th>
496
+ <th class="status"><?php _e('Edit', 'woo-checkout-field-editor-pro'); ?></th>
497
  <?php
498
  }
499
 
651
  <td class="td_select"><input type="checkbox" name="select_field"/></td>
652
  <td class="td_name"><?php echo esc_attr( $name ); ?></td>
653
  <td class="td_type"><?php echo $options['type']; ?></td>
654
+ <td class="td_label"><?php thwcfd_et($options['label']); ?></td>
655
+ <td class="td_placeholder"><?php thwcfd_et( $options['placeholder']); ?></td>
656
  <td class="td_validate"><?php echo $options['validate']; ?></td>
657
  <td class="td_required status"><?php echo($options['required'] == 1 ? '<span class="dashicons dashicons-yes tips" data-tip="Yes"></span>' : '-' ) ?></td>
658
  <td class="td_enabled status"><?php echo($options['enabled'] == 1 ? '<span class="dashicons dashicons-yes tips" data-tip="Yes"></span>' : '-' ) ?></td>
778
  $fields[$name]['custom'] = false;
779
  }
780
 
781
+ //$fields[$name]['label'] = __($fields[$name]['label'], 'woocommerce');
782
+ //$fields[$name]['placeholder'] = __($fields[$name]['placeholder'], 'woocommerce');
783
  }
784
 
785
  uasort( $fields, array( $this, 'sort_fields_by_order' ) );
languages/woo-checkout-field-editor-pro.pot CHANGED
@@ -77,3 +77,82 @@ msgstr ""
77
  msgid "Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields)."
78
  msgstr ""
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  msgid "Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields)."
78
  msgstr ""
79
 
80
+ #: classes/class-wc-checkout-field-editor.php:489
81
+ msgid "Name"
82
+ msgstr ""
83
+
84
+ #: classes/class-wc-checkout-field-editor.php:490
85
+ msgid "Type"
86
+ msgstr ""
87
+
88
+ #: classes/class-wc-checkout-field-editor.php:491
89
+ msgid "Label"
90
+ msgstr ""
91
+
92
+ #: classes/class-wc-checkout-field-editor.php:492
93
+ msgid "Placeholder"
94
+ msgstr ""
95
+
96
+ #: classes/class-wc-checkout-field-editor.php:493
97
+ msgid "Validation Rules"
98
+ msgstr ""
99
+
100
+ #: classes/class-wc-checkout-field-editor.php:494
101
+ msgid "Required"
102
+ msgstr ""
103
+
104
+ #: classes/class-wc-checkout-field-editor.php:495
105
+ msgid "Enabled"
106
+ msgstr ""
107
+
108
+ #: classes/class-wc-checkout-field-editor.php:290
109
+ msgid "Class"
110
+ msgstr ""
111
+
112
+ #: classes/class-wc-checkout-field-editor.php:298
113
+ msgid "Validation"
114
+ msgstr ""
115
+
116
+ #: classes/class-wc-checkout-field-editor.php:316
117
+ msgid "Clear Row"
118
+ msgstr ""
119
+
120
+ #: classes/class-wc-checkout-field-editor.php:326
121
+ msgid "Display in Emails"
122
+ msgstr ""
123
+
124
+ #: classes/class-wc-checkout-field-editor.php:333
125
+ msgid "Display in Order Detail Pages"
126
+ msgstr ""
127
+
128
+ #: classes/class-wc-checkout-field-editor.php:257
129
+ msgid "New Checkout Field"
130
+ msgstr ""
131
+
132
+ #: classes/class-wc-checkout-field-editor.php:246
133
+ msgid "Text"
134
+ msgstr ""
135
+
136
+ #: classes/class-wc-checkout-field-editor.php:247
137
+ msgid "Select"
138
+ msgstr ""
139
+
140
+ #: classes/class-wc-checkout-field-editor.php:303
141
+ msgid "Phone"
142
+ msgstr ""
143
+
144
+ #: classes/class-wc-checkout-field-editor.php:302
145
+ msgid "Email"
146
+ msgstr ""
147
+
148
+ #: classes/class-wc-checkout-field-editor.php:304
149
+ msgid "Postcode"
150
+ msgstr ""
151
+
152
+ #: classes/class-wc-checkout-field-editor.php:305
153
+ msgid "State"
154
+ msgstr ""
155
+
156
+ #: classes/class-wc-checkout-field-editor.php:438
157
+ msgid "Checkout Fields"
158
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://themehigh.com/
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, checkout
5
  Requires at least: 4.0
6
  Tested up to: 5.2.2
7
- Stable tag: 1.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -143,6 +143,9 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
143
  8. Newly added field
144
 
145
  == Changelog ==
 
 
 
146
  = 1.3.3 =
147
  * Displaying customer fields in "Order details" section in admin order detail page.
148
  * Language file(pot) added.
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, checkout
5
  Requires at least: 4.0
6
  Tested up to: 5.2.2
7
+ Stable tag: 1.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
143
  8. Newly added field
144
 
145
  == Changelog ==
146
+ = 1.3.4 =
147
+ * Dynamic fields translation issue resolved.
148
+
149
  = 1.3.3 =
150
  * Displaying customer fields in "Order details" section in admin order detail page.
151
  * Language file(pot) added.