WooCommerce Direct Checkout - Version 2.5.1

Version Description

  • Add. Telegram add to suggestions tab
Download this release

Release Info

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

Code changes from version 2.4.8 to 2.5.1

includes/quadlayers/widget.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!class_exists('QL_Widget')) {
3
+
4
+ class QL_Widget
5
+ {
6
+ protected static $instance;
7
+
8
+ public function __construct()
9
+ {
10
+ if (is_admin()) {
11
+ add_action('wp_network_dashboard_setup', [$this, 'add_dashboard_widget'], -10);
12
+ add_action('wp_dashboard_setup', [$this, 'add_dashboard_widget'], -10);
13
+ }
14
+ }
15
+
16
+ public function add_dashboard_widget()
17
+ {
18
+ wp_add_dashboard_widget(
19
+ 'quadlayers-dashboard-overview',
20
+ __('QuadLayers News', 'woocommerce-direct-checkout'),
21
+ [$this, 'display_dashboard_widget']
22
+ );
23
+ }
24
+
25
+ public function display_dashboard_widget()
26
+ {
27
+ $rss = fetch_feed('https://quadlayers.com/news/feed/');
28
+
29
+ if (is_wp_error($rss)) {
30
+ printf('<p><strong>%s: </strong>%s</p>', __('Error', 'woocommerce-direct-checkout'), $rss->get_error_message());
31
+ return;
32
+ }
33
+
34
+ if (!$rss->get_item_quantity()) {
35
+ printf('<ul><li>%s</li></ul>', __('An error has occurred, which probably means the feed is down. Try again later', 'woocommerce-direct-checkout'));
36
+ $rss->__destruct();
37
+ unset($rss);
38
+ return;
39
+ }
40
+ ?>
41
+ <div>
42
+ <div>
43
+ <div style="margin-top: 11px;float: left;width: 70%;">
44
+ <?php esc_html_e('Hi! We are Quadlayers! Welcome to QuadLayers! We’re a team of international people who have been working in the WordPress sphere for the last ten years.', 'woocommerce-direct-checkout'); ?>
45
+ <div style="margin-top: 11px; float: left; width: 70%;"><a href="<?php echo admin_url('admin.php?page=' . QLWCDC_DOMAIN . '_suggestions'); ?>" target="_blank" class="button button-secondary"><?php esc_html_e('More products', 'woocommerce-direct-checkout'); ?></a></div>
46
+ </div>
47
+ <img style="width: 30%;margin-top: 11px;float: right; max-width: 95px;" src="<?php echo plugins_url('/assets/backend/img/quadlayers.jpg', QLWCDC_PLUGIN_FILE); ?>" />
48
+ </div>
49
+ <div style="clear: both;"></div>
50
+ </div>
51
+ <div style="margin: 16px -12px 0; padding: 12px 12px 0;border-top: 1px solid #eee;">
52
+ <ul>
53
+ <?php
54
+ foreach ($rss->get_items(0, 3) as $item) {
55
+ $link = $item->get_link();
56
+ while (stristr($link, 'http') !== $link) {
57
+ $link = substr($link, 1);
58
+ }
59
+
60
+ $link = esc_url(strip_tags($link . '?utm_source=ql_dashboard'));
61
+ $title = esc_html(trim(strip_tags($item->get_title())));
62
+
63
+ if (empty($title)) {
64
+ $title = __('Untitled', 'woocommerce-direct-checkout');
65
+ }
66
+
67
+ $desc = html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset'));
68
+ $desc = esc_attr(wp_trim_words($desc, 15, '...'));
69
+ $summary = $desc;
70
+ $summary = '<div class="rssSummary">' . $summary . '</div>';
71
+
72
+ $date = $item->get_date('U');
73
+ if ($date) {
74
+ $date = '<span class="rss-date">' . date_i18n(get_option('date_format'), $date) . '</span>';
75
+ }
76
+ $author = $item->get_author();
77
+ $author = ucfirst($author->get_name());
78
+ $author = ' <cite>' . esc_html(strip_tags($author)) . '</cite>';
79
+
80
+ printf(__('<li><a href="%s" target="_blank">%s </a>%s%s%s</li>', 'woocommerce-direct-checkout'), $link, $title, $date, $summary, $author);
81
+ } ?>
82
+ </ul>
83
+ </div>
84
+ <div style="display: flex; justify-content: space-between;align-items: center;margin: 16px -12px 0;padding: 12px 12px 0; border-top: 1px solid #eee;">
85
+ <a href="<?php printf('https://quadlayers.com/blog/?utm_source=%s&utm_medium=software&utm_campaign=wordpress&utm_content=dashboard', QLWCDC_DOMAIN); ?>" target="_blank"><?php esc_html_e('Read more like this on our blog', 'woocommerce-direct-checkout') ?></a>
86
+ <a class="button-primary" href="<?php printf('https://quadlayers.com/?utm_source=%s&utm_medium=software&utm_campaign=wordpress&utm_content=dashboard', QLWCDC_DOMAIN); ?>" target="_blank"><?php esc_html_e('QuadLayers', 'woocommerce-direct-checkout') ?></a>
87
+ </div>
88
+ <?php
89
+ }
90
+
91
+ public static function instance()
92
+ {
93
+ if (!isset(self::$instance)) {
94
+ self::$instance = new self();
95
+ }
96
+ return self::$instance;
97
+ }
98
+ }
99
+
100
+
101
+ QL_Widget::instance();
102
+ }
includes/suggestions.php CHANGED
@@ -10,6 +10,7 @@ class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table
10
  'perfect-woocommerce-brands',
