WooCommerce Checkout Manager - Version 3.6.2

Version Description

WPML bug fix

=

Download this release

Release Info

Developer Emark
Plugin Icon 128x128 WooCommerce Checkout Manager
Version 3.6.2
Comparing to
See all releases

Code changes from version 3.6.1 to 3.6.2

Files changed (3) hide show
  1. readme.txt +9 -3
  2. woocommerce-checkout-manager.php +30 -12
  3. wpml-config.xml +0 -177
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Emark
3
  Donate link: http://www.trottyzone.com/donation/
4
  Tags: woocommerce, checkout settings, remove fields, shipping, order, fields, checkout page, checkout field, checkout manager, required remove, woocommerce checkout manager, checkout, checkout field editor, field editor, woocommerce custom checkout options , custom checkout, checkout option, field, payment, sell, buy, pay, tax, notice, re-order, order, new field, save field, manager, options, field editor
5
  Requires at least: 3.0
6
- Tested up to: 3.9
7
- Stable tag: 3.6.1
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
@@ -282,6 +282,9 @@ Bug fixes.
282
  = 3.6.1 =
283
  Compatibility with 2.1.7 WooCommerce && WPML
284
 
 
 
 
285
  == Changelog ==
286
  = 1.0 =
287
  Initial
@@ -387,4 +390,7 @@ Bug fix.
387
  Bug fixes.
388
 
389
  = 3.6.1 =
390
- Compatibility with 2.1.7 WooCommerce && WPML
 
 
 
3
  Donate link: http://www.trottyzone.com/donation/
4
  Tags: woocommerce, checkout settings, remove fields, shipping, order, fields, checkout page, checkout field, checkout manager, required remove, woocommerce checkout manager, checkout, checkout field editor, field editor, woocommerce custom checkout options , custom checkout, checkout option, field, payment, sell, buy, pay, tax, notice, re-order, order, new field, save field, manager, options, field editor
5
  Requires at least: 3.0
6
+ Tested up to: 4.0
7
+ Stable tag: 3.6.2
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
282
  = 3.6.1 =
283
  Compatibility with 2.1.7 WooCommerce && WPML
284
 
285
+ = 3.6.2 =
286
+ WPML bug fix
287
+
288
  == Changelog ==
289
  = 1.0 =
290
  Initial
390
  Bug fixes.
391
 
392
  = 3.6.1 =
393
+ Compatibility with 2.1.7 WooCommerce && WPML
394
+
395
+ = 3.6.2 =
396
+ WPML bug fix
woocommerce-checkout-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Checkout Manager
4
  Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
5
  Description: Manages WooCommerce Checkout fields
6
- Version: 3.6.1
7
  Author: Ephrain Marchan
8
  Author URI: http://www.trottyzone.com
9
  License: GPLv2 or later
@@ -868,23 +868,23 @@ if ( ! empty( $btn['label'] ) && ($btn['type'] == 'text') ) {
868
  woocommerce_form_field( ''.$btn['cow'].'' , array(
869
  'type' => 'text',
870
  'class' => array('wccs-field-class wccs-form-row-wide'),
871
- 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
872
  'required' => $btn['checkbox'],
873
- 'placeholder' => ''.$btn['placeholder'].'',
874
  ), $checkout->get_value( ''.$btn['cow'].'' ));
875
  }
876
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'select') ) {
877
  woocommerce_form_field( ''.$btn['cow'].'' , array(
878
  'type' => 'select',
879
  'class' => array('wccs-field-class wccs-form-row-wide'),
880
- 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
881
  'options' => array(
882
  '' => __('Select below', 'woocommerce-checkout-manager' ),
883
- ''.$btn['option_a'].'' => __(''.$btn['option_a'].'', 'woocommerce-checkout-manager' ),
884
- ''.$btn['option_b'].'' => __(''.$btn['option_b'].'', 'woocommerce-checkout-manager' )
885
  ),
886
  'required' => $btn['checkbox'],
887
- 'placeholder' => ''.$btn['placeholder'].'',
888
  ), $checkout->get_value( ''.$btn['cow'].'' ));
889
  }
890
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'date') ) {
@@ -898,18 +898,18 @@ jQuery(document).ready(function() {
898
  woocommerce_form_field( ''.$btn['cow'].'' , array(
899
  'type' => 'text',
900
  'class' => array('wccs-field-class MyDate-'.$btn['cow'].' wccs-form-row-wide'),
901
- 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
902
  'required' => $btn['checkbox'],
903
- 'placeholder' => ''.$btn['placeholder'].'',
904
  ), $checkout->get_value( ''.$btn['cow'].'' ));
905
  }
906
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'checkbox') ) {
907
  woocommerce_form_field( ''.$btn['cow'].'' , array(
908
  'type' => 'checkbox',
909
  'class' => array('wccs-field-class wccs-form-row-wide'),
910
- 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
911
  'required' => $btn['checkbox'],
912
- 'placeholder' => ''.$btn['placeholder'].'',
913
  ), $checkout->get_value( ''.$btn['cow'].'' ));
914
  }
915
  ?>
