Version Description
- Fix: woocommerce account conditional fields
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 5.0.6 |
Comparing to | |
See all releases |
Code changes from version 5.0.5 to 5.0.6
includes/controller/class-wooccm-field-additional.php
CHANGED
@@ -1,27 +1,32 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller
|
|
|
4 |
|
5 |
protected static $_instance;
|
6 |
public $additional;
|
7 |
|
8 |
-
public function __construct()
|
|
|
9 |
$this->includes();
|
10 |
$this->init();
|
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 |
-
function includes()
|
21 |
-
|
|
|
22 |
}
|
23 |
|
24 |
-
function init()
|
|
|
25 |
add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'add_order_data'));
|
26 |
add_action('woocommerce_checkout_update_order_meta', array($this, 'save_order_data'), 10, 2);
|
27 |
add_action('wooccm_sections_header', array($this, 'add_header'));
|
@@ -29,7 +34,8 @@ class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller {
|
|
29 |
add_action('woocommerce_settings_save_' . WOOCCM_PREFIX, array($this, 'save_settings'));
|
30 |
}
|
31 |
|
32 |
-
function save_order_data($order_id, $data)
|
|
|
33 |
|
34 |
if (count($fields = WOOCCM()->additional->get_fields())) {
|
35 |
|
@@ -49,12 +55,12 @@ class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller {
|
|
49 |
update_post_meta($order_id, $key, sanitize_text_field($value));
|
50 |
}
|
51 |
}
|
52 |
-
//
|
53 |
}
|
54 |
}
|
55 |
}
|
56 |
|
57 |
-
function save_settings()
|
|
|
58 |
|
59 |
global $current_section;
|
60 |
|
@@ -63,45 +69,62 @@ class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller {
|
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function get_settings()
|
|
|
67 |
|
68 |
return array(
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
82 |
}
|
83 |
|
84 |
// Admin Order
|
85 |
// ---------------------------------------------------------------------------
|
86 |
|
87 |
-
function add_order_data($order)
|
|
|
88 |
|
89 |
-
include_once(
|
90 |
|
91 |
if ($fields = WOOCCM()->additional->get_fields()) {
|
92 |
$template = WOOCCM()->additional->get_template_types();
|
93 |
$options = WOOCCM()->additional->get_option_types();
|
94 |
$multiple = WOOCCM()->additional->get_multiple_types();
|
95 |
-
|
96 |
</div>
|
97 |
<style>
|
98 |
#order_data .order_data_column {
|
99 |
width: 23%;
|
100 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
#order_data .order_data_column_additional .form-field {
|
102 |
width: 100%;
|
103 |
clear: both;
|
104 |
-
}
|
105 |
</style>
|
106 |
<div class="order_data_column order_data_column_additional">
|
107 |
<h3>
|
@@ -132,14 +155,14 @@ class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller {
|
|
132 |
}
|
133 |
|
134 |
if ($value) {
|
135 |
-
|
136 |
<p id="<?php echo esc_attr($field['key']); ?>" class="form-field form-field-wide form-field-type-<?php echo esc_attr($field['type']); ?>">
|
137 |
<strong title="<?php echo esc_attr(sprintf(__('ID: %s | Field Type: %s', 'woocommerce-checkout-manager'), $key, __('Generic', 'woocommerce-checkout-manager'))); ?>">
|
138 |
<?php printf('%s', $field['label'] ? esc_html($field['label']) : sprintf(esc_html__('Field %s', 'woocommerce-checkout-manager'), $field_id)); ?>
|
139 |
</strong>
|
140 |
<?php echo esc_html($value); ?>
|
141 |
</p>
|
142 |
-
|
143 |
}
|
144 |
}
|
145 |
?>
|
@@ -181,42 +204,42 @@ class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller {
|
|
181 |
}
|
182 |
?>
|
183 |
</div>
|
184 |
-
|
185 |
-
}
|
186 |
}
|
|
|
187 |
|
188 |
-
|
189 |
-
|
190 |
|
191 |
-
|
192 |
-
|
|
|
193 |
?>
|
194 |
-
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=wooccm§ion=additional'); ?>" class="<?php echo (
|
195 |
-
|
196 |
-
|
197 |
|
198 |
-
|
|
|
199 |
|
200 |
-
|
201 |
|
202 |
-
|
203 |
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
|
215 |
-
|
216 |
-
}
|
217 |
}
|
218 |
-
|
219 |
}
|
|
|
220 |
|
221 |
-
|
222 |
-
|
1 |
<?php
|
2 |
|
3 |
+
class WOOCCM_Field_Controller_Additional extends WOOCCM_Field_Controller
|
4 |
+
{
|
5 |
|
6 |
protected static $_instance;
|
7 |
public $additional;
|
8 |
|
9 |
+
public function __construct()
|
10 |
+
{
|
11 |
$this->includes();
|
12 |
$this->init();
|
13 |
}
|
14 |
|
15 |
+
public static function instance()
|
16 |
+
{
|
17 |
if (is_null(self::$_instance)) {
|
18 |
self::$_instance = new self();
|
19 |
}
|
20 |
return self::$_instance;
|
21 |
}
|
22 |
|
23 |
+
function includes()
|
24 |
+
{
|
25 |
+
include_once(WOOCCM_PLUGIN_DIR . 'includes/model/class-wooccm-field-additional.php');
|
26 |
}
|
27 |
|
28 |
+
function init()
|
29 |
+
{
|
30 |
add_action('woocommerce_admin_order_data_after_shipping_address', array($this, 'add_order_data'));
|
31 |
add_action('woocommerce_checkout_update_order_meta', array($this, 'save_order_data'), 10, 2);
|
32 |
add_action('wooccm_sections_header', array($this, 'add_header'));
|
34 |
add_action('woocommerce_settings_save_' . WOOCCM_PREFIX, array($this, 'save_settings'));
|
35 |
}
|
36 |
|
37 |
+
function save_order_data($order_id, $data)
|
38 |
+
{
|
39 |
|
40 |
if (count($fields = WOOCCM()->additional->get_fields())) {
|
41 |
|
55 |
update_post_meta($order_id, $key, sanitize_text_field($value));
|
56 |
}
|
57 |
}
|
|
|
58 |
}
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
function save_settings()
|
63 |
+
{
|
64 |
|
65 |
global $current_section;
|
66 |
|
69 |
}
|
70 |
}
|
71 |
|
72 |
+
function get_settings()
|
73 |
+
{
|
74 |
|
75 |
return array(
|
76 |
+
array(
|
77 |
+
'desc_tip' => esc_html__('Select the position of the additional fields.', 'woocommerce-checkout-manager'),
|
78 |
+
'id' => 'wooccm_additional_position',
|
79 |
+
'type' => 'select',
|
80 |
+
//'class' => 'chosen_select',
|
81 |
+
'options' => array(
|
82 |
+
'before_billing_form' => esc_html__('Before billing form', 'woocommerce-checkout-manager'),
|
83 |
+
'after_billing_form' => esc_html__('After billing form', 'woocommerce-checkout-manager'),
|
84 |
+
'before_order_notes' => esc_html__('Before order notes', 'woocommerce-checkout-manager'),
|
85 |
+
'after_order_notes' => esc_html__('After order notes', 'woocommerce-checkout-manager'),
|
86 |
+
),
|
87 |
+
'default' => 'before_order_notes',
|
88 |
+
)
|
89 |
+
);
|
90 |
}
|
91 |
|
92 |
// Admin Order
|
93 |
// ---------------------------------------------------------------------------
|
94 |
|
95 |
+
function add_order_data($order)
|
96 |
+
{
|
97 |
|
98 |
+
include_once(WOOCCM_PLUGIN_DIR . 'includes/view/frontend/class-wooccm-fields-handler.php');
|
99 |
|
100 |
if ($fields = WOOCCM()->additional->get_fields()) {
|
101 |
$template = WOOCCM()->additional->get_template_types();
|
102 |
$options = WOOCCM()->additional->get_option_types();
|
103 |
$multiple = WOOCCM()->additional->get_multiple_types();
|
104 |
+
?>
|
105 |
</div>
|
106 |
<style>
|
107 |
#order_data .order_data_column {
|
108 |
width: 23%;
|
109 |
+
}
|
110 |
+
|
111 |
+
#order_data .order_data_column .wooccm-premium {
|
112 |
+
width: 100% !important;
|
113 |
+
float: none !important;
|
114 |
+
clear: both;
|
115 |
+
}
|
116 |
+
|
117 |
+
#order_data .order_data_column .wooccm-premium:after,
|
118 |
+
#order_data .order_data_column .wooccm-premium:before {
|
119 |
+
display: block;
|
120 |
+
content: "";
|
121 |
+
clear: both;
|
122 |
+
}
|
123 |
+
|
124 |
#order_data .order_data_column_additional .form-field {
|
125 |
width: 100%;
|
126 |
clear: both;
|
127 |
+
}
|
128 |
</style>
|
129 |
<div class="order_data_column order_data_column_additional">
|
130 |
<h3>
|
155 |
}
|
156 |
|
157 |
if ($value) {
|
158 |
+
?>
|
159 |
<p id="<?php echo esc_attr($field['key']); ?>" class="form-field form-field-wide form-field-type-<?php echo esc_attr($field['type']); ?>">
|
160 |
<strong title="<?php echo esc_attr(sprintf(__('ID: %s | Field Type: %s', 'woocommerce-checkout-manager'), $key, __('Generic', 'woocommerce-checkout-manager'))); ?>">
|
161 |
<?php printf('%s', $field['label'] ? esc_html($field['label']) : sprintf(esc_html__('Field %s', 'woocommerce-checkout-manager'), $field_id)); ?>
|
162 |
</strong>
|
163 |
<?php echo esc_html($value); ?>
|
164 |
</p>
|
165 |
+
<?php
|
166 |
}
|
167 |
}
|
168 |
?>
|
204 |
}
|
205 |
?>
|
206 |
</div>
|
207 |
+
<?php
|
|
|
208 |
}
|
209 |
+
}
|
210 |
|
211 |
+
// Admin
|
212 |
+
// ---------------------------------------------------------------------------
|
213 |
|
214 |
+
public function add_header()
|
215 |
+
{
|
216 |
+
global $current_section;
|
217 |
?>
|
218 |
+
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=wooccm§ion=additional'); ?>" class="<?php echo ($current_section == 'additional' ? 'current' : ''); ?>"><?php esc_html_e('Additional', 'woocommerce-checkout-manager'); ?></a> | </li>
|
219 |
+
<?php
|
220 |
+
}
|
221 |
|
222 |
+
public function add_section()
|
223 |
+
{
|
224 |
|
225 |
+
global $current_section, $wp_roles, $wp_locale;
|
226 |
|
227 |
+
if ('additional' == $current_section) {
|
228 |
|
229 |
+
$fields = WOOCCM()->additional->get_fields();
|
230 |
+
$defaults = WOOCCM()->additional->get_defaults();
|
231 |
+
$types = WOOCCM()->additional->get_types();
|
232 |
+
$conditionals = WOOCCM()->additional->get_conditional_types();
|
233 |
+
$option = WOOCCM()->additional->get_option_types();
|
234 |
+
$multiple = WOOCCM()->additional->get_multiple_types();
|
235 |
+
$template = WOOCCM()->additional->get_template_types();
|
236 |
+
$disabled = WOOCCM()->additional->get_disabled_types();
|
237 |
+
$product_categories = $this->get_product_categories();
|
238 |
+
$settings = $this->get_settings();
|
239 |
|
240 |
+
include_once(WOOCCM_PLUGIN_DIR . 'includes/view/backend/pages/additional.php');
|
|
|
241 |
}
|
|
|
242 |
}
|
243 |
+
}
|
244 |
|
245 |
+
WOOCCM_Field_Controller_Additional::instance();
|
|
includes/controller/class-wooccm-field-billing.php
CHANGED
@@ -1,36 +1,45 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class WOOCCM_Field_Controller_Billing extends WOOCCM_Field_Controller
|
|
|
4 |
|
5 |
protected static $_instance;
|
6 |
public $billing;
|
7 |
|
8 |
-
public function __construct()
|
|
|
9 |
$this->includes();
|
10 |
$this->init();
|
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 |
-
function includes() {
|
21 |
-
include_once( WOOCCM_PLUGIN_DIR . 'includes/model/class-wooccm-field-billing.php' );
|
22 |
-
}
|
23 |
|
24 |
-
function init()
|
|
|
25 |
add_action('wooccm_sections_header', array($this, 'add_header'));
|
26 |
add_action('woocommerce_sections_' . WOOCCM_PREFIX, array($this, 'add_section'), 99);
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
// Admin
|
31 |
// ---------------------------------------------------------------------------
|
32 |
|
33 |
-
public function add_section()
|
|
|
34 |
|
35 |
global $current_section, $wp_roles, $wp_locale;
|
36 |
|
@@ -46,21 +55,94 @@ class WOOCCM_Field_Controller_Billing extends WOOCCM_Field_Controller {
|
|
46 |
$disabled = WOOCCM()->billing->get_disabled_types();
|
47 |
$product_categories = $this->get_product_categories();
|
48 |
|
49 |
-
include_once(
|
50 |
}
|
51 |
}
|
52 |
|
53 |
-
public function add_header()
|
|
|
54 |
global $current_section;
|
55 |
-
|
56 |
-
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=wooccm§ion=billing'); ?>" class="<?php echo (
|
57 |
-
|
58 |
}
|
59 |
|
60 |
// Admin Order
|
61 |
// ---------------------------------------------------------------------------
|
62 |
|
63 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
if ($fields = WOOCCM()->billing->get_fields()) {
|
66 |
|
@@ -73,7 +155,7 @@ class WOOCCM_Field_Controller_Billing extends WOOCCM_Field_Controller {
|
|
73 |
$key = sprintf('_%s', $field['key']);
|
74 |
|
75 |
if ($value = get_post_meta($order->get_id(), $key, true)) {
|
76 |
-
|
77 |
<p id="<?php echo esc_attr($field['key']); ?>" class="form-field form-field-wide form-field-type-<?php echo esc_attr($field['type']); ?>">
|
78 |
<strong title="<?php echo esc_attr(sprintf(__('ID: %s | Field Type: %s', 'woocommerce-checkout-manager'), $key, __('Generic', 'woocommerce-checkout-manager'))); ?>">
|
79 |
<?php echo esc_attr(trim($field['label'])); ?>:
|
@@ -81,13 +163,12 @@ class WOOCCM_Field_Controller_Billing extends WOOCCM_Field_Controller {
|
|
81 |
<br />
|
82 |
<?php echo esc_html($value); ?>
|
83 |
</p>
|
84 |
-
|
85 |
}
|
86 |
}
|
87 |
}
|
88 |
}
|
89 |
-
}
|
90 |
-
|
91 |
}
|
92 |
|
93 |
WOOCCM_Field_Controller_Billing::instance();
|
1 |
<?php
|
2 |
|
3 |
+
class WOOCCM_Field_Controller_Billing extends WOOCCM_Field_Controller
|
4 |
+
{
|
5 |
|
6 |
protected static $_instance;
|
7 |
public $billing;
|
8 |
|
9 |
+
public function __construct()
|
10 |
+
{
|
11 |
$this->includes();
|
12 |
$this->init();
|
13 |
}
|
14 |
|
15 |
+
public static function instance()
|
16 |
+
{
|
17 |
if (is_null(self::$_instance)) {
|
18 |
self::$_instance = new self();
|
19 |
}
|
20 |
return self::$_instance;
|
21 |
}
|
22 |
|
|
|
|
|
|
|
23 |
|
24 |
+
function init()
|
25 |
+
{
|
26 |
add_action('wooccm_sections_header', array($this, 'add_header'));
|
27 |
add_action('woocommerce_sections_' . WOOCCM_PREFIX, array($this, 'add_section'), 99);
|
28 |
+
add_filter('woocommerce_admin_billing_fields', array($this, 'add_admin_billing_fields'));
|
29 |
+
add_filter('woocommerce_admin_shipping_fields', array($this, 'add_admin_shipping_fields'));
|
30 |
+
// add_action('woocommerce_admin_order_data_after_billing_address', array($this, 'add_order_data'));
|
31 |
+
}
|
32 |
+
|
33 |
+
function includes()
|
34 |
+
{
|
35 |
+
include_once(WOOCCM_PLUGIN_DIR . 'includes/model/class-wooccm-field-billing.php');
|
36 |
}
|
37 |
|
38 |
// Admin
|
39 |
// ---------------------------------------------------------------------------
|
40 |
|
41 |
+
public function add_section()
|
42 |
+
{
|
43 |
|
44 |
global $current_section, $wp_roles, $wp_locale;
|
45 |
|
55 |
$disabled = WOOCCM()->billing->get_disabled_types();
|
56 |
$product_categories = $this->get_product_categories();
|
57 |
|
58 |
+
include_once(WOOCCM_PLUGIN_DIR . 'includes/view/backend/pages/billing.php');
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
public function add_header()
|
63 |
+
{
|
64 |
global $current_section;
|
65 |
+
?>
|
66 |
+
<li><a href="<?php echo admin_url('admin.php?page=wc-settings&tab=wooccm§ion=billing'); ?>" class="<?php echo ($current_section == 'billing' ? 'current' : ''); ?>"><?php esc_html_e('Billing', 'woocommerce-checkout-manager'); ?></a> | </li>
|
67 |
+
<?php
|
68 |
}
|
69 |
|
70 |
// Admin Order
|
71 |
// ---------------------------------------------------------------------------
|
72 |
|
73 |
+
function add_admin_billing_fields($billing_fields)
|
74 |
+
{
|
75 |
+
|
76 |
+
if (!$fields = WOOCCM()->billing->get_fields()) {
|
77 |
+
return $billing_fields;
|
78 |
+
}
|
79 |
+
|
80 |
+
$defaults = WOOCCM()->billing->get_defaults();
|
81 |
+
$template = WOOCCM()->billing->get_template_types();
|
82 |
+
|
83 |
+
foreach ($fields as $field_id => $field) {
|
84 |
+
|
85 |
+
if (in_array($field['name'], $defaults)) {
|
86 |
+
continue;
|
87 |
+
}
|
88 |
+
|
89 |
+
if (in_array($field['name'], $template)) {
|
90 |
+
continue;
|
91 |
+
}
|
92 |
+
|
93 |
+
$billing_fields[$field['name']] = $field;
|
94 |
+
|
95 |
+
$billing_fields[$field['name']]['id'] = sprintf('_%s', (string) $field['key']);
|
96 |
+
$billing_fields[$field['name']]['label'] = $field['label'];
|
97 |
+
$billing_fields[$field['name']]['name'] = $field['key'];
|
98 |
+
$billing_fields[$field['name']]['value'] = null;
|
99 |
+
$billing_fields[$field['name']]['class'] = join(' ', $field['class']);
|
100 |
+
$billing_fields[$field['name']]['wrapper_class'] = 'wooccm-premium';
|
101 |
+
}
|
102 |
+
|
103 |
+
|
104 |
+
return $billing_fields;
|
105 |
+
}
|
106 |
+
|
107 |
+
function add_admin_shipping_fields($shipping_fields)
|
108 |
+
{
|
109 |
+
|
110 |
+
if (!$fields = WOOCCM()->shipping->get_fields()) {
|
111 |
+
return $shipping_fields;
|
112 |
+
}
|
113 |
+
|
114 |
+
$defaults = WOOCCM()->shipping->get_defaults();
|
115 |
+
$template = WOOCCM()->shipping->get_template_types();
|
116 |
+
|
117 |
+
foreach ($fields as $field_id => $field) {
|
118 |
+
|
119 |
+
if (in_array($field['name'], $defaults)) {
|
120 |
+
continue;
|
121 |
+
}
|
122 |
+
|
123 |
+
if (in_array($field['name'], $template)) {
|
124 |
+
continue;
|
125 |
+
}
|
126 |
+
|
127 |
+
if (!isset($field['type']) || $field['type'] != 'textarea') {
|
128 |
+
$field['type'] = 'text';
|
129 |
+
}
|
130 |
+
|
131 |
+
$shipping_fields[$field['name']] = $field;
|
132 |
+
$shipping_fields[$field['name']]['id'] = sprintf('_%s', (string) $field['key']);
|
133 |
+
$shipping_fields[$field['name']]['label'] = $field['label'];
|
134 |
+
$shipping_fields[$field['name']]['name'] = $field['key'];
|
135 |
+
$shipping_fields[$field['name']]['value'] = null;
|
136 |
+
$shipping_fields[$field['name']]['class'] = join(' ', $field['class']);
|
137 |
+
$shipping_fields[$field['name']]['wrapper_class'] = 'wooccm-premium';
|
138 |
+
}
|
139 |
+
|
140 |
+
|
141 |
+
return $shipping_fields;
|
142 |
+
}
|
143 |
+
|
144 |
+
/*function add_order_data($order)
|
145 |
+
{
|
146 |
|
147 |
if ($fields = WOOCCM()->billing->get_fields()) {
|
148 |
|
155 |
$key = sprintf('_%s', $field['key']);
|
156 |
|
157 |
if ($value = get_post_meta($order->get_id(), $key, true)) {
|
158 |
+
?>
|
159 |
<p id="<?php echo esc_attr($field['key']); ?>" class="form-field form-field-wide form-field-type-<?php echo esc_attr($field['type']); ?>">
|
160 |
<strong title="<?php echo esc_attr(sprintf(__('ID: %s | Field Type: %s', 'woocommerce-checkout-manager'), $key, __('Generic', 'woocommerce-checkout-manager'))); ?>">
|
161 |
<?php echo esc_attr(trim($field['label'])); ?>:
|
163 |
<br />
|
164 |
<?php echo esc_html($value); ?>
|
165 |
</p>
|
166 |
+
<?php
|
167 |
}
|
168 |
}
|
169 |
}
|
170 |
}
|
171 |
+
}*/
|
|
|
172 |
}
|
173 |
|
174 |
WOOCCM_Field_Controller_Billing::instance();
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Checkout Manager for WooCommerce ===
|
2 |
Contributors: quadlayers
|
3 |
Donate link: https://quadlayers.com/
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.4.0
|
7 |
-
Stable tag: 5.0.
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 4.0
|
10 |
License: GPLv2 or later
|
@@ -27,7 +27,7 @@ WooCommerce Checkout Manager customization and field's management alternatives:
|
|
27 |
|
28 |
== WooCommerce Checkout process==
|
29 |
|
30 |
-
WooCommerce Checkout Manager allows you to customize the checkout process, including or reducing
|
31 |
|
32 |
= Force to include shipping address =
|
33 |
This option allows you to remove the toggle checkbox to display the shipping fields. Shipping fields will be always displayed, and the user is forced to complete them.
|
@@ -107,9 +107,12 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
-
= 5.0.
|
111 |
* Fix: woocommerce account conditional fields
|
112 |
|
|
|
|
|
|
|
113 |
= 5.0.4 =
|
114 |
* Fix: woocommerce checkout datepicker required
|
115 |
|
1 |
+
=== Checkout Manager for WooCommerce ===
|
2 |
Contributors: quadlayers
|
3 |
Donate link: https://quadlayers.com/
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.4.0
|
7 |
+
Stable tag: 5.0.6
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 4.0
|
10 |
License: GPLv2 or later
|
27 |
|
28 |
== WooCommerce Checkout process==
|
29 |
|
30 |
+
WooCommerce Checkout Manager allows you to customize the checkout process, including or reducing order's fields collected. Our plugin is able to consider your billing data inside checkout page, and recovers all data required by your company process.
|
31 |
|
32 |
= Force to include shipping address =
|
33 |
This option allows you to remove the toggle checkbox to display the shipping fields. Shipping fields will be always displayed, and the user is forced to complete them.
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 5.0.6 =
|
111 |
* Fix: woocommerce account conditional fields
|
112 |
|
113 |
+
= 5.0.5 =
|
114 |
+
* Fix: woocommerce order meta
|
115 |
+
|
116 |
= 5.0.4 =
|
117 |
* Fix: woocommerce checkout datepicker required
|
118 |
|
woocommerce-checkout-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
-
* Version: 5.0.
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
@@ -17,7 +17,7 @@ if (!defined('WOOCCM_PLUGIN_NAME')) {
|
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
-
define('WOOCCM_PLUGIN_VERSION', '5.0.
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
+
* Version: 5.0.6
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
+
define('WOOCCM_PLUGIN_VERSION', '5.0.6');
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|