WooCommerce Checkout Manager - Version 4.6.2

Version Description

  • Fix: save additional fields position
  • Fix: required notice on first select option
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 WooCommerce Checkout Manager
Version 4.6.2
Comparing to
See all releases

Code changes from version 4.6.1 to 4.6.2

assets/backend/css/wooccm-admin.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  table.wc_gateways > tbody > tr > td.label {
2
  font-weight: 600;
3
  }
1
+ .wooccm-premium {
2
+ opacity: 0.5;
3
+ pointer-events: none;
4
+ }
5
  table.wc_gateways > tbody > tr > td.label {
6
  font-weight: 600;
7
  }
assets/backend/css/wooccm-admin.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../less/wooccm-admin.less"],"names":[],"mappings":"AASU,KAPP,YAEC,QAEE,KACE,KAEG;EACC,gBAAA;;AAQV,KAAC;EACC,YAAA;EACA,gBAAA;;AAFF,KAAC,wBAIC,QACE,KACE;EACE,uBAAA;;AAPR,KAAC,wBAYC,QACE,KACE,KACE,MAAK;EACH,WAAA;;AAhBV,KAAC,wBAYC,QACE,KACE,KAIE,OAAM;EACJ,kBAAA;;AAnBV,KAAC,wBAYC,QACE,KACE,KAOE,MAAK;EACH,aAAA;;AAGF,KAzBP,wBAYC,QACE,KACE,KAWG,KAAM;EACL,WAAA;;AAQZ,gBACE;AADF,gBAEE;EACE,WAAA;;AAHJ,gBAME,2BAA2B;AAN7B,gBAOE,2BAA2B;EACzB,WAAA;EACA,mBAAA;EACA,gBAAA;;AAVJ,gBAaE,2BAA2B,SAAQ;AAbrC,gBAcE,2BAA2B,EAAC;EAC1B,gCAAA;;AAfJ,gBAkBE,2BAA2B,MAAK;AAlBlC,gBAmBE,2BAA2B,MAAK;AAnBlC,gBAoBE,2BAA2B,MAAK;AApBlC,gBAqBE,2BAA2B,MAAK;AArBlC,gBAsBE,2BAA2B;AAtB7B,gBAuBE,2BAA2B;EACzB,qBAAA;;AAKJ,0BAEE;EACE,cAAA;EACA,WAAA;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AAA;EACA,WAAA;;AAGF,kCAAkC,mBAAoB;EACpD,wBAAA;EACA,+BAAA;EACA,uBAAA;EACA,oBAAA;EACA,qBAAA;EACA,aAAA;EACA,4BAAA;EACA,6BAAA;EACA,8BAAA;EACA,sBAAA;EACA,kBAAA;;AAGF,kCAAkC,mBAAoB,kCAAkC,0CAA0C;EAChI,SAAA;;AAGF,kCAAkC,mBAAmB,iEAAkE,kCAAkC,0CAA0C;EACjM,UAAA;EACA,gBAAA;;AAGF,kCAAkC,mBAAoB,kCAAkC,0CAA0C;EAChI,SAAA;EACA,eAAA;EACA,WAAA;;AAGF,mBAAqC;EAEnC,kCAAkC,mBAAoB;IACpD,yBAAA;IACA,2BAAA;IACA,mBAAA;IACA,8BAAA;IACA,6BAAA;IACA,2BAAA;IACA,mBAAA","file":"wooccm-admin.css"}
includes/controller/class-wooccm-field.php CHANGED
@@ -369,7 +369,12 @@ class WOOCCM_Field_Controller {
369
  }
370
 
371
  function save_additional_settings() {
372
- woocommerce_update_options($this->get_additional_settings());
 
 
 
 
 
373
  }
374
 
375
  // Admin Order
369
  }
370
 
371
  function save_additional_settings() {
372
+
373
+ global $current_section;
374
+
375
+ if ('additional' == $current_section) {
376
+ woocommerce_update_options($this->get_additional_settings());
377
+ }
378
  }
379
 
380
  // Admin Order