11
  'autocomplete-woocommerce-orders',
12
  'wp-whatsapp-chat',
 
13
  'insta-gallery',
14
  'wp-menu-icons',
15
  'quadmenu',
@@ -111,7 +112,7 @@ class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table
111
  wp_enqueue_script('plugin-install');
112
  wp_enqueue_script('thickbox');
113
  wp_enqueue_script('updates');
114
- wp_localize_script('updates', 'pagenow', 'plugin-install-network');
115
 
116
  wp_reset_vars(array('tab'));
117
 
10
  'perfect-woocommerce-brands',
11
  'autocomplete-woocommerce-orders',
12
  'wp-whatsapp-chat',
13
+ 'quadlayers-telegram-chat',
14
  'insta-gallery',
15
  'wp-menu-icons',
16
  'quadmenu',
112
  wp_enqueue_script('plugin-install');
113
  wp_enqueue_script('thickbox');
114
  wp_enqueue_script('updates');
115
+ // wp_localize_script('updates', 'pagenow', 'plugin-install-network');
116
 
117
  wp_reset_vars(array('tab'));
118
 
includes/view/backend/pages/premium.php CHANGED
@@ -1,4 +1,4 @@
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">
@@ -7,11 +7,11 @@
7
  <div class="about-description">
8
  <?php printf(esc_html__('%s allows you to simplifies the checkout process by skipping the shopping cart page. This plugin allows you to redirect your customers directly to the checkout page and includes the cart inside the checkout page.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
9
  </div>
10
- <br/>
11
  <a class="button button-primary" target="_blank" href="<?php echo esc_url(QLWCDC_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'woocommerce-direct-checkout'); ?></a>
12
  <a class="button button-secondary" target="_blank" href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>"><?php esc_html_e('Get Support', 'woocommerce-direct-checkout'); ?></a>
13
  </div>
14
- <hr/>
15
  <div class="feature-section" style="padding: 10px 0;">
16
  <h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
17
  <p>
@@ -35,7 +35,7 @@
35
  <img src="<?php echo plugins_url('/assets/backend/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
36
  </div>
37
  </div>
38
- <hr/>
39
  <div class="has-2-columns is-wider-left" style="max-width: 100%">
40
  <div class="column">
41
  <div class="feature-section" style="padding: 10px 0;">
@@ -60,7 +60,7 @@
60
  </p>
61
  </div>
62
  <div class="feature-section" style="padding: 10px 0;">
63
- <hr/>
64
  <h3><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h3>
65
  <p>
66
  <?php esc_html_e('The Quick purchase button allows you to include a direct button in the single products, variable, grouped and virtual products wich redirects user to the checkout page.', 'woocommerce-direct-checkout'); ?>
@@ -68,7 +68,7 @@
68
  </div>
69
  </div>
70
  <div class="column">
71
- <br/>
72
  <img src="<?php echo plugins_url('/assets/backend/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
73
  </div>
74
  </div>
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">
7
  <div class="about-description">
8
  <?php printf(esc_html__('%s allows you to simplifies the checkout process by skipping the shopping cart page. This plugin allows you to redirect your customers directly to the checkout page and includes the cart inside the checkout page.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
9
  </div>
10
+ <br />
11
  <a class="button button-primary" target="_blank" href="<?php echo esc_url(QLWCDC_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'woocommerce-direct-checkout'); ?></a>
12
  <a class="button button-secondary" target="_blank" href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>"><?php esc_html_e('Get Support', 'woocommerce-direct-checkout'); ?></a>
13
  </div>
14
+ <hr />
15
  <div class="feature-section" style="padding: 10px 0;">
16
  <h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
17
  <p>
35
  <img src="<?php echo plugins_url('/assets/backend/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
36
  </div>
37
  </div>
38
+ <hr />
39
  <div class="has-2-columns is-wider-left" style="max-width: 100%">
40
  <div class="column">
41
  <div class="feature-section" style="padding: 10px 0;">
60
  </p>
61
  </div>
62
  <div class="feature-section" style="padding: 10px 0;">
63
+ <hr />
64
  <h3><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h3>
65
  <p>
66
  <?php esc_html_e('The Quick purchase button allows you to include a direct button in the single products, variable, grouped and virtual products wich redirects user to the checkout page.', 'woocommerce-direct-checkout'); ?>
68
  </div>
69
  </div>
70
  <div class="column">
71
+ <br />
72
  <img src="<?php echo plugins_url('/assets/backend/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
73
  </div>
74
  </div>
includes/view/backend/pages/suggestions.php CHANGED
@@ -5,9 +5,10 @@
5
  display: flex;
6
  flex-wrap: wrap;
7
  }
 
8
  .plugin-card {
9
  margin: 8px !important;
10
- width: calc(50% - 4px - 16px)!important;
11
  }
12
  }
13
  </style>
5
  display: flex;
6
  flex-wrap: wrap;
7
  }
8
+
9
  .plugin-card {
10
  margin: 8px !important;
11
+ width: calc(50% - 4px - 16px) !important;
12
  }
13
  }
