WooCommerce Checkout Manager - Version 3.5.1

Version Description

Select option and checkbox functions, included.

=

Download this release

Release Info

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

Code changes from version 3.5 to 3.5.1

Files changed (2) hide show
  1. readme.txt +17 -3
  2. woocommerce-checkout-manager.php +42 -8
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.6
7
- Stable tag: 3.5
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
@@ -12,6 +12,8 @@ Manages WooCommerce Checkout
12
 
13
  == Description ==
14
 
 
 
15
  1. This plugin targets the WooCommerce Checkout Page and WooCommerce Checkout Receipt. For each and every field you can remove it totally or the required attribute. Removing the required attribute renders the field completely optional for the customer to fill out.
16
 
17
  2. Their is also an option in this plugin where you can change the message the customer gets in the footer area of the receipt.
@@ -24,7 +26,7 @@ Manages WooCommerce Checkout
24
 
25
  6. Choose to disable the fields title name Additional information on the checkout page and/or checkout details (summary) & Receipt.
26
 
27
- 7. You can choose between text or date fields to be inserted on checkout. *
28
 
29
  = Notes* =
30
  1. You must include the abbreviation for the custom field WITHOUT spaces.
@@ -55,6 +57,12 @@ Request for adding new fields to the checkout page has been introduced. All you
55
  Includes a handy drop down box with two options, to select either text or date field.
56
  The date field, has a great design, where when you click the field for date, a pop up calender displays, where you can choose a number of dates, skip between months by clicking the arrows, clicking the day you would like inside of the month you selected, also it shows you the current date! Awesome isn't it.
57
 
 
 
 
 
 
 
58
  = Control each field Required Attribute =
59
  Add or Remove required attribute from each new field created.
60
 
@@ -186,6 +194,9 @@ bug fixed.
186
  = 3.5 =
187
  Select date function, included.
188
 
 
 
 
189
  == Changelog ==
190
 
191
  = 1.0 =
@@ -255,4 +266,7 @@ fields positioning, fixed.
255
  bug fixed.
256
 
257
  = 3.5 =
258
- Select date function, included.
 
 
 
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.6
7
+ Stable tag: 3.5.1
8
  License: GPLv2 or later
9
 
10
  Manages WooCommerce Checkout
12
 
13
  == Description ==
14
 
15
+ Get <a href="http://www.trottyzone.com/product/woocommerce-checkout-manager/">Pro version</a> with added extra features such as to Disable billing address fields for individual product or products (Great for selling both digital and tangible goods) and to add payment method used by customer to receipt.
16
+
17
  1. This plugin targets the WooCommerce Checkout Page and WooCommerce Checkout Receipt. For each and every field you can remove it totally or the required attribute. Removing the required attribute renders the field completely optional for the customer to fill out.
18
 
19
  2. Their is also an option in this plugin where you can change the message the customer gets in the footer area of the receipt.
26
 
27
  6. Choose to disable the fields title name Additional information on the checkout page and/or checkout details (summary) & Receipt.
28
 
29
+ 7. You can choose between Text, Date, Checkbox, Select Options fields to be inserted on checkout. *
30
 
31
  = Notes* =
32
  1. You must include the abbreviation for the custom field WITHOUT spaces.
57
  Includes a handy drop down box with two options, to select either text or date field.
58
  The date field, has a great design, where when you click the field for date, a pop up calender displays, where you can choose a number of dates, skip between months by clicking the arrows, clicking the day you would like inside of the month you selected, also it shows you the current date! Awesome isn't it.
59
 
60
+ = Select Options*** =
61
+ Insert Up to, two(2) options of your choosing for the customer. Better than a checkbox because you can insert "Yes" or "No", "Correct" or "Wrong" etc. to be the option displayed for the customer.
62
+
63
+ = Checkbox* =
64
+ Prototype - In the order email it gives either "1" or "0" as checked answer. I don't know if you would have use for this, but it's their :)
65
+
66
  = Control each field Required Attribute =
67
  Add or Remove required attribute from each new field created.
68
 
194
  = 3.5 =
195
  Select date function, included.
196
 
197
+ = 3.5.1 =
198
+ Select option and checkbox functions, included.
199
+
200
  == Changelog ==
201
 
202
  = 1.0 =
266
  bug fixed.
267
 
268
  = 3.5 =
