Version Description
- Fix: woocommerce checkout manager premium compatibility
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 4.9.8 |
Comparing to | |
See all releases |
Code changes from version 4.9.7 to 4.9.8
includes/class-wooccm-suggestions-list-table.php
CHANGED
@@ -5,12 +5,12 @@ require_once( ABSPATH . 'wp-admin/includes/class-wp-plugin-install-list-table.ph
|
|
5 |
class WOOCCM_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
6 |
|
7 |
public $promote = array(
|
8 |
-
'
|
|
|
9 |
'wp-whatsapp-chat',
|
10 |
'insta-gallery',
|
11 |
'quadmenu',
|
12 |
-
'
|
13 |
-
'woocommerce-direct-checkout',
|
14 |
);
|
15 |
|
16 |
private function remove_plugins($plugins) {
|
@@ -66,7 +66,9 @@ class WOOCCM_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
|
66 |
|
67 |
public function get_plugins() {
|
68 |
|
69 |
-
$
|
|
|
|
|
70 |
|
71 |
if ($plugins === false) {
|
72 |
|
@@ -82,7 +84,7 @@ class WOOCCM_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
|
82 |
|
83 |
$plugins = $this->remove_plugins($api->plugins);
|
84 |
|
85 |
-
set_transient(
|
86 |
}
|
87 |
}
|
88 |
|
5 |
class WOOCCM_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
6 |
|
7 |
public $promote = array(
|
8 |
+
'woocommerce-checkout-manager',
|
9 |
+
'perfect-woocommerce-brands',
|
10 |
'wp-whatsapp-chat',
|
11 |
'insta-gallery',
|
12 |
'quadmenu',
|
13 |
+
'wp-menu-icons',
|
|
|
14 |
);
|
15 |
|
16 |
private function remove_plugins($plugins) {
|
66 |
|
67 |
public function get_plugins() {
|
68 |
|
69 |
+
$tk = WOOCCM_PREFIX . '_suggestions_plugins';
|
70 |
+
|
71 |
+
$plugins = get_transient($tk);
|
72 |
|
73 |
if ($plugins === false) {
|
74 |
|
84 |
|
85 |
$plugins = $this->remove_plugins($api->plugins);
|
86 |
|
87 |
+
set_transient($tk, $plugins, 24 * HOUR_IN_SECONDS);
|
88 |
}
|
89 |
}
|
90 |
|
includes/class-wooccm.php
CHANGED
@@ -40,11 +40,11 @@ final class WOOCCM {
|
|
40 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/class-wooccm-upload.php' );
|
41 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-checkout.php' );
|
42 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-field.php' );
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
|
50 |
public function register_scripts() {
|
40 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/class-wooccm-upload.php' );
|
41 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-checkout.php' );
|
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-email.php' );
|
45 |
+
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-advanced.php' );
|
46 |
+
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-premium.php' );
|
47 |
+
include_once( WOOCCM_PLUGIN_DIR . 'includes/controller/class-wooccm-suggestions.php' );
|
48 |
}
|
49 |
|
50 |
public function register_scripts() {
|
includes/controller/class-wooccm-premium.php
CHANGED
@@ -14,16 +14,15 @@ class WOOCCM_Checkout_Premium_Controller {
|
|
14 |
}
|
15 |
return self::$_instance;
|
16 |
}
|
17 |
-
|
18 |
-
|
19 |
function remove_menu() {
|
20 |
?>
|
21 |
<style>
|
22 |
-
|
23 |
li.toplevel_page_wooccm {
|
24 |
display:none;
|
25 |
}
|
26 |
-
|
27 |
</style>
|
28 |
<?php
|
29 |
}
|
@@ -31,16 +30,23 @@ class WOOCCM_Checkout_Premium_Controller {
|
|
31 |
// Admin
|
32 |
// -------------------------------------------------------------------------
|
33 |
|
34 |
-
|
35 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/view/backend/pages/premium.php' );
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
function add_menu() {
|
39 |
add_menu_page(WOOCCM_PLUGIN_NAME, WOOCCM_PLUGIN_NAME, 'manage_woocommerce', WOOCCM_PREFIX, array($this, 'add_page'));
|
40 |
add_submenu_page(WOOCCM_PREFIX, esc_html__('Premium', 'woocommerce-checkout-manager'), esc_html__('Premium', 'woocommerce-checkout-manager'), 'manage_woocommerce', WOOCCM_PREFIX, array($this, 'add_page'));
|
41 |
}
|
42 |
|
43 |
public function init() {
|
|
|
44 |
add_action('admin_menu', array($this, 'add_menu'));
|
45 |
add_action('admin_head', array($this, 'remove_menu'));
|
46 |
}
|
14 |
}
|
15 |
return self::$_instance;
|
16 |
}
|
17 |
+
|
|
|
18 |
function remove_menu() {
|
19 |
?>
|
20 |
<style>
|
21 |
+
|
22 |
li.toplevel_page_wooccm {
|
23 |
display:none;
|
24 |
}
|
25 |
+
|
26 |
</style>
|
27 |
<?php
|
28 |
}
|
30 |
// Admin
|
31 |
// -------------------------------------------------------------------------
|
32 |
|
33 |
+
function add_page() {
|
34 |
include_once( WOOCCM_PLUGIN_DIR . 'includes/view/backend/pages/premium.php' );
|
35 |
}
|
36 |
|
37 |
+
function add_header() {
|
38 |
+
?>
|
39 |
+
<li><a href="<?php echo admin_url('admin.php?page=' . WOOCCM_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-checkout-manager'); ?></a></li> |
|
40 |
+
<?php
|
41 |
+
}
|
42 |
+
|
43 |
function add_menu() {
|
44 |
add_menu_page(WOOCCM_PLUGIN_NAME, WOOCCM_PLUGIN_NAME, 'manage_woocommerce', WOOCCM_PREFIX, array($this, 'add_page'));
|
45 |
add_submenu_page(WOOCCM_PREFIX, esc_html__('Premium', 'woocommerce-checkout-manager'), esc_html__('Premium', 'woocommerce-checkout-manager'), 'manage_woocommerce', WOOCCM_PREFIX, array($this, 'add_page'));
|
46 |
}
|
47 |
|
48 |
public function init() {
|
49 |
+
add_action('wooccm_sections_header', array($this, 'add_header'));
|
50 |
add_action('admin_menu', array($this, 'add_menu'));
|
51 |
add_action('admin_head', array($this, 'remove_menu'));
|
52 |
}
|
includes/view/backend/pages/parts/header.php
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
height: 40px;
|
23 |
display: inline-block;
|
24 |
width: 140px;
|
25 |
-
" class="wp-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=
|
26 |
|
27 |
</div>
|
28 |
|
22 |
height: 40px;
|
23 |
display: inline-block;
|
24 |
width: 140px;
|
25 |
+
" class="wp-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=wooccm_admin', plugins_url('/assets/backend/img/quadlayers.jpg', WOOCCM_PLUGIN_FILE), esc_html__('QuadLayers', 'woocommerce-checkout-manager')); ?>
|
26 |
|
27 |
</div>
|
28 |
|
includes/view/backend/pages/parts/tabs.php
CHANGED
@@ -1,6 +1,5 @@
|
|
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 |
-
<li><a href="<?php echo admin_url('admin.php?page=' . WOOCCM_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-checkout-manager'); ?></a></li>
|
5 |
</ul>
|
6 |
<br class="clear" />
|
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" />
|
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.4
|
6 |
Tested up to: 5.4.0
|
7 |
-
Stable tag: 4.9.
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 4.0
|
10 |
License: GPLv2 or later
|
@@ -107,6 +107,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
110 |
= 4.9.7 =
|
111 |
* Fix: woocommerce checkout account
|
112 |
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.4.0
|
7 |
+
Stable tag: 4.9.8
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 4.0
|
10 |
License: GPLv2 or later
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 4.9.8 =
|
111 |
+
* Fix: woocommerce checkout manager premium compatibility
|
112 |
+
|
113 |
= 4.9.7 =
|
114 |
* Fix: woocommerce checkout account
|
115 |
|
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.9.
|
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.9.
|
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.9.8
|
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.9.8');
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|