WooCommerce Checkout Manager - Version 3.6.1

Version Description

Compatibility with 2.1.7 WooCommerce && WPML

=

Download this release

Release Info

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

Code changes from version 3.6 to 3.6.1

Files changed (3) hide show
  1. readme.txt +12 -5
  2. woocommerce-checkout-manager.php +85 -11
  3. wpml-config.xml +177 -0
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.8
7
- Stable tag: 3.6
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
@@ -29,6 +29,7 @@ This is a WooCommerce extension plugin that targets the checkout processes in wh
29
 
30
  * Added fields will appear on Order Summary and Receipt under “Additional information.”
31
 
 
32
 
33
  = PRO VERSION =
34
  [WooCommerce Checkout Manager Pro](http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/) offers these cool nifty extra features:
@@ -38,8 +39,8 @@ This is a WooCommerce extension plugin that targets the checkout processes in wh
38
  2. Text Area
39
  3. Password
40
  4. Radio Button (Unlimited Options)
41
- 5. Check Box
42
- 6. Select Options (Unlimited Options)
43
  7. Date Picker
44
  8. Time Picker
45
  9. Text/ Html Swapper
@@ -278,6 +279,9 @@ Bug fix.
278
  = 3.6 =
279
  Bug fixes.
280
 
 
 
 
281
  == Changelog ==
282
  = 1.0 =
283
  Initial
@@ -380,4 +384,7 @@ Bulgarian language by Ivo Minchev
380
  Bug fix.
381
 
382
  = 3.6 =
383
- Bug fixes.
 
 
 
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
29
 
30
  * Added fields will appear on Order Summary and Receipt under “Additional information.”
31
 
32
+ * Compatible with [WPML](http://wpml.org/) and [WooCommerce Print Invoice & Delivery Note](http://wordpress.org/plugins/woocommerce-delivery-notes/)
33
 
34
  = PRO VERSION =
35
  [WooCommerce Checkout Manager Pro](http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/) offers these cool nifty extra features:
39
  2. Text Area
40
  3. Password
41
  4. Radio Button (Unlimited Options)
42
+ 5. Select Options (Unlimited Options)
43
+ 6. Check Box (Put your own options)
44
  7. Date Picker
45
  8. Time Picker
46
  9. Text/ Html Swapper
279
  = 3.6 =
280
  Bug fixes.
281
 
282
+ = 3.6.1 =
283
+ Compatibility with 2.1.7 WooCommerce && WPML
284
+
285
  == Changelog ==
286
  = 1.0 =
287
  Initial
384
  Bug fix.
385
 
386
  = 3.6 =
387
+ Bug fixes.
388
+
389
+ = 3.6.1 =
390
+ Compatibility with 2.1.7 WooCommerce && WPML
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
7
  Author: Ephrain Marchan
8
  Author URI: http://www.trottyzone.com
9
  License: GPLv2 or later
@@ -83,10 +83,42 @@ update_option( 'wccs_settings', $options );
83
  // icon for settings
84
  echo '<div id="icon-themes" class="icon32"><br></div>';
85
  // header
86
- echo "<h2>" . __( 'WooCommerce Checkout Manager', 'woocommerce-checkout-manager' ) . "</h2>";
87
  // settings form
88
  ?>
 
 
 
 
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  <form name="form" method="post" action="options.php" id="frm1">
91
  <?php
92
  settings_fields( 'wccs_options' );
@@ -374,12 +406,12 @@ update_option( 'wccs_settings', $options );
374
 
375
  <div class="updated clear_wccm data">
376
  <div class="clear_wccm title">
377
- <a href="http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/"><?php _e('TRY THE PRO VERSION', 'woocommerce-checkout-manager'); ?></a>
378
  </div>
379
  <ul>
380
  <li><?php _e('Text Area', 'woocommerce-checkout-manager'); ?></li>
381
  <li><?php _e('Password', 'woocommerce-checkout-manager'); ?></li>
382
- <li><?php _e('Check Box', 'woocommerce-checkout-manager'); ?></li>
383
  </ul>
384
  <ul>
385
  <li><?php _e('Radio Button (Unlimited Options)', 'woocommerce-checkout-manager'); ?></li>
@@ -387,9 +419,13 @@ update_option( 'wccs_settings', $options );
387
  <li><?php _e('Time Picker', 'woocommerce-checkout-manager'); ?></li>
388
  </ul>
389
  <ul>
390
- <li><?php _e('Text/ Html Swapper (eg. Change "Billing Address" to "Bill Form")', 'woocommerce-checkout-manager'); ?></li>
391
  <li><?php _e('Color Picker', 'woocommerce-checkout-manager'); ?></li>
392
- <li><a href="http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/"><?php _e('read more . . .', 'woocommerce-checkout-manager'); ?></a></li>
 
 
 
 
393
  </ul>
394
  </div>
395
  </div>
@@ -408,6 +444,14 @@ update_option( 'wccs_settings', $options );
408
  </thead>
409
  </table>
410
  <style type="text/css">
 
 
 
 
 
 
 
 
411
  .wccs-clone {
412
  display:none;
413
  }
@@ -420,10 +464,10 @@ padding: 0 !IMPORTANT;
420
  margin: 0 !IMPORTANT;
421
  }
