WooCommerce Checkout Manager - Version 3.1

Version Description

bug fix

=

Download this release

Release Info

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

Code changes from version 3.0 to 3.1

Files changed (2) hide show
  1. readme.txt +20 -12
  2. woocommerce-checkout-manager.php +25 -4
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.trottyzone.com/donation/
4
  Tags: woocommerce, wc, wc checkout settings, remove checkout fields, woothemes, woo commerce, links, shipping, order, fields, plugin, checkout page, manager, checkout field, checkout manager,plugin for plugin, paypal, payment,require, required remove, woocommerce checkout manager, checkout field, checkout, checkout woocommerce
5
  Requires at least: 3.0
6
  Tested up to: 3.5.3
7
- Stable tag: 3.0
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
@@ -22,6 +22,17 @@ Manages WooCommerce Checkout
22
 
23
  5. The new fields that you created their data are added to the Order Summary & Receipt under "Additional information."
24
 
 
 
 
 
 
 
 
 
 
 
 
25
  = Removing fields =
26
  Removing fields became easier now, all you have to do is tick which box or which boxes that you do not want to show on the checkout page and it will be removed.
27
  Also you have the ability to not just remove the field alone but also remove the required (asterisk) attribute from the field. Leaving the field optional for the customer to fill out.
@@ -63,16 +74,6 @@ The new fields that you created, the data that the customer entered are printed
63
 
64
  3. Rename Label for Billing and Shipping Field for Country Field.
65
 
66
- = Important Notes =
67
- 1. You must include the abbreviation for the custom field WITHOUT spaces.
68
- 2. <a href="http://www.trottyzone.com/donate/">Donation</a> for this great plugin you love.
69
- 3. Troubleshooting and Customization can found at the <a href="http://www.trottyzone.com/forums/forum/website-support/">Plugin Forum</a>. Just post your support topics.
70
-
71
- Please Contact the author <a href="http://www.trottyzone.com/contact-us/">here</a> for these options below.
72
- 4. Contribution of code to this plugin.
73
- 5. This plugin is 5. localized, translations can be done.
74
-
75
-
76
  = Included Translations =
77
  * SPANISH
78
  * GERMAN
@@ -158,6 +159,10 @@ Bug fixes
158
  = 3.0 =
159
  Javascript fix and rename fields inserted
160
 
 
 
 
 
161
  == Changelog ==
162
 
163
  = 1.0 =
@@ -212,4 +217,7 @@ Bug fixes
212
  Bug fixes
213
 
214
  = 3.0 =
215
- Javascript fix and rename fields inserted
 
 
 
4
  Tags: woocommerce, wc, wc checkout settings, remove checkout fields, woothemes, woo commerce, links, shipping, order, fields, plugin, checkout page, manager, checkout field, checkout manager,plugin for plugin, paypal, payment,require, required remove, woocommerce checkout manager, checkout field, checkout, checkout woocommerce
5
  Requires at least: 3.0
6
  Tested up to: 3.5.3
7
+ Stable tag: 3.1
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
22
 
23
  5. The new fields that you created their data are added to the Order Summary & Receipt under "Additional information."
24
 
25
+ = Notes* =
26
+ 1. You must include the abbreviation for the custom field WITHOUT spaces.
27
+ 2. <a href="http://www.trottyzone.com/donate/">Donation</a> for this great plugin you love and also to keep continued development.
28
+ 3. Troubleshooting and Customization can found at the <a href="http://www.trottyzone.com/forums/forum/website-support/">Plugin Forum</a>. Just post your support topics.
29
+
30
+ Please Contact the author <a href="http://www.trottyzone.com/contact-us/">here</a> for these options below.
31
+
32
+ 4. Contribution of code to this plugin.
33
+ 5. This plugin is localized, translations can be done.
34
+
35
+ = --- More feature details --- =
36
  = Removing fields =
37
  Removing fields became easier now, all you have to do is tick which box or which boxes that you do not want to show on the checkout page and it will be removed.
38
  Also you have the ability to not just remove the field alone but also remove the required (asterisk) attribute from the field. Leaving the field optional for the customer to fill out.
74
 
75
  3. Rename Label for Billing and Shipping Field for Country Field.
76
 
 
 
 
 
 
 
 
 
 
 
77
  = Included Translations =
78
  * SPANISH
79
  * GERMAN