@@ -985,6 +985,13 @@ function wccs_options_validate( $input ) {
985
  $options = get_option( 'wccs_settings' );
986
  // Don't save empty inputs
987
  foreach( $input['buttons'] as $i => $btn ) :
 
 
 
 
 
 
 
988
  if ( empty( $btn['label'] ) )
989
  unset( $input['buttons'][$i], $btn );
990
  endforeach;
@@ -1197,4 +1204,15 @@ endif;
1197
 
1198
  return array_merge( $fields, $new_fields );
1199
  }
1200
- add_filter( 'wcdn_order_info_fields', 'wccm_woocommerce_delivery_notes_compat', 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
3
  Plugin Name: WooCommerce Checkout Manager
4
  Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
5
  Description: Manages WooCommerce Checkout fields
6
+ Version: 3.6.2
7
  Author: Ephrain Marchan
8
  Author URI: http://www.trottyzone.com
9
  License: GPLv2 or later
868
  woocommerce_form_field( ''.$btn['cow'].'' , array(
869
  'type' => 'text',
870
  'class' => array('wccs-field-class wccs-form-row-wide'),
871
+ 'label' => wpml_string_wccm(''.$btn['label'].''),
872
  'required' => $btn['checkbox'],
873
+ 'placeholder' => wpml_string_wccm(''.$btn['placeholder'].''),
874
  ), $checkout->get_value( ''.$btn['cow'].'' ));
875
  }
876
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'select') ) {
877
  woocommerce_form_field( ''.$btn['cow'].'' , array(
878
  'type' => 'select',
879
  'class' => array('wccs-field-class wccs-form-row-wide'),
880
+ 'label' => wpml_string_wccm(''.$btn['label'].''),
881
  'options' => array(
882
  '' => __('Select below', 'woocommerce-checkout-manager' ),
883
+ ''.wpml_string_wccm(''.$btn['option_a'].'').'' => ''.wpml_string_wccm(''.$btn['option_a'].'').'',
884
+ ''.wpml_string_wccm(''.$btn['option_b'].'').'' => ''.wpml_string_wccm(''.$btn['option_b'].'').''
885
  ),
886
  'required' => $btn['checkbox'],
887
+ 'placeholder' => wpml_string_wccm(''.$btn['placeholder'].''),
888
  ), $checkout->get_value( ''.$btn['cow'].'' ));
889
  }
890
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'date') ) {
898
  woocommerce_form_field( ''.$btn['cow'].'' , array(
899
  'type' => 'text',
900
  'class' => array('wccs-field-class MyDate-'.$btn['cow'].' wccs-form-row-wide'),
901
+ 'label' => wpml_string_wccm(''.$btn['label'].''),
902
  'required' => $btn['checkbox'],
903
+ 'placeholder' => wpml_string_wccm(''.$btn['placeholder'].''),
904
  ), $checkout->get_value( ''.$btn['cow'].'' ));
905
  }
906
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'checkbox') ) {
907
  woocommerce_form_field( ''.$btn['cow'].'' , array(
908
  'type' => 'checkbox',
909
  'class' => array('wccs-field-class wccs-form-row-wide'),
910
+ 'label' => wpml_string_wccm(''.$btn['label'].''),
911
  'required' => $btn['checkbox'],
912
+ 'placeholder' => wpml_string_wccm(''.$btn['placeholder'].''),
913
  ), $checkout->get_value( ''.$btn['cow'].'' ));
914
  }
915
  ?>
985
  $options = get_option( 'wccs_settings' );
986
  // Don't save empty inputs
987
  foreach( $input['buttons'] as $i => $btn ) :
988
+ if( function_exists( 'icl_register_string' ) ) {
989
+
990
+ icl_register_string('WooCommerce Checkout Manager', ''.$btn['label'].'', ''.$btn['label'].'');
991
+ icl_register_string('WooCommerce Checkout Manager', ''.$btn['placeholder'].'', ''.$btn['placeholder'].'');
992
+ icl_register_string('WooCommerce Checkout Manager', ''.$btn['option_a'].'', ''.$btn['option_a'].'');
993
+ icl_register_string('WooCommerce Checkout Manager', ''.$btn['option_b'].'', ''.$btn['option_b'].'');
994
+ }
995
  if ( empty( $btn['label'] ) )
996
  unset( $input['buttons'][$i], $btn );
997
  endforeach;
1204
 
1205
  return array_merge( $fields, $new_fields );
1206
  }