422
  .clear_wccm.title {
423
- margin-top: 35px;
424
  margin-right: 12px;
425
  margin-left: 12px;
426
- width: 13%;
427
  }
428
  .clear_wccm.data {
429
  width: 97%;
@@ -462,7 +506,8 @@ cursor:move;
462
  text-shadow: #fff 0 1px 0;
463
  }
464
  .wccs-table .wccs-remove {
465
- width: 16px;
 
466
  vertical-align: middle;
467
  }
468
  .wccs-table input[type="text"] {
@@ -561,7 +606,7 @@ width: 100%;
561
  function wccs_admin_plugin_actions($links) {
562
  $wccs_plugin_links = array(
563
  '<a href="options-general.php?page=woocommerce-checkout-manager/woocommerce-checkout-manager.php">'.__('Settings').'</a>',
564
- '<a href="http://www.trottyzone.com/forums/forum/website-support/">'.__('Support').'</a>',
565
  );
566
  return array_merge( $wccs_plugin_links, $links );
567
  }
@@ -1123,4 +1168,33 @@ clear: both;
1123
  }
1124
  </style>';
1125
  }
1126
- add_action('wp_head','display_front_wccs');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
83
  // icon for settings
84
  echo '<div id="icon-themes" class="icon32"><br></div>';
85
  // header
86
+ echo "<h2>" . __( 'WooCommerce Checkout Manager', 'woocommerce-checkout-manager' ) . "";
87
  // settings form
88
  ?>
89
+ <!-- FEED -->
90
+ <div class="wooccm_feed">
91
+ <?php // Get RSS Feed(s)
92
+ include_once( ABSPATH . WPINC . '/feed.php' );
93
 
94
+ // Get a SimplePie feed object from the specified feed source.
95
+ $rss = fetch_feed( 'http://www.trottyzone.com/category/news-feed/' );
96
+
97
+ if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly
98
+
99
+ // Figure out how many total items there are, but limit it to 5.
100
+ $maxitems = $rss->get_item_quantity( 1 );
101
+
102
+ // Build an array of all the items, starting with element 0 (first element).
103
+ $rss_items = $rss->get_items( 0, $maxitems );
104
+
105
+ endif;
106
+ ?>
107
+ <?php if ( $maxitems == 0 ) : ?>
108
+ <?php else : ?>
109
+ <?php // Loop through each feed item and display each item as a hyperlink. ?>
110
+ <?php foreach ( $rss_items as $item ) : ?>
111
+
112
+ <a href="<?php echo esc_url( $item->get_permalink() ); ?>"
113
+ title="<?php printf( __( 'Posted %s', 'woocommerce-checkout-manager' ), $item->get_date('j F Y | g:i a') ); ?>">
114
+ <?php echo esc_html( $item->get_title() ); ?>
115
+ </a>
116
+
117
+ <?php endforeach; ?>
118
+ <?php endif; ?>
119
+
120
+ </div></h2>
121
+ <!-- FEED -->
122
  <form name="form" method="post" action="options.php" id="frm1">
123
  <?php
124
  settings_fields( 'wccs_options' );
406
 
407
  <div class="updated clear_wccm data">
408
  <div class="clear_wccm title">