14
  </style>
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.8
7
- Stable tag: 2.4.8
8
  WC requires at least: 3.1.0
9
  WC tested up to: 5.5
10
  License: GPLv3
@@ -64,6 +64,15 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
 
 
 
 
67
  = 2.4.8 =
68
  * Fix: WordPress compatibility
69
 
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.8
7
+ Stable tag: 2.5.1
8
  WC requires at least: 3.1.0
9
  WC tested up to: 5.5
10
  License: GPLv3
64
 
65
  == Changelog ==
66
 
67
+ = 2.5.1 =
68
+ * Add. Telegram add to suggestions tab
69
+
70
+ = 2.5.0 =
71
+ * Fix: php error
72
+
73
+ = 2.4.9 =
74
+ * Add: QuadLayers dashboard widget
75
+
76
  = 2.4.8 =
77
  * Fix: WordPress compatibility
78
 
woocommerce-direct-checkout.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Direct Checkout for WooCommerce
5
  * Plugin URI: https://quadlayers.com/documentation/woocommerce-direct-checkout/
6
  * Description: Simplifies the checkout process to improve your sales rate.
7
- * Version: 2.4.8
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * License: GPLv3
@@ -19,7 +19,7 @@ if (!defined('QLWCDC_PLUGIN_NAME')) {
19
  define('QLWCDC_PLUGIN_NAME', 'Direct Checkout for WooCommerce');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
22
- define('QLWCDC_PLUGIN_VERSION', '2.4.8');
23
  }
24
  if (!defined('QLWCDC_PLUGIN_FILE')) {
25
  define('QLWCDC_PLUGIN_FILE', __FILE__);
@@ -60,3 +60,6 @@ if (!class_exists('QLWCDC')) {
60
  }
61
 
62
 
 
 
 
4
  * Plugin Name: Direct Checkout for WooCommerce
5
  * Plugin URI: https://quadlayers.com/documentation/woocommerce-direct-checkout/
6
  * Description: Simplifies the checkout process to improve your sales rate.
7
+ * Version: 2.5.1
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * License: GPLv3
19
  define('QLWCDC_PLUGIN_NAME', 'Direct Checkout for WooCommerce');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
22
+ define('QLWCDC_PLUGIN_VERSION', '2.5.1');
23
  }
24
  if (!defined('QLWCDC_PLUGIN_FILE')) {
25
  define('QLWCDC_PLUGIN_FILE', __FILE__);
60
  }
61
 
62
 
63
+ if (!class_exists('QL_Widget')) {
64
+ include_once(QLWCDC_PLUGIN_DIR . 'includes/quadlayers/widget.php');
65
+ }