WooCommerce Checkout Manager - Version 4.6.7

Version Description

  • Fix: premium compatibility
Download this release

Release Info

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

Code changes from version 4.6.6 to 4.6.7

assets/backend/img/admin.png ADDED
Binary file
assets/backend/img/fees.png ADDED
Binary file
assets/backend/img/logo.jpg CHANGED
Binary file
includes/class-wooccm-notices.php CHANGED
@@ -37,7 +37,7 @@ class WOOCCM_Notices {
37
 
38
  public function add_notices() {
39
 
40
- if (!get_user_meta(get_current_user_id(), 'wooccm-beta-notice', true)) {
41
  ?>
42
  <div id="wooccm-admin-rating" class="wooccm-notice notice is-dismissible" data-notice_id="wooccm-beta-notice">
43
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
@@ -81,34 +81,32 @@ class WOOCCM_Notices {
81
  </div>
82
  </div>
83
  <?php
84
- }
85
-
86
- /* elseif (!get_transient('wooccm-first-rating') && !get_user_meta(get_current_user_id(), 'wooccm-user-rating', true)) {
87
  ?>
88
  <div id="wooccm-admin-rating" class="wooccm-notice notice is-dismissible" data-notice_id="wooccm-user-rating">
89
- <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
90
- <div class="notice-image">
91
- <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/logo.jpg', WOOCCM_PLUGIN_FILE); ?>" alt="<?php echo esc_html(WOOCCM_PLUGIN_NAME); ?>>">
92
- </div>
93
- <div class="notice-content" style="margin-left: 15px;">
94
- <p>
95
- <?php printf(esc_html__('Hello! We\'ve recently acquired this plugin!', 'woocommerce-checkout-manager'), WOOCCM_PLUGIN_NAME); ?>
96
- <br/>
97
- <?php esc_html_e('We will do our best to improve it and include new features gradually. Please be patient and let us know about the issues and improvements that you want to see in this plugin.', 'woocommerce-checkout-manager'); ?>
98
- </p>
99
- <a href="<?php echo esc_url(WOOCCM_GROUP_URL); ?>" class="button-primary" target="_blank">
100
- <?php esc_html_e('Join Community!', 'woocommerce-checkout-manager'); ?>
101
- </a>
102
- <a href="<?php echo esc_url(WOOCCM_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
103
- <?php esc_html_e('Report a bug', 'woocommerce-checkout-manager'); ?>
104
- </a>
105
- <a style="margin-left: 10px;" href="https://quadlayers.com/?utm_source=wooccm_admin" target="_blank">
106
- <?php esc_html_e('About us', 'woocommerce-checkout-manager'); ?>
107
- </a>
108
- </div>
109
- </div>
110
  </div>
111
- <?php } */
112
  ?>
113
  <script>
114
  (function ($) {
@@ -135,7 +133,7 @@ class WOOCCM_Notices {
135
 
136
  public function add_action_links($links) {
137
 
138
- $links[] = '<a target="_blank" href="' . WOOCCM_SUPPORT_URL . '">' . esc_html__('Support', 'woocommerce-checkout-manager') . '</a>';
139
  $links[] = '<a href="' . admin_url('admin.php?page=wc-settings&tab=' . sanitize_title(WOOCCM_PREFIX)) . '">' . esc_html__('Settings', 'woocommerce-checkout-manager') . '</a>';
140
 
141
  return $links;
37
 
38
  public function add_notices() {
39
 
40
+ if (!get_user_meta(get_current_user_id(), 'wooccm-beta-notice', true) && get_option('wccs_settings')) {
41
  ?>
42
  <div id="wooccm-admin-rating" class="wooccm-notice notice is-dismissible" data-notice_id="wooccm-beta-notice">
43
  <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
81
  </div>
82
  </div>
83
  <?php
84
+ } elseif (!get_user_meta(get_current_user_id(), 'wooccm-user-rating', true) && !get_transient('wooccm-first-rating')) {
 
 
85
  ?>
86
  <div id="wooccm-admin-rating" class="wooccm-notice notice is-dismissible" data-notice_id="wooccm-user-rating">
87
+ <div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
88
+ <div class="notice-image">
89
+ <img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/logo.jpg', WOOCCM_PLUGIN_FILE); ?>" alt="<?php echo esc_html(WOOCCM_PLUGIN_NAME); ?>>">
90
+ </div>
91
+ <div class="notice-content" style="margin-left: 15px;">
92
+ <p>
93
+ <?php printf(esc_html__('Hello! We\'ve recently acquired this plugin!', 'woocommerce-checkout-manager'), WOOCCM_PLUGIN_NAME); ?>
94
+ <br/>
95
+ <?php esc_html_e('We will do our best to improve it and include new features gradually. Please be patient and let us know about the issues and improvements that you want to see in this plugin.', 'woocommerce-checkout-manager'); ?>
96
+ </p>
97
+ <a href="<?php echo esc_url(WOOCCM_GROUP_URL); ?>" class="button-primary" target="_blank">
98
+ <?php esc_html_e('Join Community!', 'woocommerce-checkout-manager'); ?>
99
+ </a>
100
+ <a href="<?php echo esc_url(WOOCCM_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
101
+ <?php esc_html_e('Report a bug', 'woocommerce-checkout-manager'); ?>
102
+ </a>
103
+ <a style="margin-left: 10px;" href="https://quadlayers.com/?utm_source=wooccm_admin" target="_blank">
104
+ <?php esc_html_e('About us', 'woocommerce-checkout-manager'); ?>
105
+ </a>
106
+ </div>
107
+ </div>
108
  </div>
109
+ <?php }
110
  ?>
111
  <script>
112
  (function ($) {
133
 
134
  public function add_action_links($links) {
135
 
136
+ $links[] = '<a target="_blank" href="' . WOOCCM_PURCHASE_URL . '">' . esc_html__('Premium', 'woocommerce-checkout-manager') . '</a>';
137
  $links[] = '<a href="' . admin_url('admin.php?page=wc-settings&tab=' . sanitize_title(WOOCCM_PREFIX)) . '">' . esc_html__('Settings', 'woocommerce-checkout-manager') . '</a>';
138
 
139
  return $links;
includes/class-wooccm.php CHANGED
@@ -42,6 +42,7 @@ final class WOOCCM {
42
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-field.php' );
43
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-order.php' );
44
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-advanced.php' );
 
45
  }
46
 
47
  public function register_scripts() {
42
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-field.php' );
43
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-order.php' );
44
  include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-advanced.php' );
45
+ include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-premium.php' );
46
  }
47
 
48
  public function register_scripts() {
includes/controller/class-wooccm-premium.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WOOCCM_Checkout_Premium_Controller {
4
+
5
+ protected static $_instance;
6
+
7
+ public function __construct() {
8
+ $this->init();
9
+ }
10
+
11
+ public static function instance() {
12
+ if (is_null(self::$_instance)) {
13
+ self::$_instance = new self();
14
+ }
15
+ return self::$_instance;
16
+ }
17
+
18
+ // Admin
19
+ // -------------------------------------------------------------------------
20
+
21
+ public function add_header() {
22
+ global $current_section;
23
+ ?>
24
+ <li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=wooccm&section=premium'); ?>" class="<?php echo ( $current_section == 'premium' ? 'current' : '' ); ?>"><?php esc_html_e('Premium', 'woocommerce-checkout-manager'); ?></a> | </li>
25
+ <?php
26
+ }
27
+
28
+ public function add_section() {
29
+
30
+ global $current_section, $hide_save_button;
31
+
32
+ if ('premium' == $current_section) {
33
+ $hide_save_button = true;
34
+ include_once( WOOCCM_PLUGIN_DIR . 'includes/view/backend/pages/premium.php' );
35
+ }
36
+ }
37
+
38
+ public function init() {
39
+
40
+ add_action('wooccm_sections_header', array($this, 'add_header'));
41
+ add_action('woocommerce_sections_' . WOOCCM_PREFIX, array($this, 'add_section'));
42
+ }
43
+
44
+ }
45
+
46
+ WOOCCM_Checkout_Premium_Controller::instance();
47
+
includes/view/backend/pages/parts/header.php CHANGED
@@ -1,8 +1,6 @@
1
  <ul class="subsubsub">
2
  <?php do_action('wooccm_sections_header'); ?>
3
- <li><a target="_blank" href="<?php echo WOOCCM_PURCHASE_URL; ?>"><?php echo esc_html__('Premium', 'woocommerce-checkout-manager'); ?></a> | </li>
4
- <li><a target="_blank" href="<?php echo WOOCCM_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-checkout-manager'); ?></a> | </li>
5
- <li><a target="_blank" href="<?php echo WOOCCM_SUPPORT_URL; ?>"><?php echo esc_html__('Report a bug', 'woocommerce-checkout-manager'); ?></a></li>
6
  </ul>
7
  <br class="clear" />
8
 
1
  <ul class="subsubsub">
2
  <?php do_action('wooccm_sections_header'); ?>
3
+ <li><a target="_blank" href="<?php echo WOOCCM_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-checkout-manager'); ?></a></li>
 
 
4
  </ul>
5
  <br class="clear" />
6
 
includes/view/backend/pages/premium.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php include_once( 'parts/header.php' ); ?>
2
+ <div class="wrap about-wrap full-width-layout">
3
+ <div class="has-2-columns is-wider-left" style="max-width: 100%">
4
+ <div class="column">
5
+ <div class="welcome-header">
6
+ <h1><?php esc_html_e('Premium', 'woocommerce-checkout-manager'); ?></h1>
7
+ <div class="about-description">
8
+ <?php printf(esc_html__('%s allows you to customize, add, edit and delete fields displayed on the checkout page. With the premium version you can also create conditional fields and include custom fees based on the checkout fields.', 'woocommerce-checkout-manager'), WOOCCM_PLUGIN_NAME); ?>
9
+ </div>
10
+ <br/>
11
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url(WOOCCM_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'woocommerce-checkout-manager'); ?></a>
12
+ <a class="button button-secondary" target="_blank" href="<?php echo esc_url(WOOCCM_SUPPORT_URL); ?>"><?php esc_html_e('Get Support', 'woocommerce-checkout-manager'); ?></a>
13
+ </div>
14
+ <hr/>
15
+ <div class="feature-section" style="padding: 10px 0;">
16
+ <h3><?php esc_html_e('Add checkout fees', 'woocommerce-checkout-manager'); ?></h3>
17
+ <p>
18
+ <?php printf(esc_html__('%s allows you to include fees to each custom or core field. Fees can be fixed or percentage amounts based on checkout total.', 'woocommerce-checkout-manager'), WOOCCM_PLUGIN_NAME); ?>
19
+ </p>
20
+ </div>
21
+ <div class="feature-section" style="padding: 10px 0;">
22
+ <h3><?php esc_html_e('Remove account fields', 'woocommerce-checkout-manager'); ?></h3>
23
+ <p>
24
+ <?php esc_html_e('By default all fields attached to the billing or shipping sections are included in the edit address area of the user account page. With the premium version, you can hide the fields on the checkout or my account page.', 'woocommerce-checkout-manager'); ?>
25
+ </p>
26
+ </div>
27
+ <div class="feature-section" style="padding: 10px 0;">
28
+ <h3><?php esc_html_e('Enhance select fields', 'woocommerce-checkout-manager'); ?></h3>
29
+ <p>
30
+ <?php esc_html_e('The enhance options allow you to improve the behavior of the select and multiselect fields with the select2 jquery plugin.', 'woocommerce-checkout-manager'); ?>
31
+ </p>
32
+ </div>
33
+ </div>
34
+ <div class="column">
35
+ <img src="<?php echo plugins_url('/assets/backend/img/fees.png', WOOCCM_PLUGIN_FILE); ?>">
36
+ </div>
37
+ </div>
38
+ <hr/>
39
+ <div class="has-2-columns" style="max-width: 100%">
40
+ <div class="column">
41
+ <div class="feature-section" style="padding: 10px 0;">
42
+ <h3><?php esc_html_e('Display on admin list orders', 'woocommerce-checkout-manager'); ?></h3>
43
+ <p>
44
+ <?php esc_html_e('This option allows you to display the fields in the WooCommerce order list.', 'woocommerce-checkout-manager'); ?>
45
+ </p>
46
+ </div>
47
+ <div class="feature-section" style="padding: 10px 0;">
48
+ <h3><?php esc_html_e('Allow sorting on admin list orders', 'woocommerce-checkout-manager'); ?></h3>
49
+ <p>
50
+ <?php esc_html_e('This option allows you to sort the WooCommerce orders list based on the field values.', 'woocommerce-checkout-manager'); ?>
51
+ </p>
52
+ </div>
53
+ <div class="feature-section" style="padding: 10px 0;">
54
+ <h3><?php esc_html_e('Allow filtering on admin list orders', 'woocommerce-checkout-manager'); ?></h3>
55
+ <p>
56
+ <?php esc_html_e('This option allows you to add a search field to filter the options based on the selected values.', 'woocommerce-checkout-manager'); ?>
57
+ </p>
58
+ </div>
59
+ </div>
60
+ <div class="column">
61
+ <br/>
62
+ <img src="<?php echo plugins_url('/assets/backend/img/admin.png', WOOCCM_PLUGIN_FILE); ?>">
63
+ </div>
64
+ </div>
65
+ </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 4.6.6 =
103
  * Fix: premium compatibility
104
 
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 4.6.7 =
103
+ * Fix: premium compatibility
104
+
105
  = 4.6.6 =
106
  * Fix: premium compatibility
107
 
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.6
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.6');
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.7
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.7');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);