269
+ Select date function, included.
270
+
271
+ = 3.5.1 =
272
+ Select option and checkbox functions, included.
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.5
8
  Author: Ephrain Marchan
9
  Author URI: http://www.trottyzone.com
10
  License: GPLv2 or later
@@ -618,6 +618,8 @@ width: 100%;
618
  <th style="width:5%;" class="wccs-order" title="<?php esc_attr_e( 'Change order' , 'woocommerce-checkout-manager' ); ?>"></th>
619
  <th><?php _e('Label' , 'woocommerce-checkout-manager' ); ?></th>
620
  <th><?php _e('Placeholder' , 'woocommerce-checkout-manager' ); ?></th>
 
 
621
  <th width="15%"><?php _e('Choose Type' , 'woocommerce-checkout-manager' ); ?></th>
622
  <th width="10%"><?php _e('Abbreviation' , 'woocommerce-checkout-manager' ); ?></th>
623
  <th width="12%"><?php _e('Required Attribute' , 'woocommerce-checkout-manager' ); ?></th>
@@ -653,11 +655,19 @@ width: 100%;
653
  <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
654
  value="<?php echo esc_attr( $options['buttons'][$i][placeholder] ); ?>" /></td>
655
 
 
 
 
 
 
 
 
656
  <td>
657
  <select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
658
- <option value="text" <?php selected( $options['buttons'][$i][type], 'text' ); ?>>Text</option>
 
659
  <option value="date" <?php selected( $options['buttons'][$i][type], 'date' ); ?>>Date</option>
660
- <option value="checkbox" <?php selected( $options['buttons'][$i][type], 'checkbox' ); ?> disabled>Checkbox</option>
661
  </select>
662
  </td>
663
 
@@ -690,11 +700,18 @@ width: 100%;
690
  <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
691
  title="<?php esc_attr_e( 'Placeholder - Preview of Data to Input', 'woocommerce-checkout-manager' ); ?>" value=" " /></td>
692
 
 
 
 
 
 
 
693
  <td>
694
  <select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
695
- <option value="text" >Text</option>
 
696
  <option value="date" >Date</option>
697
- <option value="checkbox" disabled>Checkbox</option>
698
  </select>
699
  </td>
700
 
@@ -1061,7 +1078,7 @@ if ( ! empty( $btn['label'] ) && ($btn['type'] == 'text') ) {
1061
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1062
  'type' => 'text',
1063
  'class' => array('wccs-field-class wccs-form-row-wide'),
1064
- 'label' => ''.$btn['label'].'',
1065
  'required' => $btn['checkbox'],
1066
  'placeholder' => ''.$btn['placeholder'].'',
1067
 
@@ -1069,6 +1086,23 @@ if ( ! empty( $btn['label'] ) && ($btn['type'] == 'text') ) {
1069
 
1070
  }
1071
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1072
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'date') ) {
1073
 
1074
  echo '<script type="text/javascript">
@@ -1084,7 +1118,7 @@ jQuery(document).ready(function() {
1084
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1085
  'type' => 'text',
1086
  'class' => array('wccs-field-class MyDate-'.$btn['cow'].' wccs-form-row-wide'),
1087
- 'label' => ''.$btn['label'].'',
1088
  'required' => $btn['checkbox'],
1089
  'placeholder' => ''.$btn['placeholder'].'',
1090
 
@@ -1096,7 +1130,7 @@ if ( ! empty( $btn['label'] ) && ($btn['type'] == 'checkbox') ) {
1096
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1097
  'type' => 'checkbox',
1098
  'class' => array('wccs-field-class wccs-form-row-wide'),
1099
- 'label' => ''.$btn['label'].'',
1100
  'required' => $btn['checkbox'],
1101
  'placeholder' => ''.$btn['placeholder'].'',
1102
 
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.5.1
8
  Author: Ephrain Marchan
9
  Author URI: http://www.trottyzone.com
10
  License: GPLv2 or later
618
  <th style="width:5%;" class="wccs-order" title="<?php esc_attr_e( 'Change order' , 'woocommerce-checkout-manager' ); ?>"></th>
619
  <th><?php _e('Label' , 'woocommerce-checkout-manager' ); ?></th>
620
  <th><?php _e('Placeholder' , 'woocommerce-checkout-manager' ); ?></th>
621
+ <th><?php _e('Option A' , 'woocommerce-checkout-manager' ); ?></th>
622
+ <th><?php _e('Options B' , 'woocommerce-checkout-manager' ); ?></th>
623
  <th width="15%"><?php _e('Choose Type' , 'woocommerce-checkout-manager' ); ?></th>
624
  <th width="10%"><?php _e('Abbreviation' , 'woocommerce-checkout-manager' ); ?></th>
625
  <th width="12%"><?php _e('Required Attribute' , 'woocommerce-checkout-manager' ); ?></th>
655
  <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
656
  value="<?php echo esc_attr( $options['buttons'][$i][placeholder] ); ?>" /></td>
657
 
658
+ <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_a]"
659
+ value="<?php echo esc_attr( $options['buttons'][$i][option_a] ); ?>" /></td>
660
+
661
+ <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_b]"
662
+ value="<?php echo esc_attr( $options['buttons'][$i][option_b] ); ?>" /></td>
663
+
664
+
665
  <td>
666
  <select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
667
+ <option value="text" <?php selected( $options['buttons'][$i][type], 'text' ); ?>>Text Input</option>
668
+ <option value="select" <?php selected( $options['buttons'][$i][type], 'select' ); ?>>Select Options</option>
669
  <option value="date" <?php selected( $options['buttons'][$i][type], 'date' ); ?>>Date</option>
670
+ <option value="checkbox" <?php selected( $options['buttons'][$i][type], 'checkbox' ); ?>>Checkbox (1, 0)</option>
671
  </select>
672
  </td>
673
 
700
  <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][placeholder]"
701
  title="<?php esc_attr_e( 'Placeholder - Preview of Data to Input', 'woocommerce-checkout-manager' ); ?>" value=" " /></td>
702
 
703
+ <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_a]"
704
+ title="<?php esc_attr_e( 'Insert Option A', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
705
+
706
+ <td><input type="text" name="wccs_settings[buttons][<?php echo $i; ?>][option_b]"
707
+ title="<?php esc_attr_e( 'Insert Option B', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
708
+
709
  <td>