includes/model/class-wooccm-field.php CHANGED
@@ -140,6 +140,8 @@ class WOOCCM_Field {
140
  'hide_product' => array(),
141
  'show_product_cat' => array(),
142
  'hide_product_cat' => array(),
 
 
143
  // Timing
144
  // -------------------------------------------------------------------
145
  'time_limit_start' => null,
140
  'hide_product' => array(),
141
  'show_product_cat' => array(),
142
  'hide_product_cat' => array(),
143
+ 'hide_checkout' => false,
144
+ 'hide_account' => false,
145
  // Timing
146
  // -------------------------------------------------------------------
147
  'time_limit_start' => null,
includes/view/backend/pages/modals/modal-field.php CHANGED
@@ -28,11 +28,11 @@
28
  <# } #>
29
  <?php include_once( 'parts/panel-display.php' ); ?>
30
  <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
31
- <?php //include_once( 'parts/panel-price.php' ); ?>
32
  <# } #>
33
  <?php //include_once( 'parts/panel-datepicker.php' ); ?>
34
  <?php //include_once( 'parts/panel-timepicker.php' ); ?>
35
- <?php //include_once('parts/panel-admin.php' ); ?>
36
  <?php //include_once( 'parts/panel-suggestions.php' ); ?>
37
  <div class="clear"></div>
38
  </div>
28
  <# } #>
29
  <?php include_once( 'parts/panel-display.php' ); ?>
30
  <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
31
+ <?php include_once( 'parts/panel-price.php' ); ?>
32
  <# } #>
33
  <?php //include_once( 'parts/panel-datepicker.php' ); ?>
34
  <?php //include_once( 'parts/panel-timepicker.php' ); ?>
35
+ <?php include_once('parts/panel-admin.php' ); ?>
36
  <?php //include_once( 'parts/panel-suggestions.php' ); ?>
37
  <div class="clear"></div>
38
  </div>
includes/view/backend/pages/modals/parts/field-tabs.php CHANGED
@@ -20,7 +20,7 @@
20
  <a href="#tab_panel_timepicker"><span><?php esc_html_e('Timepicker', 'woocommerce-checkout-manager'); ?></span></a>
21
  </li>
22
  <# } #>-->
23
- <!-- <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
24
  <li class="price_options">
25
  <a href="#tab_panel_price"><span><?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?></span></a>
26
  </li>
@@ -28,7 +28,7 @@
28
  <li class="admin_options">
29
  <a href="#tab_panel_admin"><span><?php esc_html_e('Admin', 'woocommerce-checkout-manager'); ?></span></a>
30
  </li>
31
- <li class="suggestions_options">
32
  <a href="#tab_panel_suggestions"><span><?php esc_html_e('Suggestions', 'woocommerce-checkout-manager'); ?></span></a>
33
  </li>-->
34
  </ul>
20
  <a href="#tab_panel_timepicker"><span><?php esc_html_e('Timepicker', 'woocommerce-checkout-manager'); ?></span></a>
21
  </li>
22
  <# } #>-->
23
+ <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
24
  <li class="price_options">
25
  <a href="#tab_panel_price"><span><?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?></span></a>
26
  </li>
28
  <li class="admin_options">
29
  <a href="#tab_panel_admin"><span><?php esc_html_e('Admin', 'woocommerce-checkout-manager'); ?></span></a>
30
  </li>
31
+ <!-- <li class="suggestions_options">
32
  <a href="#tab_panel_suggestions"><span><?php esc_html_e('Suggestions', 'woocommerce-checkout-manager'); ?></span></a>
33
  </li>-->
34
  </ul>
includes/view/backend/pages/modals/parts/panel-admin.php CHANGED
@@ -1,22 +1,22 @@
1
  <div id="tab_panel_admin" class="panel woocommerce_options_panel hidden" style="display: none;">
2
- <div class="options_group">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Listable', 'woocommerce-checkout-manager'); ?></label>
5
- <input disabled="disabled" <# if ( data.listable ) { #>checked="checked"<# } #> type="checkbox" name="listable" value="1">
6
- <span class="description"><?php esc_html_e('Display in View Orders screen ', 'woocommerce-checkout-manager'); ?></span>
 
7
  </p>
8
  <p class="form-field">
9
  <label><?php esc_html_e('Sortable', 'woocommerce-checkout-manager'); ?></label>
10
- <input disabled="disabled" <# if ( data.sortable ) { #>checked="checked"<# } #> type="checkbox" name="sortable" value="1">
11
- <span class="description"><?php esc_html_e('Allow Sorting on View Orders screen', 'woocommerce-checkout-manager'); ?></span>
 
12
  </p>
13
  <p class="form-field">
14
  <label><?php esc_html_e('Filterable', 'woocommerce-checkout-manager'); ?></label>
15
- <input disabled="disabled" <# if ( data.filterable ) { #>checked="checked"<# } #> type="checkbox" name="filterable" value="1">
16
- <span class="description"><?php esc_html_e('Allow Filtering on View Orders screen', 'woocommerce-checkout-manager'); ?></span>
 
17
  </p>
18
  </div>
19
- <div class="options_group">
20
- <p><em><?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?></em></p>
21
- </div>
22
  </div>
1
  <div id="tab_panel_admin" class="panel woocommerce_options_panel hidden" style="display: none;">
2
+ <div class="options_group wooccm-premium">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Listable', 'woocommerce-checkout-manager'); ?></label>
5
+ <input <# if ( data.listable ) { #>checked="checked"<# } #> type="checkbox" name="listable" value="1">
6
+ <span class="description hidden"><?php esc_html_e('Display in View Orders screen', 'woocommerce-checkout-manager'); ?></span>
7
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
8
  </p>
9
  <p class="form-field">
10
  <label><?php esc_html_e('Sortable', 'woocommerce-checkout-manager'); ?></label>
11
+ <input <# if ( data.sortable ) { #>checked="checked"<# } #> type="checkbox" name="sortable" value="1">
12
+ <span class="description hidden"><?php esc_html_e('Allow Sorting on View Orders screen', 'woocommerce-checkout-manager'); ?></span>
13
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
14
  </p>
15
  <p class="form-field">
16
  <label><?php esc_html_e('Filterable', 'woocommerce-checkout-manager'); ?></label>
17
+ <input <# if ( data.filterable ) { #>checked="checked"<# } #> type="checkbox" name="filterable" value="1">
18
+ <span class="description hidden"><?php esc_html_e('Allow Filtering on View Orders screen', 'woocommerce-checkout-manager'); ?></span>
19
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
20
  </p>
21
  </div>
 
 
 
22
  </div>
includes/view/backend/pages/modals/parts/panel-display.php CHANGED
@@ -67,4 +67,19 @@
67
  </select>
68
  </p>
69
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  </div>
67
  </select>
68
  </p>
69
  </div>
70
+
71
+ <div class="options_group wooccm-premium">
72
+ <p class="form-field">
73
+ <label><?php esc_html_e('Hide on account', 'woocommerce-checkout-manager'); ?></label>
74
+ <input <# if (data.hide_account) { #>checked="checked"<# } #> type="checkbox" name="hide_account" value="1">
75
+ <span class="description hidden"><?php esc_html_e('Hide this field on the account page', 'woocommerce-checkout-manager'); ?></span>
76
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
77
+ </p>
78
+ <p class="form-field">
79
+ <label><?php esc_html_e('Hide on checkout', 'woocommerce-checkout-manager'); ?></label>
80
+ <input <# if (data.hide_checkout) { #>checked="checked"<# } #> type="checkbox" name="hide_checkout" value="1">
81
+ <span class="description hidden"><?php esc_html_e('Hide this field on the checkout page', 'woocommerce-checkout-manager'); ?></span>
82
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
83
+ </p>
84
+ </div>
85
  </div>
includes/view/backend/pages/modals/parts/panel-options.php CHANGED
@@ -12,11 +12,11 @@
12
  <?php esc_html_e('Label', 'woocommerce-checkout-manager'); ?>
13
  </th>
14
  <th scope="col" style="width: 30%;max-width: 85px;">
15
- <?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?>
16
  <span class="woocommerce-help-tip" data-tip="<?php esc_html_e('This is a premium feature.', 'woocommerce-checkout-manager'); ?>"></span>
17
  </th>
18
  <th scope="col" style="width: 10%;min-width: 80px;">
19
- <?php esc_html_e('Taxable', 'woocommerce-checkout-manager'); ?>
20
  <span class="woocommerce-help-tip" data-tip="<?php esc_html_e('This is a premium feature.', 'woocommerce-checkout-manager'); ?>"></span>
21
  </th>
22
  <th scope="col" style="width: 15%;">
@@ -34,15 +34,15 @@
34
  <td>
35
  <input type="text" class="label" name="options[{{index}}][label]" value="{{option.label}}">
36
  </td>
37
- <td>
38
- <input disabled="disabled" type="number" class="add-price" name="options[{{index}}][add_price_total]" step="0.01" value="{{option.add_price_total}}">
39
- <select disabled="disabled" class="add-price-type" name="options[{{index}}][add_price_type]">
40
  <option value="fixed" <# if(option.add_price_type == 'fixed') { #>selected="selected"<# } #>>$</option>
41
  <option value="percent" <# if(option.add_price_type == 'percent') { #>selected="selected"<# } #>>%</option>
42
  </select>
43
  </td>
44
- <td>
45
- <input disabled="disabled" type="checkbox" name="options[{{index}}][add_price_tax]" value="1" <# if (option.add_price_tax) { #>checked="checked"<# } #> />
46
  </td>
47
  <td>
48
  <# if ( _.contains(<?php echo json_encode($multiple); ?>, data.type)) { #>
@@ -53,7 +53,7 @@
53
  </td>
54
  <td class="sort reorder">
55
  <div class="wc-item-reorder-nav">
56
- <input disabled="disabled" type="hidden" name="option_order[]" value="{{index}}">
57
  </div>
58
  </td>
59
  </tr>
12
  <?php esc_html_e('Label', 'woocommerce-checkout-manager'); ?>
13
  </th>
14
  <th scope="col" style="width: 30%;max-width: 85px;">
15
+ <span class="wooccm-premium"><?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?></span>
16
  <span class="woocommerce-help-tip" data-tip="<?php esc_html_e('This is a premium feature.', 'woocommerce-checkout-manager'); ?>"></span>
17
  </th>
18
  <th scope="col" style="width: 10%;min-width: 80px;">
19
+ <span class="wooccm-premium"><?php esc_html_e('Taxable', 'woocommerce-checkout-manager'); ?></span>
20
  <span class="woocommerce-help-tip" data-tip="<?php esc_html_e('This is a premium feature.', 'woocommerce-checkout-manager'); ?>"></span>
21
  </th>
22
  <th scope="col" style="width: 15%;">
34
  <td>
35
  <input type="text" class="label" name="options[{{index}}][label]" value="{{option.label}}">
36
  </td>
37
+ <td class="wooccm-premium">
38
+ <input type="number" class="add-price" name="options[{{index}}][add_price_total]" step="0.01" value="{{option.add_price_total}}">
39
+ <select class="add-price-type" name="options[{{index}}][add_price_type]">
40
  <option value="fixed" <# if(option.add_price_type == 'fixed') { #>selected="selected"<# } #>>$</option>
41
  <option value="percent" <# if(option.add_price_type == 'percent') { #>selected="selected"<# } #>>%</option>
42
  </select>
43
  </td>
44
+ <td class="wooccm-premium">
45
+ <input type="checkbox" name="options[{{index}}][add_price_tax]" value="1" <# if (option.add_price_tax) { #>checked="checked"<# } #> />
46
  </td>
47
  <td>
48
  <# if ( _.contains(<?php echo json_encode($multiple); ?>, data.type)) { #>
53
  </td>
54
  <td class="sort reorder">
55
  <div class="wc-item-reorder-nav">
56
+ <input type="hidden" name="option_order[]" value="{{index}}">
57
  </div>
58
  </td>
59
  </tr>
includes/view/backend/pages/modals/parts/panel-price.php CHANGED
@@ -1,29 +1,30 @@
1
  <div id="tab_panel_price" class="panel woocommerce_options_panel hidden" style="display: none;">
2
- <div class="options_group">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?></label>
5
- <input disabled="disabled" <# if (data.add_price) { #>checked="checked"<# } #> type="checkbox" name="add_price" value="1">
 
6
  </p>
7
  <p class="form-field">
8
  <label><?php esc_html_e('Name', 'woocommerce-checkout-manager'); ?></label>
9
- <input disabled="disabled" class="short" name="add_price_name" type="text" value="{{data.add_price_name}}" placeholder="<?php esc_html_e('My Custom Charge', 'woocommerce-checkout-manager'); ?>">
 
10
  </p>
11
  <p class="form-field">
12
  <label><?php esc_html_e('Total', 'woocommerce-checkout-manager'); ?></label>
13
- <input disabled="disabled" class="short" name="add_price_total" type="text" value="{{data.add_price_total}}" placeholder="50">
14
- <select disabled="disabled" style="margin:0 0 0 10px;line-height: 30px; height: 30px;" class="select" name="add_price_type">
15
  <option <# if (data.add_price_type == 'fixed') { #>selected="selected"<# } #> value="fixed">$</option>
16
  <option <# if (data.add_price_type == 'percent') { #>selected="selected"<# } #> value="percent">%</option>
17
  </select>
 
18
  </p>
19
  </div>
20
- <div class="options_group">
21
  <p class="form-field">
22
  <label><?php esc_html_e('Tax', 'woocommerce-checkout-manager'); ?></label>
23
- <input disabled="disabled" <# if (data.add_price_tax) { #>checked="checked"<# } #> type="checkbox" name="add_price_tax" value="1">
 
24
  </p>
25
  </div>
26
- <div class="options_group">
27
- <p><em><?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?></em></p>
28
- </div>
29
  </div>
1
  <div id="tab_panel_price" class="panel woocommerce_options_panel hidden" style="display: none;">
2
+ <div class="options_group wooccm-premium">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Price', 'woocommerce-checkout-manager'); ?></label>
5
+ <input <# if (data.add_price) { #>checked="checked"<# } #> type="checkbox" name="add_price" value="1">
6
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
7
  </p>
8
  <p class="form-field">
9
  <label><?php esc_html_e('Name', 'woocommerce-checkout-manager'); ?></label>
10
+ <input class="short" name="add_price_name" type="text" value="{{data.add_price_name}}" placeholder="<?php esc_html_e('My Custom Charge', 'woocommerce-checkout-manager'); ?>">
11
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
12
  </p>
13
  <p class="form-field">
14
  <label><?php esc_html_e('Total', 'woocommerce-checkout-manager'); ?></label>
15
+ <input class="short" name="add_price_total" type="text" value="{{data.add_price_total}}" placeholder="50">
16
+ <select style="margin:0 0 0 10px;line-height: 30px; height: 30px;" class="select" name="add_price_type">
17
  <option <# if (data.add_price_type == 'fixed') { #>selected="selected"<# } #> value="fixed">$</option>
18
  <option <# if (data.add_price_type == 'percent') { #>selected="selected"<# } #> value="percent">%</option>
19
  </select>
20
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
21
  </p>
22
  </div>
23
+ <div class="options_group wooccm-premium">
24
  <p class="form-field">
25
  <label><?php esc_html_e('Tax', 'woocommerce-checkout-manager'); ?></label>
26
+ <input <# if (data.add_price_tax) { #>checked="checked"<# } #> type="checkbox" name="add_price_tax" value="1">
27
+ <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
28
  </p>
29
  </div>
 
 
 
30
  </div>
includes/view/frontend/class-wooccm-fields-additional.php CHANGED
@@ -21,7 +21,7 @@ class WOOCCM_Fields_Additional {
21
 
22
  foreach ($fields as $key => $field) {
23
 
24
- if (empty($field['disabled']) && !empty($field['required']) && empty($_POST[$key])) {
25
 
26
  $message = sprintf(__('%s is a required field.', 'woocommerce-checkout-manager'), '<strong>' . esc_html($field['label']) . '</strong>');
27
 
21
 
22
  foreach ($fields as $key => $field) {
23
 
24
+ if (!empty($field['required']) && empty($field['disabled']) && !isset($_POST[$key])) {
25
 
26
  $message = sprintf(__('%s is a required field.', 'woocommerce-checkout-manager'), '<strong>' . esc_html($field['label']) . '</strong>');
27
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: quadlayers
3
  Donate link: https://quadlayers.com/
4
  Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
5
  Requires at least: 3.0
6
- Tested up to: 5.2.3
7
- Stable tag: 4.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -135,6 +135,10 @@ Example:
135
 
136
  == Changelog ==
137
 
 
 
 
 
138
  = 4.6.1 =
139
  * Fix: select field placeholder
140
  * Fix: missing additional fields saved data
3
  Donate link: https://quadlayers.com/
4
  Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
5
  Requires at least: 3.0
6
+ Tested up to: 5.2.4
7
+ Stable tag: 4.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
135
 
136
  == Changelog ==
137
 
138
+ = 4.6.2 =
139
+ * Fix: save additional fields position
140
+ * Fix: required notice on first select option
141
+
142
  = 4.6.1 =
143
  * Fix: select field placeholder
144
  * Fix: missing additional fields saved data
woocommerce-checkout-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: WooCommerce Checkout Manager
5
  * Description: Manages WooCommerce Checkout, the advanced way.
6
- * Version: 4.6.1
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
@@ -17,7 +17,7 @@ if (!defined('WOOCCM_PLUGIN_NAME')) {
17
  define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
18
  }
19
  if (!defined('WOOCCM_PLUGIN_VERSION')) {
20
- define('WOOCCM_PLUGIN_VERSION', '4.6.1');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);
3
  /**
4
  * Plugin Name: WooCommerce Checkout Manager
5
  * Description: Manages WooCommerce Checkout, the advanced way.
6
+ * Version: 4.6.2
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
17
  define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
18
  }
19
  if (!defined('WOOCCM_PLUGIN_VERSION')) {
20
+ define('WOOCCM_PLUGIN_VERSION', '4.6.2');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);