Version Description
- Fix. WooCommerce Direct Checkout rating request remove non admin users
- Fix. WooCommerce Direct Checkout page permissions
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Direct Checkout |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
assets/{frontend → backend}/img/checkout.png
RENAMED
File without changes
|
assets/{frontend → backend}/img/logo.jpg
RENAMED
File without changes
|
assets/{frontend → backend}/img/modal.png
RENAMED
File without changes
|
includes/purchase.php
CHANGED
@@ -56,7 +56,7 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="column">
|
59 |
-
<img src="<?php echo plugins_url('/assets/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
|
60 |
</div>
|
61 |
</div>
|
62 |
<hr/>
|
@@ -93,7 +93,7 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
93 |
</div>
|
94 |
<div class="column">
|
95 |
<br/>
|
96 |
-
<img src="<?php echo plugins_url('/assets/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
97 |
</div>
|
98 |
</div>
|
99 |
</div>
|
56 |
</div>
|
57 |
</div>
|
58 |
<div class="column">
|
59 |
+
<img src="<?php echo plugins_url('/assets/backend/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
|
60 |
</div>
|
61 |
</div>
|
62 |
<hr/>
|
93 |
</div>
|
94 |
<div class="column">
|
95 |
<br/>
|
96 |
+
<img src="<?php echo plugins_url('/assets/backend/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
97 |
</div>
|
98 |
</div>
|
99 |
</div>
|
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.8
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -53,6 +53,10 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
|
|
53 |
|
54 |
== Changelog ==
|
55 |
|
|
|
|
|
|
|
|
|
56 |
= 2.2.4 =
|
57 |
* Fix. WooCommerce Direct Checkout quick purchase button on safari
|
58 |
|
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.8
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 2.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
53 |
|
54 |
== Changelog ==
|
55 |
|
56 |
+
= 2.2.5 =
|
57 |
+
* Fix. WooCommerce Direct Checkout rating request remove non admin users
|
58 |
+
* Fix. WooCommerce Direct Checkout page permissions
|
59 |
+
|
60 |
= 2.2.4 =
|
61 |
* Fix. WooCommerce Direct Checkout quick purchase button on safari
|
62 |
|
woocommerce-direct-checkout.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
-
* Version: 2.2.
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
@@ -15,7 +15,7 @@ if (!defined('QLWCDC_PLUGIN_NAME')) {
|
|
15 |
define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
|
16 |
}
|
17 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
18 |
-
define('QLWCDC_PLUGIN_VERSION', '2.2.
|
19 |
}
|
20 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
21 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
@@ -55,18 +55,16 @@ if (!class_exists('QLWCDC')) {
|
|
55 |
protected static $instance;
|
56 |
|
57 |
function ajax_dismiss_notice() {
|
58 |
-
if (current_user_can('manage_options')) {
|
59 |
|
60 |
-
|
61 |
|
62 |
-
|
63 |
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
}
|
68 |
-
}
|
69 |
}
|
|
|
70 |
wp_die();
|
71 |
}
|
72 |
|
@@ -77,7 +75,7 @@ if (!class_exists('QLWCDC')) {
|
|
77 |
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
78 |
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
79 |
<div class="notice-image">
|
80 |
-
<img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/img/logo.jpg', QLWCDC_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLWCDC_PLUGIN_NAME); ?>>">
|
81 |
</div>
|
82 |
<div class="notice-content" style="margin-left: 15px;">
|
83 |
<p>
|
@@ -251,7 +249,7 @@ if (!class_exists('QLWCDC')) {
|
|
251 |
}
|
252 |
|
253 |
function add_menu_page() {
|
254 |
-
add_submenu_page('woocommerce', esc_html__('Direct Checkout', 'woocommerce-direct-checkout'), esc_html__('Direct Checkout', 'woocommerce-direct-checkout'), '
|
255 |
}
|
256 |
|
257 |
/* function woocommerce_cart_redirect_after_add($val) {
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
+
* Version: 2.2.5
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
15 |
define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
|
16 |
}
|
17 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
18 |
+
define('QLWCDC_PLUGIN_VERSION', '2.2.5');
|
19 |
}
|
20 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
21 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
55 |
protected static $instance;
|
56 |
|
57 |
function ajax_dismiss_notice() {
|
|
|
58 |
|
59 |
+
if (check_admin_referer('qlwcdc_dismiss_notice', 'nonce') && isset($_REQUEST['notice_id'])) {
|
60 |
|
61 |
+
$notice_id = sanitize_key($_REQUEST['notice_id']);
|
62 |
|
63 |
+
update_user_meta(get_current_user_id(), $notice_id, true);
|
64 |
|
65 |
+
wp_send_json($notice_id);
|
|
|
|
|
66 |
}
|
67 |
+
|
68 |
wp_die();
|
69 |
}
|
70 |
|
75 |
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
76 |
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
77 |
<div class="notice-image">
|
78 |
+
<img style="border-radius:50%;max-width: 90px;" src="<?php echo plugins_url('/assets/backend/img/logo.jpg', QLWCDC_PLUGIN_FILE); ?>" alt="<?php echo esc_html(QLWCDC_PLUGIN_NAME); ?>>">
|
79 |
</div>
|
80 |
<div class="notice-content" style="margin-left: 15px;">
|
81 |
<p>
|
249 |
}
|
250 |
|
251 |
function add_menu_page() {
|
252 |
+
add_submenu_page('woocommerce', esc_html__('Direct Checkout', 'woocommerce-direct-checkout'), esc_html__('Direct Checkout', 'woocommerce-direct-checkout'), 'manage_woocommerce', admin_url('admin.php?page=wc-settings&tab=' . sanitize_title(QLWCDC_DOMAIN)));
|
253 |
}
|
254 |
|
255 |
/* function woocommerce_cart_redirect_after_add($val) {
|