1207
+ add_filter( 'wcdn_order_info_fields', 'wccm_woocommerce_delivery_notes_compat', 10, 2 );
1208
+
1209
+ function wpml_string_wccm($input) {
1210
+
1211
+ if (function_exists( 'icl_t' )) {
1212
+ return icl_t('WooCommerce Checkout Manager', ''.$input.'', ''.$input.'');
1213
+ } else {
1214
+ return $input;
1215
+ }
1216
+
1217
+
1218
+ }
wpml-config.xml DELETED
@@ -1,177 +0,0 @@
1
- <wpml-config>
2
- <admin-texts>
3
- <key name="wccs_settings">
4
- <key name="replace">
5
- <key name="label" />
6
- <key name="placeholder" />
7
- <key name="label1" />
8
- <key name="placeholder1" />
9
- <key name="label3" />
10
- <key name="placeholder3" />
11
- <key name="label4" />
12
- <key name="placeholder4" />
13
- <key name="label5" />
14
- <key name="placeholder5" />
15
- <key name="label11" />
16
- <key name="placeholder11" />
17
- <key name="label_s" />
18
- <key name="placeholder_s" />
19
- <key name="label_s1" />
20
- <key name="placeholder_s1" />
21
- <key name="label_s2" />
22
- <key name="placeholder_s2" />
23
- <key name="label_s7" />
24
- </key>
25
- <key name="checkness">
26
- <key name="checkbox12" />
27
- <key name="checkbox1" />
28
- </key>
29
- <key name="buttons">
30
- <key name="0">
31
- <key name="label" />
32
- <key name="placeholder" />
33
- <key name="option_a" />
34
- <key name="option_b" />
35
- <key name="type" />
36
- <key name="cow" />
37
- <key name="checkbox" />
38
- </key>
39
- <key name="1">
40
- <key name="label" />
41
- <key name="placeholder" />
42
- <key name="option_a" />
43
- <key name="option_b" />
44
- <key name="type" />
45
- <key name="cow" />
46
- <key name="checkbox" />
47
- </key>
48
- <key name="2">
49
- <key name="label" />
50
- <key name="placeholder" />
51
- <key name="option_a" />
52
- <key name="option_b" />
53
- <key name="type" />
54
- <key name="cow" />
55
- <key name="checkbox" />
56
- </key>
57
- <key name="3">
58
- <key name="label" />
59
- <key name="placeholder" />
60
- <key name="option_a" />
61
- <key name="option_b" />
62
- <key name="type" />
63
- <key name="cow" />
64
- <key name="checkbox" />
65
- </key>
66
- <key name="4">
67
- <key name="label" />
68
- <key name="placeholder" />
69
- <key name="option_a" />
70
- <key name="option_b" />
71
- <key name="type" />
72
- <key name="cow" />
73
- <key name="checkbox" />
74
- </key>
75
- <key name="5">
76
- <key name="label" />
77
- <key name="placeholder" />
78
- <key name="option_a" />
79
- <key name="option_b" />
80
- <key name="type" />
81
- <key name="cow" />
82
- <key name="checkbox" />
83
- </key>
84
- <key name="6">
85
- <key name="label" />
86
- <key name="placeholder" />
87
- <key name="option_a" />
88
- <key name="option_b" />
89
- <key name="type" />
90
- <key name="cow" />
91
- <key name="checkbox" />
92
- </key>
93
- <key name="7">
94
- <key name="label" />
95
- <key name="placeholder" />
96
- <key name="option_a" />
97
- <key name="option_b" />
98
- <key name="type" />
99
- <key name="cow" />
100
- <key name="checkbox" />
101
- </key>
102
- <key name="8">
103
- <key name="label" />
104
- <key name="placeholder" />
105
- <key name="option_a" />
106
- <key name="option_b" />
107
- <key name="type" />
108
- <key name="cow" />
109
- <key name="checkbox" />
110
- </key>
111
- <key name="9">
112
- <key name="label" />
113
- <key name="placeholder" />
114
- <key name="option_a" />
115
- <key name="option_b" />
116
- <key name="type" />
117
- <key name="cow" />
118
- <key name="checkbox" />
119
- </key>
120
- <key name="10">
121
- <key name="label" />
122
- <key name="placeholder" />
123
- <key name="option_a" />
124
- <key name="option_b" />
125
- <key name="type" />
126
- <key name="cow" />
127
- <key name="checkbox" />
128
- </key>
129
- <key name="11">
130
- <key name="label" />
131
- <key name="placeholder" />
132
- <key name="option_a" />
133
- <key name="option_b" />
134
- <key name="type" />
135
- <key name="cow" />
136
- <key name="checkbox" />
137
- </key>
138
- <key name="12">
139
- <key name="label" />
140
- <key name="placeholder" />
141
- <key name="option_a" />
142
- <key name="option_b" />
143
- <key name="type" />
144
- <key name="cow" />
145
- <key name="checkbox" />
146
- </key>
147
- <key name="13">
148
- <key name="label" />
149
- <key name="placeholder" />
150
- <key name="option_a" />
151
- <key name="option_b" />
152
- <key name="type" />
153
- <key name="cow" />
154
- <key name="checkbox" />
155
- </key>
156
- <key name="14">
157
- <key name="label" />
158
- <key name="placeholder" />
159
- <key name="option_a" />
160
- <key name="option_b" />
161
- <key name="type" />
162
- <key name="cow" />
163
- <key name="checkbox" />
164
- </key>
165
- <key name="15">
166
- <key name="label" />
167
- <key name="placeholder" />
168
- <key name="option_a" />
169
- <key name="option_b" />
170
- <key name="type" />
171
- <key name="cow" />
172
- <key name="checkbox" />
173
- </key>
174
- </key>
175
- </key>
176
- </admin-texts>
177
- </wpml-config>