Version Description
readme update * Fix. WooCommerce Direct Checkout data scaping
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Direct Checkout |
Version | 2.1.8 |
Comparing to | |
See all releases |
Code changes from version 2.1.7 to 2.1.8
- includes/archives.php +39 -39
- includes/checkout.php +61 -61
- includes/general.php +31 -31
- includes/products.php +83 -83
- includes/purchase.php +1 -1
- readme.txt +6 -2
- woocommerce-direct-checkout.php +5 -5
includes/archives.php
CHANGED
@@ -20,7 +20,7 @@ if (!class_exists('QLWCDC_Archives')) {
|
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
-
$sections['archives'] =
|
24 |
|
25 |
return $sections;
|
26 |
}
|
@@ -33,109 +33,109 @@ if (!class_exists('QLWCDC_Archives')) {
|
|
33 |
|
34 |
$fields = array(
|
35 |
'qlwcdc_section_title' => array(
|
36 |
-
'name' =>
|
37 |
'type' => 'title',
|
38 |
'id' => 'qlwcdc_archives_section_title'
|
39 |
),
|
40 |
/*'add_archive_cart' => array(
|
41 |
-
'name' =>
|
42 |
-
'desc_tip' =>
|
43 |
'id' => 'qlwcdc_add_archive_cart',
|
44 |
'type' => 'select',
|
45 |
'class' => 'chosen_select',
|
46 |
'options' => array(
|
47 |
-
'no' =>
|
48 |
-
'ajax' =>
|
49 |
-
'redirect' =>
|
50 |
),
|
51 |
'default' => 'no',
|
52 |
),
|
53 |
'add_archive_cart_ajax_button' => array(
|
54 |
-
'name' =>
|
55 |
-
'desc_tip' =>
|
56 |
'id' => 'qlwcdc_add_archive_cart_ajax_button',
|
57 |
'type' => 'select',
|
58 |
'options' => array(
|
59 |
-
'yes' =>
|
60 |
-
'no' =>
|
61 |
),
|
62 |
'default' => 'no',
|
63 |
),
|
64 |
'add_archive_cart_ajax_message' => array(
|
65 |
-
'name' =>
|
66 |
-
'desc_tip' =>
|
67 |
'id' => 'qlwcdc_add_archive_cart_ajax_message',
|
68 |
'type' => 'select',
|
69 |
'class' => 'chosen_select',
|
70 |
'options' => array(
|
71 |
-
'yes' =>
|
72 |
-
'no' =>
|
73 |
),
|
74 |
'default' => 'yes',
|
75 |
),
|
76 |
'add_archive_cart_redirect_page' => array(
|
77 |
-
'name' =>
|
78 |
-
'desc_tip' =>
|
79 |
'id' => 'qlwcdc_add_archive_cart_redirect_page',
|
80 |
'type' => 'select',
|
81 |
'class' => 'chosen_select',
|
82 |
'options' => array(
|
83 |
-
'cart' =>
|
84 |
-
'checkout' =>
|
85 |
-
'url' =>
|
86 |
),
|
87 |
'default' => 'cart',
|
88 |
),
|
89 |
'add_archive_cart_redirect_url' => array(
|
90 |
-
'name' =>
|
91 |
-
'desc_tip' =>
|
92 |
'id' => 'qlwcdc_add_archive_cart_redirect_url',
|
93 |
'type' => 'text',
|
94 |
'placeholder' => wc_get_checkout_url(),
|
95 |
),*/
|
96 |
'add_archive_text' => array(
|
97 |
-
'name' =>
|
98 |
-
'desc_tip' =>
|
99 |
'id' => 'qlwcdc_add_archive_text',
|
100 |
'type' => 'select',
|
101 |
'class' => 'chosen_select',
|
102 |
'options' => array(
|
103 |
-
'yes' =>
|
104 |
-
'no' =>
|
105 |
),
|
106 |
'default' => 'no',
|
107 |
),
|
108 |
'add_archive_text_in' => array(
|
109 |
-
'name' =>
|
110 |
-
'desc_tip' =>
|
111 |
'id' => 'qlwcdc_add_archive_text_in',
|
112 |
'type' => 'multiselect',
|
113 |
'class' => 'chosen_select',
|
114 |
'options' => array(
|
115 |
-
'simple' =>
|
116 |
-
'grouped' =>
|
117 |
-
'virtual' =>
|
118 |
-
'variable' =>
|
119 |
-
'downloadable' =>
|
120 |
),
|
121 |
'default' => array('simple'),
|
122 |
),
|
123 |
'add_archive_text_content' => array(
|
124 |
-
'name' =>
|
125 |
-
'desc_tip' =>
|
126 |
'id' => 'qlwcdc_add_archive_text_content',
|
127 |
'type' => 'text',
|
128 |
'default' => esc_html__('Purchase', 'woocommerce-direct-checkout'),
|
129 |
),
|
130 |
'add_archive_quick_view' => array(
|
131 |
-
'name' =>
|
132 |
-
'desc_tip' =>
|
133 |
'id' => 'qlwcdc_add_archive_quick_view',
|
134 |
'type' => 'select',
|
135 |
'class' => 'chosen_select qlwcdc-premium-field',
|
136 |
'options' => array(
|
137 |
-
'yes' =>
|
138 |
-
'no' =>
|
139 |
),
|
140 |
'default' => 'no',
|
141 |
),
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
+
$sections['archives'] = esc_html__('Archives', 'woocommerce-direct-checkout');
|
24 |
|
25 |
return $sections;
|
26 |
}
|
33 |
|
34 |
$fields = array(
|
35 |
'qlwcdc_section_title' => array(
|
36 |
+
'name' => esc_html__('Archives', 'woocommerce-direct-checkout'),
|
37 |
'type' => 'title',
|
38 |
'id' => 'qlwcdc_archives_section_title'
|
39 |
),
|
40 |
/*'add_archive_cart' => array(
|
41 |
+
'name' => esc_html__('Add to cart', 'woocommerce-direct-checkout'),
|
42 |
+
'desc_tip' => esc_html__('Add to cart button behaviour for single products in archives.', 'woocommerce-direct-checkout'),
|
43 |
'id' => 'qlwcdc_add_archive_cart',
|
44 |
'type' => 'select',
|
45 |
'class' => 'chosen_select',
|
46 |
'options' => array(
|
47 |
+
'no' => esc_html__('Reload', 'woocommerce-direct-checkout'),
|
48 |
+
'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
49 |
+
'redirect' => esc_html__('Redirect', 'woocommerce-direct-checkout'),
|
50 |
),
|
51 |
'default' => 'no',
|
52 |
),
|
53 |
'add_archive_cart_ajax_button' => array(
|
54 |
+
'name' => esc_html__('Added to cart button', 'woocommerce-direct-checkout'),
|
55 |
+
'desc_tip' => esc_html__('Show or hide the added to cart forward button.', 'woocommerce-direct-checkout'),
|
56 |
'id' => 'qlwcdc_add_archive_cart_ajax_button',
|
57 |
'type' => 'select',
|
58 |
'options' => array(
|
59 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
60 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
61 |
),
|
62 |
'default' => 'no',
|
63 |
),
|
64 |
'add_archive_cart_ajax_message' => array(
|
65 |
+
'name' => esc_html__('Added to cart alert', 'woocommerce-direct-checkout'),
|
66 |
+
'desc_tip' => esc_html__('Include the "added to cart" alert message in product archives and shop.', 'woocommerce-direct-checkout'),
|
67 |
'id' => 'qlwcdc_add_archive_cart_ajax_message',
|
68 |
'type' => 'select',
|
69 |
'class' => 'chosen_select',
|
70 |
'options' => array(
|
71 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
72 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
73 |
),
|
74 |
'default' => 'yes',
|
75 |
),
|
76 |
'add_archive_cart_redirect_page' => array(
|
77 |
+
'name' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
78 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
79 |
'id' => 'qlwcdc_add_archive_cart_redirect_page',
|
80 |
'type' => 'select',
|
81 |
'class' => 'chosen_select',
|
82 |
'options' => array(
|
83 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
84 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
85 |
+
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
86 |
),
|
87 |
'default' => 'cart',
|
88 |
),
|
89 |
'add_archive_cart_redirect_url' => array(
|
90 |
+
'name' => esc_html__('Added to cart redirect to custom url', 'woocommerce-direct-checkout'),
|
91 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
92 |
'id' => 'qlwcdc_add_archive_cart_redirect_url',
|
93 |
'type' => 'text',
|
94 |
'placeholder' => wc_get_checkout_url(),
|
95 |
),*/
|
96 |
'add_archive_text' => array(
|
97 |
+
'name' => esc_html__('Replace Add to cart text', 'woocommerce-direct-checkout'),
|
98 |
+
'desc_tip' => esc_html__('Replace "Add to cart" text.', 'woocommerce-direct-checkout'),
|
99 |
'id' => 'qlwcdc_add_archive_text',
|
100 |
'type' => 'select',
|
101 |
'class' => 'chosen_select',
|
102 |
'options' => array(
|
103 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
104 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
105 |
),
|
106 |
'default' => 'no',
|
107 |
),
|
108 |
'add_archive_text_in' => array(
|
109 |
+
'name' => esc_html__('Replace Add to cart text in', 'woocommerce-direct-checkout'),
|
110 |
+
'desc_tip' => esc_html__('Replace "Add to cart" text in product types.', 'woocommerce-direct-checkout'),
|
111 |
'id' => 'qlwcdc_add_archive_text_in',
|
112 |
'type' => 'multiselect',
|
113 |
'class' => 'chosen_select',
|
114 |
'options' => array(
|
115 |
+
'simple' => esc_html__('Simple Products', 'woocommerce-direct-checkout'),
|
116 |
+
'grouped' => esc_html__('Grouped Products', 'woocommerce-direct-checkout'),
|
117 |
+
'virtual' => esc_html__('Virtual Products', 'woocommerce-direct-checkout'),
|
118 |
+
'variable' => esc_html__('Variable Products', 'woocommerce-direct-checkout'),
|
119 |
+
'downloadable' => esc_html__('Downloadable Products', 'woocommerce-direct-checkout'),
|
120 |
),
|
121 |
'default' => array('simple'),
|
122 |
),
|
123 |
'add_archive_text_content' => array(
|
124 |
+
'name' => esc_html__('Replace Add to cart text content', 'woocommerce-direct-checkout'),
|
125 |
+
'desc_tip' => esc_html__('Replace "Add to cart" text with this text.', 'woocommerce-direct-checkout'),
|
126 |
'id' => 'qlwcdc_add_archive_text_content',
|
127 |
'type' => 'text',
|
128 |
'default' => esc_html__('Purchase', 'woocommerce-direct-checkout'),
|
129 |
),
|
130 |
'add_archive_quick_view' => array(
|
131 |
+
'name' => esc_html__('Add quick view button', 'woocommerce-direct-checkout'),
|
132 |
+
'desc_tip' => esc_html__('Add product quick view modal button.', 'woocommerce-direct-checkout'),
|
133 |
'id' => 'qlwcdc_add_archive_quick_view',
|
134 |
'type' => 'select',
|
135 |
'class' => 'chosen_select qlwcdc-premium-field',
|
136 |
'options' => array(
|
137 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
138 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
139 |
),
|
140 |
'default' => 'no',
|
141 |
),
|
includes/checkout.php
CHANGED
@@ -20,7 +20,7 @@ if (!class_exists('QLWCDC_Checkout')) {
|
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
-
$sections['checkout'] =
|
24 |
|
25 |
return $sections;
|
26 |
}
|
@@ -33,34 +33,34 @@ if (!class_exists('QLWCDC_Checkout')) {
|
|
33 |
|
34 |
$settings = array(
|
35 |
'section_title' => array(
|
36 |
-
'name' =>
|
37 |
'type' => 'title',
|
38 |
'id' => 'section_title'
|
39 |
),
|
40 |
'add_checkout_cart' => array(
|
41 |
-
'name' =>
|
42 |
-
'desc_tip' =>
|
43 |
'id' => 'qlwcdc_add_checkout_cart',
|
44 |
'type' => 'select',
|
45 |
'class' => 'chosen_select',
|
46 |
'options' => array(
|
47 |
-
'yes' =>
|
48 |
-
'no' =>
|
49 |
),
|
50 |
'default' => 'no',
|
51 |
),
|
52 |
'add_checkout_cart_fields' => array(
|
53 |
-
'name' =>
|
54 |
-
'desc_tip' =>
|
55 |
'id' => 'qlwcdc_add_checkout_cart_fields',
|
56 |
'type' => 'multiselect',
|
57 |
'class' => 'chosen_select',
|
58 |
'options' => array(
|
59 |
-
'remove' =>
|
60 |
-
'thumbnail' =>
|
61 |
-
'name' =>
|
62 |
-
'price' =>
|
63 |
-
'qty' =>
|
64 |
),
|
65 |
'default' => array(
|
66 |
0 => 'remove',
|
@@ -70,43 +70,43 @@ if (!class_exists('QLWCDC_Checkout')) {
|
|
70 |
)
|
71 |
),
|
72 |
'remove_checkout_coupon_form' => array(
|
73 |
-
'name' =>
|
74 |
-
'desc_tip' =>
|
75 |
'id' => 'qlwcdc_remove_checkout_coupon_form',
|
76 |
'type' => 'select',
|
77 |
'class' => 'chosen_select',
|
78 |
'options' => array(
|
79 |
-
'no' =>
|
80 |
-
'remove' =>
|
81 |
-
'toggle' =>
|
82 |
-
'checkout' =>
|
83 |
),
|
84 |
'default' => 'no',
|
85 |
),
|
86 |
'add_checkout_cart_class' => array(
|
87 |
-
'name' =>
|
88 |
-
'desc_tip' =>
|
89 |
'id' => 'qlwcdc_add_checkout_cart_class',
|
90 |
'type' => 'text',
|
91 |
'default' => ''
|
92 |
),
|
93 |
'remove_checkout_fields' => array(
|
94 |
-
'name' =>
|
95 |
-
'desc_tip' =>
|
96 |
'id' => 'qlwcdc_remove_checkout_fields',
|
97 |
'type' => 'multiselect',
|
98 |
'class' => 'chosen_select',
|
99 |
'options' => array(
|
100 |
-
'first_name' =>
|
101 |
-
'last_name' =>
|
102 |
-
'country' =>
|
103 |
-
'state' =>
|
104 |
-
'city' =>
|
105 |
-
'postcode' =>
|
106 |
-
'address_1' =>
|
107 |
-
'address_2' =>
|
108 |
-
'company' =>
|
109 |
-
'phone' =>
|
110 |
),
|
111 |
'default' => array(
|
112 |
0 => 'phone',
|
@@ -115,86 +115,86 @@ if (!class_exists('QLWCDC_Checkout')) {
|
|
115 |
)
|
116 |
),
|
117 |
'remove_checkout_shipping_address' => array(
|
118 |
-
'name' =>
|
119 |
-
'desc_tip' =>
|
120 |
'id' => 'qlwcdc_remove_checkout_shipping_address',
|
121 |
'type' => 'select',
|
122 |
'class' => 'chosen_select',
|
123 |
'options' => array(
|
124 |
-
'yes' =>
|
125 |
-
'no' =>
|
126 |
),
|
127 |
'default' => 'no',
|
128 |
),
|
129 |
'remove_checkout_order_comments' => array(
|
130 |
-
'name' =>
|
131 |
-
'desc_tip' =>
|
132 |
'id' => 'qlwcdc_remove_checkout_order_comments',
|
133 |
'type' => 'select',
|
134 |
'class' => 'chosen_select',
|
135 |
'options' => array(
|
136 |
-
'yes' =>
|
137 |
-
'no' =>
|
138 |
),
|
139 |
'default' => 'no',
|
140 |
),
|
141 |
'remove_checkout_privacy_policy_text' => array(
|
142 |
-
'name' =>
|
143 |
-
'desc_tip' =>
|
144 |
'id' => 'qlwcdc_remove_checkout_privacy_policy_text',
|
145 |
'type' => 'select',
|
146 |
'class' => 'chosen_select qlwcdc-premium-field',
|
147 |
'options' => array(
|
148 |
-
'yes' =>
|
149 |
-
'no' =>
|
150 |
),
|
151 |
'default' => 'no',
|
152 |
),
|
153 |
'remove_checkout_terms_and_conditions' => array(
|
154 |
-
'name' =>
|
155 |
-
'desc_tip' =>
|
156 |
'id' => 'qlwcdc_remove_checkout_terms_and_conditions',
|
157 |
'type' => 'select',
|
158 |
'class' => 'chosen_select',
|
159 |
'options' => array(
|
160 |
-
'yes' =>
|
161 |
-
'no' =>
|
162 |
),
|
163 |
'default' => 'no',
|
164 |
),
|
165 |
'remove_checkout_gateway_icon' => array(
|
166 |
-
'name' =>
|
167 |
-
'desc_tip' =>
|
168 |
'id' => 'qlwcdc_remove_checkout_gateway_icon',
|
169 |
'type' => 'select',
|
170 |
'class' => 'chosen_select qlwcdc-premium-field',
|
171 |
'options' => array(
|
172 |
-
'yes' =>
|
173 |
-
'no' =>
|
174 |
),
|
175 |
'default' => 'no',
|
176 |
),
|
177 |
'remove_checkout_columns' => array(
|
178 |
-
'name' =>
|
179 |
-
'desc_tip' =>
|
180 |
'id' => 'qlwcdc_remove_checkout_columns',
|
181 |
'type' => 'select',
|
182 |
'class' => 'chosen_select',
|
183 |
'options' => array(
|
184 |
-
'yes' =>
|
185 |
-
'no' =>
|
186 |
),
|
187 |
'default' => 'no',
|
188 |
),
|
189 |
'remove_order_details_address' => array(
|
190 |
-
'name' =>
|
191 |
-
'desc_tip' =>
|
192 |
'id' => 'qlwcdc_remove_order_details_address',
|
193 |
'type' => 'select',
|
194 |
'class' => 'chosen_select',
|
195 |
'options' => array(
|
196 |
-
'yes' =>
|
197 |
-
'no' =>
|
198 |
),
|
199 |
'default' => 'no',
|
200 |
),
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
+
$sections['checkout'] = esc_html__('Checkout', 'woocommerce-direct-checkout');
|
24 |
|
25 |
return $sections;
|
26 |
}
|
33 |
|
34 |
$settings = array(
|
35 |
'section_title' => array(
|
36 |
+
'name' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
37 |
'type' => 'title',
|
38 |
'id' => 'section_title'
|
39 |
),
|
40 |
'add_checkout_cart' => array(
|
41 |
+
'name' => esc_html__('Add cart to checkout', 'woocommerce-direct-checkout'),
|
42 |
+
'desc_tip' => esc_html__('Simplifies the checkout process including the shopping cart page inside checkout.', 'woocommerce-direct-checkout'),
|
43 |
'id' => 'qlwcdc_add_checkout_cart',
|
44 |
'type' => 'select',
|
45 |
'class' => 'chosen_select',
|
46 |
'options' => array(
|
47 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
48 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
49 |
),
|
50 |
'default' => 'no',
|
51 |
),
|
52 |
'add_checkout_cart_fields' => array(
|
53 |
+
'name' => esc_html__('Add cart to checkout fields', 'woocommerce-direct-checkout'),
|
54 |
+
'desc_tip' => esc_html__('Include this fields inside the checkout cart.', 'woocommerce-direct-checkout'),
|
55 |
'id' => 'qlwcdc_add_checkout_cart_fields',
|
56 |
'type' => 'multiselect',
|
57 |
'class' => 'chosen_select',
|
58 |
'options' => array(
|
59 |
+
'remove' => esc_html__('Remove', 'woocommerce-direct-checkout'),
|
60 |
+
'thumbnail' => esc_html__('Thumbnail', 'woocommerce-direct-checkout'),
|
61 |
+
'name' => esc_html__('Name', 'woocommerce-direct-checkout'),
|
62 |
+
'price' => esc_html__('Price', 'woocommerce-direct-checkout'),
|
63 |
+
'qty' => esc_html__('Quantity', 'woocommerce-direct-checkout'),
|
64 |
),
|
65 |
'default' => array(
|
66 |
0 => 'remove',
|
70 |
)
|
71 |
),
|
72 |
'remove_checkout_coupon_form' => array(
|
73 |
+
'name' => esc_html__('Remove checkout coupon form', 'woocommerce-direct-checkout'),
|
74 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the coupon form.', 'woocommerce-direct-checkout'),
|
75 |
'id' => 'qlwcdc_remove_checkout_coupon_form',
|
76 |
'type' => 'select',
|
77 |
'class' => 'chosen_select',
|
78 |
'options' => array(
|
79 |
+
'no' => esc_html__('Leave coupon form', 'woocommerce-direct-checkout'),
|
80 |
+
'remove' => esc_html__('Remove coupon form', 'woocommerce-direct-checkout'),
|
81 |
+
'toggle' => esc_html__('Remove coupon toggle', 'woocommerce-direct-checkout'),
|
82 |
+
'checkout' => esc_html__('Move to checkout order', 'woocommerce-direct-checkout'),
|
83 |
),
|
84 |
'default' => 'no',
|
85 |
),
|
86 |
'add_checkout_cart_class' => array(
|
87 |
+
'name' => esc_html__('Add custom class to cart table', 'woocommerce-direct-checkout'),
|
88 |
+
'desc_tip' => esc_html__('Add a custom class to the cart table form in the checkot.', 'woocommerce-direct-checkout'),
|
89 |
'id' => 'qlwcdc_add_checkout_cart_class',
|
90 |
'type' => 'text',
|
91 |
'default' => ''
|
92 |
),
|
93 |
'remove_checkout_fields' => array(
|
94 |
+
'name' => esc_html__('Remove checkout fields', 'qlwe'),
|
95 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the unnecessary checkout fields.', 'qlwe'),
|
96 |
'id' => 'qlwcdc_remove_checkout_fields',
|
97 |
'type' => 'multiselect',
|
98 |
'class' => 'chosen_select',
|
99 |
'options' => array(
|
100 |
+
'first_name' => esc_html__('First Name', 'qlwe'),
|
101 |
+
'last_name' => esc_html__('Last Name', 'qlwe'),
|
102 |
+
'country' => esc_html__('Country', 'qlwe'),
|
103 |
+
'state' => esc_html__('State', 'qlwe'),
|
104 |
+
'city' => esc_html__('City', 'qlwe'),
|
105 |
+
'postcode' => esc_html__('Postcode', 'qlwe'),
|
106 |
+
'address_1' => esc_html__('Address 1', 'qlwe'),
|
107 |
+
'address_2' => esc_html__('Address 2', 'qlwe'),
|
108 |
+
'company' => esc_html__('Company', 'qlwe'),
|
109 |
+
'phone' => esc_html__('Phone', 'qlwe'),
|
110 |
),
|
111 |
'default' => array(
|
112 |
0 => 'phone',
|
115 |
)
|
116 |
),
|
117 |
'remove_checkout_shipping_address' => array(
|
118 |
+
'name' => esc_html__('Remove checkout shipping address', 'woocommerce-direct-checkout'),
|
119 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the shipping address.', 'woocommerce-direct-checkout'),
|
120 |
'id' => 'qlwcdc_remove_checkout_shipping_address',
|
121 |
'type' => 'select',
|
122 |
'class' => 'chosen_select',
|
123 |
'options' => array(
|
124 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
125 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
126 |
),
|
127 |
'default' => 'no',
|
128 |
),
|
129 |
'remove_checkout_order_comments' => array(
|
130 |
+
'name' => esc_html__('Remove checkout order comments', 'woocommerce-direct-checkout'),
|
131 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the order notes.', 'woocommerce-direct-checkout'),
|
132 |
'id' => 'qlwcdc_remove_checkout_order_comments',
|
133 |
'type' => 'select',
|
134 |
'class' => 'chosen_select',
|
135 |
'options' => array(
|
136 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
137 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
138 |
),
|
139 |
'default' => 'no',
|
140 |
),
|
141 |
'remove_checkout_privacy_policy_text' => array(
|
142 |
+
'name' => esc_html__('Remove checkout policy text', 'woocommerce-direct-checkout'),
|
143 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the policy text.', 'woocommerce-direct-checkout'),
|
144 |
'id' => 'qlwcdc_remove_checkout_privacy_policy_text',
|
145 |
'type' => 'select',
|
146 |
'class' => 'chosen_select qlwcdc-premium-field',
|
147 |
'options' => array(
|
148 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
149 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
150 |
),
|
151 |
'default' => 'no',
|
152 |
),
|
153 |
'remove_checkout_terms_and_conditions' => array(
|
154 |
+
'name' => esc_html__('Remove checkout terms and conditions', 'woocommerce-direct-checkout'),
|
155 |
+
'desc_tip' => esc_html__('Simplifies the checkout process removing the terms and conditions.', 'woocommerce-direct-checkout'),
|
156 |
'id' => 'qlwcdc_remove_checkout_terms_and_conditions',
|
157 |
'type' => 'select',
|
158 |
'class' => 'chosen_select',
|
159 |
'options' => array(
|
160 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
161 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
162 |
),
|
163 |
'default' => 'no',
|
164 |
),
|
165 |
'remove_checkout_gateway_icon' => array(
|
166 |
+
'name' => esc_html__('Remove checkout gateway icons', 'woocommerce-direct-checkout'),
|
167 |
+
'desc_tip' => esc_html__('Simplifies the checkout view by removing the payment gateway icons.', 'woocommerce-direct-checkout'),
|
168 |
'id' => 'qlwcdc_remove_checkout_gateway_icon',
|
169 |
'type' => 'select',
|
170 |
'class' => 'chosen_select qlwcdc-premium-field',
|
171 |
'options' => array(
|
172 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
173 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
174 |
),
|
175 |
'default' => 'no',
|
176 |
),
|
177 |
'remove_checkout_columns' => array(
|
178 |
+
'name' => esc_html__('Remove checkout columns', 'woocommerce-direct-checkout'),
|
179 |
+
'desc_tip' => esc_html__('Try to remove the columns and display the checkout form and order review in one column.', 'woocommerce-direct-checkout'),
|
180 |
'id' => 'qlwcdc_remove_checkout_columns',
|
181 |
'type' => 'select',
|
182 |
'class' => 'chosen_select',
|
183 |
'options' => array(
|
184 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
185 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
186 |
),
|
187 |
'default' => 'no',
|
188 |
),
|
189 |
'remove_order_details_address' => array(
|
190 |
+
'name' => esc_html__('Remove order details address', 'woocommerce-direct-checkout'),
|
191 |
+
'desc_tip' => esc_html__('Remove the billing address of the customer in the order received page.', 'woocommerce-direct-checkout'),
|
192 |
'id' => 'qlwcdc_remove_order_details_address',
|
193 |
'type' => 'select',
|
194 |
'class' => 'chosen_select',
|
195 |
'options' => array(
|
196 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
197 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
198 |
),
|
199 |
'default' => 'no',
|
200 |
),
|
includes/general.php
CHANGED
@@ -20,7 +20,7 @@ if (!class_exists('QLWCDC_General')) {
|
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
-
$sections[''] =
|
24 |
|
25 |
return $sections;
|
26 |
}
|
@@ -33,87 +33,87 @@ if (!class_exists('QLWCDC_General')) {
|
|
33 |
|
34 |
$settings = array(
|
35 |
'qlwcdc_section_title' => array(
|
36 |
-
'name' =>
|
37 |
'type' => 'title',
|
38 |
-
'desc' =>
|
39 |
'id' => 'qlwcdc_section_title'
|
40 |
),
|
41 |
'add_to_cart_message' => array(
|
42 |
-
'name' =>
|
43 |
-
'desc_tip' =>
|
44 |
'id' => 'qlwcdc_add_to_cart_message',
|
45 |
'type' => 'select',
|
46 |
'class' => 'chosen_select',
|
47 |
'options' => array(
|
48 |
-
'yes' =>
|
49 |
-
'no' =>
|
50 |
),
|
51 |
'default' => 'no',
|
52 |
),
|
53 |
'add_to_cart_link' => array(
|
54 |
-
'name' =>
|
55 |
-
'desc_tip' =>
|
56 |
'id' => 'qlwcdc_add_to_cart_link',
|
57 |
'type' => 'select',
|
58 |
'class' => 'chosen_select',
|
59 |
'options' => array(
|
60 |
-
'yes' =>
|
61 |
-
'no' =>
|
62 |
),
|
63 |
'default' => 'no',
|
64 |
),
|
65 |
'add_to_cart' => array(
|
66 |
-
'name' =>
|
67 |
-
'desc_tip' =>
|
68 |
'id' => 'qlwcdc_add_to_cart',
|
69 |
'type' => 'select',
|
70 |
'class' => 'chosen_select',
|
71 |
'options' => array(
|
72 |
-
'no' =>
|
73 |
-
//'ajax' =>
|
74 |
-
'redirect' =>
|
75 |
),
|
76 |
'default' => 'no',
|
77 |
),
|
78 |
/* 'add_to_cart_ajax_button' => array(
|
79 |
-
'name' =>
|
80 |
-
'desc_tip' =>
|
81 |
'id' => 'qlwcdc_add_to_cart_ajax_button',
|
82 |
'type' => 'select',
|
83 |
'options' => array(
|
84 |
-
'yes' =>
|
85 |
-
'no' =>
|
86 |
),
|
87 |
'default' => 'no',
|
88 |
), */
|
89 |
/* 'add_to_cart_ajax_message' => array(
|
90 |
-
'name' =>
|
91 |
-
'desc_tip' =>
|
92 |
'id' => 'qlwcdc_add_to_cart_ajax_message',
|
93 |
'type' => 'select',
|
94 |
'class' => 'chosen_select',
|
95 |
'options' => array(
|
96 |
-
'yes' =>
|
97 |
-
'no' =>
|
98 |
),
|
99 |
'default' => 'yes',
|
100 |
), */
|
101 |
'add_to_cart_redirect_page' => array(
|
102 |
-
'name' =>
|
103 |
-
'desc_tip' =>
|
104 |
'id' => 'qlwcdc_add_to_cart_redirect_page',
|
105 |
'type' => 'select',
|
106 |
'class' => 'chosen_select',
|
107 |
'options' => array(
|
108 |
-
'cart' =>
|
109 |
-
'checkout' =>
|
110 |
-
'url' =>
|
111 |
),
|
112 |
'default' => 'cart',
|
113 |
),
|
114 |
'add_to_cart_redirect_url' => array(
|
115 |
-
'name' =>
|
116 |
-
'desc_tip' =>
|
117 |
'id' => 'qlwcdc_add_to_cart_redirect_url',
|
118 |
'type' => 'text',
|
119 |
'placeholder' => wc_get_checkout_url(),
|
20 |
|
21 |
function add_section($sections) {
|
22 |
|
23 |
+
$sections[''] = esc_html__('General', 'woocommerce-direct-checkout');
|
24 |
|
25 |
return $sections;
|
26 |
}
|
33 |
|
34 |
$settings = array(
|
35 |
'qlwcdc_section_title' => array(
|
36 |
+
'name' => esc_html__('General', 'woocommerce-direct-checkout'),
|
37 |
'type' => 'title',
|
38 |
+
'desc' => esc_html__('Simplifies the checkout process.', 'woocommerce-direct-checkout'),
|
39 |
'id' => 'qlwcdc_section_title'
|
40 |
),
|
41 |
'add_to_cart_message' => array(
|
42 |
+
'name' => esc_html__('Added to cart alert', 'woocommerce-direct-checkout'),
|
43 |
+
'desc_tip' => esc_html__('Replace "View Cart" alert with direct checkout.', 'woocommerce-direct-checkout'),
|
44 |
'id' => 'qlwcdc_add_to_cart_message',
|
45 |
'type' => 'select',
|
46 |
'class' => 'chosen_select',
|
47 |
'options' => array(
|
48 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
49 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
50 |
),
|
51 |
'default' => 'no',
|
52 |
),
|
53 |
'add_to_cart_link' => array(
|
54 |
+
'name' => esc_html__('Added to cart link', 'woocommerce-direct-checkout'),
|
55 |
+
'desc_tip' => esc_html__('Replace "View Cart" link with direct checkout.', 'woocommerce-direct-checkout'),
|
56 |
'id' => 'qlwcdc_add_to_cart_link',
|
57 |
'type' => 'select',
|
58 |
'class' => 'chosen_select',
|
59 |
'options' => array(
|
60 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
61 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
62 |
),
|
63 |
'default' => 'no',
|
64 |
),
|
65 |
'add_to_cart' => array(
|
66 |
+
'name' => esc_html__('Added to cart redirect', 'woocommerce-direct-checkout'),
|
67 |
+
'desc_tip' => esc_html__('Add to cart button behaviour.', 'woocommerce-direct-checkout'),
|
68 |
'id' => 'qlwcdc_add_to_cart',
|
69 |
'type' => 'select',
|
70 |
'class' => 'chosen_select',
|
71 |
'options' => array(
|
72 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
73 |
+
//'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
74 |
+
'redirect' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
75 |
),
|
76 |
'default' => 'no',
|
77 |
),
|
78 |
/* 'add_to_cart_ajax_button' => array(
|
79 |
+
'name' => esc_html__('Added to cart button', 'woocommerce-direct-checkout'),
|
80 |
+
'desc_tip' => esc_html__('Show or hide the added to cart forward button.', 'woocommerce-direct-checkout'),
|
81 |
'id' => 'qlwcdc_add_to_cart_ajax_button',
|
82 |
'type' => 'select',
|
83 |
'options' => array(
|
84 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
85 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
86 |
),
|
87 |
'default' => 'no',
|
88 |
), */
|
89 |
/* 'add_to_cart_ajax_message' => array(
|
90 |
+
'name' => esc_html__('Added to cart alert', 'woocommerce-direct-checkout'),
|
91 |
+
'desc_tip' => esc_html__('Include the "added to cart" alert message in product archives and shop.', 'woocommerce-direct-checkout'),
|
92 |
'id' => 'qlwcdc_add_to_cart_ajax_message',
|
93 |
'type' => 'select',
|
94 |
'class' => 'chosen_select',
|
95 |
'options' => array(
|
96 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
97 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
98 |
),
|
99 |
'default' => 'yes',
|
100 |
), */
|
101 |
'add_to_cart_redirect_page' => array(
|
102 |
+
'name' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
103 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
104 |
'id' => 'qlwcdc_add_to_cart_redirect_page',
|
105 |
'type' => 'select',
|
106 |
'class' => 'chosen_select',
|
107 |
'options' => array(
|
108 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
109 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
110 |
+
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
111 |
),
|
112 |
'default' => 'cart',
|
113 |
),
|
114 |
'add_to_cart_redirect_url' => array(
|
115 |
+
'name' => esc_html__('Added to cart redirect to custom url', 'woocommerce-direct-checkout'),
|
116 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
117 |
'id' => 'qlwcdc_add_to_cart_redirect_url',
|
118 |
'type' => 'text',
|
119 |
'placeholder' => wc_get_checkout_url(),
|
includes/products.php
CHANGED
@@ -12,7 +12,7 @@ if (!class_exists('QLWCDC_Products')) {
|
|
12 |
|
13 |
function add_section($sections = array()) {
|
14 |
|
15 |
-
$sections['products'] =
|
16 |
|
17 |
return $sections;
|
18 |
}
|
@@ -25,132 +25,132 @@ if (!class_exists('QLWCDC_Products')) {
|
|
25 |
|
26 |
$fields = array(
|
27 |
'section_title' => array(
|
28 |
-
'name' =>
|
29 |
'type' => 'title',
|
30 |
'id' => 'qlwcdc_products_section_title'
|
31 |
),
|
32 |
/* 'add_product_cart' => array(
|
33 |
-
'name' =>
|
34 |
-
'desc_tip' =>
|
35 |
'id' => 'qlwcdc_add_product_cart',
|
36 |
'type' => 'select',
|
37 |
'class' => 'chosen_select',
|
38 |
'options' => array(
|
39 |
-
'no' =>
|
40 |
-
'ajax' =>
|
41 |
-
'redirect' =>
|
42 |
),
|
43 |
'default' => 'no',
|
44 |
),
|
45 |
'add_product_cart_ajax_button' => array(
|
46 |
-
'name' =>
|
47 |
-
'desc_tip' =>
|
48 |
'id' => 'qlwcdc_add_product_cart_ajax_button',
|
49 |
'type' => 'select',
|
50 |
'options' => array(
|
51 |
-
'yes' =>
|
52 |
-
'no' =>
|
53 |
),
|
54 |
'default' => 'no',
|
55 |
),
|
56 |
'add_product_cart_ajax_message' => array(
|
57 |
-
'name' =>
|
58 |
-
'desc_tip' =>
|
59 |
'id' => 'qlwcdc_add_product_cart_ajax_message',
|
60 |
'type' => 'select',
|
61 |
'class' => 'chosen_select',
|
62 |
'options' => array(
|
63 |
-
'yes' =>
|
64 |
-
'no' =>
|
65 |
),
|
66 |
'default' => 'yes',
|
67 |
),
|
68 |
'add_product_cart_redirect_page' => array(
|
69 |
-
'name' =>
|
70 |
-
'desc_tip' =>
|
71 |
'id' => 'qlwcdc_add_product_cart_redirect_page',
|
72 |
'type' => 'select',
|
73 |
'class' => 'chosen_select',
|
74 |
'options' => array(
|
75 |
-
'cart' =>
|
76 |
-
'checkout' =>
|
77 |
-
'url' =>
|
78 |
),
|
79 |
'default' => 'cart',
|
80 |
),
|
81 |
'add_product_cart_redirect_url' => array(
|
82 |
-
'name' =>
|
83 |
-
'desc_tip' =>
|
84 |
'id' => 'qlwcdc_add_product_cart_redirect_url',
|
85 |
'type' => 'text',
|
86 |
'placeholder' => wc_get_checkout_url(),
|
87 |
), */
|
88 |
'add_product_text' => array(
|
89 |
-
'name' =>
|
90 |
-
'desc_tip' =>
|
91 |
'id' => 'qlwcdc_add_product_text',
|
92 |
'type' => 'select',
|
93 |
'class' => 'chosen_select',
|
94 |
'options' => array(
|
95 |
-
'yes' =>
|
96 |
-
'no' =>
|
97 |
),
|
98 |
'default' => 'no',
|
99 |
),
|
100 |
'add_product_text_content' => array(
|
101 |
-
'name' =>
|
102 |
-
'desc_tip' =>
|
103 |
'id' => 'qlwcdc_add_product_text_content',
|
104 |
'type' => 'text',
|
105 |
'default' => esc_html__('Purchase', 'woocommerce-direct-checkout')
|
106 |
),
|
107 |
'add_product_quick_purchase' => array(
|
108 |
-
'name' =>
|
109 |
-
'desc_tip' =>
|
110 |
'id' => 'qlwcdc_add_product_quick_purchase',
|
111 |
'type' => 'select',
|
112 |
'class' => 'chosen_select',
|
113 |
'options' => array(
|
114 |
-
'yes' =>
|
115 |
-
'no' =>
|
116 |
),
|
117 |
'default' => 'no',
|
118 |
),
|
119 |
'add_product_quick_purchase_class' => array(
|
120 |
-
'name' =>
|
121 |
-
'desc_tip' =>
|
122 |
'id' => 'qlwcdc_add_product_quick_purchase_class',
|
123 |
'type' => 'text',
|
124 |
'default' => ''
|
125 |
),
|
126 |
'add_product_quick_purchase_to' => array(
|
127 |
-
'name' =>
|
128 |
-
'desc_tip' =>
|
129 |
'id' => 'qlwcdc_add_product_quick_purchase_to',
|
130 |
'type' => 'select',
|
131 |
'class' => 'chosen_select',
|
132 |
'options' => array(
|
133 |
-
'cart' =>
|
134 |
-
'checkout' =>
|
135 |
),
|
136 |
'default' => 'checkout',
|
137 |
),
|
138 |
'add_product_quick_purchase_text' => array(
|
139 |
-
'name' =>
|
140 |
-
'desc_tip' =>
|
141 |
'id' => 'qlwcdc_add_product_quick_purchase_text',
|
142 |
'type' => 'text',
|
143 |
'default' => esc_html__('Purchase Now', 'woocommerce-direct-checkout')
|
144 |
),
|
145 |
'add_product_default_attributes' => array(
|
146 |
-
'name' =>
|
147 |
-
'desc_tip' =>
|
148 |
'id' => 'qlwcdc_add_product_default_attributes',
|
149 |
'type' => 'select',
|
150 |
'class' => 'chosen_select',
|
151 |
'options' => array(
|
152 |
-
'yes' =>
|
153 |
-
'no' =>
|
154 |
),
|
155 |
'default' => 'no',
|
156 |
),
|
@@ -175,59 +175,59 @@ if (!class_exists('QLWCDC_Products')) {
|
|
175 |
$this->product_fields = array(
|
176 |
/* 'start_group',
|
177 |
array(
|
178 |
-
'label' =>
|
179 |
'desc_tip' => true,
|
180 |
-
'description' =>
|
181 |
'id' => 'qlwcdc_add_product_cart',
|
182 |
'type' => 'select',
|
183 |
'options' => array(
|
184 |
-
'no' =>
|
185 |
-
'ajax' =>
|
186 |
-
'redirect' =>
|
187 |
),
|
188 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart', 'no'),
|
189 |
),
|
190 |
array(
|
191 |
-
'label' =>
|
192 |
'desc_tip' => true,
|
193 |
-
'description' =>
|
194 |
'id' => 'qlwcdc_add_product_cart_ajax_button',
|
195 |
'type' => 'select',
|
196 |
'options' => array(
|
197 |
-
'yes' =>
|
198 |
-
'no' =>
|
199 |
),
|
200 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_ajax_button', 'no'),
|
201 |
),
|
202 |
array(
|
203 |
-
'label' =>
|
204 |
'desc_tip' => true,
|
205 |
-
'description' =>
|
206 |
'id' => 'qlwcdc_add_product_cart_ajax_message',
|
207 |
'type' => 'select',
|
208 |
'options' => array(
|
209 |
-
'yes' =>
|
210 |
-
'no' =>
|
211 |
),
|
212 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_ajax_message', 'no'),
|
213 |
),
|
214 |
array(
|
215 |
-
'label' =>
|
216 |
'desc_tip' => true,
|
217 |
-
'description' =>
|
218 |
'id' => 'qlwcdc_add_product_cart_redirect_page',
|
219 |
'type' => 'select',
|
220 |
'options' => array(
|
221 |
-
'cart' =>
|
222 |
-
'checkout' =>
|
223 |
-
'url' =>
|
224 |
),
|
225 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_redirect_page', 'cart'),
|
226 |
),
|
227 |
array(
|
228 |
-
'label' =>
|
229 |
'desc_tip' => true,
|
230 |
-
'description' =>
|
231 |
'id' => 'qlwcdc_add_product_cart_redirect_url',
|
232 |
'type' => 'text',
|
233 |
'placeholder' => get_option('qlwcdc_add_product_cart_redirect_url'),
|
@@ -236,21 +236,21 @@ if (!class_exists('QLWCDC_Products')) {
|
|
236 |
'end_group', */
|
237 |
'start_group',
|
238 |
array(
|
239 |
-
'label' =>
|
240 |
'desc_tip' => true,
|
241 |
-
'description' =>
|
242 |
'id' => 'qlwcdc_add_product_text',
|
243 |
'type' => 'select',
|
244 |
'options' => array(
|
245 |
-
'yes' =>
|
246 |
-
'no' =>
|
247 |
),
|
248 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_text', 'no'),
|
249 |
),
|
250 |
array(
|
251 |
-
'label' =>
|
252 |
'desc_tip' => true,
|
253 |
-
'description' =>
|
254 |
'id' => 'qlwcdc_add_product_text_content',
|
255 |
'type' => 'text',
|
256 |
'placeholder' => get_option('qlwcdc_add_product_text_content'),
|
@@ -259,45 +259,45 @@ if (!class_exists('QLWCDC_Products')) {
|
|
259 |
'start_group',
|
260 |
'end_group',
|
261 |
array(
|
262 |
-
'label' =>
|
263 |
'desc_tip' => true,
|
264 |
-
'description' =>
|
265 |
'id' => 'qlwcdc_add_product_quick_purchase',
|
266 |
'class' => 'short',
|
267 |
'type' => 'select',
|
268 |
'options' => array(
|
269 |
-
'yes' =>
|
270 |
-
'no' =>
|
271 |
),
|
272 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase', 'no')
|
273 |
),
|
274 |
array(
|
275 |
-
'label' =>
|
276 |
'desc_tip' => true,
|
277 |
-
'description' =>
|
278 |
'id' => 'qlwcdc_add_product_quick_purchase_class',
|
279 |
'type' => 'text',
|
280 |
'placeholder' => get_option('qlwcdc_add_product_quick_purchase_class'),
|
281 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_class'),
|
282 |
),
|
283 |
array(
|
284 |
-
'label' =>
|
285 |
'desc_tip' => true,
|
286 |
-
'description' =>
|
287 |
'id' => 'qlwcdc_add_product_quick_purchase_text',
|
288 |
'type' => 'text',
|
289 |
'placeholder' => get_option('qlwcdc_add_product_quick_purchase_text'),
|
290 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_text'),
|
291 |
),
|
292 |
array(
|
293 |
-
'label' =>
|
294 |
'desc_tip' => true,
|
295 |
-
'description' =>
|
296 |
'id' => 'qlwcdc_add_product_quick_purchase_to',
|
297 |
'type' => 'select',
|
298 |
'options' => array(
|
299 |
-
'cart' =>
|
300 |
-
'checkout' =>
|
301 |
),
|
302 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_to', 'checkout'),
|
303 |
),
|
@@ -308,7 +308,7 @@ if (!class_exists('QLWCDC_Products')) {
|
|
308 |
function add_product_tabs($tabs) {
|
309 |
|
310 |
$tabs[QLWCDC_DOMAIN] = array(
|
311 |
-
'label' =>
|
312 |
'target' => 'qlwcdc_options',
|
313 |
);
|
314 |
|
12 |
|
13 |
function add_section($sections = array()) {
|
14 |
|
15 |
+
$sections['products'] = esc_html__('Products', 'woocommerce-direct-checkout');
|
16 |
|
17 |
return $sections;
|
18 |
}
|
25 |
|
26 |
$fields = array(
|
27 |
'section_title' => array(
|
28 |
+
'name' => esc_html__('Products', 'woocommerce-direct-checkout'),
|
29 |
'type' => 'title',
|
30 |
'id' => 'qlwcdc_products_section_title'
|
31 |
),
|
32 |
/* 'add_product_cart' => array(
|
33 |
+
'name' => esc_html__('Add to cart', 'woocommerce-direct-checkout'),
|
34 |
+
'desc_tip' => esc_html__('Add to cart button behaviour in products pages.', 'woocommerce-direct-checkout'),
|
35 |
'id' => 'qlwcdc_add_product_cart',
|
36 |
'type' => 'select',
|
37 |
'class' => 'chosen_select',
|
38 |
'options' => array(
|
39 |
+
'no' => esc_html__('Reload', 'woocommerce-direct-checkout'),
|
40 |
+
'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
41 |
+
'redirect' => esc_html__('Redirect', 'woocommerce-direct-checkout'),
|
42 |
),
|
43 |
'default' => 'no',
|
44 |
),
|
45 |
'add_product_cart_ajax_button' => array(
|
46 |
+
'name' => esc_html__('Added to cart button', 'woocommerce-direct-checkout'),
|
47 |
+
'desc_tip' => esc_html__('Show or hide the added to cart forward button.', 'woocommerce-direct-checkout'),
|
48 |
'id' => 'qlwcdc_add_product_cart_ajax_button',
|
49 |
'type' => '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 |
'add_product_cart_ajax_message' => array(
|
57 |
+
'name' => esc_html__('Added to cart alert', 'woocommerce-direct-checkout'),
|
58 |
+
'desc_tip' => esc_html__('Include the "added to cart" alert message in product archives and shop.', 'woocommerce-direct-checkout'),
|
59 |
'id' => 'qlwcdc_add_product_cart_ajax_message',
|
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' => 'yes',
|
67 |
),
|
68 |
'add_product_cart_redirect_page' => array(
|
69 |
+
'name' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
70 |
+
'desc_tip' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
71 |
'id' => 'qlwcdc_add_product_cart_redirect_page',
|
72 |
'type' => 'select',
|
73 |
'class' => 'chosen_select',
|
74 |
'options' => array(
|
75 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
76 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
77 |
+
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
78 |
),
|
79 |
'default' => 'cart',
|
80 |
),
|
81 |
'add_product_cart_redirect_url' => array(
|
82 |
+
'name' => esc_html__('Added to cart redirect to custom url', '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_product_cart_redirect_url',
|
85 |
'type' => 'text',
|
86 |
'placeholder' => wc_get_checkout_url(),
|
87 |
), */
|
88 |
'add_product_text' => array(
|
89 |
+
'name' => esc_html__('Replace Add to cart text', 'woocommerce-direct-checkout'),
|
90 |
+
'desc_tip' => esc_html__('Replace "Add to cart" text.', 'woocommerce-direct-checkout'),
|
91 |
'id' => 'qlwcdc_add_product_text',
|
92 |
'type' => 'select',
|
93 |
'class' => 'chosen_select',
|
94 |
'options' => array(
|
95 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
96 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
97 |
),
|
98 |
'default' => 'no',
|
99 |
),
|
100 |
'add_product_text_content' => array(
|
101 |
+
'name' => esc_html__('Replace Add to cart text content', 'woocommerce-direct-checkout'),
|
102 |
+
'desc_tip' => esc_html__('Replace "Add to cart" text with this text.', 'woocommerce-direct-checkout'),
|
103 |
'id' => 'qlwcdc_add_product_text_content',
|
104 |
'type' => 'text',
|
105 |
'default' => esc_html__('Purchase', 'woocommerce-direct-checkout')
|
106 |
),
|
107 |
'add_product_quick_purchase' => array(
|
108 |
+
'name' => esc_html__('Add quick purchase button', 'woocommerce-direct-checkout'),
|
109 |
+
'desc_tip' => esc_html__('Add a quick purchase button to the products pages.', 'woocommerce-direct-checkout'),
|
110 |
'id' => 'qlwcdc_add_product_quick_purchase',
|
111 |
'type' => 'select',
|
112 |
'class' => 'chosen_select',
|
113 |
'options' => array(
|
114 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
115 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
116 |
),
|
117 |
'default' => 'no',
|
118 |
),
|
119 |
'add_product_quick_purchase_class' => array(
|
120 |
+
'name' => esc_html__('Add quick purchase class', 'woocommerce-direct-checkout'),
|
121 |
+
'desc_tip' => esc_html__('Add a custom class to the quick purchase button.', 'woocommerce-direct-checkout'),
|
122 |
'id' => 'qlwcdc_add_product_quick_purchase_class',
|
123 |
'type' => 'text',
|
124 |
'default' => ''
|
125 |
),
|
126 |
'add_product_quick_purchase_to' => array(
|
127 |
+
'name' => esc_html__('Redirect quick purchase to', 'woocommerce-direct-checkout'),
|
128 |
+
'desc_tip' => esc_html__('Redirect the quick purchase button to the cart or checkout page.', 'woocommerce-direct-checkout'),
|
129 |
'id' => 'qlwcdc_add_product_quick_purchase_to',
|
130 |
'type' => 'select',
|
131 |
'class' => 'chosen_select',
|
132 |
'options' => array(
|
133 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
134 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
135 |
),
|
136 |
'default' => 'checkout',
|
137 |
),
|
138 |
'add_product_quick_purchase_text' => array(
|
139 |
+
'name' => esc_html__('Add quick purchase text', 'woocommerce-direct-checkout'),
|
140 |
+
'desc_tip' => esc_html__('Add a custom text to the quick purchase button.', 'woocommerce-direct-checkout'),
|
141 |
'id' => 'qlwcdc_add_product_quick_purchase_text',
|
142 |
'type' => 'text',
|
143 |
'default' => esc_html__('Purchase Now', 'woocommerce-direct-checkout')
|
144 |
),
|
145 |
'add_product_default_attributes' => array(
|
146 |
+
'name' => esc_html__('Add default attributes in variable products', 'woocommerce-direct-checkout'),
|
147 |
+
'desc_tip' => esc_html__('Add default attributes in all variable products to avoid disabled Add to cart button.', 'woocommerce-direct-checkout'),
|
148 |
'id' => 'qlwcdc_add_product_default_attributes',
|
149 |
'type' => 'select',
|
150 |
'class' => 'chosen_select',
|
151 |
'options' => array(
|
152 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
153 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
154 |
),
|
155 |
'default' => 'no',
|
156 |
),
|
175 |
$this->product_fields = array(
|
176 |
/* 'start_group',
|
177 |
array(
|
178 |
+
'label' => esc_html__('Add to cart', 'woocommerce-direct-checkout'),
|
179 |
'desc_tip' => true,
|
180 |
+
'description' => esc_html__('Add to cart behaviour for this product.', 'woocommerce-direct-checkout'),
|
181 |
'id' => 'qlwcdc_add_product_cart',
|
182 |
'type' => 'select',
|
183 |
'options' => array(
|
184 |
+
'no' => esc_html__('Reload', 'woocommerce-direct-checkout'),
|
185 |
+
'ajax' => esc_html__('Ajax', 'woocommerce-direct-checkout'),
|
186 |
+
'redirect' => esc_html__('Redirect', 'woocommerce-direct-checkout'),
|
187 |
),
|
188 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart', 'no'),
|
189 |
),
|
190 |
array(
|
191 |
+
'label' => esc_html__('Ajax added to cart button', 'woocommerce-direct-checkout'),
|
192 |
'desc_tip' => true,
|
193 |
+
'description' => esc_html__('Display ajax added to cart button.', 'woocommerce-direct-checkout'),
|
194 |
'id' => 'qlwcdc_add_product_cart_ajax_button',
|
195 |
'type' => 'select',
|
196 |
'options' => array(
|
197 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
198 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
199 |
),
|
200 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_ajax_button', 'no'),
|
201 |
),
|
202 |
array(
|
203 |
+
'label' => esc_html__('Ajax added to cart alert', 'woocommerce-direct-checkout'),
|
204 |
'desc_tip' => true,
|
205 |
+
'description' => esc_html__('Display ajax added to cart alert for this product.', 'woocommerce-direct-checkout'),
|
206 |
'id' => 'qlwcdc_add_product_cart_ajax_message',
|
207 |
'type' => 'select',
|
208 |
'options' => array(
|
209 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
210 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
211 |
),
|
212 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_ajax_message', 'no'),
|
213 |
),
|
214 |
array(
|
215 |
+
'label' => esc_html__('Added to cart redirect to', 'woocommerce-direct-checkout'),
|
216 |
'desc_tip' => true,
|
217 |
+
'description' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
218 |
'id' => 'qlwcdc_add_product_cart_redirect_page',
|
219 |
'type' => 'select',
|
220 |
'options' => array(
|
221 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
222 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
223 |
+
'url' => esc_html__('Custom URL', 'woocommerce-direct-checkout'),
|
224 |
),
|
225 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_cart_redirect_page', 'cart'),
|
226 |
),
|
227 |
array(
|
228 |
+
'label' => esc_html__('Added to cart redirect to custom url', 'woocommerce-direct-checkout'),
|
229 |
'desc_tip' => true,
|
230 |
+
'description' => esc_html__('Redirect to the cart or checkout page after successful addition.', 'woocommerce-direct-checkout'),
|
231 |
'id' => 'qlwcdc_add_product_cart_redirect_url',
|
232 |
'type' => 'text',
|
233 |
'placeholder' => get_option('qlwcdc_add_product_cart_redirect_url'),
|
236 |
'end_group', */
|
237 |
'start_group',
|
238 |
array(
|
239 |
+
'label' => esc_html__('Replace Add to cart text', 'woocommerce-direct-checkout'),
|
240 |
'desc_tip' => true,
|
241 |
+
'description' => esc_html__('Replace "Add to cart" text.', 'woocommerce-direct-checkout'),
|
242 |
'id' => 'qlwcdc_add_product_text',
|
243 |
'type' => 'select',
|
244 |
'options' => array(
|
245 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
246 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
247 |
),
|
248 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_text', 'no'),
|
249 |
),
|
250 |
array(
|
251 |
+
'label' => esc_html__('Replace Add to cart text content', 'woocommerce-direct-checkout'),
|
252 |
'desc_tip' => true,
|
253 |
+
'description' => esc_html__('Replace "Add to cart" text with this text.', 'woocommerce-direct-checkout'),
|
254 |
'id' => 'qlwcdc_add_product_text_content',
|
255 |
'type' => 'text',
|
256 |
'placeholder' => get_option('qlwcdc_add_product_text_content'),
|
259 |
'start_group',
|
260 |
'end_group',
|
261 |
array(
|
262 |
+
'label' => esc_html__('Add quick purchase button', 'woocommerce-direct-checkout'),
|
263 |
'desc_tip' => true,
|
264 |
+
'description' => esc_html__('Add quick purchase button to single product page.', 'woocommerce-direct-checkout'),
|
265 |
'id' => 'qlwcdc_add_product_quick_purchase',
|
266 |
'class' => 'short',
|
267 |
'type' => 'select',
|
268 |
'options' => array(
|
269 |
+
'yes' => esc_html__('Yes', 'woocommerce-direct-checkout'),
|
270 |
+
'no' => esc_html__('No', 'woocommerce-direct-checkout'),
|
271 |
),
|
272 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase', 'no')
|
273 |
),
|
274 |
array(
|
275 |
+
'label' => esc_html__('Add quick purchase class', 'woocommerce-direct-checkout'),
|
276 |
'desc_tip' => true,
|
277 |
+
'description' => esc_html__('Add quick purchase custom class.', 'woocommerce-direct-checkout'),
|
278 |
'id' => 'qlwcdc_add_product_quick_purchase_class',
|
279 |
'type' => 'text',
|
280 |
'placeholder' => get_option('qlwcdc_add_product_quick_purchase_class'),
|
281 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_class'),
|
282 |
),
|
283 |
array(
|
284 |
+
'label' => esc_html__('Add quick purchase text', 'woocommerce-direct-checkout'),
|
285 |
'desc_tip' => true,
|
286 |
+
'description' => esc_html__('Add quick purchase custom text.', 'woocommerce-direct-checkout'),
|
287 |
'id' => 'qlwcdc_add_product_quick_purchase_text',
|
288 |
'type' => 'text',
|
289 |
'placeholder' => get_option('qlwcdc_add_product_quick_purchase_text'),
|
290 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_text'),
|
291 |
),
|
292 |
array(
|
293 |
+
'label' => esc_html__('Redirect quick purchase to', 'woocommerce-direct-checkout'),
|
294 |
'desc_tip' => true,
|
295 |
+
'description' => esc_html__('Redirect quick purchase to the cart or checkout page.', 'woocommerce-direct-checkout'),
|
296 |
'id' => 'qlwcdc_add_product_quick_purchase_to',
|
297 |
'type' => 'select',
|
298 |
'options' => array(
|
299 |
+
'cart' => esc_html__('Cart', 'woocommerce-direct-checkout'),
|
300 |
+
'checkout' => esc_html__('Checkout', 'woocommerce-direct-checkout'),
|
301 |
),
|
302 |
'value' => $this->get_product_option($thepostid, 'qlwcdc_add_product_quick_purchase_to', 'checkout'),
|
303 |
),
|
308 |
function add_product_tabs($tabs) {
|
309 |
|
310 |
$tabs[QLWCDC_DOMAIN] = array(
|
311 |
+
'label' => esc_html__('Direct Checkout', 'qlwdd'),
|
312 |
'target' => 'qlwcdc_options',
|
313 |
);
|
314 |
|
includes/purchase.php
CHANGED
@@ -11,7 +11,7 @@ if (!class_exists('QLWCDC_Purchase')) {
|
|
11 |
|
12 |
function add_section($sections) {
|
13 |
|
14 |
-
$sections['premium'] =
|
15 |
|
16 |
return $sections;
|
17 |
}
|
11 |
|
12 |
function add_section($sections) {
|
13 |
|
14 |
+
$sections['premium'] = esc_html__('Premium', 'woocommerce-direct-checkout');
|
15 |
|
16 |
return $sections;
|
17 |
}
|
readme.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
=== Direct Checkout for WooCommerce ===
|
2 |
Contributors: quadlayers
|
|
|
3 |
Tags: woocommerce, woocommerce ajax, woocommerce ajax cart, add to cart, woocommerce direct checkout, woocommerce quick buy, woocommerce remove checkout fields, woocommerce ajax single products, woocommerce one page checkout
|
4 |
Requires at least: 4.8
|
5 |
-
Tested up to: 5.2
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -46,6 +47,9 @@ The premium version of WooCommerce Direct Checkot allows to include a quick purc
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
49 |
= 2.1.7 =
|
50 |
* Fix. WooCommerce Direct Checkout readme update
|
51 |
|
1 |
=== Direct Checkout for WooCommerce ===
|
2 |
Contributors: quadlayers
|
3 |
+
Donate link: https://quadlayers.com/portfolio/woocommerce-direct-checkout/
|
4 |
Tags: woocommerce, woocommerce ajax, woocommerce ajax cart, add to cart, woocommerce direct checkout, woocommerce quick buy, woocommerce remove checkout fields, woocommerce ajax single products, woocommerce one page checkout
|
5 |
Requires at least: 4.8
|
6 |
+
Tested up to: 5.2.2
|
7 |
+
Stable tag: 2.1.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 2.1.8 = readme update
|
51 |
+
* Fix. WooCommerce Direct Checkout data scaping
|
52 |
+
|
53 |
= 2.1.7 =
|
54 |
* Fix. WooCommerce Direct Checkout readme update
|
55 |
|
woocommerce-direct-checkout.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
-
* Version: 2.1.
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
@@ -13,10 +13,10 @@ if (!defined('ABSPATH')) {
|
|
13 |
die('-1');
|
14 |
}
|
15 |
if (!defined('QLWCDC_PLUGIN_NAME')) {
|
16 |
-
define('QLWCDC_PLUGIN_NAME', 'Direct Checkout
|
17 |
}
|
18 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
19 |
-
define('QLWCDC_PLUGIN_VERSION', '2.1.
|
20 |
}
|
21 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
22 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
@@ -155,7 +155,7 @@ if (!class_exists('QLWCDC')) {
|
|
155 |
}
|
156 |
|
157 |
function add_tab($settings_tabs) {
|
158 |
-
$settings_tabs[QLWCDC_DOMAIN] =
|
159 |
return $settings_tabs;
|
160 |
}
|
161 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: WooCommerce Direct Checkout
|
4 |
* Description: Simplifies the checkout process to improve your sales rate.
|
5 |
+
* Version: 2.1.8
|
6 |
* Author: QuadLayers
|
7 |
* Author URI: https://www.quadlayers.com
|
8 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
13 |
die('-1');
|
14 |
}
|
15 |
if (!defined('QLWCDC_PLUGIN_NAME')) {
|
16 |
+
define('QLWCDC_PLUGIN_NAME', 'WooCommerce Direct Checkout');
|
17 |
}
|
18 |
if (!defined('QLWCDC_PLUGIN_VERSION')) {
|
19 |
+
define('QLWCDC_PLUGIN_VERSION', '2.1.8');
|
20 |
}
|
21 |
if (!defined('QLWCDC_PLUGIN_FILE')) {
|
22 |
define('QLWCDC_PLUGIN_FILE', __FILE__);
|
155 |
}
|
156 |
|
157 |
function add_tab($settings_tabs) {
|
158 |
+
$settings_tabs[QLWCDC_DOMAIN] = esc_html__('Direct Checkout', 'woocommerce-direct-checkout');
|
159 |
return $settings_tabs;
|
160 |
}
|
161 |
|