159
  = 3.0 =
160
  Javascript fix and rename fields inserted
161
 
162
+ = 3.1 =
163
+ bug fix
164
+
165
+
166
  == Changelog ==
167
 
168
  = 1.0 =
217
  Bug fixes
218
 
219
  = 3.0 =
220
+ Javascript fix and rename fields inserted
221
+
222
+ = 3.1 =
223
+ bug fix
woocommerce-checkout-manager.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WooCommerce Checkout Manager
5
  Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
6
  Description: Manages WooCommerce Checkout fields
7
- Version: 3.0
8
  Author: Ephrain Marchan
9
  Author URI: http://www.trottyzone.com
10
  License: GPLv2 or later
@@ -695,7 +695,9 @@ function wccs_scripts( $hook_suffix ) {
695
  if ( $hook_suffix == 'settings_page_woocommerce-checkout-manager/woocommerce-checkout-manager' ) {
696
 
697
  wp_enqueue_script( 'script_wccs', plugins_url( 'script_wccs.js', __FILE__ ), array( 'jquery' ), '1.2' );
698
-
 
 
699
  }
700
  }
701
 
@@ -984,6 +986,10 @@ add_action( 'woocommerce_email_footer_text', 'custom_email_setup_wc_footer' );
984
  remove_filter( 'woocommerce_email_footer_text', 'strip_tags' );
985
 
986
 
 
 
 
 
987
 
988
  // =============== Add the field to the checkout =====================
989
  function wccs_custom_checkout_field( $checkout ) {
@@ -1022,7 +1028,9 @@ $i++;
1022
  endif;
1023
 
1024
  }
1025
- add_action('woocommerce_after_order_notes', 'wccs_custom_checkout_field');
 
 
1026
 
1027
  // ============================== Update the order meta with field value ==============================
1028
  function wccs_custom_checkout_field_update_order_meta( $order_id ) {
@@ -1327,4 +1335,17 @@ if ( 1 == ($options['check']['wccs_opt_9_s'] ) )
1327
  unset($fields['shipping']['shipping_state']);
1328
 
1329
  return $fields;
1330
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Plugin Name: WooCommerce Checkout Manager
5
  Plugin URI: http://www.trottyzone.com/product/woocommerce-checkout-manager-pro
6
  Description: Manages WooCommerce Checkout fields
7
+ Version: 3.1
8
  Author: Ephrain Marchan
9
  Author URI: http://www.trottyzone.com
10
  License: GPLv2 or later
695
  if ( $hook_suffix == 'settings_page_woocommerce-checkout-manager/woocommerce-checkout-manager' ) {
696
 
697
  wp_enqueue_script( 'script_wccs', plugins_url( 'script_wccs.js', __FILE__ ), array( 'jquery' ), '1.2' );
698
+ if(!wp_script_is('jquery-ui-sortable', 'queue')){
699
+ wp_enqueue_script('jquery-ui-sortable');
700
+ }
701
  }
702
  }
703
 
986
  remove_filter( 'woocommerce_email_footer_text', 'strip_tags' );
987
 
988
 
989
+ function wccs_add_title() {
990
+ echo '<div class="add_info_wccs"><br><h3>' . __( 'Additional information', 'woocommerce-checkout-manager' ) . '</h3></div>';
991
+ }
992
+ add_action('woocommerce_after_checkout_billing_form', 'wccs_add_title');
993
 
994
  // =============== Add the field to the checkout =====================
995
  function wccs_custom_checkout_field( $checkout ) {
1028
  endif;
1029
 
1030
  }
1031
+
1032
+ add_action('woocommerce_after_checkout_billing_form', 'wccs_custom_checkout_field');
1033
+
1034
 
1035
  // ============================== Update the order meta with field value ==============================
1036
  function wccs_custom_checkout_field_update_order_meta( $order_id ) {
1335
  unset($fields['shipping']['shipping_state']);
1336
 
1337
  return $fields;
1338
+ }
1339
+
1340
+ function display_front_wccs() {
1341
+ if ( is_page('checkout') )
1342
+ echo '<style type="text/css">
1343
+ .wccs-field-class {
1344
+ float:left;
1345
+ }
1346
+ .add_info_wccs {
1347
+ clear: both;
1348
+ }
1349
+ </style>';
1350
+ }
1351
+ add_action('wp_head','display_front_wccs');