Version Description
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Direct Checkout |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.5 to 2.3.7
- assets/backend/qlwcdc-admin.js +103 -95
- assets/backend/qlwcdc-admin.min.js +1 -2
- includes/controller/general.php +100 -97
- includes/controller/premium.php +39 -39
- includes/controller/suggestions.php +71 -71
- includes/install.php +103 -103
- includes/notices.php +92 -92
- includes/qlwcdc.php +14 -8
- includes/suggestions.php +140 -140
- includes/view/backend/pages/archives.php +1 -1
- includes/view/backend/pages/checkout.php +1 -1
- includes/view/backend/pages/general.php +1 -1
- includes/view/backend/pages/parts/header.php +47 -47
- includes/view/backend/pages/parts/tabs.php +4 -4
- includes/view/backend/pages/premium.php +74 -74
- includes/view/backend/pages/products.php +1 -1
- includes/view/frontend/general.php +34 -6
- languages/woocommerce-direct-checkout.pot +545 -545
- readme.txt +6 -3
- woocommerce-direct-checkout.php +3 -3
assets/backend/qlwcdc-admin.js
CHANGED
@@ -1,96 +1,104 @@
|
|
1 |
-
(function ($) {
|
2 |
-
'use strict';
|
3 |
-
$(window).on('load', function (e) {
|
4 |
-
// General
|
5 |
-
// -----------------------------------------------------------------
|
6 |
-
$('select#qlwcdc_add_to_cart_redirect_page').change(function () {
|
7 |
-
if ('url' === $(this).val() && 'yes' == $('select#qlwcdc_add_to_cart_redirect').val()) {
|
8 |
-
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr, p').fadeIn();
|
9 |
-
} else {
|
10 |
-
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
11 |
-
}
|
12 |
-
});
|
13 |
-
$('select#qlwcdc_add_to_cart_redirect').change(function () {
|
14 |
-
if ('yes' === $(this).val()) {
|
15 |
-
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
16 |
-
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr, p').fadeIn();
|
17 |
-
} else {
|
18 |
-
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
19 |
-
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
20 |
-
}
|
21 |
-
}).change();
|
22 |
-
$('select#qlwcdc_add_to_cart_redirect_page').change(function () {
|
23 |
-
if ('url' === $(this).val() && 'redirect' == $('select#qlwcdc_add_to_cart').val()) {
|
24 |
-
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr, p').fadeIn();
|
25 |
-
} else {
|
26 |
-
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
27 |
-
}
|
28 |
-
});
|
29 |
-
$('select#qlwcdc_add_to_cart').change(function () {
|
30 |
-
if ('ajax' === $(this).val()) {
|
31 |
-
$('select#qlwcdc_add_to_cart_ajax_button').closest('tr, p').fadeIn();
|
32 |
-
$('select#qlwcdc_add_to_cart_ajax_message').closest('tr, p').fadeIn();
|
33 |
-
} else {
|
34 |
-
$('select#qlwcdc_add_to_cart_ajax_button').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
35 |
-
$('select#qlwcdc_add_to_cart_ajax_message').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
36 |
-
}
|
37 |
-
if ('redirect' === $(this).val()) {
|
38 |
-
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr, p').fadeIn();
|
39 |
-
} else {
|
40 |
-
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
41 |
-
}
|
42 |
-
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
43 |
-
}).change();
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
$('input#
|
50 |
-
}
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
$('select#
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
$('select#
|
68 |
-
|
69 |
-
$('
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
$('
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
$('
|
80 |
-
|
81 |
-
$('input#
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
$('input#
|
90 |
-
}
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
}(jQuery));
|
1 |
+
(function ($) {
|
2 |
+
'use strict';
|
3 |
+
$(window).on('load', function (e) {
|
4 |
+
// General
|
5 |
+
// -----------------------------------------------------------------
|
6 |
+
$('select#qlwcdc_add_to_cart_redirect_page').change(function () {
|
7 |
+
if ('url' === $(this).val() && 'yes' == $('select#qlwcdc_add_to_cart_redirect').val()) {
|
8 |
+
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr, p').fadeIn();
|
9 |
+
} else {
|
10 |
+
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
11 |
+
}
|
12 |
+
});
|
13 |
+
$('select#qlwcdc_add_to_cart_redirect').change(function () {
|
14 |
+
if ('yes' === $(this).val()) {
|
15 |
+
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
16 |
+
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr, p').fadeIn();
|
17 |
+
} else {
|
18 |
+
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
19 |
+
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
20 |
+
}
|
21 |
+
}).change();
|
22 |
+
$('select#qlwcdc_add_to_cart_redirect_page').change(function () {
|
23 |
+
if ('url' === $(this).val() && 'redirect' == $('select#qlwcdc_add_to_cart').val()) {
|
24 |
+
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr, p').fadeIn();
|
25 |
+
} else {
|
26 |
+
$('input#qlwcdc_add_to_cart_redirect_url').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
27 |
+
}
|
28 |
+
});
|
29 |
+
$('select#qlwcdc_add_to_cart').change(function () {
|
30 |
+
if ('ajax' === $(this).val()) {
|
31 |
+
$('select#qlwcdc_add_to_cart_ajax_button').closest('tr, p').fadeIn();
|
32 |
+
$('select#qlwcdc_add_to_cart_ajax_message').closest('tr, p').fadeIn();
|
33 |
+
} else {
|
34 |
+
$('select#qlwcdc_add_to_cart_ajax_button').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
35 |
+
$('select#qlwcdc_add_to_cart_ajax_message').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
36 |
+
}
|
37 |
+
if ('redirect' === $(this).val()) {
|
38 |
+
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr, p').fadeIn();
|
39 |
+
} else {
|
40 |
+
$('select#qlwcdc_add_to_cart_redirect_page').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
41 |
+
}
|
42 |
+
$('select#qlwcdc_add_to_cart_redirect_page').change();
|
43 |
+
}).change();
|
44 |
+
|
45 |
+
$('select#qlwcdc_replace_cart_url').change(function () {
|
46 |
+
if ('custom' === $(this).val()) {
|
47 |
+
$('input#qlwcdc_replace_cart_url_custom').closest('tr, p').fadeIn();
|
48 |
+
} else {
|
49 |
+
$('input#qlwcdc_replace_cart_url_custom').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
50 |
+
}
|
51 |
+
}).change();
|
52 |
+
// Archive
|
53 |
+
// -----------------------------------------------------------------
|
54 |
+
$('select#qlwcdc_add_archive_text').change(function () {
|
55 |
+
if ('yes' === $(this).val()) {
|
56 |
+
$('select#qlwcdc_add_archive_text_in').closest('tr, p').fadeIn();
|
57 |
+
$('input#qlwcdc_add_archive_text_content').closest('tr, p').fadeIn();
|
58 |
+
} else {
|
59 |
+
$('select#qlwcdc_add_archive_text_in').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
60 |
+
$('input#qlwcdc_add_archive_text_content').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
61 |
+
}
|
62 |
+
}).change();
|
63 |
+
// Product
|
64 |
+
// -----------------------------------------------------------------
|
65 |
+
$('select#qlwcdc_add_product_ajax').change(function () {
|
66 |
+
if ('yes' === $(this).val()) {
|
67 |
+
$('select#qlwcdc_add_product_ajax_alert').closest('tr, p').fadeIn();
|
68 |
+
} else {
|
69 |
+
$('select#qlwcdc_add_product_ajax_alert').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
70 |
+
}
|
71 |
+
}).change();
|
72 |
+
$('select#qlwcdc_add_product_quick_purchase').change(function () {
|
73 |
+
if ('yes' === $(this).val()) {
|
74 |
+
$('select#qlwcdc_add_product_quick_purchase_to').closest('tr, p').fadeIn();
|
75 |
+
$('select#qlwcdc_add_product_quick_purchase_type').closest('tr, p').fadeIn();
|
76 |
+
$('input#qlwcdc_add_product_quick_purchase_class').closest('tr, p').fadeIn();
|
77 |
+
$('input#qlwcdc_add_product_quick_purchase_text').closest('tr, p').fadeIn();
|
78 |
+
} else {
|
79 |
+
$('select#qlwcdc_add_product_quick_purchase_to').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
80 |
+
$('select#qlwcdc_add_product_quick_purchase_type').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
81 |
+
$('input#qlwcdc_add_product_quick_purchase_class').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
82 |
+
$('input#qlwcdc_add_product_quick_purchase_text').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
83 |
+
}
|
84 |
+
}).change();
|
85 |
+
$('select#qlwcdc_add_product_text').change(function () {
|
86 |
+
if ('yes' === $(this).val()) {
|
87 |
+
$('input#qlwcdc_add_product_text_content').closest('tr, p').fadeIn();
|
88 |
+
} else {
|
89 |
+
$('input#qlwcdc_add_product_text_content').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
90 |
+
}
|
91 |
+
}).change();
|
92 |
+
// Checkout
|
93 |
+
// -----------------------------------------------------------------
|
94 |
+
$('select#qlwcdc_add_checkout_cart').change(function () {
|
95 |
+
if ('yes' === $(this).val()) {
|
96 |
+
$('select#qlwcdc_add_checkout_cart_fields').closest('tr, p').fadeIn();
|
97 |
+
$('input#qlwcdc_add_checkout_cart_class').closest('tr, p').fadeIn();
|
98 |
+
} else {
|
99 |
+
$('select#qlwcdc_add_checkout_cart_fields').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
100 |
+
$('input#qlwcdc_add_checkout_cart_class').closest('tr:not(.qlwcdc-premium-field), p').fadeOut();
|
101 |
+
}
|
102 |
+
}).change();
|
103 |
+
});
|
104 |
}(jQuery));
|
assets/backend/qlwcdc-admin.min.js
CHANGED
@@ -1,2 +1 @@
|
|
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));
|
1 |
+
!function($){"use strict";$(window).on("load",(function(e){$("select#qlwcdc_add_to_cart_redirect_page").change((function(){"url"===$(this).val()&&"yes"==$("select#qlwcdc_add_to_cart_redirect").val()?$("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn():$("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()})),$("select#qlwcdc_add_to_cart_redirect").change((function(){"yes"===$(this).val()?($("select#qlwcdc_add_to_cart_redirect_page").change(),$("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn()):($("select#qlwcdc_add_to_cart_redirect_page").change(),$("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut())})).change(),$("select#qlwcdc_add_to_cart_redirect_page").change((function(){"url"===$(this).val()&&"redirect"==$("select#qlwcdc_add_to_cart").val()?$("input#qlwcdc_add_to_cart_redirect_url").closest("tr, p").fadeIn():$("input#qlwcdc_add_to_cart_redirect_url").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()})),$("select#qlwcdc_add_to_cart").change((function(){"ajax"===$(this).val()?($("select#qlwcdc_add_to_cart_ajax_button").closest("tr, p").fadeIn(),$("select#qlwcdc_add_to_cart_ajax_message").closest("tr, p").fadeIn()):($("select#qlwcdc_add_to_cart_ajax_button").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("select#qlwcdc_add_to_cart_ajax_message").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()),"redirect"===$(this).val()?$("select#qlwcdc_add_to_cart_redirect_page").closest("tr, p").fadeIn():$("select#qlwcdc_add_to_cart_redirect_page").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("select#qlwcdc_add_to_cart_redirect_page").change()})).change(),$("select#qlwcdc_replace_cart_url").change((function(){"custom"===$(this).val()?$("input#qlwcdc_replace_cart_url_custom").closest("tr, p").fadeIn():$("input#qlwcdc_replace_cart_url_custom").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()})).change(),$("select#qlwcdc_add_archive_text").change((function(){"yes"===$(this).val()?($("select#qlwcdc_add_archive_text_in").closest("tr, p").fadeIn(),$("input#qlwcdc_add_archive_text_content").closest("tr, p").fadeIn()):($("select#qlwcdc_add_archive_text_in").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("input#qlwcdc_add_archive_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut())})).change(),$("select#qlwcdc_add_product_ajax").change((function(){"yes"===$(this).val()?$("select#qlwcdc_add_product_ajax_alert").closest("tr, p").fadeIn():$("select#qlwcdc_add_product_ajax_alert").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()})).change(),$("select#qlwcdc_add_product_quick_purchase").change((function(){"yes"===$(this).val()?($("select#qlwcdc_add_product_quick_purchase_to").closest("tr, p").fadeIn(),$("select#qlwcdc_add_product_quick_purchase_type").closest("tr, p").fadeIn(),$("input#qlwcdc_add_product_quick_purchase_class").closest("tr, p").fadeIn(),$("input#qlwcdc_add_product_quick_purchase_text").closest("tr, p").fadeIn()):($("select#qlwcdc_add_product_quick_purchase_to").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("select#qlwcdc_add_product_quick_purchase_type").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("input#qlwcdc_add_product_quick_purchase_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("input#qlwcdc_add_product_quick_purchase_text").closest("tr:not(.qlwcdc-premium-field), p").fadeOut())})).change(),$("select#qlwcdc_add_product_text").change((function(){"yes"===$(this).val()?$("input#qlwcdc_add_product_text_content").closest("tr, p").fadeIn():$("input#qlwcdc_add_product_text_content").closest("tr:not(.qlwcdc-premium-field), p").fadeOut()})).change(),$("select#qlwcdc_add_checkout_cart").change((function(){"yes"===$(this).val()?($("select#qlwcdc_add_checkout_cart_fields").closest("tr, p").fadeIn(),$("input#qlwcdc_add_checkout_cart_class").closest("tr, p").fadeIn()):($("select#qlwcdc_add_checkout_cart_fields").closest("tr:not(.qlwcdc-premium-field), p").fadeOut(),$("input#qlwcdc_add_checkout_cart_class").closest("tr:not(.qlwcdc-premium-field), p").fadeOut())})).change()}))}(jQuery);
|
|
includes/controller/general.php
CHANGED
@@ -1,129 +1,132 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class QLWCDC_Controller_General
|
|
|
4 |
|
5 |
protected static $instance;
|
6 |
|
7 |
-
public function __construct()
|
|
|
8 |
|
9 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/view/frontend/general.php');
|
10 |
-
|
11 |
add_action('qlwcdc_sections_header', array($this, 'add_header'));
|
12 |
add_action('woocommerce_sections_' . QLWCDC_PREFIX, array($this, 'add_section'), 99);
|
13 |
add_action('woocommerce_settings_save_' . QLWCDC_PREFIX, array($this, 'save_settings'));
|
14 |
}
|
15 |
|
16 |
-
public static function instance()
|
|
|
17 |
if (!isset(self::$instance)) {
|
18 |
self::$instance = new self();
|
19 |
}
|
20 |
return self::$instance;
|
21 |
}
|
22 |
|
23 |
-
function add_header()
|
|
|
24 |
global $current_section;
|
25 |
-
|
26 |
-
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=' . QLWCDC_PREFIX . '§ion'); ?>" class="<?php echo (
|
27 |
-
|
28 |
}
|
29 |
|
30 |
-
function get_settings()
|
|
|
31 |
|
32 |
return array(
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
47 |
-
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
48 |
-
),
|
49 |
-
'default' => 'no',
|
50 |
-
),
|
51 |
-
array(
|
52 |
-
'name' => esc_html__('Added to cart link', 'woocommerce-direct-checkout'),
|
53 |
-
'desc_tip' => esc_html__('Replace "View Cart" link with direct checkout.', 'woocommerce-direct-checkout'),
|
54 |
-
'id' => 'qlwcdc_add_to_cart_link',
|
55 |
-
'type' => 'select',
|
56 |
-
'class' => 'chosen_select',
|
57 |
-
'options' => array(
|
58 |
-
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
59 |
-
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
60 |
-
),
|
61 |
-
'default' => 'no',
|
62 |
-
),
|
63 |
-
array(
|
64 |
-
'name' => esc_html__('Added to cart redirect', 'woocommerce-direct-checkout'),
|
65 |
-
'desc_tip' => esc_html__('Add to cart button behaviour.', 'woocommerce-direct-checkout'),
|
66 |
-
'id' => 'qlwcdc_add_to_cart',
|
67 |
-
'type' => 'select',
|
68 |
-
'class' => 'chosen_select',
|
69 |
-
'options' => array(
|
70 |
-
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
71 |
-
//'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
72 |
-
'redirect' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
73 |
-
),
|
74 |
-
'default' => 'no',
|
75 |
-
),
|
76 |
-
/* 'add_to_cart_ajax_button' => array(
|
77 |
-
'name' => esc_html__('Added to cart button', 'woocommerce-direct-checkout'),
|
78 |
-
'desc_tip' => esc_html__('Show or hide the added to cart forward button.', 'woocommerce-direct-checkout'),
|
79 |
-
'id' => 'qlwcdc_add_to_cart_ajax_button',
|
80 |
-
'type' => 'select',
|
81 |
-
'options' => array(
|
82 |
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
83 |
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
95 |
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
96 |
-
),
|
97 |
-
'default' => 'yes',
|
98 |
-
), */
|
99 |
-
array(
|
100 |
-
'name' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
101 |
-
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
102 |
-
'id' => 'qlwcdc_add_to_cart_redirect_page',
|
103 |
-
'type' => 'select',
|
104 |
-
'class' => 'chosen_select',
|
105 |
-
'options' => array(
|
106 |
-
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
107 |
-
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
108 |
-
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
109 |
-
),
|
110 |
-
'default' => 'cart',
|
111 |
),
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
),
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
);
|
124 |
}
|
125 |
|
126 |
-
function add_section()
|
|
|
127 |
|
128 |
global $current_section;
|
129 |
|
@@ -131,11 +134,12 @@ class QLWCDC_Controller_General {
|
|
131 |
|
132 |
$settings = $this->get_settings();
|
133 |
|
134 |
-
include_once(
|
135 |
}
|
136 |
}
|
137 |
|
138 |
-
function save_settings()
|
|
|
139 |
|
140 |
global $current_section;
|
141 |
|
@@ -144,7 +148,6 @@ class QLWCDC_Controller_General {
|
|
144 |
woocommerce_update_options($this->get_settings());
|
145 |
}
|
146 |
}
|
147 |
-
|
148 |
}
|
149 |
|
150 |
QLWCDC_Controller_General::instance();
|
1 |
<?php
|
2 |
|
3 |
+
class QLWCDC_Controller_General
|
4 |
+
{
|
5 |
|
6 |
protected static $instance;
|
7 |
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
|
11 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/view/frontend/general.php');
|
12 |
+
|
13 |
add_action('qlwcdc_sections_header', array($this, 'add_header'));
|
14 |
add_action('woocommerce_sections_' . QLWCDC_PREFIX, array($this, 'add_section'), 99);
|
15 |
add_action('woocommerce_settings_save_' . QLWCDC_PREFIX, array($this, 'save_settings'));
|
16 |
}
|
17 |
|
18 |
+
public static function instance()
|
19 |
+
{
|
20 |
if (!isset(self::$instance)) {
|
21 |
self::$instance = new self();
|
22 |
}
|
23 |
return self::$instance;
|
24 |
}
|
25 |
|
26 |
+
function add_header()
|
27 |
+
{
|
28 |
global $current_section;
|
29 |
+
?>
|
30 |
+
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=' . QLWCDC_PREFIX . '§ion'); ?>" class="<?php echo ($current_section == '' ? 'current' : ''); ?>"><?php esc_html_e('General', 'woocommerce-direct-checkout'); ?></a> | </li>
|
31 |
+
<?php
|
32 |
}
|
33 |
|
34 |
+
function get_settings()
|
35 |
+
{
|
36 |
|
37 |
return array(
|
38 |
+
array(
|
39 |
+
'name' => esc_html__('General', 'woocommerce-direct-checkout'),
|
40 |
+
'type' => 'title',
|
41 |
+
'desc' => esc_html__('Simplifies the checkout process.', 'woocommerce-direct-checkout'),
|
42 |
+
'id' => 'qlwcdc_section_title'
|
43 |
+
),
|
44 |
+
array(
|
45 |
+
'name' => esc_html__('Added to cart alert', 'woocommerce-direct-checkout'),
|
46 |
+
'desc_tip' => esc_html__('Replace "View Cart" alert with direct checkout.', 'woocommerce-direct-checkout'),
|
47 |
+
'id' => 'qlwcdc_add_to_cart_message',
|
48 |
+
'type' => 'select',
|
49 |
+
'class' => 'chosen_select',
|
50 |
+
'options' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
52 |
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
53 |
+
),
|
54 |
+
'default' => 'no',
|
55 |
+
),
|
56 |
+
array(
|
57 |
+
'name' => esc_html__('Added to cart link', 'woocommerce-direct-checkout'),
|
58 |
+
'desc_tip' => esc_html__('Replace "View Cart" link with direct checkout.', 'woocommerce-direct-checkout'),
|
59 |
+
'id' => 'qlwcdc_add_to_cart_link',
|
60 |
+
'type' => 'select',
|
61 |
+
'class' => 'chosen_select',
|
62 |
+
'options' => array(
|
63 |
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
64 |
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
),
|
66 |
+
'default' => 'no',
|
67 |
+
),
|
68 |
+
array(
|
69 |
+
'name' => esc_html__('Added to cart redirect', 'woocommerce-direct-checkout'),
|
70 |
+
'desc_tip' => esc_html__('Add to cart button behaviour.', 'woocommerce-direct-checkout'),
|
71 |
+
'id' => 'qlwcdc_add_to_cart',
|
72 |
+
'type' => 'select',
|
73 |
+
'class' => 'chosen_select',
|
74 |
+
'options' => array(
|
75 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
76 |
+
//'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
77 |
+
'redirect' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
78 |
+
),
|
79 |
+
'default' => 'no',
|
80 |
+
),
|
81 |
+
array(
|
82 |
+
'name' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
83 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
84 |
+
'id' => 'qlwcdc_add_to_cart_redirect_page',
|
85 |
+
'type' => 'select',
|
86 |
+
'class' => 'chosen_select',
|
87 |
+
'options' => array(
|
88 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
89 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
90 |
+
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
91 |
),
|
92 |
+
'default' => 'cart',
|
93 |
+
),
|
94 |
+
array(
|
95 |
+
'name' => esc_html__('Added to cart redirect to custom url', 'woocommerce-direct-checkout'),
|
96 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
97 |
+
'id' => 'qlwcdc_add_to_cart_redirect_url',
|
98 |
+
'type' => 'text',
|
99 |
+
'placeholder' => wc_get_checkout_url(),
|
100 |
+
),
|
101 |
+
array(
|
102 |
+
'name' => esc_html__('Replace cart url', 'woocommerce-direct-checkout'),
|
103 |
+
'desc_tip' => esc_html__('Replace cart url.', 'woocommerce-direct-checkout'),
|
104 |
+
'id' => 'qlwcdc_replace_cart_url',
|
105 |
+
'type' => 'select',
|
106 |
+
'class' => 'chosen_select',
|
107 |
+
'options' => array(
|
108 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
109 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
110 |
+
'custom' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
111 |
+
),
|
112 |
+
'default' => 'no',
|
113 |
+
),
|
114 |
+
array(
|
115 |
+
'name' => esc_html__('Replace cart url with custom url', 'woocommerce-direct-checkout'),
|
116 |
+
'desc_tip' => esc_html__('Replace cart url with custom url.', 'woocommerce-direct-checkout'),
|
117 |
+
'id' => 'qlwcdc_replace_cart_url_custom',
|
118 |
+
'type' => 'text',
|
119 |
+
'placeholder' => wc_get_checkout_url(),
|
120 |
+
),
|
121 |
+
array(
|
122 |
+
'type' => 'sectionend',
|
123 |
+
'id' => 'qlwcdc_section_end'
|
124 |
+
)
|
125 |
);
|
126 |
}
|
127 |
|
128 |
+
function add_section()
|
129 |
+
{
|
130 |
|
131 |
global $current_section;
|
132 |
|
134 |
|
135 |
$settings = $this->get_settings();
|
136 |
|
137 |
+
include_once(QLWCDC_PLUGIN_DIR . 'includes/view/backend/pages/general.php');
|
138 |
}
|
139 |
}
|
140 |
|
141 |
+
function save_settings()
|
142 |
+
{
|
143 |
|
144 |
global $current_section;
|
145 |
|
148 |
woocommerce_update_options($this->get_settings());
|
149 |
}
|
150 |
}
|
|
|
151 |
}
|
152 |
|
153 |
QLWCDC_Controller_General::instance();
|
includes/controller/premium.php
CHANGED
@@ -1,39 +1,39 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class QLWCDC_Controller_Premium {
|
4 |
-
|
5 |
-
protected static $_instance;
|
6 |
-
|
7 |
-
public function __construct() {
|
8 |
-
add_action('qlwcdc_sections_header', array($this, 'add_header'));
|
9 |
-
add_action('admin_menu', array($this, 'add_menu'));
|
10 |
-
}
|
11 |
-
|
12 |
-
public static function instance() {
|
13 |
-
if (is_null(self::$_instance)) {
|
14 |
-
self::$_instance = new self();
|
15 |
-
}
|
16 |
-
return self::$_instance;
|
17 |
-
}
|
18 |
-
|
19 |
-
function add_header() {
|
20 |
-
?>
|
21 |
-
<li><a href="<?php echo admin_url('admin.php?page=' . QLWCDC_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-direct-checkout'); ?></a></li> |
|
22 |
-
<?php
|
23 |
-
}
|
24 |
-
|
25 |
-
// Admin
|
26 |
-
// -------------------------------------------------------------------------
|
27 |
-
|
28 |
-
public function add_page() {
|
29 |
-
include_once( QLWCDC_PLUGIN_DIR . 'includes/view/backend/pages/premium.php' );
|
30 |
-
}
|
31 |
-
|
32 |
-
function add_menu() {
|
33 |
-
add_menu_page(QLWCDC_PLUGIN_NAME, QLWCDC_PLUGIN_NAME, 'manage_woocommerce', QLWCDC_PREFIX, array($this, 'add_page'));
|
34 |
-
add_submenu_page(QLWCDC_PREFIX, esc_html__('Premium', 'woocommerce-direct-checkout'), esc_html__('Premium', 'woocommerce-direct-checkout'), 'manage_woocommerce', QLWCDC_PREFIX, array($this, 'add_page'));
|
35 |
-
}
|
36 |
-
|
37 |
-
}
|
38 |
-
|
39 |
-
QLWCDC_Controller_Premium::instance();
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class QLWCDC_Controller_Premium {
|
4 |
+
|
5 |
+
protected static $_instance;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_action('qlwcdc_sections_header', array($this, 'add_header'));
|
9 |
+
add_action('admin_menu', array($this, 'add_menu'));
|
10 |
+
}
|
11 |
+
|
12 |
+
public static function instance() {
|
13 |
+
if (is_null(self::$_instance)) {
|
14 |
+
self::$_instance = new self();
|
15 |
+
}
|
16 |
+
return self::$_instance;
|
17 |
+
}
|
18 |
+
|
19 |
+
function add_header() {
|
20 |
+
?>
|
21 |
+
<li><a href="<?php echo admin_url('admin.php?page=' . QLWCDC_PREFIX); ?>"><?php echo esc_html__('Premium', 'woocommerce-direct-checkout'); ?></a></li> |
|
22 |
+
<?php
|
23 |
+
}
|
24 |
+
|
25 |
+
// Admin
|
26 |
+
// -------------------------------------------------------------------------
|
27 |
+
|
28 |
+
public function add_page() {
|
29 |
+
include_once( QLWCDC_PLUGIN_DIR . 'includes/view/backend/pages/premium.php' );
|
30 |
+
}
|
31 |
+
|
32 |
+
function add_menu() {
|
33 |
+
add_menu_page(QLWCDC_PLUGIN_NAME, QLWCDC_PLUGIN_NAME, 'manage_woocommerce', QLWCDC_PREFIX, array($this, 'add_page'));
|
34 |
+
add_submenu_page(QLWCDC_PREFIX, esc_html__('Premium', 'woocommerce-direct-checkout'), esc_html__('Premium', 'woocommerce-direct-checkout'), 'manage_woocommerce', QLWCDC_PREFIX, array($this, 'add_page'));
|
35 |
+
}
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
QLWCDC_Controller_Premium::instance();
|
includes/controller/suggestions.php
CHANGED
@@ -1,71 +1,71 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class QLWCDC_Controller_Suggestions {
|
4 |
-
|
5 |
-
protected static $_instance;
|
6 |
-
|
7 |
-
public function __construct() {
|
8 |
-
add_action('admin_menu', array($this, 'add_menu'));
|
9 |
-
add_action('admin_init', array($this, 'add_redirect'));
|
10 |
-
add_action('admin_head', array($this, 'remove_menu'));
|
11 |
-
add_filter('network_admin_url', array($this, 'network_admin_url'), 10, 2);
|
12 |
-
}
|
13 |
-
|
14 |
-
public static function instance() {
|
15 |
-
if (is_null(self::$_instance)) {
|
16 |
-
self::$_instance = new self();
|
17 |
-
}
|
18 |
-
return self::$_instance;
|
19 |
-
}
|
20 |
-
|
21 |
-
// Admin
|
22 |
-
// -------------------------------------------------------------------------
|
23 |
-
|
24 |
-
public function add_page() {
|
25 |
-
include_once( QLWCDC_PLUGIN_DIR . 'includes/suggestions.php' );
|
26 |
-
include_once( QLWCDC_PLUGIN_DIR . 'includes/view/backend/pages/suggestions.php' );
|
27 |
-
}
|
28 |
-
|
29 |
-
public function add_menu() {
|
30 |
-
add_submenu_page(QLWCDC_PREFIX, __('Suggestions', 'woocommerce-direct-checkout'), __('Suggestions', 'woocommerce-direct-checkout'), 'manage_woocommerce', QLWCDC_PREFIX . '_suggestions', array($this, 'add_page'));
|
31 |
-
}
|
32 |
-
|
33 |
-
// fix for activateUrl on install now button
|
34 |
-
public function network_admin_url($url, $path) {
|
35 |
-
|
36 |
-
if (wp_doing_ajax() && !is_network_admin()) {
|
37 |
-
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'install-plugin') {
|
38 |
-
if (strpos($url, 'plugins.php') !== false) {
|
39 |
-
$url = self_admin_url($path);
|
40 |
-
}
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
return $url;
|
45 |
-
}
|
46 |
-
|
47 |
-
public function add_redirect() {
|
48 |
-
|
49 |
-
if (isset($_REQUEST['activate']) && $_REQUEST['activate'] == 'true') {
|
50 |
-
if (wp_get_referer() == admin_url('admin.php?page=' . QLWCDC_PREFIX . '_suggestions')) {
|
51 |
-
wp_redirect(admin_url('admin.php?page=' . QLWCDC_PREFIX . '_suggestions'));
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
public function remove_menu() {
|
57 |
-
?>
|
58 |
-
<style>
|
59 |
-
|
60 |
-
li.toplevel_page_<?php echo QLWCDC_PREFIX; ?> {
|
61 |
-
display:none;
|
62 |
-
}
|
63 |
-
|
64 |
-
</style>
|
65 |
-
<?php
|
66 |
-
}
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
-
QLWCDC_Controller_Suggestions::instance();
|
71 |
-
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class QLWCDC_Controller_Suggestions {
|
4 |
+
|
5 |
+
protected static $_instance;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_action('admin_menu', array($this, 'add_menu'));
|
9 |
+
add_action('admin_init', array($this, 'add_redirect'));
|
10 |
+
add_action('admin_head', array($this, 'remove_menu'));
|
11 |
+
add_filter('network_admin_url', array($this, 'network_admin_url'), 10, 2);
|
12 |
+
}
|
13 |
+
|
14 |
+
public static function instance() {
|
15 |
+
if (is_null(self::$_instance)) {
|
16 |
+
self::$_instance = new self();
|
17 |
+
}
|
18 |
+
return self::$_instance;
|
19 |
+
}
|
20 |
+
|
21 |
+
// Admin
|
22 |
+
// -------------------------------------------------------------------------
|
23 |
+
|
24 |
+
public function add_page() {
|
25 |
+
include_once( QLWCDC_PLUGIN_DIR . 'includes/suggestions.php' );
|
26 |
+
include_once( QLWCDC_PLUGIN_DIR . 'includes/view/backend/pages/suggestions.php' );
|
27 |
+
}
|
28 |
+
|
29 |
+
public function add_menu() {
|
30 |
+
add_submenu_page(QLWCDC_PREFIX, __('Suggestions', 'woocommerce-direct-checkout'), __('Suggestions', 'woocommerce-direct-checkout'), 'manage_woocommerce', QLWCDC_PREFIX . '_suggestions', array($this, 'add_page'));
|
31 |
+
}
|
32 |
+
|
33 |
+
// fix for activateUrl on install now button
|
34 |
+
public function network_admin_url($url, $path) {
|
35 |
+
|
36 |
+
if (wp_doing_ajax() && !is_network_admin()) {
|
37 |
+
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'install-plugin') {
|
38 |
+
if (strpos($url, 'plugins.php') !== false) {
|
39 |
+
$url = self_admin_url($path);
|
40 |
+
}
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
return $url;
|
45 |
+
}
|
46 |
+
|
47 |
+
public function add_redirect() {
|
48 |
+
|
49 |
+
if (isset($_REQUEST['activate']) && $_REQUEST['activate'] == 'true') {
|
50 |
+
if (wp_get_referer() == admin_url('admin.php?page=' . QLWCDC_PREFIX . '_suggestions')) {
|
51 |
+
wp_redirect(admin_url('admin.php?page=' . QLWCDC_PREFIX . '_suggestions'));
|
52 |
+
}
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
public function remove_menu() {
|
57 |
+
?>
|
58 |
+
<style>
|
59 |
+
|
60 |
+
li.toplevel_page_<?php echo QLWCDC_PREFIX; ?> {
|
61 |
+
display:none;
|
62 |
+
}
|
63 |
+
|
64 |
+
</style>
|
65 |
+
<?php
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
QLWCDC_Controller_Suggestions::instance();
|
71 |
+
|
includes/install.php
CHANGED
@@ -1,103 +1,103 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class QLWCDC_Install {
|
4 |
-
|
5 |
-
protected static $_instance;
|
6 |
-
|
7 |
-
public function __construct() {
|
8 |
-
register_activation_hook(QLWCDC_PLUGIN_FILE, array(__CLASS__, 'activation'));
|
9 |
-
register_deactivation_hook(QLWCDC_PLUGIN_FILE, array(__CLASS__, 'deactivation'));
|
10 |
-
self::import_old_settings();
|
11 |
-
}
|
12 |
-
|
13 |
-
public static function instance() {
|
14 |
-
if (is_null(self::$_instance)) {
|
15 |
-
self::$_instance = new self();
|
16 |
-
}
|
17 |
-
return self::$_instance;
|
18 |
-
}
|
19 |
-
|
20 |
-
public static function activation() {
|
21 |
-
self::add_transient();
|
22 |
-
self::add_settings();
|
23 |
-
}
|
24 |
-
|
25 |
-
public static function deactivation() {
|
26 |
-
|
27 |
-
}
|
28 |
-
|
29 |
-
private static function add_transient() {
|
30 |
-
set_transient('qlwcdc-first-rating', true, MONTH_IN_SECONDS);
|
31 |
-
}
|
32 |
-
|
33 |
-
private static function add_settings() {
|
34 |
-
if ('yes' === get_option('woocommerce_cart_redirect_after_add')) {
|
35 |
-
add_option('qlwcdc_add_to_cart', 'redirect');
|
36 |
-
add_option('qlwcdc_add_to_cart_redirect_page', 'cart');
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
public static function import_old_settings() {
|
41 |
-
|
42 |
-
global $wpdb;
|
43 |
-
|
44 |
-
if (!get_option('qlwcdc_wcd_imported2')) {
|
45 |
-
|
46 |
-
if (get_option('direct_checkout_pro_enabled', get_option('direct_checkout_enabled'))) {
|
47 |
-
|
48 |
-
$url = get_option('direct_checkout_pro_cart_redirect_url', get_option('direct_checkout_cart_redirect_url'));
|
49 |
-
|
50 |
-
if ($url === wc_get_cart_url()) {
|
51 |
-
$val = 'cart';
|
52 |
-
} elseif (filter_var($url, FILTER_VALIDATE_URL) !== false && $url != wc_get_checkout_url()) {
|
53 |
-
$val = 'url';
|
54 |
-
} else {
|
55 |
-
$val = 'checkout';
|
56 |
-
}
|
57 |
-
|
58 |
-
/* add_option('qlwcdc_add_product_cart', 'redirect');
|
59 |
-
add_option('qlwcdc_add_product_cart_redirect_page', $val);
|
60 |
-
add_option('qlwcdc_add_product_cart_redirect_url', $url);
|
61 |
-
|
62 |
-
add_option('qlwcdc_add_archive_cart', 'redirect');
|
63 |
-
add_option('qlwcdc_add_archive_cart_redirect_page', $val);
|
64 |
-
add_option('qlwcdc_add_archive_cart_redirect_url', $url); */
|
65 |
-
|
66 |
-
add_option('qlwcdc_add_to_cart', 'redirect');
|
67 |
-
add_option('qlwcdc_add_to_cart_redirect_page', $val);
|
68 |
-
add_option('qlwcdc_add_to_cart_redirect_url', $url);
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($text = get_option('direct_checkout_cart_button_text', get_option('direct_checkout_cart_button_text'))) {
|
72 |
-
add_option('qlwcdc_add_product_text', 'yes');
|
73 |
-
add_option('qlwcdc_add_product_text_content', $text);
|
74 |
-
add_option('qlwcdc_add_archive_text', 'yes');
|
75 |
-
add_option('qlwcdc_add_archive_text_content', $text);
|
76 |
-
add_option('qlwcdc_add_archive_text_in', array(
|
77 |
-
'simple',
|
78 |
-
'grouped',
|
79 |
-
'virtual',
|
80 |
-
'variable',
|
81 |
-
'downloadable'
|
82 |
-
));
|
83 |
-
}
|
84 |
-
|
85 |
-
if (count($keys = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$wpdb->postmeta} WHERE meta_key = %s", '_direct_checkout_pro_enabled')))) {
|
86 |
-
foreach ($keys as $key) {
|
87 |
-
if ($key->meta_value == 'yes') {
|
88 |
-
if ($text = get_post_meta($key->post_id, '_direct_checkout_pro_cart_button_text', true)) {
|
89 |
-
add_post_meta($key->post_id, 'qlwcdc_add_product_text', 'yes', true);
|
90 |
-
add_post_meta($key->post_id, 'qlwcdc_add_product_text_content', $text, true);
|
91 |
-
}
|
92 |
-
}
|
93 |
-
}
|
94 |
-
}
|
95 |
-
|
96 |
-
delete_option('qlwcdc_wcd_imported');
|
97 |
-
update_option('qlwcdc_wcd_imported2', true);
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
}
|
102 |
-
|
103 |
-
QLWCDC_Install::instance();
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class QLWCDC_Install {
|
4 |
+
|
5 |
+
protected static $_instance;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
register_activation_hook(QLWCDC_PLUGIN_FILE, array(__CLASS__, 'activation'));
|
9 |
+
register_deactivation_hook(QLWCDC_PLUGIN_FILE, array(__CLASS__, 'deactivation'));
|
10 |
+
self::import_old_settings();
|
11 |
+
}
|
12 |
+
|
13 |
+
public static function instance() {
|
14 |
+
if (is_null(self::$_instance)) {
|
15 |
+
self::$_instance = new self();
|
16 |
+
}
|
17 |
+
return self::$_instance;
|
18 |
+
}
|
19 |
+
|
20 |
+
public static function activation() {
|
21 |
+
self::add_transient();
|
22 |
+
self::add_settings();
|
23 |
+
}
|
24 |
+
|
25 |
+
public static function deactivation() {
|
26 |
+
|
27 |
+
}
|
28 |
+
|
29 |
+
private static function add_transient() {
|
30 |
+
set_transient('qlwcdc-first-rating', true, MONTH_IN_SECONDS);
|
31 |
+
}
|
32 |
+
|
33 |
+
private static function add_settings() {
|
34 |
+
if ('yes' === get_option('woocommerce_cart_redirect_after_add')) {
|
35 |
+
add_option('qlwcdc_add_to_cart', 'redirect');
|
36 |
+
add_option('qlwcdc_add_to_cart_redirect_page', 'cart');
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
public static function import_old_settings() {
|
41 |
+
|
42 |
+
global $wpdb;
|
43 |
+
|
44 |
+
if (!get_option('qlwcdc_wcd_imported2')) {
|
45 |
+
|
46 |
+
if (get_option('direct_checkout_pro_enabled', get_option('direct_checkout_enabled'))) {
|
47 |
+
|
48 |
+
$url = get_option('direct_checkout_pro_cart_redirect_url', get_option('direct_checkout_cart_redirect_url'));
|
49 |
+
|
50 |
+
if ($url === wc_get_cart_url()) {
|
51 |
+
$val = 'cart';
|
52 |
+
} elseif (filter_var($url, FILTER_VALIDATE_URL) !== false && $url != wc_get_checkout_url()) {
|
53 |
+
$val = 'url';
|
54 |
+
} else {
|
55 |
+
$val = 'checkout';
|
56 |
+
}
|
57 |
+
|
58 |
+
/* add_option('qlwcdc_add_product_cart', 'redirect');
|
59 |
+
add_option('qlwcdc_add_product_cart_redirect_page', $val);
|
60 |
+
add_option('qlwcdc_add_product_cart_redirect_url', $url);
|
61 |
+
|
62 |
+
add_option('qlwcdc_add_archive_cart', 'redirect');
|
63 |
+
add_option('qlwcdc_add_archive_cart_redirect_page', $val);
|
64 |
+
add_option('qlwcdc_add_archive_cart_redirect_url', $url); */
|
65 |
+
|
66 |
+
add_option('qlwcdc_add_to_cart', 'redirect');
|
67 |
+
add_option('qlwcdc_add_to_cart_redirect_page', $val);
|
68 |
+
add_option('qlwcdc_add_to_cart_redirect_url', $url);
|
69 |
+
}
|
70 |
+
|
71 |
+
if ($text = get_option('direct_checkout_cart_button_text', get_option('direct_checkout_cart_button_text'))) {
|
72 |
+
add_option('qlwcdc_add_product_text', 'yes');
|
73 |
+
add_option('qlwcdc_add_product_text_content', $text);
|
74 |
+
add_option('qlwcdc_add_archive_text', 'yes');
|
75 |
+
add_option('qlwcdc_add_archive_text_content', $text);
|
76 |
+
add_option('qlwcdc_add_archive_text_in', array(
|
77 |
+
'simple',
|
78 |
+
'grouped',
|
79 |
+
'virtual',
|
80 |
+
'variable',
|
81 |
+
'downloadable'
|
82 |
+
));
|
83 |
+
}
|
84 |
+
|
85 |
+
if (count($keys = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$wpdb->postmeta} WHERE meta_key = %s", '_direct_checkout_pro_enabled')))) {
|
86 |
+
foreach ($keys as $key) {
|
87 |
+
if ($key->meta_value == 'yes') {
|
88 |
+
if ($text = get_post_meta($key->post_id, '_direct_checkout_pro_cart_button_text', true)) {
|
89 |
+
add_post_meta($key->post_id, 'qlwcdc_add_product_text', 'yes', true);
|
90 |
+
add_post_meta($key->post_id, 'qlwcdc_add_product_text_content', $text, true);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
delete_option('qlwcdc_wcd_imported');
|
97 |
+
update_option('qlwcdc_wcd_imported2', true);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
}
|
102 |
+
|
103 |
+
QLWCDC_Install::instance();
|
includes/notices.php
CHANGED
@@ -1,92 +1,92 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class QLWCDC_Notices {
|
4 |
-
|
5 |
-
protected static $_instance;
|
6 |
-
|
7 |
-
public function __construct() {
|
8 |
-
add_action('wp_ajax_qlwcdc_dismiss_notice', array($this, 'ajax_dismiss_notice'));
|
9 |
-
add_action('admin_notices', array($this, 'add_notices'));
|
10 |
-
add_filter('plugin_action_links_' . plugin_basename(QLWCDC_PLUGIN_FILE), array($this, 'add_action_links'));
|
11 |
-
}
|
12 |
-
|
13 |
-
public static function instance() {
|
14 |
-
if (is_null(self::$_instance)) {
|
15 |
-
self::$_instance = new self();
|
16 |
-
}
|
17 |
-
return self::$_instance;
|
18 |
-
}
|
19 |
-
|
20 |
-
public function ajax_dismiss_notice() {
|
21 |
-
|
22 |
-
if (check_admin_referer('qlwcdc_dismiss_notice', 'nonce') && isset($_REQUEST['notice_id'])) {
|
23 |
-
|
24 |
-
$notice_id = sanitize_key($_REQUEST['notice_id']);
|
25 |
-
|
26 |
-
update_user_meta(get_current_user_id(), $notice_id, true);
|
27 |
-
|
28 |
-
wp_send_json($notice_id);
|
29 |
-
}
|
30 |
-
|
31 |
-
wp_die();
|
32 |
-
}
|
33 |
-
|
34 |
-
public function add_notices() {
|
35 |
-
|
36 |
-
if (!get_transient('qlwcdc-first-rating') && !get_user_meta(get_current_user_id(), 'qlwcdc-user-rating', true)) {
|
37 |
-
?>
|
38 |
-
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
39 |
-
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
40 |
-
<div class="notice-image">
|
41 |
-
<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); ?>>">
|
42 |
-
</div>
|
43 |
-
<div class="notice-content" style="margin-left: 15px;">
|
44 |
-
<p>
|
45 |
-
<?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
46 |
-
<br/>
|
47 |
-
<?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'); ?>
|
48 |
-
</p>
|
49 |
-
<a href="<?php echo esc_url(QLWCDC_REVIEW_URL); ?>" class="button-primary" target="_blank">
|
50 |
-
<?php esc_html_e('Yes, of course!', 'woocommerce-direct-checkout'); ?>
|
51 |
-
</a>
|
52 |
-
<a href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
|
53 |
-
<?php esc_html_e('Report a bug', 'woocommerce-direct-checkout'); ?>
|
54 |
-
</a>
|
55 |
-
</div>
|
56 |
-
</div>
|
57 |
-
</div>
|
58 |
-
<script>
|
59 |
-
(function ($) {
|
60 |
-
$('.qlwcdc-notice').on('click', '.notice-dismiss', function (e) {
|
61 |
-
e.preventDefault();
|
62 |
-
var notice_id = $(e.delegateTarget).data('notice_id');
|
63 |
-
$.ajax({
|
64 |
-
type: 'POST',
|
65 |
-
url: ajaxurl,
|
66 |
-
data: {
|
67 |
-
notice_id: notice_id,
|
68 |
-
action: 'qlwcdc_dismiss_notice',
|
69 |
-
nonce: '<?php echo wp_create_nonce('qlwcdc_dismiss_notice'); ?>'
|
70 |
-
},
|
71 |
-
success: function (response) {
|
72 |
-
console.log(response);
|
73 |
-
},
|
74 |
-
});
|
75 |
-
});
|
76 |
-
})(jQuery);
|
77 |
-
</script>
|
78 |
-
<?php
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
public function add_action_links($links) {
|
83 |
-
|
84 |
-
$links[] = '<a target="_blank" href="' . QLWCDC_PURCHASE_URL . '">' . esc_html__('Premium', 'woocommerce-direct-checkout') . '</a>';
|
85 |
-
$links[] = '<a href="' . admin_url('admin.php?page=wc-settings&tab=' . sanitize_title(QLWCDC_PREFIX)) . '">' . esc_html__('Settings', 'woocommerce-direct-checkout') . '</a>';
|
86 |
-
|
87 |
-
return $links;
|
88 |
-
}
|
89 |
-
|
90 |
-
}
|
91 |
-
|
92 |
-
QLWCDC_Notices::instance();
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class QLWCDC_Notices {
|
4 |
+
|
5 |
+
protected static $_instance;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_action('wp_ajax_qlwcdc_dismiss_notice', array($this, 'ajax_dismiss_notice'));
|
9 |
+
add_action('admin_notices', array($this, 'add_notices'));
|
10 |
+
add_filter('plugin_action_links_' . plugin_basename(QLWCDC_PLUGIN_FILE), array($this, 'add_action_links'));
|
11 |
+
}
|
12 |
+
|
13 |
+
public static function instance() {
|
14 |
+
if (is_null(self::$_instance)) {
|
15 |
+
self::$_instance = new self();
|
16 |
+
}
|
17 |
+
return self::$_instance;
|
18 |
+
}
|
19 |
+
|
20 |
+
public function ajax_dismiss_notice() {
|
21 |
+
|
22 |
+
if (check_admin_referer('qlwcdc_dismiss_notice', 'nonce') && isset($_REQUEST['notice_id'])) {
|
23 |
+
|
24 |
+
$notice_id = sanitize_key($_REQUEST['notice_id']);
|
25 |
+
|
26 |
+
update_user_meta(get_current_user_id(), $notice_id, true);
|
27 |
+
|
28 |
+
wp_send_json($notice_id);
|
29 |
+
}
|
30 |
+
|
31 |
+
wp_die();
|
32 |
+
}
|
33 |
+
|
34 |
+
public function add_notices() {
|
35 |
+
|
36 |
+
if (!get_transient('qlwcdc-first-rating') && !get_user_meta(get_current_user_id(), 'qlwcdc-user-rating', true)) {
|
37 |
+
?>
|
38 |
+
<div id="qlwcdc-admin-rating" class="qlwcdc-notice notice is-dismissible" data-notice_id="qlwcdc-user-rating">
|
39 |
+
<div class="notice-container" style="padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
40 |
+
<div class="notice-image">
|
41 |
+
<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); ?>>">
|
42 |
+
</div>
|
43 |
+
<div class="notice-content" style="margin-left: 15px;">
|
44 |
+
<p>
|
45 |
+
<?php printf(esc_html__('Hello! Thank you for choosing the %s plugin!', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
46 |
+
<br/>
|
47 |
+
<?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'); ?>
|
48 |
+
</p>
|
49 |
+
<a href="<?php echo esc_url(QLWCDC_REVIEW_URL); ?>" class="button-primary" target="_blank">
|
50 |
+
<?php esc_html_e('Yes, of course!', 'woocommerce-direct-checkout'); ?>
|
51 |
+
</a>
|
52 |
+
<a href="<?php echo esc_url(QLWCDC_SUPPORT_URL); ?>" class="button-secondary" target="_blank">
|
53 |
+
<?php esc_html_e('Report a bug', 'woocommerce-direct-checkout'); ?>
|
54 |
+
</a>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
</div>
|
58 |
+
<script>
|
59 |
+
(function ($) {
|
60 |
+
$('.qlwcdc-notice').on('click', '.notice-dismiss', function (e) {
|
61 |
+
e.preventDefault();
|
62 |
+
var notice_id = $(e.delegateTarget).data('notice_id');
|
63 |
+
$.ajax({
|
64 |
+
type: 'POST',
|
65 |
+
url: ajaxurl,
|
66 |
+
data: {
|
67 |
+
notice_id: notice_id,
|
68 |
+
action: 'qlwcdc_dismiss_notice',
|
69 |
+
nonce: '<?php echo wp_create_nonce('qlwcdc_dismiss_notice'); ?>'
|
70 |
+
},
|
71 |
+
success: function (response) {
|
72 |
+
console.log(response);
|
73 |
+
},
|
74 |
+
});
|
75 |
+
});
|
76 |
+
})(jQuery);
|
77 |
+
</script>
|
78 |
+
<?php
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
public function add_action_links($links) {
|
83 |
+
|
84 |
+
$links[] = '<a target="_blank" href="' . QLWCDC_PURCHASE_URL . '">' . esc_html__('Premium', 'woocommerce-direct-checkout') . '</a>';
|
85 |
+
$links[] = '<a href="' . admin_url('admin.php?page=wc-settings&tab=' . sanitize_title(QLWCDC_PREFIX)) . '">' . esc_html__('Settings', 'woocommerce-direct-checkout') . '</a>';
|
86 |
+
|
87 |
+
return $links;
|
88 |
+
}
|
89 |
+
|
90 |
+
}
|
91 |
+
|
92 |
+
QLWCDC_Notices::instance();
|
includes/qlwcdc.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class QLWCDC
|
|
|
4 |
|
5 |
protected static $instance;
|
6 |
|
7 |
-
public function __construct()
|
|
|
8 |
|
9 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/install.php');
|
10 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/notices.php');
|
@@ -14,14 +16,16 @@ class QLWCDC {
|
|
14 |
load_plugin_textdomain('woocommerce-direct-checkout', false, QLWCDC_PLUGIN_DIR . '/languages/');
|
15 |
}
|
16 |
|
17 |
-
public static function instance()
|
|
|
18 |
if (!isset(self::$instance)) {
|
19 |
self::$instance = new self();
|
20 |
}
|
21 |
return self::$instance;
|
22 |
}
|
23 |
|
24 |
-
public function includes()
|
|
|
25 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/backend.php');
|
26 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/general.php');
|
27 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/archives.php');
|
@@ -31,17 +35,20 @@ class QLWCDC {
|
|
31 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/suggestions.php');
|
32 |
}
|
33 |
|
34 |
-
public function register_scripts()
|
|
|
35 |
wp_register_script('qlwcdc-admin', plugins_url('/assets/backend/qlwcdc-admin' . QLWCDC::instance()->is_min() . '.js', QLWCDC_PLUGIN_FILE), array('jquery'), QLWCDC_PLUGIN_VERSION, true);
|
36 |
}
|
37 |
|
38 |
-
public function is_min()
|
|
|
39 |
if (!defined('SCRIPT_DEBUG') || !SCRIPT_DEBUG) {
|
40 |
return '.min';
|
41 |
}
|
42 |
}
|
43 |
|
44 |
-
public function get_product_option($product_id = null, $meta_key = null, $default = null)
|
|
|
45 |
|
46 |
if (!$meta_key) {
|
47 |
return null;
|
@@ -56,7 +63,6 @@ class QLWCDC {
|
|
56 |
|
57 |
return get_option($meta_key, $default);
|
58 |
}
|
59 |
-
|
60 |
}
|
61 |
|
62 |
QLWCDC::instance();
|
1 |
<?php
|
2 |
|
3 |
+
class QLWCDC
|
4 |
+
{
|
5 |
|
6 |
protected static $instance;
|
7 |
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
|
11 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/install.php');
|
12 |
include_once(QLWCDC_PLUGIN_DIR . '/includes/notices.php');
|
16 |
load_plugin_textdomain('woocommerce-direct-checkout', false, QLWCDC_PLUGIN_DIR . '/languages/');
|
17 |
}
|
18 |
|
19 |
+
public static function instance()
|
20 |
+
{
|
21 |
if (!isset(self::$instance)) {
|
22 |
self::$instance = new self();
|
23 |
}
|
24 |
return self::$instance;
|
25 |
}
|
26 |
|
27 |
+
public function includes()
|
28 |
+
{
|
29 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/backend.php');
|
30 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/general.php');
|
31 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/archives.php');
|
35 |
include_once(QLWCDC_PLUGIN_DIR . 'includes/controller/suggestions.php');
|
36 |
}
|
37 |
|
38 |
+
public function register_scripts()
|
39 |
+
{
|
40 |
wp_register_script('qlwcdc-admin', plugins_url('/assets/backend/qlwcdc-admin' . QLWCDC::instance()->is_min() . '.js', QLWCDC_PLUGIN_FILE), array('jquery'), QLWCDC_PLUGIN_VERSION, true);
|
41 |
}
|
42 |
|
43 |
+
public function is_min()
|
44 |
+
{
|
45 |
if (!defined('SCRIPT_DEBUG') || !SCRIPT_DEBUG) {
|
46 |
return '.min';
|
47 |
}
|
48 |
}
|
49 |
|
50 |
+
public function get_product_option($product_id = null, $meta_key = null, $default = null)
|
51 |
+
{
|
52 |
|
53 |
if (!$meta_key) {
|
54 |
return null;
|
63 |
|
64 |
return get_option($meta_key, $default);
|
65 |
}
|
|
|
66 |
}
|
67 |
|
68 |
QLWCDC::instance();
|
includes/suggestions.php
CHANGED
@@ -1,140 +1,140 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once( ABSPATH . 'wp-admin/includes/class-wp-plugin-install-list-table.php' );
|
4 |
-
|
5 |
-
class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
6 |
-
|
7 |
-
public $promote = array(
|
8 |
-
'woocommerce-checkout-manager',
|
9 |
-
'perfect-woocommerce-brands',
|
10 |
-
'wp-whatsapp-chat',
|
11 |
-
'wp-tiktok-feed',
|
12 |
-
'insta-gallery',
|
13 |
-
'quadmenu',
|
14 |
-
);
|
15 |
-
|
16 |
-
private function remove_plugins($plugins) {
|
17 |
-
|
18 |
-
$promote = array();
|
19 |
-
|
20 |
-
foreach ($this->promote as $order => $slug) {
|
21 |
-
|
22 |
-
if ($id = @max(array_keys(array_column($plugins, 'slug'), $slug))) {
|
23 |
-
|
24 |
-
$promote[] = $plugins[$id];
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
return $promote;
|
29 |
-
}
|
30 |
-
|
31 |
-
public function self_admin_url($url, $path) {
|
32 |
-
|
33 |
-
if (strpos($url, 'tab=plugin-information') !== false) {
|
34 |
-
$url = network_admin_url($path);
|
35 |
-
}
|
36 |
-
|
37 |
-
return $url;
|
38 |
-
}
|
39 |
-
|
40 |
-
public function network_admin_url($url, $path) {
|
41 |
-
|
42 |
-
if (strpos($url, 'plugins.php') !== false) {
|
43 |
-
$url = self_admin_url($path);
|
44 |
-
}
|
45 |
-
|
46 |
-
return $url;
|
47 |
-
}
|
48 |
-
|
49 |
-
public function display_rows() {
|
50 |
-
add_filter('self_admin_url', array($this, 'self_admin_url'), 10, 2);
|
51 |
-
add_filter('network_admin_url', array($this, 'network_admin_url'), 10, 2);
|
52 |
-
parent::display_rows();
|
53 |
-
}
|
54 |
-
|
55 |
-
public function is_connected() {
|
56 |
-
|
57 |
-
global $wp_version;
|
58 |
-
|
59 |
-
$http_args = array(
|
60 |
-
'timeout' => 15,
|
61 |
-
'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url('/'),
|
62 |
-
);
|
63 |
-
|
64 |
-
return is_wp_error(wp_remote_get('http://api.wordpress.org/plugins/info/1.2/', $http_args));
|
65 |
-
}
|
66 |
-
|
67 |
-
public function get_plugins() {
|
68 |
-
|
69 |
-
$tk = QLWCDC_PREFIX . '_suggestions_plugins';
|
70 |
-
|
71 |
-
$plugins = get_transient($tk);
|
72 |
-
|
73 |
-
if ($plugins === false) {
|
74 |
-
|
75 |
-
$args = array(
|
76 |
-
'per_page' => 36,
|
77 |
-
'author' => 'quadlayers',
|
78 |
-
'locale' => get_user_locale(),
|
79 |
-
);
|
80 |
-
|
81 |
-
$api = plugins_api('query_plugins', $args);
|
82 |
-
|
83 |
-
if (!is_wp_error($api)) {
|
84 |
-
|
85 |
-
$plugins = $this->remove_plugins($api->plugins);
|
86 |
-
|
87 |
-
set_transient($tk, $plugins, 24 * HOUR_IN_SECONDS);
|
88 |
-
}
|
89 |
-
}
|
90 |
-
|
91 |
-
return $plugins;
|
92 |
-
}
|
93 |
-
|
94 |
-
public function prepare_items() {
|
95 |
-
|
96 |
-
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
97 |
-
|
98 |
-
global $tabs, $tab;
|
99 |
-
|
100 |
-
wp_enqueue_style('thickbox');
|
101 |
-
wp_enqueue_script('plugin-install');
|
102 |
-
wp_enqueue_script('thickbox');
|
103 |
-
wp_enqueue_script('updates');
|
104 |
-
wp_localize_script('updates', 'pagenow', 'plugin-install-network');
|
105 |
-
|
106 |
-
wp_reset_vars(array('tab'));
|
107 |
-
|
108 |
-
$tabs = array();
|
109 |
-
|
110 |
-
if ('search' === $tab) {
|
111 |
-
$tabs['search'] = __('Search Results');
|
112 |
-
}
|
113 |
-
if ($tab === 'beta' || false !== strpos(get_bloginfo('version'), '-')) {
|
114 |
-
$tabs['beta'] = _x('Beta Testing', 'Plugin Installer');
|
115 |
-
}
|
116 |
-
$tabs['featured'] = _x('Featured', 'Plugin Installer');
|
117 |
-
$tabs['popular'] = _x('Popular', 'Plugin Installer');
|
118 |
-
$tabs['recommended'] = _x('Recommended', 'Plugin Installer');
|
119 |
-
$tabs['favorites'] = _x('Favorites', 'Plugin Installer');
|
120 |
-
|
121 |
-
$nonmenu_tabs = array('plugin-information'); // Valid actions to perform which do not have a Menu item.
|
122 |
-
|
123 |
-
$tabs = apply_filters('install_plugins_tabs', $tabs);
|
124 |
-
|
125 |
-
$nonmenu_tabs = apply_filters('install_plugins_nonmenu_tabs', $nonmenu_tabs);
|
126 |
-
|
127 |
-
// If a non-valid menu tab has been selected, And it's not a non-menu action.
|
128 |
-
if (empty($tab) || (!isset($tabs[$tab]) && !in_array($tab, (array) $nonmenu_tabs) )) {
|
129 |
-
$tab = key($tabs);
|
130 |
-
}
|
131 |
-
|
132 |
-
$this->items = $this->get_plugins();
|
133 |
-
|
134 |
-
|
135 |
-
wp_localize_script('updates', '_wpUpdatesItemCounts', array(
|
136 |
-
'totals' => wp_get_update_data())
|
137 |
-
);
|
138 |
-
}
|
139 |
-
|
140 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
require_once( ABSPATH . 'wp-admin/includes/class-wp-plugin-install-list-table.php' );
|
4 |
+
|
5 |
+
class QLWCDC_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
6 |
+
|
7 |
+
public $promote = array(
|
8 |
+
'woocommerce-checkout-manager',
|
9 |
+
'perfect-woocommerce-brands',
|
10 |
+
'wp-whatsapp-chat',
|
11 |
+
'wp-tiktok-feed',
|
12 |
+
'insta-gallery',
|
13 |
+
'quadmenu',
|
14 |
+
);
|
15 |
+
|
16 |
+
private function remove_plugins($plugins) {
|
17 |
+
|
18 |
+
$promote = array();
|
19 |
+
|
20 |
+
foreach ($this->promote as $order => $slug) {
|
21 |
+
|
22 |
+
if ($id = @max(array_keys(array_column($plugins, 'slug'), $slug))) {
|
23 |
+
|
24 |
+
$promote[] = $plugins[$id];
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
return $promote;
|
29 |
+
}
|
30 |
+
|
31 |
+
public function self_admin_url($url, $path) {
|
32 |
+
|
33 |
+
if (strpos($url, 'tab=plugin-information') !== false) {
|
34 |
+
$url = network_admin_url($path);
|
35 |
+
}
|
36 |
+
|
37 |
+
return $url;
|
38 |
+
}
|
39 |
+
|
40 |
+
public function network_admin_url($url, $path) {
|
41 |
+
|
42 |
+
if (strpos($url, 'plugins.php') !== false) {
|
43 |
+
$url = self_admin_url($path);
|
44 |
+
}
|
45 |
+
|
46 |
+
return $url;
|
47 |
+
}
|
48 |
+
|
49 |
+
public function display_rows() {
|
50 |
+
add_filter('self_admin_url', array($this, 'self_admin_url'), 10, 2);
|
51 |
+
add_filter('network_admin_url', array($this, 'network_admin_url'), 10, 2);
|
52 |
+
parent::display_rows();
|
53 |
+
}
|
54 |
+
|
55 |
+
public function is_connected() {
|
56 |
+
|
57 |
+
global $wp_version;
|
58 |
+
|
59 |
+
$http_args = array(
|
60 |
+
'timeout' => 15,
|
61 |
+
'user-agent' => 'WordPress/' . $wp_version . '; ' . home_url('/'),
|
62 |
+
);
|
63 |
+
|
64 |
+
return is_wp_error(wp_remote_get('http://api.wordpress.org/plugins/info/1.2/', $http_args));
|
65 |
+
}
|
66 |
+
|
67 |
+
public function get_plugins() {
|
68 |
+
|
69 |
+
$tk = QLWCDC_PREFIX . '_suggestions_plugins';
|
70 |
+
|
71 |
+
$plugins = get_transient($tk);
|
72 |
+
|
73 |
+
if ($plugins === false) {
|
74 |
+
|
75 |
+
$args = array(
|
76 |
+
'per_page' => 36,
|
77 |
+
'author' => 'quadlayers',
|
78 |
+
'locale' => get_user_locale(),
|
79 |
+
);
|
80 |
+
|
81 |
+
$api = plugins_api('query_plugins', $args);
|
82 |
+
|
83 |
+
if (!is_wp_error($api)) {
|
84 |
+
|
85 |
+
$plugins = $this->remove_plugins($api->plugins);
|
86 |
+
|
87 |
+
set_transient($tk, $plugins, 24 * HOUR_IN_SECONDS);
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
return $plugins;
|
92 |
+
}
|
93 |
+
|
94 |
+
public function prepare_items() {
|
95 |
+
|
96 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
97 |
+
|
98 |
+
global $tabs, $tab;
|
99 |
+
|
100 |
+
wp_enqueue_style('thickbox');
|
101 |
+
wp_enqueue_script('plugin-install');
|
102 |
+
wp_enqueue_script('thickbox');
|
103 |
+
wp_enqueue_script('updates');
|
104 |
+
wp_localize_script('updates', 'pagenow', 'plugin-install-network');
|
105 |
+
|
106 |
+
wp_reset_vars(array('tab'));
|
107 |
+
|
108 |
+
$tabs = array();
|
109 |
+
|
110 |
+
if ('search' === $tab) {
|
111 |
+
$tabs['search'] = __('Search Results');
|
112 |
+
}
|
113 |
+
if ($tab === 'beta' || false !== strpos(get_bloginfo('version'), '-')) {
|
114 |
+
$tabs['beta'] = _x('Beta Testing', 'Plugin Installer');
|
115 |
+
}
|
116 |
+
$tabs['featured'] = _x('Featured', 'Plugin Installer');
|
117 |
+
$tabs['popular'] = _x('Popular', 'Plugin Installer');
|
118 |
+
$tabs['recommended'] = _x('Recommended', 'Plugin Installer');
|
119 |
+
$tabs['favorites'] = _x('Favorites', 'Plugin Installer');
|
120 |
+
|
121 |
+
$nonmenu_tabs = array('plugin-information'); // Valid actions to perform which do not have a Menu item.
|
122 |
+
|
123 |
+
$tabs = apply_filters('install_plugins_tabs', $tabs);
|
124 |
+
|
125 |
+
$nonmenu_tabs = apply_filters('install_plugins_nonmenu_tabs', $nonmenu_tabs);
|
126 |
+
|
127 |
+
// If a non-valid menu tab has been selected, And it's not a non-menu action.
|
128 |
+
if (empty($tab) || (!isset($tabs[$tab]) && !in_array($tab, (array) $nonmenu_tabs) )) {
|
129 |
+
$tab = key($tabs);
|
130 |
+
}
|
131 |
+
|
132 |
+
$this->items = $this->get_plugins();
|
133 |
+
|
134 |
+
|
135 |
+
wp_localize_script('updates', '_wpUpdatesItemCounts', array(
|
136 |
+
'totals' => wp_get_update_data())
|
137 |
+
);
|
138 |
+
}
|
139 |
+
|
140 |
+
}
|
includes/view/backend/pages/archives.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
1 |
+
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
includes/view/backend/pages/checkout.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
1 |
+
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
includes/view/backend/pages/general.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
1 |
+
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
includes/view/backend/pages/parts/header.php
CHANGED
@@ -1,48 +1,48 @@
|
|
1 |
-
<div class="wrap about-wrap full-width-layout">
|
2 |
-
|
3 |
-
<h1><?php esc_html_e('Suggestions', 'woocommerce-direct-checkout'); ?></h1>
|
4 |
-
|
5 |
-
<p class="about-text"><?php printf(esc_html__('Thanks for using our product! We recommend these extensions that will add new features to stand out your business and improve your sales.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?></p>
|
6 |
-
|
7 |
-
<p class="about-text">
|
8 |
-
<?php printf('<a href="%s" target="_blank">%s</a>', QLWCDC_PURCHASE_URL, esc_html__('Purchase', 'woocommerce-direct-checkout')); ?></a> |
|
9 |
-
<?php printf('<a href="%s" target="_blank">%s</a>', QLWCDC_DOCUMENTATION_URL, esc_html__('Documentation', 'woocommerce-direct-checkout')); ?></a>
|
10 |
-
</p>
|
11 |
-
|
12 |
-
<?php printf('<a href="%s" target="_blank"><div style="
|
13 |
-
background: #006bff url(%s) no-repeat;
|
14 |
-
background-position: top center;
|
15 |
-
background-size: 130px 130px;
|
16 |
-
color: #fff;
|
17 |
-
font-size: 14px;
|
18 |
-
text-align: center;
|
19 |
-
font-weight: 600;
|
20 |
-
margin: 5px 0 0;
|
21 |
-
padding-top: 120px;
|
22 |
-
height: 40px;
|
23 |
-
display: inline-block;
|
24 |
-
width: 140px;
|
25 |
-
" class="wp-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qlwcdc_admin', plugins_url('/assets/backend/img/quadlayers.jpg', QLWCDC_PLUGIN_FILE), esc_html__('QuadLayers', 'woocommerce-direct-checkout')); ?>
|
26 |
-
|
27 |
-
</div>
|
28 |
-
|
29 |
-
<?php
|
30 |
-
if (isset($GLOBALS['submenu'][QLWCDC_PREFIX])) {
|
31 |
-
if (is_array($GLOBALS['submenu'][QLWCDC_PREFIX])) {
|
32 |
-
?>
|
33 |
-
<div class="wrap about-wrap full-width-layout qlwrap">
|
34 |
-
<h2 class="nav-tab-wrapper">
|
35 |
-
<?php
|
36 |
-
foreach ($GLOBALS['submenu'][QLWCDC_PREFIX] as $tab) {
|
37 |
-
if (strpos($tab[2], '.php') !== false)
|
38 |
-
continue;
|
39 |
-
?>
|
40 |
-
<a href="<?php echo admin_url('admin.php?page=' . esc_attr($tab[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $tab[2]) ? ' nav-tab-active' : ''; ?>"><?php echo $tab[0]; ?></a>
|
41 |
-
<?php
|
42 |
-
}
|
43 |
-
?>
|
44 |
-
</h2>
|
45 |
-
</div>
|
46 |
-
<?php
|
47 |
-
}
|
48 |
}
|
1 |
+
<div class="wrap about-wrap full-width-layout">
|
2 |
+
|
3 |
+
<h1><?php esc_html_e('Suggestions', 'woocommerce-direct-checkout'); ?></h1>
|
4 |
+
|
5 |
+
<p class="about-text"><?php printf(esc_html__('Thanks for using our product! We recommend these extensions that will add new features to stand out your business and improve your sales.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?></p>
|
6 |
+
|
7 |
+
<p class="about-text">
|
8 |
+
<?php printf('<a href="%s" target="_blank">%s</a>', QLWCDC_PURCHASE_URL, esc_html__('Purchase', 'woocommerce-direct-checkout')); ?></a> |
|
9 |
+
<?php printf('<a href="%s" target="_blank">%s</a>', QLWCDC_DOCUMENTATION_URL, esc_html__('Documentation', 'woocommerce-direct-checkout')); ?></a>
|
10 |
+
</p>
|
11 |
+
|
12 |
+
<?php printf('<a href="%s" target="_blank"><div style="
|
13 |
+
background: #006bff url(%s) no-repeat;
|
14 |
+
background-position: top center;
|
15 |
+
background-size: 130px 130px;
|
16 |
+
color: #fff;
|
17 |
+
font-size: 14px;
|
18 |
+
text-align: center;
|
19 |
+
font-weight: 600;
|
20 |
+
margin: 5px 0 0;
|
21 |
+
padding-top: 120px;
|
22 |
+
height: 40px;
|
23 |
+
display: inline-block;
|
24 |
+
width: 140px;
|
25 |
+
" class="wp-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qlwcdc_admin', plugins_url('/assets/backend/img/quadlayers.jpg', QLWCDC_PLUGIN_FILE), esc_html__('QuadLayers', 'woocommerce-direct-checkout')); ?>
|
26 |
+
|
27 |
+
</div>
|
28 |
+
|
29 |
+
<?php
|
30 |
+
if (isset($GLOBALS['submenu'][QLWCDC_PREFIX])) {
|
31 |
+
if (is_array($GLOBALS['submenu'][QLWCDC_PREFIX])) {
|
32 |
+
?>
|
33 |
+
<div class="wrap about-wrap full-width-layout qlwrap">
|
34 |
+
<h2 class="nav-tab-wrapper">
|
35 |
+
<?php
|
36 |
+
foreach ($GLOBALS['submenu'][QLWCDC_PREFIX] as $tab) {
|
37 |
+
if (strpos($tab[2], '.php') !== false)
|
38 |
+
continue;
|
39 |
+
?>
|
40 |
+
<a href="<?php echo admin_url('admin.php?page=' . esc_attr($tab[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $tab[2]) ? ' nav-tab-active' : ''; ?>"><?php echo $tab[0]; ?></a>
|
41 |
+
<?php
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
</h2>
|
45 |
+
</div>
|
46 |
+
<?php
|
47 |
+
}
|
48 |
}
|
includes/view/backend/pages/parts/tabs.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
<ul class="subsubsub">
|
2 |
-
<?php do_action('qlwcdc_sections_header'); ?>
|
3 |
-
<li><a target="_blank" href="<?php echo QLWCDC_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-direct-checkout'); ?></a></li>
|
4 |
-
</ul>
|
5 |
<br class="clear" />
|
1 |
+
<ul class="subsubsub">
|
2 |
+
<?php do_action('qlwcdc_sections_header'); ?>
|
3 |
+
<li><a target="_blank" href="<?php echo QLWCDC_DOCUMENTATION_URL; ?>"><?php echo esc_html__('Documentation', 'woocommerce-direct-checkout'); ?></a></li>
|
4 |
+
</ul>
|
5 |
<br class="clear" />
|
includes/view/backend/pages/premium.php
CHANGED
@@ -1,75 +1,75 @@
|
|
1 |
-
<?php include_once('parts/header.php' ); ?>
|
2 |
-
<div class="wrap about-wrap full-width-layout">
|
3 |
-
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
4 |
-
<div class="column">
|
5 |
-
<div class="welcome-header">
|
6 |
-
<h1><?php esc_html_e('Premium', 'woocommerce-direct-checkout'); ?></h1>
|
7 |
-
<div class="about-description">
|
8 |
-
<?php printf(esc_html__('%s allows you to simplifies the checkout process by skipping the shopping cart page. This plugin allows you to redirect your customers directly to the checkout page and includes the cart inside the checkout page.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
9 |
-
</div>
|
10 |
-
<br/>
|
11 |
-
<a class="button button-primary" target="_blank" href="<?php echo esc_url(QLWCDC_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'woocommerce-direct-checkout'); ?></a>
|
12 |
-
<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>
|
13 |
-
</div>
|
14 |
-
<hr/>
|
15 |
-
<div class="feature-section" style="padding: 10px 0;">
|
16 |
-
<h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
|
17 |
-
<p>
|
18 |
-
<?php printf(esc_html__('%s 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'), QLWCDC_PLUGIN_NAME); ?>
|
19 |
-
</p>
|
20 |
-
</div>
|
21 |
-
<div class="feature-section" style="padding: 10px 0;">
|
22 |
-
<h3><?php esc_html_e('Remove checkout fields', 'woocommerce-direct-checkout'); ?></h3>
|
23 |
-
<p>
|
24 |
-
<?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'); ?>
|
25 |
-
</p>
|
26 |
-
</div>
|
27 |
-
<div class="feature-section" style="padding: 10px 0;">
|
28 |
-
<h3><?php esc_html_e('Remove checkout columns', 'woocommerce-direct-checkout'); ?></h3>
|
29 |
-
<p>
|
30 |
-
<?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'); ?>
|
31 |
-
</p>
|
32 |
-
</div>
|
33 |
-
</div>
|
34 |
-
<div class="column">
|
35 |
-
<img src="<?php echo plugins_url('/assets/backend/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
<hr/>
|
39 |
-
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
40 |
-
<div class="column">
|
41 |
-
<div class="feature-section" style="padding: 10px 0;">
|
42 |
-
<h3><?php esc_html_e('Checkout redirect', 'woocommerce-direct-checkout'); ?></h3>
|
43 |
-
<p>
|
44 |
-
<?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'); ?>
|
45 |
-
</p>
|
46 |
-
</div>
|
47 |
-
<div class="feature-section" style="padding: 10px 0;">
|
48 |
-
<h3><?php esc_html_e('Quick purchase on single products', 'woocommerce-direct-checkout'); ?></h3>
|
49 |
-
<p>
|
50 |
-
<?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'); ?>
|
51 |
-
</p>
|
52 |
-
</div>
|
53 |
-
<div class="feature-section" style="padding: 10px 0;">
|
54 |
-
<h3><?php esc_html_e('Quick view in product archives', 'woocommerce-direct-checkout'); ?></h3>
|
55 |
-
<p>
|
56 |
-
<?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'); ?>
|
57 |
-
</p>
|
58 |
-
<p>
|
59 |
-
<?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'); ?>
|
60 |
-
</p>
|
61 |
-
</div>
|
62 |
-
<div class="feature-section" style="padding: 10px 0;">
|
63 |
-
<hr/>
|
64 |
-
<h3><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h3>
|
65 |
-
<p>
|
66 |
-
<?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'); ?>
|
67 |
-
</p>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
-
<div class="column">
|
71 |
-
<br/>
|
72 |
-
<img src="<?php echo plugins_url('/assets/backend/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
</div>
|
1 |
+
<?php include_once('parts/header.php' ); ?>
|
2 |
+
<div class="wrap about-wrap full-width-layout">
|
3 |
+
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
4 |
+
<div class="column">
|
5 |
+
<div class="welcome-header">
|
6 |
+
<h1><?php esc_html_e('Premium', 'woocommerce-direct-checkout'); ?></h1>
|
7 |
+
<div class="about-description">
|
8 |
+
<?php printf(esc_html__('%s allows you to simplifies the checkout process by skipping the shopping cart page. This plugin allows you to redirect your customers directly to the checkout page and includes the cart inside the checkout page.', 'woocommerce-direct-checkout'), QLWCDC_PLUGIN_NAME); ?>
|
9 |
+
</div>
|
10 |
+
<br/>
|
11 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url(QLWCDC_PURCHASE_URL); ?>"><?php esc_html_e('Purchase Now', 'woocommerce-direct-checkout'); ?></a>
|
12 |
+
<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>
|
13 |
+
</div>
|
14 |
+
<hr/>
|
15 |
+
<div class="feature-section" style="padding: 10px 0;">
|
16 |
+
<h3><?php esc_html_e('One page checkout', 'woocommerce-direct-checkout'); ?></h3>
|
17 |
+
<p>
|
18 |
+
<?php printf(esc_html__('%s 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'), QLWCDC_PLUGIN_NAME); ?>
|
19 |
+
</p>
|
20 |
+
</div>
|
21 |
+
<div class="feature-section" style="padding: 10px 0;">
|
22 |
+
<h3><?php esc_html_e('Remove checkout fields', 'woocommerce-direct-checkout'); ?></h3>
|
23 |
+
<p>
|
24 |
+
<?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'); ?>
|
25 |
+
</p>
|
26 |
+
</div>
|
27 |
+
<div class="feature-section" style="padding: 10px 0;">
|
28 |
+
<h3><?php esc_html_e('Remove checkout columns', 'woocommerce-direct-checkout'); ?></h3>
|
29 |
+
<p>
|
30 |
+
<?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'); ?>
|
31 |
+
</p>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<div class="column">
|
35 |
+
<img src="<?php echo plugins_url('/assets/backend/img/checkout.png', QLWCDC_PLUGIN_FILE); ?>">
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
<hr/>
|
39 |
+
<div class="has-2-columns is-wider-left" style="max-width: 100%">
|
40 |
+
<div class="column">
|
41 |
+
<div class="feature-section" style="padding: 10px 0;">
|
42 |
+
<h3><?php esc_html_e('Checkout redirect', 'woocommerce-direct-checkout'); ?></h3>
|
43 |
+
<p>
|
44 |
+
<?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'); ?>
|
45 |
+
</p>
|
46 |
+
</div>
|
47 |
+
<div class="feature-section" style="padding: 10px 0;">
|
48 |
+
<h3><?php esc_html_e('Quick purchase on single products', 'woocommerce-direct-checkout'); ?></h3>
|
49 |
+
<p>
|
50 |
+
<?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'); ?>
|
51 |
+
</p>
|
52 |
+
</div>
|
53 |
+
<div class="feature-section" style="padding: 10px 0;">
|
54 |
+
<h3><?php esc_html_e('Quick view in product archives', 'woocommerce-direct-checkout'); ?></h3>
|
55 |
+
<p>
|
56 |
+
<?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'); ?>
|
57 |
+
</p>
|
58 |
+
<p>
|
59 |
+
<?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'); ?>
|
60 |
+
</p>
|
61 |
+
</div>
|
62 |
+
<div class="feature-section" style="padding: 10px 0;">
|
63 |
+
<hr/>
|
64 |
+
<h3><?php esc_html_e('Quick purchase', 'woocommerce-direct-checkout'); ?></h3>
|
65 |
+
<p>
|
66 |
+
<?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'); ?>
|
67 |
+
</p>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<div class="column">
|
71 |
+
<br/>
|
72 |
+
<img src="<?php echo plugins_url('/assets/backend/img/modal.png', QLWCDC_PLUGIN_FILE); ?>">
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
</div>
|
includes/view/backend/pages/products.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
1 |
+
<?php include_once('parts/tabs.php' ); ?>
|
2 |
<?php woocommerce_admin_fields($settings); ?>
|
includes/view/frontend/general.php
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class QLWCDC_General
|
|
|
4 |
|
5 |
protected static $instance;
|
6 |
|
7 |
-
public function __construct()
|
|
|
8 |
add_filter('woocommerce_get_script_data', array($this, 'add_to_cart_params'));
|
9 |
add_filter('wc_add_to_cart_message_html', array($this, 'add_to_cart_message'));
|
10 |
add_filter('woocommerce_add_to_cart_redirect', array($this, 'add_to_cart_redirect'));
|
|
|
11 |
|
12 |
if ('redirect' === get_option('qlwcdc_add_to_cart')) {
|
13 |
add_filter('option_woocommerce_enable_ajax_add_to_cart', '__return_false');
|
@@ -15,14 +18,16 @@ class QLWCDC_General {
|
|
15 |
}
|
16 |
}
|
17 |
|
18 |
-
public static function instance()
|
|
|
19 |
if (!isset(self::$instance)) {
|
20 |
self::$instance = new self();
|
21 |
}
|
22 |
return self::$instance;
|
23 |
}
|
24 |
|
25 |
-
function add_to_cart_params($params)
|
|
|
26 |
|
27 |
if ('yes' === get_option('qlwcdc_add_to_cart_link')) {
|
28 |
$params['cart_url'] = wc_get_checkout_url();
|
@@ -32,7 +37,8 @@ class QLWCDC_General {
|
|
32 |
return $params;
|
33 |
}
|
34 |
|
35 |
-
function add_to_cart_message($message)
|
|
|
36 |
|
37 |
if ('yes' === get_option('qlwcdc_add_to_cart_message')) {
|
38 |
|
@@ -44,7 +50,8 @@ class QLWCDC_General {
|
|
44 |
return $message;
|
45 |
}
|
46 |
|
47 |
-
function add_to_cart_redirect($url)
|
|
|
48 |
|
49 |
if ('redirect' === get_option('qlwcdc_add_to_cart')) {
|
50 |
if ('cart' === get_option('qlwcdc_add_to_cart_redirect_page')) {
|
@@ -59,6 +66,27 @@ class QLWCDC_General {
|
|
59 |
return $url;
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
64 |
QLWCDC_General::instance();
|
1 |
<?php
|
2 |
|
3 |
+
class QLWCDC_General
|
4 |
+
{
|
5 |
|
6 |
protected static $instance;
|
7 |
|
8 |
+
public function __construct()
|
9 |
+
{
|
10 |
add_filter('woocommerce_get_script_data', array($this, 'add_to_cart_params'));
|
11 |
add_filter('wc_add_to_cart_message_html', array($this, 'add_to_cart_message'));
|
12 |
add_filter('woocommerce_add_to_cart_redirect', array($this, 'add_to_cart_redirect'));
|
13 |
+
add_filter('woocommerce_get_cart_url', array($this, 'replace_cart_url'));
|
14 |
|
15 |
if ('redirect' === get_option('qlwcdc_add_to_cart')) {
|
16 |
add_filter('option_woocommerce_enable_ajax_add_to_cart', '__return_false');
|
18 |
}
|
19 |
}
|
20 |
|
21 |
+
public static function instance()
|
22 |
+
{
|
23 |
if (!isset(self::$instance)) {
|
24 |
self::$instance = new self();
|
25 |
}
|
26 |
return self::$instance;
|
27 |
}
|
28 |
|
29 |
+
function add_to_cart_params($params)
|
30 |
+
{
|
31 |
|
32 |
if ('yes' === get_option('qlwcdc_add_to_cart_link')) {
|
33 |
$params['cart_url'] = wc_get_checkout_url();
|
37 |
return $params;
|
38 |
}
|
39 |
|
40 |
+
function add_to_cart_message($message)
|
41 |
+
{
|
42 |
|
43 |
if ('yes' === get_option('qlwcdc_add_to_cart_message')) {
|
44 |
|
50 |
return $message;
|
51 |
}
|
52 |
|
53 |
+
function add_to_cart_redirect($url)
|
54 |
+
{
|
55 |
|
56 |
if ('redirect' === get_option('qlwcdc_add_to_cart')) {
|
57 |
if ('cart' === get_option('qlwcdc_add_to_cart_redirect_page')) {
|
66 |
return $url;
|
67 |
}
|
68 |
|
69 |
+
function replace_cart_url($url)
|
70 |
+
{
|
71 |
+
|
72 |
+
if ('no' !== get_option('qlwcdc_replace_cart_url', 'no')) {
|
73 |
+
|
74 |
+
// empty checkout redirect to custom/cart/shop
|
75 |
+
if (WC()->cart->is_empty()) {
|
76 |
+
return get_permalink(wc_get_page_id('shop'));
|
77 |
+
}
|
78 |
+
|
79 |
+
if ('checkout' === get_option('qlwcdc_replace_cart_url')) {
|
80 |
+
return wc_get_checkout_url();
|
81 |
+
}
|
82 |
+
|
83 |
+
if ('custom' === get_option('qlwcdc_replace_cart_url') && get_option('qlwcdc_replace_cart_url_custom')) {
|
84 |
+
return get_option('qlwcdc_replace_cart_url_custom');
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
return $url;
|
89 |
+
}
|
90 |
}
|
91 |
|
92 |
QLWCDC_General::instance();
|
languages/woocommerce-direct-checkout.pot
CHANGED
@@ -1,545 +1,545 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Project-Id-Version: Direct Checkout for WooCommerce\n"
|
5 |
-
"POT-Creation-Date: 2019-08-09 07:24-0300\n"
|
6 |
-
"PO-Revision-Date: 2019-08-09 07:24-0300\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.1\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"X-Poedit-WPHeader: woocommerce-direct-checkout.php\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
17 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
18 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
-
|
22 |
-
#: includes/archives.php:23 includes/archives.php:36
|
23 |
-
msgid "Archives"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: includes/archives.php:97 includes/products.php:89 includes/products.php:239
|
27 |
-
msgid "Replace Add to cart text"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: includes/archives.php:98 includes/products.php:90 includes/products.php:241
|
31 |
-
msgid "Replace \"Add to cart\" text."
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: includes/archives.php:103 includes/archives.php:137
|
35 |
-
#: includes/checkout.php:47 includes/checkout.php:124
|
36 |
-
#: includes/checkout.php:136 includes/checkout.php:148
|
37 |
-
#: includes/checkout.php:160 includes/checkout.php:172
|
38 |
-
#: includes/checkout.php:184 includes/checkout.php:196 includes/general.php:48
|
39 |
-
#: includes/general.php:60 includes/general.php:74 includes/products.php:95
|
40 |
-
#: includes/products.php:114 includes/products.php:152
|
41 |
-
#: includes/products.php:245 includes/products.php:269
|
42 |
-
msgid "Yes"
|
43 |
-
msgstr ""
|
44 |
-
|
45 |
-
#: includes/archives.php:104 includes/archives.php:138
|
46 |
-
#: includes/checkout.php:48 includes/checkout.php:125
|
47 |
-
#: includes/checkout.php:137 includes/checkout.php:149
|
48 |
-
#: includes/checkout.php:161 includes/checkout.php:173
|
49 |
-
#: includes/checkout.php:185 includes/checkout.php:197 includes/general.php:49
|
50 |
-
#: includes/general.php:61 includes/general.php:72 includes/products.php:96
|
51 |
-
#: includes/products.php:115 includes/products.php:153
|
52 |
-
#: includes/products.php:246 includes/products.php:270
|
53 |
-
msgid "No"
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: includes/archives.php:109
|
57 |
-
msgid "Replace Add to cart text in"
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: includes/archives.php:110
|
61 |
-
msgid "Replace \"Add to cart\" text in product types."
|
62 |
-
msgstr ""
|
63 |
-
|
64 |
-
#: includes/archives.php:115
|
65 |
-
msgid "Simple Products"
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: includes/archives.php:116
|
69 |
-
msgid "Grouped Products"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: includes/archives.php:117
|
73 |
-
msgid "Virtual Products"
|
74 |
-
msgstr ""
|
75 |
-
|
76 |
-
#: includes/archives.php:118
|
77 |
-
msgid "Variable Products"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: includes/archives.php:119
|
81 |
-
msgid "Downloadable Products"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: includes/archives.php:124 includes/products.php:101
|
85 |
-
#: includes/products.php:251
|
86 |
-
msgid "Replace Add to cart text content"
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: includes/archives.php:125 includes/products.php:102
|
90 |
-
#: includes/products.php:253
|
91 |
-
msgid "Replace \"Add to cart\" text with this text."
|
92 |
-
msgstr ""
|
93 |
-
|
94 |
-
#: includes/archives.php:128 includes/products.php:105
|
95 |
-
msgid "Purchase"
|
96 |
-
msgstr ""
|
97 |
-
|
98 |
-
#: includes/archives.php:131
|
99 |
-
msgid "Add quick view button"
|
100 |
-
msgstr ""
|
101 |
-
|
102 |
-
#: includes/archives.php:132
|
103 |
-
msgid "Add product quick view modal button."
|
104 |
-
msgstr ""
|
105 |
-
|
106 |
-
#: includes/checkout.php:23 includes/checkout.php:36 includes/general.php:109
|
107 |
-
#: includes/general.php:135 includes/general.php:147 includes/products.php:134
|
108 |
-
#: includes/products.php:300
|
109 |
-
msgid "Checkout"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: includes/checkout.php:41
|
113 |
-
msgid "Add cart to checkout"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: includes/checkout.php:42
|
117 |
-
msgid ""
|
118 |
-
"Simplifies the checkout process including the shopping cart page inside "
|
119 |
-
"checkout."
|
120 |
-
msgstr ""
|
121 |
-
|
122 |
-
#: includes/checkout.php:53
|
123 |
-
msgid "Add cart to checkout fields"
|
124 |
-
msgstr ""
|
125 |
-
|
126 |
-
#: includes/checkout.php:54
|
127 |
-
msgid "Include this fields inside the checkout cart."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: includes/checkout.php:59
|
131 |
-
msgid "Remove"
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: includes/checkout.php:60
|
135 |
-
msgid "Thumbnail"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: includes/checkout.php:61
|
139 |
-
msgid "Name"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: includes/checkout.php:62
|
143 |
-
msgid "Price"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: includes/checkout.php:63
|
147 |
-
msgid "Quantity"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: includes/checkout.php:73
|
151 |
-
msgid "Remove checkout coupon form"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: includes/checkout.php:74
|
155 |
-
msgid "Simplifies the checkout process removing the coupon form."
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: includes/checkout.php:79
|
159 |
-
msgid "Leave coupon form"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: includes/checkout.php:80
|
163 |
-
msgid "Remove coupon form"
|
164 |
-
msgstr ""
|
165 |
-
|
166 |
-
#: includes/checkout.php:81
|
167 |
-
msgid "Remove coupon toggle"
|
168 |
-
msgstr ""
|
169 |
-
|
170 |
-
#: includes/checkout.php:82
|
171 |
-
msgid "Move to checkout order"
|
172 |
-
msgstr ""
|
173 |
-
|
174 |
-
#: includes/checkout.php:87
|
175 |
-
msgid "Add custom class to cart table"
|
176 |
-
msgstr ""
|
177 |
-
|
178 |
-
#: includes/checkout.php:88
|
179 |
-
msgid "Add a custom class to the cart table form in the checkot."
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#: includes/checkout.php:94 includes/purchase.php:46
|
183 |
-
msgid "Remove checkout fields"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: includes/checkout.php:95
|
187 |
-
msgid ""
|
188 |
-
"Simplifies the checkout process removing the unnecessary checkout fields."
|
189 |
-
msgstr ""
|
190 |
-
|
191 |
-
#: includes/checkout.php:100
|
192 |
-
msgid "First Name"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#: includes/checkout.php:101
|
196 |
-
msgid "Last Name"
|
197 |
-
msgstr ""
|
198 |
-
|
199 |
-
#: includes/checkout.php:102
|
200 |
-
msgid "Country"
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: includes/checkout.php:103
|
204 |
-
msgid "State"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: includes/checkout.php:104
|
208 |
-
msgid "City"
|
209 |
-
msgstr ""
|
210 |
-
|
211 |
-
#: includes/checkout.php:105
|
212 |
-
msgid "Postcode"
|
213 |
-
msgstr ""
|
214 |
-
|
215 |
-
#: includes/checkout.php:106
|
216 |
-
msgid "Address 1"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#: includes/checkout.php:107
|
220 |
-
msgid "Address 2"
|
221 |
-
msgstr ""
|
222 |
-
|
223 |
-
#: includes/checkout.php:108
|
224 |
-
msgid "Company"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: includes/checkout.php:109
|
228 |
-
msgid "Phone"
|
229 |
-
msgstr ""
|
230 |
-
|
231 |
-
#: includes/checkout.php:118
|
232 |
-
msgid "Remove checkout shipping address"
|
233 |
-
msgstr ""
|
234 |
-
|
235 |
-
#: includes/checkout.php:119
|
236 |
-
msgid "Simplifies the checkout process removing the shipping address."
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: includes/checkout.php:130
|
240 |
-
msgid "Remove checkout order comments"
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: includes/checkout.php:131
|
244 |
-
msgid "Simplifies the checkout process removing the order notes."
|
245 |
-
msgstr ""
|
246 |
-
|
247 |
-
#: includes/checkout.php:142
|
248 |
-
msgid "Remove checkout policy text"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: includes/checkout.php:143
|
252 |
-
msgid "Simplifies the checkout process removing the policy text."
|
253 |
-
msgstr ""
|
254 |
-
|
255 |
-
#: includes/checkout.php:154
|
256 |
-
msgid "Remove checkout terms and conditions"
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#: includes/checkout.php:155
|
260 |
-
msgid "Simplifies the checkout process removing the terms and conditions."
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: includes/checkout.php:166
|
264 |
-
msgid "Remove checkout gateway icons"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: includes/checkout.php:167
|
268 |
-
msgid "Simplifies the checkout view by removing the payment gateway icons."
|
269 |
-
msgstr ""
|
270 |
-
|
271 |
-
#: includes/checkout.php:178 includes/purchase.php:52
|
272 |
-
msgid "Remove checkout columns"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: includes/checkout.php:179
|
276 |
-
msgid ""
|
277 |
-
"Try to remove the columns and display the checkout form and order review in "
|
278 |
-
"one column."
|
279 |
-
msgstr ""
|
280 |
-
|
281 |
-
#: includes/checkout.php:190
|
282 |
-
msgid "Remove order details address"
|
283 |
-
msgstr ""
|
284 |
-
|
285 |
-
#: includes/checkout.php:191
|
286 |
-
msgid "Remove the billing address of the customer in the order received page."
|
287 |
-
msgstr ""
|
288 |
-
|
289 |
-
#: includes/general.php:23 includes/general.php:36
|
290 |
-
msgid "General"
|
291 |
-
msgstr ""
|
292 |
-
|
293 |
-
#: includes/general.php:38
|
294 |
-
msgid "Simplifies the checkout process."
|
295 |
-
msgstr ""
|
296 |
-
|
297 |
-
#: includes/general.php:42
|
298 |
-
msgid "Added to cart alert"
|
299 |
-
msgstr ""
|
300 |
-
|
301 |
-
#: includes/general.php:43
|
302 |
-
msgid "Replace \"View Cart\" alert with direct checkout."
|
303 |
-
msgstr ""
|
304 |
-
|
305 |
-
#: includes/general.php:54
|
306 |
-
msgid "Added to cart link"
|
307 |
-
msgstr ""
|
308 |
-
|
309 |
-
#: includes/general.php:55
|
310 |
-
msgid "Replace \"View Cart\" link with direct checkout."
|
311 |
-
msgstr ""
|
312 |
-
|
313 |
-
#: includes/general.php:66
|
314 |
-
msgid "Added to cart redirect"
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: includes/general.php:67
|
318 |
-
msgid "Add to cart button behaviour."
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: includes/general.php:102
|
322 |
-
msgid "Added to cart redirect to"
|
323 |
-
msgstr ""
|
324 |
-
|
325 |
-
#: includes/general.php:103 includes/general.php:116
|
326 |
-
msgid "Redirect to the cart or checkout page after successful addition."
|
327 |
-
msgstr ""
|
328 |
-
|
329 |
-
#: includes/general.php:108 includes/products.php:133
|
330 |
-
#: includes/products.php:299
|
331 |
-
msgid "Cart"
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: includes/general.php:110
|
335 |
-
msgid "Custom URL"
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: includes/general.php:115
|
339 |
-
msgid "Added to cart redirect to custom url"
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: includes/general.php:147
|
343 |
-
msgid "View cart"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: includes/products.php:15 includes/products.php:28
|
347 |
-
msgid "Products"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: includes/products.php:108 includes/products.php:262
|
351 |
-
msgid "Add quick purchase button"
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: includes/products.php:109
|
355 |
-
msgid "Add a quick purchase button to the products pages."
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: includes/products.php:120 includes/products.php:275
|
359 |
-
msgid "Add quick purchase class"
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#: includes/products.php:121
|
363 |
-
msgid "Add a custom class to the quick purchase button."
|
364 |
-
msgstr ""
|
365 |
-
|
366 |
-
#: includes/products.php:127 includes/products.php:293
|
367 |
-
msgid "Redirect quick purchase to"
|
368 |
-
msgstr ""
|
369 |
-
|
370 |
-
#: includes/products.php:128
|
371 |
-
msgid "Redirect the quick purchase button to the cart or checkout page."
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
-
#: includes/products.php:139 includes/products.php:284
|
375 |
-
msgid "Add quick purchase text"
|
376 |
-
msgstr ""
|
377 |
-
|
378 |
-
#: includes/products.php:140
|
379 |
-
msgid "Add a custom text to the quick purchase button."
|
380 |
-
msgstr ""
|
381 |
-
|
382 |
-
#: includes/products.php:143 includes/purchase.php:35
|
383 |
-
msgid "Purchase Now"
|
384 |
-
msgstr ""
|
385 |
-
|
386 |
-
#: includes/products.php:146
|
387 |
-
msgid "Add default attributes in variable products"
|
388 |
-
msgstr ""
|
389 |
-
|
390 |
-
#: includes/products.php:147
|
391 |
-
msgid ""
|
392 |
-
"Add default attributes in all variable products to avoid disabled Add to "
|
393 |
-
"cart button."
|
394 |
-
msgstr ""
|
395 |
-
|
396 |
-
#: includes/products.php:264
|
397 |
-
msgid "Add quick purchase button to single product page."
|
398 |
-
msgstr ""
|
399 |
-
|
400 |
-
#: includes/products.php:277
|
401 |
-
msgid "Add quick purchase custom class."
|
402 |
-
msgstr ""
|
403 |
-
|
404 |
-
#: includes/products.php:286
|
405 |
-
msgid "Add quick purchase custom text."
|
406 |
-
msgstr ""
|
407 |
-
|
408 |
-
#: includes/products.php:295
|
409 |
-
msgid "Redirect quick purchase to the cart or checkout page."
|
410 |
-
msgstr ""
|
411 |
-
|
412 |
-
#: includes/products.php:311 woocommerce-direct-checkout.php:153
|
413 |
-
#: woocommerce-direct-checkout.php:349
|
414 |
-
msgid "Direct Checkout"
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
-
#: includes/purchase.php:14 includes/purchase.php:30
|
418 |
-
#: woocommerce-direct-checkout.php:129
|
419 |
-
msgid "Premium"
|
420 |
-
msgstr ""
|
421 |
-
|
422 |
-
#: includes/purchase.php:32
|
423 |
-
#, php-format
|
424 |
-
msgid ""
|
425 |
-
"%s allows you to simplifies the checkout process by skipping the shopping "
|
426 |
-
"cart page. This plugin allows you to redirect your customers directly to the "
|
427 |
-
"checkout page and includes the cart inside the checkout page."
|
428 |
-
msgstr ""
|
429 |
-
|
430 |
-
#: includes/purchase.php:36
|
431 |
-
msgid "Get Support"
|
432 |
-
msgstr ""
|
433 |
-
|
434 |
-
#: includes/purchase.php:40
|
435 |
-
msgid "One page checkout"
|
436 |
-
msgstr ""
|
437 |
-
|
438 |
-
#: includes/purchase.php:42
|
439 |
-
#, php-format
|
440 |
-
msgid ""
|
441 |
-
"%s allows you to include the cart form in the checkout page allowing your "
|
442 |
-
"users to edit the cart and confirm the order on the same page."
|
443 |
-
msgstr ""
|
444 |
-
|
445 |
-
#: includes/purchase.php:48
|
446 |
-
msgid ""
|
447 |
-
"Our checkout settings allow you to easily remove the unnecessary fields and "
|
448 |
-
"reduce the user spend completing those fields like the order comments, "
|
449 |
-
"shipping address, coupon form, policy text, and terms and conditions."
|
450 |
-
msgstr ""
|
451 |
-
|
452 |
-
#: includes/purchase.php:54
|
453 |
-
msgid ""
|
454 |
-
"This option allows you to simplify the checkout page by removing the two "
|
455 |
-
"columns in the checkout page."
|
456 |
-
msgstr ""
|
457 |
-
|
458 |
-
#: includes/purchase.php:66
|
459 |
-
msgid "Checkout redirect"
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: includes/purchase.php:68
|
463 |
-
msgid ""
|
464 |
-
"This option allows you to redirect your users directly to the checkout page "
|
465 |
-
"reducing the total checkout process in one step."
|
466 |
-
msgstr ""
|
467 |
-
|
468 |
-
#: includes/purchase.php:72
|
469 |
-
msgid "Quick purchase on single products"
|
470 |
-
msgstr ""
|
471 |
-
|
472 |
-
#: includes/purchase.php:74
|
473 |
-
msgid ""
|
474 |
-
"If you want to give the option to the user to make a direct purchase or the "
|
475 |
-
"default add to cart product you can include a direct purchase button to the "
|
476 |
-
"products page."
|
477 |
-
msgstr ""
|
478 |
-
|
479 |
-
#: includes/purchase.php:78
|
480 |
-
msgid "Quick view in product archives"
|
481 |
-
msgstr ""
|
482 |
-
|
483 |
-
#: includes/purchase.php:80
|
484 |
-
msgid ""
|
485 |
-
"This option allows you to include a button which displays a quick view in "
|
486 |
-
"the WooCommerce shop page and products categories."
|
487 |
-
msgstr ""
|
488 |
-
|
489 |
-
#: includes/purchase.php:83
|
490 |
-
msgid ""
|
491 |
-
"This is especially useful for the variable products because it allows users "
|
492 |
-
"to select the products attributes and include directly into the cart."
|
493 |
-
msgstr ""
|
494 |
-
|
495 |
-
#: includes/purchase.php:88
|
496 |
-
msgid "Quick purchase"
|
497 |
-
msgstr ""
|
498 |
-
|
499 |
-
#: includes/purchase.php:90
|
500 |
-
msgid ""
|
501 |
-
"The Quick purchase button allows you to include a direct button in the "
|
502 |
-
"single products, variable, grouped and virtual products wich redirects user "
|
503 |
-
"to the checkout page."
|
504 |
-
msgstr ""
|
505 |
-
|
506 |
-
#: woocommerce-direct-checkout.php:78
|
507 |
-
#, php-format
|
508 |
-
msgid "Hello! Thank you for choosing the %s plugin!"
|
509 |
-
msgstr ""
|
510 |
-
|
511 |
-
#: woocommerce-direct-checkout.php:80
|
512 |
-
msgid ""
|
513 |
-
"Could you please give it a 5-star rating on WordPress? We know its a big "
|
514 |
-
"favor, but we've worked very much and very hard to release this great "
|
515 |
-
"product. Your feedback will boost our motivation and help us promote and "
|
516 |
-
"continue to improve this product."
|
517 |
-
msgstr ""
|
518 |
-
|
519 |
-
#: woocommerce-direct-checkout.php:83
|
520 |
-
msgid "Yes, of course!"
|
521 |
-
msgstr ""
|
522 |
-
|
523 |
-
#: woocommerce-direct-checkout.php:86
|
524 |
-
msgid "Report a bug"
|
525 |
-
msgstr ""
|
526 |
-
|
527 |
-
#: woocommerce-direct-checkout.php:130
|
528 |
-
msgid "Settings"
|
529 |
-
msgstr ""
|
530 |
-
|
531 |
-
#. Plugin Name of the plugin/theme
|
532 |
-
msgid "Direct Checkout for WooCommerce"
|
533 |
-
msgstr ""
|
534 |
-
|
535 |
-
#. Description of the plugin/theme
|
536 |
-
msgid "Simplifies the checkout process to improve your sales rate."
|
537 |
-
msgstr ""
|
538 |
-
|
539 |
-
#. Author of the plugin/theme
|
540 |
-
msgid "QuadLayers"
|
541 |
-
msgstr ""
|
542 |
-
|
543 |
-
#. Author URI of the plugin/theme
|
544 |
-
msgid "https://www.quadlayers.com"
|
545 |
-
msgstr ""
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: Direct Checkout for WooCommerce\n"
|
5 |
+
"POT-Creation-Date: 2019-08-09 07:24-0300\n"
|
6 |
+
"PO-Revision-Date: 2019-08-09 07:24-0300\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.1\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-WPHeader: woocommerce-direct-checkout.php\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
17 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
18 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
+
|
22 |
+
#: includes/archives.php:23 includes/archives.php:36
|
23 |
+
msgid "Archives"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: includes/archives.php:97 includes/products.php:89 includes/products.php:239
|
27 |
+
msgid "Replace Add to cart text"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: includes/archives.php:98 includes/products.php:90 includes/products.php:241
|
31 |
+
msgid "Replace \"Add to cart\" text."
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: includes/archives.php:103 includes/archives.php:137
|
35 |
+
#: includes/checkout.php:47 includes/checkout.php:124
|
36 |
+
#: includes/checkout.php:136 includes/checkout.php:148
|
37 |
+
#: includes/checkout.php:160 includes/checkout.php:172
|
38 |
+
#: includes/checkout.php:184 includes/checkout.php:196 includes/general.php:48
|
39 |
+
#: includes/general.php:60 includes/general.php:74 includes/products.php:95
|
40 |
+
#: includes/products.php:114 includes/products.php:152
|
41 |
+
#: includes/products.php:245 includes/products.php:269
|
42 |
+
msgid "Yes"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: includes/archives.php:104 includes/archives.php:138
|
46 |
+
#: includes/checkout.php:48 includes/checkout.php:125
|
47 |
+
#: includes/checkout.php:137 includes/checkout.php:149
|
48 |
+
#: includes/checkout.php:161 includes/checkout.php:173
|
49 |
+
#: includes/checkout.php:185 includes/checkout.php:197 includes/general.php:49
|
50 |
+
#: includes/general.php:61 includes/general.php:72 includes/products.php:96
|
51 |
+
#: includes/products.php:115 includes/products.php:153
|
52 |
+
#: includes/products.php:246 includes/products.php:270
|
53 |
+
msgid "No"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: includes/archives.php:109
|
57 |
+
msgid "Replace Add to cart text in"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: includes/archives.php:110
|
61 |
+
msgid "Replace \"Add to cart\" text in product types."
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: includes/archives.php:115
|
65 |
+
msgid "Simple Products"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: includes/archives.php:116
|
69 |
+
msgid "Grouped Products"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: includes/archives.php:117
|
73 |
+
msgid "Virtual Products"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: includes/archives.php:118
|
77 |
+
msgid "Variable Products"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: includes/archives.php:119
|
81 |
+
msgid "Downloadable Products"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: includes/archives.php:124 includes/products.php:101
|
85 |
+
#: includes/products.php:251
|
86 |
+
msgid "Replace Add to cart text content"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/archives.php:125 includes/products.php:102
|
90 |
+
#: includes/products.php:253
|
91 |
+
msgid "Replace \"Add to cart\" text with this text."
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: includes/archives.php:128 includes/products.php:105
|
95 |
+
msgid "Purchase"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: includes/archives.php:131
|
99 |
+
msgid "Add quick view button"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: includes/archives.php:132
|
103 |
+
msgid "Add product quick view modal button."
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: includes/checkout.php:23 includes/checkout.php:36 includes/general.php:109
|
107 |
+
#: includes/general.php:135 includes/general.php:147 includes/products.php:134
|
108 |
+
#: includes/products.php:300
|
109 |
+
msgid "Checkout"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: includes/checkout.php:41
|
113 |
+
msgid "Add cart to checkout"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: includes/checkout.php:42
|
117 |
+
msgid ""
|
118 |
+
"Simplifies the checkout process including the shopping cart page inside "
|
119 |
+
"checkout."
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/checkout.php:53
|
123 |
+
msgid "Add cart to checkout fields"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: includes/checkout.php:54
|
127 |
+
msgid "Include this fields inside the checkout cart."
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: includes/checkout.php:59
|
131 |
+
msgid "Remove"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: includes/checkout.php:60
|
135 |
+
msgid "Thumbnail"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: includes/checkout.php:61
|
139 |
+
msgid "Name"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: includes/checkout.php:62
|
143 |
+
msgid "Price"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: includes/checkout.php:63
|
147 |
+
msgid "Quantity"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: includes/checkout.php:73
|
151 |
+
msgid "Remove checkout coupon form"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: includes/checkout.php:74
|
155 |
+
msgid "Simplifies the checkout process removing the coupon form."
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: includes/checkout.php:79
|
159 |
+
msgid "Leave coupon form"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: includes/checkout.php:80
|
163 |
+
msgid "Remove coupon form"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: includes/checkout.php:81
|
167 |
+
msgid "Remove coupon toggle"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: includes/checkout.php:82
|
171 |
+
msgid "Move to checkout order"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: includes/checkout.php:87
|
175 |
+
msgid "Add custom class to cart table"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: includes/checkout.php:88
|
179 |
+
msgid "Add a custom class to the cart table form in the checkot."
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: includes/checkout.php:94 includes/purchase.php:46
|
183 |
+
msgid "Remove checkout fields"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: includes/checkout.php:95
|
187 |
+
msgid ""
|
188 |
+
"Simplifies the checkout process removing the unnecessary checkout fields."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: includes/checkout.php:100
|
192 |
+
msgid "First Name"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: includes/checkout.php:101
|
196 |
+
msgid "Last Name"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/checkout.php:102
|
200 |
+
msgid "Country"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: includes/checkout.php:103
|
204 |
+
msgid "State"
|
205 |
+
msgstr ""
|
206 |
+
|
207 |
+
#: includes/checkout.php:104
|
208 |
+
msgid "City"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: includes/checkout.php:105
|
212 |
+
msgid "Postcode"
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: includes/checkout.php:106
|
216 |
+
msgid "Address 1"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: includes/checkout.php:107
|
220 |
+
msgid "Address 2"
|
221 |
+
msgstr ""
|
222 |
+
|
223 |
+
#: includes/checkout.php:108
|
224 |
+
msgid "Company"
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: includes/checkout.php:109
|
228 |
+
msgid "Phone"
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: includes/checkout.php:118
|
232 |
+
msgid "Remove checkout shipping address"
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: includes/checkout.php:119
|
236 |
+
msgid "Simplifies the checkout process removing the shipping address."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: includes/checkout.php:130
|
240 |
+
msgid "Remove checkout order comments"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: includes/checkout.php:131
|
244 |
+
msgid "Simplifies the checkout process removing the order notes."
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: includes/checkout.php:142
|
248 |
+
msgid "Remove checkout policy text"
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: includes/checkout.php:143
|
252 |
+
msgid "Simplifies the checkout process removing the policy text."
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: includes/checkout.php:154
|
256 |
+
msgid "Remove checkout terms and conditions"
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: includes/checkout.php:155
|
260 |
+
msgid "Simplifies the checkout process removing the terms and conditions."
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: includes/checkout.php:166
|
264 |
+
msgid "Remove checkout gateway icons"
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: includes/checkout.php:167
|
268 |
+
msgid "Simplifies the checkout view by removing the payment gateway icons."
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: includes/checkout.php:178 includes/purchase.php:52
|
272 |
+
msgid "Remove checkout columns"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: includes/checkout.php:179
|
276 |
+
msgid ""
|
277 |
+
"Try to remove the columns and display the checkout form and order review in "
|
278 |
+
"one column."
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: includes/checkout.php:190
|
282 |
+
msgid "Remove order details address"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: includes/checkout.php:191
|
286 |
+
msgid "Remove the billing address of the customer in the order received page."
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: includes/general.php:23 includes/general.php:36
|
290 |
+
msgid "General"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: includes/general.php:38
|
294 |
+
msgid "Simplifies the checkout process."
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: includes/general.php:42
|
298 |
+
msgid "Added to cart alert"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: includes/general.php:43
|
302 |
+
msgid "Replace \"View Cart\" alert with direct checkout."
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: includes/general.php:54
|
306 |
+
msgid "Added to cart link"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: includes/general.php:55
|
310 |
+
msgid "Replace \"View Cart\" link with direct checkout."
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: includes/general.php:66
|
314 |
+
msgid "Added to cart redirect"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: includes/general.php:67
|
318 |
+
msgid "Add to cart button behaviour."
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: includes/general.php:102
|
322 |
+
msgid "Added to cart redirect to"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: includes/general.php:103 includes/general.php:116
|
326 |
+
msgid "Redirect to the cart or checkout page after successful addition."
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#: includes/general.php:108 includes/products.php:133
|
330 |
+
#: includes/products.php:299
|
331 |
+
msgid "Cart"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: includes/general.php:110
|
335 |
+
msgid "Custom URL"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
+
#: includes/general.php:115
|
339 |
+
msgid "Added to cart redirect to custom url"
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: includes/general.php:147
|
343 |
+
msgid "View cart"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#: includes/products.php:15 includes/products.php:28
|
347 |
+
msgid "Products"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: includes/products.php:108 includes/products.php:262
|
351 |
+
msgid "Add quick purchase button"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: includes/products.php:109
|
355 |
+
msgid "Add a quick purchase button to the products pages."
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: includes/products.php:120 includes/products.php:275
|
359 |
+
msgid "Add quick purchase class"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: includes/products.php:121
|
363 |
+
msgid "Add a custom class to the quick purchase button."
|
364 |
+
msgstr ""
|
365 |
+
|
366 |
+
#: includes/products.php:127 includes/products.php:293
|
367 |
+
msgid "Redirect quick purchase to"
|
368 |
+
msgstr ""
|
369 |
+
|
370 |
+
#: includes/products.php:128
|
371 |
+
msgid "Redirect the quick purchase button to the cart or checkout page."
|
372 |
+
msgstr ""
|
373 |
+
|
374 |
+
#: includes/products.php:139 includes/products.php:284
|
375 |
+
msgid "Add quick purchase text"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: includes/products.php:140
|
379 |
+
msgid "Add a custom text to the quick purchase button."
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
+
#: includes/products.php:143 includes/purchase.php:35
|
383 |
+
msgid "Purchase Now"
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: includes/products.php:146
|
387 |
+
msgid "Add default attributes in variable products"
|
388 |
+
msgstr ""
|
389 |
+
|
390 |
+
#: includes/products.php:147
|
391 |
+
msgid ""
|
392 |
+
"Add default attributes in all variable products to avoid disabled Add to "
|
393 |
+
"cart button."
|
394 |
+
msgstr ""
|
395 |
+
|
396 |
+
#: includes/products.php:264
|
397 |
+
msgid "Add quick purchase button to single product page."
|
398 |
+
msgstr ""
|
399 |
+
|
400 |
+
#: includes/products.php:277
|
401 |
+
msgid "Add quick purchase custom class."
|
402 |
+
msgstr ""
|
403 |
+
|
404 |
+
#: includes/products.php:286
|
405 |
+
msgid "Add quick purchase custom text."
|
406 |
+
msgstr ""
|
407 |
+
|
408 |
+
#: includes/products.php:295
|
409 |
+
msgid "Redirect quick purchase to the cart or checkout page."
|
410 |
+
msgstr ""
|
411 |
+
|
412 |
+
#: includes/products.php:311 woocommerce-direct-checkout.php:153
|
413 |
+
#: woocommerce-direct-checkout.php:349
|
414 |
+
msgid "Direct Checkout"
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
+
#: includes/purchase.php:14 includes/purchase.php:30
|
418 |
+
#: woocommerce-direct-checkout.php:129
|
419 |
+
msgid "Premium"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: includes/purchase.php:32
|
423 |
+
#, php-format
|
424 |
+
msgid ""
|
425 |
+
"%s allows you to simplifies the checkout process by skipping the shopping "
|
426 |
+
"cart page. This plugin allows you to redirect your customers directly to the "
|
427 |
+
"checkout page and includes the cart inside the checkout page."
|
428 |
+
msgstr ""
|
429 |
+
|
430 |
+
#: includes/purchase.php:36
|
431 |
+
msgid "Get Support"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
+
#: includes/purchase.php:40
|
435 |
+
msgid "One page checkout"
|
436 |
+
msgstr ""
|
437 |
+
|
438 |
+
#: includes/purchase.php:42
|
439 |
+
#, php-format
|
440 |
+
msgid ""
|
441 |
+
"%s allows you to include the cart form in the checkout page allowing your "
|
442 |
+
"users to edit the cart and confirm the order on the same page."
|
443 |
+
msgstr ""
|
444 |
+
|
445 |
+
#: includes/purchase.php:48
|
446 |
+
msgid ""
|
447 |
+
"Our checkout settings allow you to easily remove the unnecessary fields and "
|
448 |
+
"reduce the user spend completing those fields like the order comments, "
|
449 |
+
"shipping address, coupon form, policy text, and terms and conditions."
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: includes/purchase.php:54
|
453 |
+
msgid ""
|
454 |
+
"This option allows you to simplify the checkout page by removing the two "
|
455 |
+
"columns in the checkout page."
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: includes/purchase.php:66
|
459 |
+
msgid "Checkout redirect"
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/purchase.php:68
|
463 |
+
msgid ""
|
464 |
+
"This option allows you to redirect your users directly to the checkout page "
|
465 |
+
"reducing the total checkout process in one step."
|
466 |
+
msgstr ""
|
467 |
+
|
468 |
+
#: includes/purchase.php:72
|
469 |
+
msgid "Quick purchase on single products"
|
470 |
+
msgstr ""
|
471 |
+
|
472 |
+
#: includes/purchase.php:74
|
473 |
+
msgid ""
|
474 |
+
"If you want to give the option to the user to make a direct purchase or the "
|
475 |
+
"default add to cart product you can include a direct purchase button to the "
|
476 |
+
"products page."
|
477 |
+
msgstr ""
|
478 |
+
|
479 |
+
#: includes/purchase.php:78
|
480 |
+
msgid "Quick view in product archives"
|
481 |
+
msgstr ""
|
482 |
+
|
483 |
+
#: includes/purchase.php:80
|
484 |
+
msgid ""
|
485 |
+
"This option allows you to include a button which displays a quick view in "
|
486 |
+
"the WooCommerce shop page and products categories."
|
487 |
+
msgstr ""
|
488 |
+
|
489 |
+
#: includes/purchase.php:83
|
490 |
+
msgid ""
|
491 |
+
"This is especially useful for the variable products because it allows users "
|
492 |
+
"to select the products attributes and include directly into the cart."
|
493 |
+
msgstr ""
|
494 |
+
|
495 |
+
#: includes/purchase.php:88
|
496 |
+
msgid "Quick purchase"
|
497 |
+
msgstr ""
|
498 |
+
|
499 |
+
#: includes/purchase.php:90
|
500 |
+
msgid ""
|
501 |
+
"The Quick purchase button allows you to include a direct button in the "
|
502 |
+
"single products, variable, grouped and virtual products wich redirects user "
|
503 |
+
"to the checkout page."
|
504 |
+
msgstr ""
|
505 |
+
|
506 |
+
#: woocommerce-direct-checkout.php:78
|
507 |
+
#, php-format
|
508 |
+
msgid "Hello! Thank you for choosing the %s plugin!"
|
509 |
+
msgstr ""
|
510 |
+
|
511 |
+
#: woocommerce-direct-checkout.php:80
|
512 |
+
msgid ""
|
513 |
+
"Could you please give it a 5-star rating on WordPress? We know its a big "
|
514 |
+
"favor, but we've worked very much and very hard to release this great "
|
515 |
+
"product. Your feedback will boost our motivation and help us promote and "
|
516 |
+
"continue to improve this product."
|
517 |
+
msgstr ""
|
518 |
+
|
519 |
+
#: woocommerce-direct-checkout.php:83
|
520 |
+
msgid "Yes, of course!"
|
521 |
+
msgstr ""
|
522 |
+
|
523 |
+
#: woocommerce-direct-checkout.php:86
|
524 |
+
msgid "Report a bug"
|
525 |
+
msgstr ""
|
526 |
+
|
527 |
+
#: woocommerce-direct-checkout.php:130
|
528 |
+
msgid "Settings"
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#. Plugin Name of the plugin/theme
|
532 |
+
msgid "Direct Checkout for WooCommerce"
|
533 |
+
msgstr ""
|
534 |
+
|
535 |
+
#. Description of the plugin/theme
|
536 |
+
msgid "Simplifies the checkout process to improve your sales rate."
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#. Author of the plugin/theme
|
540 |
+
msgid "QuadLayers"
|
541 |
+
msgstr ""
|
542 |
+
|
543 |
+
#. Author URI of the plugin/theme
|
544 |
+
msgid "https://www.quadlayers.com"
|
545 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -3,10 +3,10 @@ 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.4.
|
7 |
Stable tag: 2.3.5
|
8 |
-
WC requires at least: 3.0
|
9 |
-
WC tested up to: 4.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -68,6 +68,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 2.3.5 =
|
72 |
* Fix: WooCommerce Direct Checkout Pro compatibility
|
73 |
|
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.4.1
|
7 |
Stable tag: 2.3.5
|
8 |
+
WC requires at least: 3.1.0
|
9 |
+
WC tested up to: 4.1.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 2.3.6 =
|
72 |
+
* Fix: Experimental override cart url
|
73 |
+
|
74 |
= 2.3.5 =
|
75 |
* Fix: WooCommerce Direct Checkout Pro compatibility
|
76 |
|
woocommerce-direct-checkout.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Direct Checkout
|
5 |
* Description: Simplifies the checkout process to improve your sales rate.
|
6 |
-
* Version: 2.3.
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
10 |
* Text Domain: woocommerce-direct-checkout *
|
11 |
* WC requires at least: 3.1.0
|
12 |
-
* WC tested up to: 4.
|
13 |
*/
|
14 |
if (!defined('ABSPATH')) {
|
15 |
die('-1');
|
@@ -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.
|
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.7
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
10 |
* Text Domain: woocommerce-direct-checkout *
|
11 |
* WC requires at least: 3.1.0
|
12 |
+
* WC tested up to: 4.1.1
|
13 |
*/
|
14 |
if (!defined('ABSPATH')) {
|
15 |
die('-1');
|
18 |
define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
|
19 |
}
|
20 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
21 |
+
define('QLWCDC_PLUGIN_VERSION', '2.3.7');
|
22 |
}
|
23 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
24 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|