710
  <select name="wccs_settings[buttons][<?php echo $i; ?>][type]" > <!--Call run() function-->
711
+ <option value="text" >Text Input</option>
712
+ <option value="select" >Select Options</option>
713
  <option value="date" >Date</option>
714
+ <option value="checkbox" >Checkbox (1, 0)</option>
715
  </select>
716
  </td>
717
 
1078
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1079
  'type' => 'text',
1080
  'class' => array('wccs-field-class wccs-form-row-wide'),
1081
+ 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
1082
  'required' => $btn['checkbox'],
1083
  'placeholder' => ''.$btn['placeholder'].'',
1084
 
1086
 
1087
  }
1088
 
1089
+
1090
+ if ( ! empty( $btn['label'] ) && ($btn['type'] == 'select') ) {
1091
+
1092
+ woocommerce_form_field( ''.$btn['cow'].'' , array(
1093
+ 'type' => 'select',
1094
+ 'class' => array('wccs-field-class wccs-form-row-wide'),
1095
+ 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
1096
+ 'options' => array(
1097
+ ''.$btn['option_a'].'' => __(''.$btn['option_a'].'', 'woocommerce-checkout-manager' ),
1098
+ ''.$btn['option_b'].'' => __(''.$btn['option_b'].'', 'woocommerce-checkout-manager' )
1099
+ ),
1100
+ 'required' => $btn['checkbox'],
1101
+ 'placeholder' => ''.$btn['placeholder'].'',
1102
+
1103
+ ), $checkout->get_value( ''.$btn['cow'].'' ));
1104
+ }
1105
+
1106
  if ( ! empty( $btn['label'] ) && ($btn['type'] == 'date') ) {
1107
 
1108
  echo '<script type="text/javascript">
1118
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1119
  'type' => 'text',
1120
  'class' => array('wccs-field-class MyDate-'.$btn['cow'].' wccs-form-row-wide'),
1121
+ 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
1122
  'required' => $btn['checkbox'],
1123
  'placeholder' => ''.$btn['placeholder'].'',
1124
 
1130
  woocommerce_form_field( ''.$btn['cow'].'' , array(
1131
  'type' => 'checkbox',
1132
  'class' => array('wccs-field-class wccs-form-row-wide'),
1133
+ 'label' => __(''.$btn['label'].'', 'woocommerce-checkout-manager' ),
1134
  'required' => $btn['checkbox'],
1135
  'placeholder' => ''.$btn['placeholder'].'',
1136