WooCommerce Direct Checkout - Version 2.1.6

Version Description

  • Fix. WooCommerce Direct Checkout renamed
Download this release

Release Info

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

Code changes from version 2.1.5 to 2.1.6

includes/products.php CHANGED
@@ -488,7 +488,7 @@ if (!class_exists('QLWCDC_Products')) {
488
  foreach ($product_addons as $addon) {
489
 
490
  if (isset($_GET['addon-' . $addon['field_name']])) {
491
- $_POST['addon-' . $addon['field_name']] = $_GET['addon-' . $addon['field_name']];
492
  }
493
  }
494
  }
488
  foreach ($product_addons as $addon) {
489
 
490
  if (isset($_GET['addon-' . $addon['field_name']])) {
491
+ $_POST['addon-' . $addon['field_name']] = sanitize_text_field($_GET['addon-' . $addon['field_name']]);
492
  }
493
  }
494
  }
readme.txt CHANGED
@@ -3,15 +3,15 @@ Contributors: quadlayers
3
  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
4
  Requires at least: 4.8
5
  Tested up to: 5.2
6
- Stable tag: 2.1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Simplifies the entire checkout process to improve your sales rate.
11
 
12
  == Description ==
13
 
14
- [Direct Checkout for WooCommerce](https://quadlayers.com/portfolio/woocommerce-direct-checkout/) allows you to simplifies the checkout process by skipping the shopping cart page. The “Add to cart” button is added in each product to redirect customers to the checkout page. This can encourage buyers to shop more and quickly process the transaction, which can lead to a possible increase in sales.
15
 
16
  == Ajax add to cart ==
17
 
@@ -19,7 +19,7 @@ The Ajax add to cart option allows you to include single products, variable, gro
19
 
20
  == Speed checkout process ==
21
 
22
- Direct Checkout for WooCommerce aims to simplify the checkout process, leading to an immediate increase in sales. This plugin for WooCommerce allows you to redirect users to the checkout instead of cart page, change the text and link of the added to cart alert and include the ajax add to cart button in the products pages.
23
 
24
  == Remove checkout fields ==
25
 
@@ -42,6 +42,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 2.1.5 =
46
  * Fix. WooCommerce Direct Checkout renamed
47
 
3
  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
4
  Requires at least: 4.8
5
  Tested up to: 5.2
6
+ Stable tag: 2.1.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Formerly WooCommerce Direct Checkout. This plugin simplifies the entire WooCommerce checkout process to improve your sales rate.
11
 
12
  == Description ==
13
 
14
+ [WooCommerce Direct Checkout](https://quadlayers.com/portfolio/woocommerce-direct-checkout/) allows you to simplifies the checkout process by skipping the shopping cart page. The “Add to cart” button is added in each product to redirect customers to the checkout page. This can encourage buyers to shop more and quickly process the transaction, which can lead to a possible increase in sales.
15
 
16
  == Ajax add to cart ==
17
 
19
 
20
  == Speed checkout process ==
21
 
22
+ WooCommerce Direct Checkout aims to simplify the checkout process, leading to an immediate increase in sales. This plugin for WooCommerce allows you to redirect users to the checkout instead of cart page, change the text and link of the added to cart alert and include the ajax add to cart button in the products pages.
23
 
24
  == Remove checkout fields ==
25
 
42
 
43
  == Changelog ==
44
 
45
+ = 2.1.6 =
46
+ * Fix. WooCommerce Direct Checkout renamed
47
+
48
  = 2.1.5 =
49
  * Fix. WooCommerce Direct Checkout renamed
50
 
woocommerce-direct-checkout.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Direct Checkout for WooCommerce
4
  * Description: Simplifies the checkout process to improve your sales rate.
5
- * Version: 2.1.5
6
  * Author: QuadLayers
7
  * Author URI: https://www.quadlayers.com
8
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
@@ -16,7 +16,7 @@ if (!defined('QLWCDC_PLUGIN_NAME')) {
16
  define('QLWCDC_PLUGIN_NAME', 'Direct Checkout for WooCommerce');
17
  }
18
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
19
- define('QLWCDC_PLUGIN_VERSION', '2.1.5');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_FILE')) {
22
  define('QLWCDC_PLUGIN_FILE', __FILE__);
@@ -53,14 +53,18 @@ if (!class_exists('QLWCDC')) {
53
  protected static $instance;
54
 
55
  function ajax_dismiss_notice() {
 
56
 
57
- if ($notice_id = ( isset($_POST['notice_id']) ) ? sanitize_key($_POST['notice_id']) : '') {
58
 
59
- update_user_meta(get_current_user_id(), $notice_id, true);
60
 
61
- wp_send_json($notice_id);
62
- }
63
 
 
 
 
 
64
  wp_die();
65
  }
66
 
@@ -99,6 +103,7 @@ if (!class_exists('QLWCDC')) {
99
  data: {
100
  notice_id: notice_id,
101
  action: 'qlwcdc_dismiss_notice',
 
102
  },
103
  success: function (response) {
104
  console.log(response);
2
  /**
3
  * Plugin Name: Direct Checkout for WooCommerce
4
  * Description: Simplifies the checkout process to improve your sales rate.
5
+ * Version: 2.1.6
6
  * Author: QuadLayers
7
  * Author URI: https://www.quadlayers.com
8
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
16
  define('QLWCDC_PLUGIN_NAME', 'Direct Checkout for WooCommerce');
17
  }
18
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
19
+ define('QLWCDC_PLUGIN_VERSION', '2.1.6');
20
  }
21
  if (!defined('QLWCDC_PLUGIN_FILE')) {
22
  define('QLWCDC_PLUGIN_FILE', __FILE__);
53
  protected static $instance;
54
 
55
  function ajax_dismiss_notice() {
56
+ if (current_user_can('manage_options')) {
57
 
58
+ if (!empty($_REQUEST) && check_admin_referer('qlwcdc_dismiss_notice', 'nonce')) {
59
 
60
+ if ($notice_id = ( isset($_REQUEST['notice_id']) ) ? sanitize_key($_REQUEST['notice_id']) : '') {
61
 
62
+ update_user_meta(get_current_user_id(), $notice_id, true);
 
63
 
64
+ wp_send_json($notice_id);
65
+ }
66
+ }
67
+ }
68
  wp_die();
69
  }
70
 
103
  data: {
104
  notice_id: notice_id,
105
  action: 'qlwcdc_dismiss_notice',
106
+ nonce: '<?php echo wp_create_nonce('qlwcdc_dismiss_notice'); ?>'
107
  },
108
  success: function (response) {
109
  console.log(response);