WooCommerce Direct Checkout - Version 2.3.5

Version Description

  • Fix: WooCommerce Direct Checkout Pro compatibility
Download this release

Release Info

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

Code changes from version 2.3.4 to 2.3.5

assets/backend/qlwcdc-admin.js CHANGED
@@ -64,10 +64,12 @@
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();
 
67
  $('input#qlwcdc_add_product_quick_purchase_class').closest('tr, p').fadeIn();
68
  $('input#qlwcdc_add_product_quick_purchase_text').closest('tr, p').fadeIn();
69
  } else {
70
  $('select#qlwcdc_add_product_quick_purchase_to').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
 
71
  $('input#qlwcdc_add_product_quick_purchase_class').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
72
  $('input#qlwcdc_add_product_quick_purchase_text').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
73
  }
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();
67
+ $('select#qlwcdc_add_product_quick_purchase_type').closest('tr, p').fadeIn();
68
  $('input#qlwcdc_add_product_quick_purchase_class').closest('tr, p').fadeIn();
69
  $('input#qlwcdc_add_product_quick_purchase_text').closest('tr, p').fadeIn();
70
  } else {
71
  $('select#qlwcdc_add_product_quick_purchase_to').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
72
+ $('select#qlwcdc_add_product_quick_purchase_type').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
73
  $('input#qlwcdc_add_product_quick_purchase_class').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
74
  $('input#qlwcdc_add_product_quick_purchase_text').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
75
  }
assets/backend/qlwcdc-admin.min.js CHANGED
@@ -1 +1,2 @@
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));
 
1
+
2
+ (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("select#qlwcdc_add_product_quick_purchase_type").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("select#qlwcdc_add_product_quick_purchase_type").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
@@ -54,6 +54,7 @@ class QLWCDC_Backend {
54
  $('label[for=qlwcdc_add_product_quick_purchase]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
55
  $('label[for=qlwcdc_add_product_quick_purchase_to]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
56
  $('label[for=qlwcdc_add_product_quick_purchase_qty]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
 
57
  $('label[for=qlwcdc_add_product_quick_purchase_class]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
58
  $('label[for=qlwcdc_add_product_quick_purchase_text]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
59
  $('label[for=qlwcdc_add_product_default_attributes]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
54
  $('label[for=qlwcdc_add_product_quick_purchase]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
55
  $('label[for=qlwcdc_add_product_quick_purchase_to]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
56
  $('label[for=qlwcdc_add_product_quick_purchase_qty]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
57
+ $('label[for=qlwcdc_add_product_quick_purchase_type]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
58
  $('label[for=qlwcdc_add_product_quick_purchase_class]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
59
  $('label[for=qlwcdc_add_product_quick_purchase_text]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
60
  $('label[for=qlwcdc_add_product_default_attributes]').closest('tr').addClass('qlwcdc-premium-field').css({'opacity': '0.5', 'pointer-events': 'none'});
includes/controller/products.php CHANGED
@@ -92,6 +92,18 @@ class QLWCDC_Controller_Products {
92
  ),
93
  'default' => 'no',
94
  ),
 
 
 
 
 
 
 
 
 
 
 
 
95
  array(
96
  'name' => esc_html__('Add quick purchase class', 'woocommerce-direct-checkout'),
97
  'desc_tip' => esc_html__('Add a custom class to the quick purchase button.', 'woocommerce-direct-checkout'),
92
  ),
93
  'default' => 'no',
94
  ),
95
+ array(
96
+ 'name' => esc_html__('Add quick purchase button type', 'woocommerce-direct-checkout'),
97
+ 'desc_tip' => esc_html__('Select the WooCommerce button type.', 'woocommerce-direct-checkout'),
98
+ 'id' => 'qlwcdc_add_product_quick_purchase_type',
99
+ 'type' => 'select',
100
+ 'class' => 'chosen_select',
101
+ 'options' => array(
102
+ '' => esc_html__('Default', 'woocommerce-direct-checkout'),
103
+ 'alt' => esc_html__('Alternative', 'woocommerce-direct-checkout'),
104
+ ),
105
+ 'default' => '',
106
+ ),
107
  array(
108
  'name' => esc_html__('Add quick purchase class', 'woocommerce-direct-checkout'),
109
  'desc_tip' => esc_html__('Add a custom class to the quick purchase button.', 'woocommerce-direct-checkout'),
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.4.0
7
- Stable tag: 2.3.4
8
  WC requires at least: 3.0
9
  WC tested up to: 4.0
10
  License: GPLv2 or later
@@ -68,6 +68,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 2.3.4 =
72
  * Fix: WooCommerce Direct Checkout suggestions
73
 
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.5
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.5 =
72
+ * Fix: WooCommerce Direct Checkout Pro compatibility
73
+
74
  = 2.3.4 =
75
  * Fix: WooCommerce Direct Checkout suggestions
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.4
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
@@ -18,7 +18,7 @@ if (!defined('QLWCDC_PLUGIN_NAME')) {
18
  define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
19
  }
20
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
21
- define('QLWCDC_PLUGIN_VERSION', '2.3.4');
22
  }
23
  if (!defined('QLWCDC_PLUGIN_FILE')) {
24
  define('QLWCDC_PLUGIN_FILE', __FILE__);
3
  /**
4
  * Plugin Name: WooCommerce Direct Checkout
5
  * Description: Simplifies the checkout process to improve your sales rate.
6
+ * Version: 2.3.5
7
  * Author: QuadLayers
8
  * Author URI: https://www.quadlayers.com
9
  * Copyright: 2019 QuadLayers (https://www.quadlayers.com)
18
  define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
19
  }
20
  if (!defined('QLWCDC_PLUGIN_VERSION')) {
21
+ define('QLWCDC_PLUGIN_VERSION', '2.3.5');
22
  }
23
  if (!defined('QLWCDC_PLUGIN_FILE')) {
24
  define('QLWCDC_PLUGIN_FILE', __FILE__);