WooCommerce Direct Checkout - Version 2.3.2

Version Description

  • Fix: WooCommerce Direct Checkout
Download this release

Release Info

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

Code changes from version 2.3.1 to 2.3.2

assets/backend/qlwcdc-admin.js CHANGED
@@ -54,7 +54,13 @@
54
  }).change();
55
  // Product
56
  // -----------------------------------------------------------------
57
-
 
 
 
 
 
 
58
  $('select#qlwcdc_add_product_quick_purchase').change(function () {
59
  if ('yes' === $(this).val()) {
60
  $('select#qlwcdc_add_product_quick_purchase_to').closest('tr, p').fadeIn();
54
  }).change();
55
  // Product
56
  // -----------------------------------------------------------------
57
+ $('select#qlwcdc_add_product_ajax').change(function () {
58
+ if ('yes' === $(this).val()) {
59
+ $('select#qlwcdc_add_product_ajax_alert').closest('tr, p').fadeIn();
60
+ } else {
61
+ $('select#qlwcdc_add_product_ajax_alert').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
62
+ }
63
+ }).change();
64
  $('select#qlwcdc_add_product_quick_purchase').change(function () {
65
  if ('yes' === $(this).val()) {
66
  $('select#qlwcdc_add_product_quick_purchase_to').closest('tr, p').fadeIn();
assets/backend/qlwcdc-admin.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a(window).on("load",function(b){a("select#qlwcdc_add_to_cart_redirect_page").change(function(){if("url"===a(this).val()&&"yes"==a("select#qlwcdc_add_to_cart_redirect").val()){a("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}});a("select#qlwcdc_add_to_cart_redirect").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_to_cart_redirect_page").change();a("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_redirect_page").change();a("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_to_cart_redirect_page").change(function(){if("url"===a(this).val()&&"redirect"==a("select#qlwcdc_add_to_cart").val()){a("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}});a("select#qlwcdc_add_to_cart").change(function(){if("ajax"===a(this).val()){a("select#qlwcdc_add_to_cart_ajax_button").closest("tr, p").fadeIn();a("select#qlwcdc_add_to_cart_ajax_message").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_ajax_button").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("select#qlwcdc_add_to_cart_ajax_message").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}if("redirect"===a(this).val()){a("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}a("select#qlwcdc_add_to_cart_redirect_page").change()}).change();a("select#qlwcdc_add_archive_text").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_archive_text_in").closest("tr, p").fadeIn();a("input#qlwcdc_add_archive_text_content").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_archive_text_in").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_archive_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_product_quick_purchase").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_product_quick_purchase_to").closest("tr, p").fadeIn();a("input#qlwcdc_add_product_quick_purchase_class").closest("tr, p").fadeIn();a("input#qlwcdc_add_product_quick_purchase_text").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_product_quick_purchase_to").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_product_quick_purchase_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_product_quick_purchase_text").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_product_text").change(function(){if("yes"===a(this).val()){a("input#qlwcdc_add_product_text_content").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_product_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_checkout_cart").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_checkout_cart_fields").closest("tr, p").fadeIn();a("input#qlwcdc_add_checkout_cart_class").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_checkout_cart_fields").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_checkout_cart_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change()})}(jQuery));
1
+ (function(a){a(window).on("load",function(b){a("select#qlwcdc_add_to_cart_redirect_page").change(function(){if("url"===a(this).val()&&"yes"==a("select#qlwcdc_add_to_cart_redirect").val()){a("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}});a("select#qlwcdc_add_to_cart_redirect").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_to_cart_redirect_page").change();a("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_redirect_page").change();a("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_to_cart_redirect_page").change(function(){if("url"===a(this).val()&&"redirect"==a("select#qlwcdc_add_to_cart").val()){a("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}});a("select#qlwcdc_add_to_cart").change(function(){if("ajax"===a(this).val()){a("select#qlwcdc_add_to_cart_ajax_button").closest("tr, p").fadeIn();a("select#qlwcdc_add_to_cart_ajax_message").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_ajax_button").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("select#qlwcdc_add_to_cart_ajax_message").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}if("redirect"===a(this).val()){a("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}a("select#qlwcdc_add_to_cart_redirect_page").change()}).change();a("select#qlwcdc_add_archive_text").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_archive_text_in").closest("tr, p").fadeIn();a("input#qlwcdc_add_archive_text_content").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_archive_text_in").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_archive_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_product_ajax").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_product_ajax_alert").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_product_ajax_alert").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_product_quick_purchase").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_product_quick_purchase_to").closest("tr, p").fadeIn();a("input#qlwcdc_add_product_quick_purchase_class").closest("tr, p").fadeIn();a("input#qlwcdc_add_product_quick_purchase_text").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_product_quick_purchase_to").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_product_quick_purchase_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_product_quick_purchase_text").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_product_text").change(function(){if("yes"===a(this).val()){a("input#qlwcdc_add_product_text_content").closest("tr, p").fadeIn()}else{a("input#qlwcdc_add_product_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change();a("select#qlwcdc_add_checkout_cart").change(function(){if("yes"===a(this).val()){a("select#qlwcdc_add_checkout_cart_fields").closest("tr, p").fadeIn();a("input#qlwcdc_add_checkout_cart_class").closest("tr, p").fadeIn()}else{a("select#qlwcdc_add_checkout_cart_fields").closest("tr:not(.qlwcdc-premium-field), p").fadeOut();a("input#qlwcdc_add_checkout_cart_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()}}).change()})}(jQuery));
includes/controller/backend.php CHANGED
@@ -44,6 +44,7 @@ class QLWCDC_Backend {
44
  $(window).on('load', function (e) {
45
  $('#qlwcdc_options .options_group').css({'opacity': '0.5', 'pointer-events': 'none'});
46
  $('label[for=qlwcdc_add_product_ajax]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
 
47
  $('label[for=qlwcdc_add_checkout_cart]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
48
  $('label[for=qlwcdc_add_checkout_cart_fields]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
49
  $('label[for=qlwcdc_add_checkout_cart_class]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
44
  $(window).on('load', function (e) {
45
  $('#qlwcdc_options .options_group').css({'opacity': '0.5', 'pointer-events': 'none'});
46
  $('label[for=qlwcdc_add_product_ajax]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
47
+ $('label[for=qlwcdc_add_product_ajax_alert]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
48
  $('label[for=qlwcdc_add_checkout_cart]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
49
  $('label[for=qlwcdc_add_checkout_cart_fields]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
50
  $('label[for=qlwcdc_add_checkout_cart_class]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
includes/controller/products.php CHANGED
@@ -49,6 +49,18 @@ class QLWCDC_Controller_Products {
49
  ),
50
  'default' => 'no',
51
  ),
 
 
 
 
 
 
 
 
 
 
 
 
52
  array(
53
  'name' => esc_html__('Replace Add to cart text', 'woocommerce-direct-checkout'),
54
  'desc_tip' => esc_html__('Replace "Add to cart" text.', 'woocommerce-direct-checkout'),
@@ -169,6 +181,18 @@ class QLWCDC_Controller_Products {
169
  ),
170
  'value' => QLWCDC::instance()->get_product_option($thepostid, 'qlwcdc_add_product_ajax', 'no'),
171
  ),
 
 
 
 
 
 
 
 
 
 
 
 
172
  'start_group',
173
  'end_group',
174
  array(
49
  ),
50
  'default' => 'no',
51
  ),
52
+ array(
53
+ 'name' => esc_html__('Add ajax add to cart alert', 'woocommerce-direct-checkout'),
54
+ 'desc_tip' => esc_html__('Display alert when product is added to the cart.', 'woocommerce-direct-checkout'),
55
+ 'id' => 'qlwcdc_add_product_ajax_alert',
56
+ 'type' => 'select',
57
+ 'class' => 'chosen_select qlwcdc-premium-field',
58
+ 'options' => array(
59
+ 'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
60
+ 'no' => esc_html__('No', 'woocommerce-direct-checkout'),
61
+ ),
62
+ 'default' => 'yes',
63
+ ),
64
  array(
65
  'name' => esc_html__('Replace Add to cart text', 'woocommerce-direct-checkout'),
66
  'desc_tip' => esc_html__('Replace "Add to cart" text.', 'woocommerce-direct-checkout'),
181
  ),
182
  'value' => QLWCDC::instance()->get_product_option($thepostid, 'qlwcdc_add_product_ajax', 'no'),
183
  ),
184
+ array(
185
+ 'label' => esc_html__('Add ajax add to cart alert', 'woocommerce-direct-checkout'),
186
+ 'description' => esc_html__('Display alert when product is added to the cart.', 'woocommerce-direct-checkout'),
187
+ 'desc_tip' => true,
188
+ 'id' => 'qlwcdc_add_product_ajax_alert',
189
+ 'type' => 'select',
190
+ 'options' => array(
191
+ 'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
192
+ 'no' => esc_html__('No', 'woocommerce-direct-checkout'),
193
+ ),
194
+ 'value' => QLWCDC::instance()->get_product_option($thepostid, 'qlwcdc_add_product_ajax_alert', 'yes'),
195
+ ),
196
  'start_group',
197
  'end_group',
198
  array(
readme.txt CHANGED
@@ -1,20 +1,35 @@
1
- === Direct Checkout for WooCommerce ===
2
  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.0
7
- Stable tag: 2.3.1
 
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Formerly "WooCommerce Direct Checkout". This plugin simplifies the entire WooCommerce checkout process to improve your sales rate.
12
 
13
- == Description ==
14
 
15
  [Premium](https://quadlayers.com/portfolio/woocommerce-direct-checkout/) | [Demo](https://quadlayers.com/woocommerce-direct/) | [Documentation](https://quadlayers.com/documentation/woocommerce-direct-checkout/) | [Community](https://www.facebook.com/groups/quadlayers/)
16
 
17
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  == Formerly WooCommerce Direct Checkout ==
20
 
@@ -22,7 +37,7 @@ This plugin was formerly known as "WooCommerce Direct Checkout". WordPress force
22
 
23
  == Ajax add to cart ==
24
 
25
- The Ajax add to cart option allows you to include single products, variable, grouped and virtual products in the cart without the need to reload the entire site each time.
26
 
27
  == Speed checkout process ==
28
 
@@ -53,6 +68,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 2.3.1 =
57
  * Fix: WooCommerce Direct Checkout products ajax add to cart
58
 
1
+ === Direct Checkout for WooCommerce ===
2
  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
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
  Formerly "WooCommerce Direct Checkout". This plugin simplifies the entire WooCommerce checkout process to improve your sales rate.
14
 
15
+ == Presentation ==
16
 
17
  [Premium](https://quadlayers.com/portfolio/woocommerce-direct-checkout/) | [Demo](https://quadlayers.com/woocommerce-direct/) | [Documentation](https://quadlayers.com/documentation/woocommerce-direct-checkout/) | [Community](https://www.facebook.com/groups/quadlayers/)
18
 
19
+ WooCommerce direct checkout is a helpful tool to simplify the checkout process. Direct checkout converts into one-click process, customer dicesion to sale.
20
+
21
+ == Description ==
22
+
23
+ WooCommerce Direct Checkout is a plugin to allow the steps reduction inside Woocommerce checkout process. You are able to simplify 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. You will increase your sales reducing cart abandonment.
24
+
25
+ = Highlights =
26
+ * Simplify check out process.
27
+ * Reduce cart abandonment
28
+ * Skip add to cart.
29
+ * Avoid reload checkout page.
30
+ * Remove checkout fields.
31
+ * Quick purchase functionality.
32
+ * Simplify Woocommerce.
33
 
34
  == Formerly WooCommerce Direct Checkout ==
35
 
37
 
38
  == Ajax add to cart ==
39
 
40
+ The Ajax add to cart option allows you to include single products, variable, grouped and virtual products in the cart without required to reload the entire site each time.
41
 
42
  == Speed checkout process ==
43
 
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
76
 
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.1
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.1');
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-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');
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
  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
  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');