409
+ <a href="http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/"><?php _e('TRY THE PRO VERSION', 'woocommerce-checkout-manager'); ?></a><br /><span class="small"><?php _e('includes these field types', 'woocommerce-checkout-manager'); ?></span> &#8594;
410
  </div>
411
  <ul>
412
  <li><?php _e('Text Area', 'woocommerce-checkout-manager'); ?></li>
413
  <li><?php _e('Password', 'woocommerce-checkout-manager'); ?></li>
414
+ <li><?php _e('Mult-Select', 'woocommerce-checkout-manager'); ?></li>
415
  </ul>
416
  <ul>
417
  <li><?php _e('Radio Button (Unlimited Options)', 'woocommerce-checkout-manager'); ?></li>
419
  <li><?php _e('Time Picker', 'woocommerce-checkout-manager'); ?></li>
420
  </ul>
421
  <ul>
422
+ <li><?php _e('Text/ Html Swapper', 'woocommerce-checkout-manager'); ?></li>
423
  <li><?php _e('Color Picker', 'woocommerce-checkout-manager'); ?></li>
424
+ <li><?php _e('Heading', 'woocommerce-checkout-manager'); ?></li>
425
+ </ul>
426
+ <ul>
427
+ <li><?php _e('Check Box (Put your own options)', 'woocommerce-checkout-manager'); ?></li>
428
+ <li><strong><a href="http://www.trottyzone.com/product/woocommerce-checkout-manager-pro/"><?php _e('more features. . .', 'woocommerce-checkout-manager'); ?></a></strong></li>
429
  </ul>
430
  </div>
431
  </div>
444
  </thead>
445
  </table>
446
  <style type="text/css">
447
+ .small {
448
+ font-size: 10px;
449
+ }
450
+ .wooccm_feed {
451
+ float: right;
452
+ margin-right: 10px;
453
+ font-size: 14px;
454
+ }
455
  .wccs-clone {
456
  display:none;
457
  }
464
  margin: 0 !IMPORTANT;
465
  }
466
  .clear_wccm.title {
467
+ margin-top: 30px;
468
  margin-right: 12px;
469
  margin-left: 12px;
470
+ width: 14%;
471
  }
472
  .clear_wccm.data {
473
  width: 97%;
506
  text-shadow: #fff 0 1px 0;
507
  }
508
  .wccs-table .wccs-remove {
509
+ font-size: 16px;
510
+ font-weight: 700;
511
  vertical-align: middle;
512
  }
513
  .wccs-table input[type="text"] {
606
  function wccs_admin_plugin_actions($links) {
607
  $wccs_plugin_links = array(
608
  '<a href="options-general.php?page=woocommerce-checkout-manager/woocommerce-checkout-manager.php">'.__('Settings').'</a>',
609
+ '<a href="http://www.trottyzone.com/forums/forum/wordpress-plugins/">'.__('Support').'</a>',
610
  );
611
  return array_merge( $wccs_plugin_links, $links );
612
  }
1168
  }
1169
  </style>';
1170
  }
1171
+ add_action('wp_head','display_front_wccs');
1172
+
1173
+ add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 1800;') );
1174
+
1175
+
1176
+ function wccm_woocommerce_delivery_notes_compat( $fields, $order ) {
1177
+ $options = get_option( 'wccs_settings' );
1178
+ $new_fields = array();
1179
+
1180
+
1181
+ if ( count( $options['buttons'] ) > 0 ) :
1182
+ $i = 0;
1183
+ // Loop through each button
1184
+ foreach ( $options['buttons'] as $btn ) :
1185
+
1186
+
1187
+ if( get_post_meta( $order->id, ''.$btn['label'].'', true ) ) {
1188
+ $new_fields[''.$btn['cow'].''] = array(
1189
+ 'label' => ''.$btn['label'].'',
1190
+ 'value' => get_post_meta( $order->id, ''.$btn['label'].'', true )
1191
+ );
1192
+ }
1193
+
1194
+ $i++;
1195
+ endforeach;
1196
+ endif;
1197
+
1198
+ return array_merge( $fields, $new_fields );
1199
+ }
1200
+ add_filter( 'wcdn_order_info_fields', 'wccm_woocommerce_delivery_notes_compat', 10, 2 );
wpml-config.xml ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>