Version Description
- Fix: wordpress 5.2 compatibility
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Direct Checkout |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- includes/purchase.php +20 -23
- readme.txt +5 -2
- woocommerce-direct-checkout.php +12 -57
includes/purchase.php
CHANGED
@@ -24,8 +24,8 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
24 |
$hide_save_button = true;
|
25 |
?>
|
26 |
<div class="wrap about-wrap full-width-layout qlwrap">
|
27 |
-
<div class="
|
28 |
-
<div class="
|
29 |
<div class="welcome-header">
|
30 |
<h1><?php esc_html_e('Premium', 'woocommerce-direct-checkout'); ?></h1>
|
31 |
<div class="about-description">
|
@@ -36,55 +36,45 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
36 |
<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>
|
37 |
</div>
|
38 |
<hr/>
|
39 |
-
<div class="feature-section">
|
40 |
<h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
|
41 |
<p>
|
42 |
<?php esc_html_e('WooCommerce Direct Checkout allows you to include the cart form in the checkout page allowing your users to edit the cart and confirm the order on the same page.', 'woocommerce-direct-checkout'); ?>
|
43 |
</p>
|
44 |
</div>
|
45 |
-
<div class="feature-section">
|
46 |
<h3><?php esc_html_e('Remove checkout fields', 'woocommerce-direct-checkout'); ?></h3>
|
47 |
<p>
|
48 |
<?php esc_html_e('Our checkout settings allow you to easily remove the unnecessary fields and reduce the user spend completing those fields like the order comments, shipping address, coupon form, policy text, and terms and conditions.', 'woocommerce-direct-checkout'); ?>
|
49 |
</p>
|
50 |
</div>
|
51 |
-
<div class="feature-section">
|
52 |
<h3><?php esc_html_e('Remove checkout columns', 'woocommerce-direct-checkout'); ?></h3>
|
53 |
<p>
|
54 |
<?php esc_html_e('This option allows you to simplify the checkout page by removing the two columns in the checkout page.', 'woocommerce-direct-checkout'); ?>
|
55 |
</p>
|
56 |
</div>
|
57 |
</div>
|
58 |
-
<div class="
|
59 |
<img src="<?php echo plugins_url('/assets/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
|
60 |
</div>
|
61 |
</div>
|
62 |
-
<
|
63 |
-
<
|
64 |
-
|
65 |
-
|
66 |
-
<h1><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h1>
|
67 |
-
<div class="about-description">
|
68 |
-
<?php esc_html_e('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.', 'woocommerce-direct-checkout'); ?>
|
69 |
-
</div>
|
70 |
-
<hr/>
|
71 |
-
</div>
|
72 |
-
</div>
|
73 |
-
<div class="two-col">
|
74 |
-
<div class="col">
|
75 |
-
<div class="feature-section">
|
76 |
<h3><?php esc_html_e('Checkout redirect', 'woocommerce-direct-checkout'); ?></h3>
|
77 |
<p>
|
78 |
<?php esc_html_e('This option allows you to redirect your users directly to the checkout page reducing the total checkout process in one step.', 'woocommerce-direct-checkout'); ?>
|
79 |
</p>
|
80 |
</div>
|
81 |
-
<div class="feature-section">
|
82 |
<h3><?php esc_html_e('Quick purchase on single products', 'woocommerce-direct-checkout'); ?></h3>
|
83 |
<p>
|
84 |
<?php esc_html_e('If you want to give the option to the user to make a direct purchase or the default add to cart product you can include a direct purchase button to the products page.', 'woocommerce-direct-checkout'); ?>
|
85 |
</p>
|
86 |
</div>
|
87 |
-
<div class="feature-section">
|
88 |
<h3><?php esc_html_e('Quick view in product archives', 'woocommerce-direct-checkout'); ?></h3>
|
89 |
<p>
|
90 |
<?php esc_html_e('This option allows you to include a button which displays a quick view in the WooCommerce shop page and products categories.', 'woocommerce-direct-checkout'); ?>
|
@@ -93,8 +83,15 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
93 |
<?php esc_html_e('This is especially useful for the variable products because it allows users to select the products attributes and include directly into the cart.', 'woocommerce-direct-checkout'); ?>
|
94 |
</p>
|
95 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
</div>
|
97 |
-
<div class="
|
98 |
<br/>
|
99 |
<img src="<?php echo plugins_url('/assets/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
100 |
</div>
|
24 |
$hide_save_button = true;
|
25 |
?>
|
26 |
<div class="wrap about-wrap full-width-layout qlwrap">
|
27 |
+
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
28 |
+
<div class="column">
|
29 |
<div class="welcome-header">
|
30 |
<h1><?php esc_html_e('Premium', 'woocommerce-direct-checkout'); ?></h1>
|
31 |
<div class="about-description">
|
36 |
<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>
|
37 |
</div>
|
38 |
<hr/>
|
39 |
+
<div class="feature-section" style="padding: 10px 0;">
|
40 |
<h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
|
41 |
<p>
|
42 |
<?php esc_html_e('WooCommerce Direct Checkout allows you to include the cart form in the checkout page allowing your users to edit the cart and confirm the order on the same page.', 'woocommerce-direct-checkout'); ?>
|
43 |
</p>
|
44 |
</div>
|
45 |
+
<div class="feature-section" style="padding: 10px 0;">
|
46 |
<h3><?php esc_html_e('Remove checkout fields', 'woocommerce-direct-checkout'); ?></h3>
|
47 |
<p>
|
48 |
<?php esc_html_e('Our checkout settings allow you to easily remove the unnecessary fields and reduce the user spend completing those fields like the order comments, shipping address, coupon form, policy text, and terms and conditions.', 'woocommerce-direct-checkout'); ?>
|
49 |
</p>
|
50 |
</div>
|
51 |
+
<div class="feature-section" style="padding: 10px 0;">
|
52 |
<h3><?php esc_html_e('Remove checkout columns', 'woocommerce-direct-checkout'); ?></h3>
|
53 |
<p>
|
54 |
<?php esc_html_e('This option allows you to simplify the checkout page by removing the two columns in the checkout page.', 'woocommerce-direct-checkout'); ?>
|
55 |
</p>
|
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/>
|
63 |
+
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
64 |
+
<div class="column">
|
65 |
+
<div class="feature-section" style="padding: 10px 0;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
<h3><?php esc_html_e('Checkout redirect', 'woocommerce-direct-checkout'); ?></h3>
|
67 |
<p>
|
68 |
<?php esc_html_e('This option allows you to redirect your users directly to the checkout page reducing the total checkout process in one step.', 'woocommerce-direct-checkout'); ?>
|
69 |
</p>
|
70 |
</div>
|
71 |
+
<div class="feature-section" style="padding: 10px 0;">
|
72 |
<h3><?php esc_html_e('Quick purchase on single products', 'woocommerce-direct-checkout'); ?></h3>
|
73 |
<p>
|
74 |
<?php esc_html_e('If you want to give the option to the user to make a direct purchase or the default add to cart product you can include a direct purchase button to the products page.', 'woocommerce-direct-checkout'); ?>
|
75 |
</p>
|
76 |
</div>
|
77 |
+
<div class="feature-section" style="padding: 10px 0;">
|
78 |
<h3><?php esc_html_e('Quick view in product archives', 'woocommerce-direct-checkout'); ?></h3>
|
79 |
<p>
|
80 |
<?php esc_html_e('This option allows you to include a button which displays a quick view in the WooCommerce shop page and products categories.', 'woocommerce-direct-checkout'); ?>
|
83 |
<?php esc_html_e('This is especially useful for the variable products because it allows users to select the products attributes and include directly into the cart.', 'woocommerce-direct-checkout'); ?>
|
84 |
</p>
|
85 |
</div>
|
86 |
+
<div class="feature-section" style="padding: 10px 0;">
|
87 |
+
<hr/>
|
88 |
+
<h3><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h3>
|
89 |
+
<p>
|
90 |
+
<?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'); ?>
|
91 |
+
</p>
|
92 |
+
</div>
|
93 |
</div>
|
94 |
+
<div class="column">
|
95 |
<br/>
|
96 |
<img src="<?php echo plugins_url('/assets/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
97 |
</div>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -42,6 +42,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 2.1.0 =
|
46 |
* Fix: language textdomain
|
47 |
* Fix: woocommerce quick view modal css
|
2 |
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.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 2.1.1 =
|
46 |
+
* Fix: wordpress 5.2 compatibility
|
47 |
+
|
48 |
= 2.1.0 =
|
49 |
* Fix: language textdomain
|
50 |
* Fix: woocommerce quick view modal css
|
woocommerce-direct-checkout.php
CHANGED
@@ -2,12 +2,13 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
-
* Version: 2.1.
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2018 QuadLayers (https://www.quadlayers.com)
|
9 |
-
* Text Domain:
|
10 |
*/
|
|
|
11 |
if (!defined('ABSPATH')) {
|
12 |
die('-1');
|
13 |
}
|
@@ -15,7 +16,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.1.
|
19 |
}
|
20 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
21 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
@@ -63,74 +64,28 @@ if (!class_exists('QLWCDC')) {
|
|
63 |
wp_die();
|
64 |
}
|
65 |
|
66 |
-
|
67 |
|
68 |
if (!get_transient('qlwcdc-first-rating') && !get_user_meta(get_current_user_id(), 'qlwcdc-user-rating', true)) {
|
69 |
-
?>
|
70 |
-
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
71 |
-
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
72 |
-
<div class="notice-image">
|
73 |
-
<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); ?>>">
|
74 |
-
</div>
|
75 |
-
<div class="notice-content" style="margin-left: 15px;">
|
76 |
-
<p>
|
77 |
-
<?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
78 |
-
<br/>
|
79 |
-
<?php esc_html_e('Could you please give it a 5-star rating on WordPress? We know its a big favor, but we\'ve worked very much and very hard to release this great product. Your feedback will boost our motivation and help us promote and continue to improve this product.', 'woocommerce-direct-checkout'); ?>
|
80 |
-
</p>
|
81 |
-
<a href="<?php echo esc_url(QLWCDC_REVIEW_URL); ?>" class="button-primary" target="_blank">
|
82 |
-
<?php esc_html_e('Yes, of course!', 'woocommerce-direct-checkout'); ?>
|
83 |
-
</a>
|
84 |
-
<a href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
|
85 |
-
<?php esc_html_e('Report a bug', 'woocommerce-direct-checkout'); ?>
|
86 |
-
</a>
|
87 |
-
</div>
|
88 |
-
</div>
|
89 |
-
</div>
|
90 |
-
<script>
|
91 |
-
(function ($) {
|
92 |
-
$('.qlwcdc-notice').on('click', '.notice-dismiss', function (e) {
|
93 |
-
e.preventDefault();
|
94 |
-
var notice_id = $(e.delegateTarget).data('notice_id');
|
95 |
-
$.ajax({
|
96 |
-
type: 'POST',
|
97 |
-
url: ajaxurl,
|
98 |
-
data: {
|
99 |
-
notice_id: notice_id,
|
100 |
-
action: 'qlwcdc_dismiss_notice',
|
101 |
-
},
|
102 |
-
success: function (response) {
|
103 |
-
console.log(response);
|
104 |
-
},
|
105 |
-
});
|
106 |
-
});
|
107 |
-
})(jQuery);
|
108 |
-
</script>
|
109 |
-
<?php
|
110 |
-
}
|
111 |
-
} */
|
112 |
-
|
113 |
-
function add_notices() {
|
114 |
-
if (!get_user_meta(get_current_user_id(), 'qlwcdc-update-notice', true)) {
|
115 |
?>
|
116 |
-
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-
|
117 |
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
118 |
<div class="notice-image">
|
119 |
<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); ?>>">
|
120 |
</div>
|
121 |
<div class="notice-content" style="margin-left: 15px;">
|
122 |
<p>
|
123 |
-
<?php printf(esc_html__('Hello!
|
124 |
<br/>
|
125 |
-
<?php esc_html_e('We\'ve worked very much and very hard to release this great product. Your feedback will boost our motivation and help us promote and continue to improve this product.', 'woocommerce-direct-checkout'); ?>
|
126 |
</p>
|
127 |
-
<a href="<?php echo esc_url(
|
128 |
-
<?php esc_html_e('
|
129 |
</a>
|
130 |
<a href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
|
131 |
<?php esc_html_e('Report a bug', 'woocommerce-direct-checkout'); ?>
|
132 |
</a>
|
133 |
-
</div>
|
134 |
</div>
|
135 |
</div>
|
136 |
<script>
|
@@ -154,7 +109,7 @@ if (!class_exists('QLWCDC')) {
|
|
154 |
</script>
|
155 |
<?php
|
156 |
}
|
157 |
-
}
|
158 |
|
159 |
function get_product_option($product_id = null, $meta_key = null, $default = null) {
|
160 |
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
+
* Version: 2.1.1
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2018 QuadLayers (https://www.quadlayers.com)
|
9 |
+
* Text Domain: woocommerce-direct-checkout
|
10 |
*/
|
11 |
+
|
12 |
if (!defined('ABSPATH')) {
|
13 |
die('-1');
|
14 |
}
|
16 |
define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
|
17 |
}
|
18 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
19 |
+
define('QLWCDC_PLUGIN_VERSION', '2.1.1');
|
20 |
}
|
21 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
22 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
64 |
wp_die();
|
65 |
}
|
66 |
|
67 |
+
function add_notices() {
|
68 |
|
69 |
if (!get_transient('qlwcdc-first-rating') && !get_user_meta(get_current_user_id(), 'qlwcdc-user-rating', true)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
?>
|
71 |
+
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
72 |
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
73 |
<div class="notice-image">
|
74 |
<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); ?>>">
|
75 |
</div>
|
76 |
<div class="notice-content" style="margin-left: 15px;">
|
77 |
<p>
|
78 |
+
<?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
79 |
<br/>
|
80 |
+
<?php esc_html_e('Could you please give it a 5-star rating on WordPress? We know its a big favor, but we\'ve worked very much and very hard to release this great product. Your feedback will boost our motivation and help us promote and continue to improve this product.', 'woocommerce-direct-checkout'); ?>
|
81 |
</p>
|
82 |
+
<a href="<?php echo esc_url(QLWCDC_REVIEW_URL); ?>" class="button-primary" target="_blank">
|
83 |
+
<?php esc_html_e('Yes, of course!', 'woocommerce-direct-checkout'); ?>
|
84 |
</a>
|
85 |
<a href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
|
86 |
<?php esc_html_e('Report a bug', 'woocommerce-direct-checkout'); ?>
|
87 |
</a>
|
88 |
+
</div>
|
89 |
</div>
|
90 |
</div>
|
91 |
<script>
|
109 |
</script>
|
110 |
<?php
|
111 |
}
|
112 |
+
}
|
113 |
|
114 |
function get_product_option($product_id = null, $meta_key = null, $default = null) {
|
115 |
|