WooCommerce Direct Checkout - Version 2.3.3

Version Description

  • Fix: WooCommerce Direct Checkout Pro compatibility
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 WooCommerce Direct Checkout
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

includes/controller/premium.php CHANGED
@@ -5,6 +5,7 @@ class QLWCDC_Controller_Premium {
5
  protected static $_instance;
6
 
7
  public function __construct() {
 
8
  add_action('admin_menu', array($this, 'add_menu'));
9
  add_action('admin_head', array($this, 'remove_menu'));
10
  }
@@ -16,6 +17,12 @@ class QLWCDC_Controller_Premium {
16
  return self::$_instance;
17
  }
18
 
 
 
 
 
 
 
19
  function remove_menu() {
20
  ?>
21
  <style>
@@ -26,7 +33,6 @@ class QLWCDC_Controller_Premium {
26
 
27
  </style>
28
  <?php
29
-
30
  }
31
 
32
  // Admin
5
  protected static $_instance;
6
 
7
  public function __construct() {
8
+ add_action('qlwcdc_sections_header', array($this, 'add_header'));
9
  add_action('admin_menu', array($this, 'add_menu'));
10
  add_action('admin_head', array($this, 'remove_menu'));
11
  }
17
  return self::$_instance;
18
  }
19
 
20
+ function add_header() {
21
+ ?>
22
+ <li><a href="<?php echo admin_url('admin.php?page=' . QLWCDC_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-direct-checkout'); ?></a></li> |
23
+ <?php
24
+ }
25
+
26
  function remove_menu() {
27
  ?>
28
  <style>
33
 
34
  </style>
35
  <?php
 
36
  }
37
 
38
  // Admin
includes/suggestions-list-table.php CHANGED
@@ -5,12 +5,12 @@ require_once( ABSPATH . 'wp-admin/includes/class-wp-plugin-install-list-table.ph
5
  class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
6
 
7
  public $promote = array(
8
- 'wp-menu-icons',
 
9
  'wp-whatsapp-chat',
10
  'insta-gallery',
11
  'quadmenu',
12
- 'woocommerce-checkout-manager',
13
- 'woocommerce-direct-checkout',
14
  );
15
 
16
  private function remove_plugins($plugins) {
@@ -66,7 +66,9 @@ class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
66
 
67
  public function get_plugins() {
68
 
69
- $plugins = get_transient('ql_suggestions_plugins');
 
 
70
 
71
  if ($plugins === false) {
72
 
@@ -82,7 +84,7 @@ class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
82
 
83
  $plugins = $this->remove_plugins($api->plugins);
84
 
85
- set_transient('ql_suggestions_plugins', $plugins, 24 * HOUR_IN_SECONDS);
86
  }
87
  }
88
 
5
  class QLWCDC_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 = QLWCDC_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/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=qlwapp_admin', plugins_url('/assets/backend/img/quadlayers.jpg', QLWCDC_PLUGIN_FILE), esc_html__('QuadLayers', 'woocommerce-direct-checkout')); ?>
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=qlwcdc_admin', plugins_url('/assets/backend/img/quadlayers.jpg', QLWCDC_PLUGIN_FILE), esc_html__('QuadLayers', 'woocommerce-direct-checkout')); ?>
26
 
27
  </div>
28
 
includes/view/backend/pages/parts/tabs.php CHANGED
@@ -1,6 +1,5 @@
1
  <ul class="subsubsub">
2
  <?php do_action('qlwcdc_sections_header'); ?>
3
- <li><a target="_blank" href="<?php echo QLWCDC_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-direct-checkout'); ?></a></li> |
4
- <li><a href="<?php echo admin_url('admin.php?page=' . QLWCDC_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-direct-checkout'); ?></a></li>
5
  </ul>
6
  <br class="clear" />
1
  <ul class="subsubsub">
2
  <?php do_action('qlwcdc_sections_header'); ?>
3
+ <li><a target="_blank" href="<?php echo QLWCDC_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-direct-checkout'); ?></a></li>
 
4
  </ul>
5
  <br class="clear" />
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: quadlayers
3
  Donate link: https://quadlayers.com/portfolio/woocommerce-direct-checkout/
4
  Tags: woocommerce, woocommerce ajax, woocommerce ajax cart, add to cart, woocommerce direct checkout, woocommerce quick buy, woocommerce remove checkout fields, woocommerce ajax single products, woocommerce one page checkout
5
  Requires at least: 4.6
6
- Tested up to: 5.3.2
7
- Stable tag: 2.3.2
8
  WC requires at least: 3.0
9
  WC tested up to: 4.0
10
  License: GPLv2 or later
@@ -68,8 +68,11 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 2.3.2 =
72
- * Fix: WooCommerce Direct Checkout
73
 
74
  = 2.3.1 =
75
  * Fix: WooCommerce Direct Checkout products ajax add to cart
3
  Donate link: https://quadlayers.com/portfolio/woocommerce-direct-checkout/
4
  Tags: woocommerce, woocommerce ajax, woocommerce ajax cart, add to cart, woocommerce direct checkout, woocommerce quick buy, woocommerce remove checkout fields, woocommerce ajax single products, woocommerce one page checkout
5
  Requires at least: 4.6
6
+ Tested up to: 5.4.0
7
+ Stable tag: 2.3.3
8
  WC requires at least: 3.0
9
  WC tested up to: 4.0
10
  License: GPLv2 or later
68
 
69
  == Changelog ==
70
 
71
+ = 2.3.3 =
72
+ * Fix: WooCommerce Direct Checkout Pro compatibility
73
+
74
  = 2.3.2 =
75
+ * Fix: WooCommerce Direct Checkout Pro compatibility
76
 
77
  = 2.3.1 =
78
  * Fix: WooCommerce Direct Checkout products ajax add to cart
woocommerce-direct-checkout.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: WooCommerce Direct Checkout
5
  * Description: Simplifies the checkout process to improve your sales rate.
6
- * Version: 2.3.2
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
@@ -16,7 +16,7 @@ if (!defined('QLWCDC_PLUGIN_NAME')) {
16
  define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
17
  }
18
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
19
- define('QLWCDC_PLUGIN_VERSION', '2.3.2');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_FILE')) {
22
  define('QLWCDC_PLUGIN_FILE', __FILE__);
@@ -34,7 +34,7 @@ if (!defined('QLWCDC_WORDPRESS_URL')) {
34
  define('QLWCDC_WORDPRESS_URL', 'https://wordpress.org/plugins/woocommerce-direct-checkout/');
35
  }
36
  if (!defined('QLWCDC_REVIEW_URL')) {
37
- define('QLWCDC_REVIEW_URL', 'https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/?filter=5#new-post');
38
  }
39
  if (!defined('QLWCDC_DEMO_URL')) {
40
  define('QLWCDC_DEMO_URL', 'https://quadlayers.com/woocommerce-direct?utm_source=qlwcdc_admin');
3
  /**
4
  * Plugin Name: WooCommerce Direct Checkout
5
  * Description: Simplifies the checkout process to improve your sales rate.
6
+ * Version: 2.3.3
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
16
  define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
17
  }
18
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
19
+ define('QLWCDC_PLUGIN_VERSION', '2.3.3');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_FILE')) {
22
  define('QLWCDC_PLUGIN_FILE', __FILE__);
34
  define('QLWCDC_WORDPRESS_URL', 'https://wordpress.org/plugins/woocommerce-direct-checkout/');
35
  }
36
  if (!defined('QLWCDC_REVIEW_URL')) {
37
+ define('QLWCDC_REVIEW_URL', 'https://wordpress.org/support/plugin/woocommerce-direct-checkout/reviews/?filter=5#new-post');
38
  }
39
  if (!defined('QLWCDC_DEMO_URL')) {
40
  define('QLWCDC_DEMO_URL', 'https://quadlayers.com/woocommerce-direct?utm_source=qlwcdc_admin');