Version Description
- 2017-02-15 =
- Added support for conditional logic in FCF PRO 1.4 (this update is necessary for FCF PRO 1.4)
- Disabled editing field name for: Town, State, Postcode (unsupported in WooCommerce)
- CSS tweaks for WordPress 4.7.x
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.4
- assets/css/admin.css +18 -88
- class/inspireCheckoutFieldsSettings.php +12 -2
- class/views/settings-ads.php +4 -4
- class/views/settings-fields.php +72 -19
- class/views/settings-pro.php +27 -0
- flexible-checkout-fields.php +92 -10
- lang/flexible-checkout-fields-pl_PL.mo +0 -0
- lang/flexible-checkout-fields-pl_PL.po +122 -73
- readme.txt +12 -3
assets/css/admin.css
CHANGED
@@ -101,7 +101,7 @@ span.inspire-file-error {
|
|
101 |
color: #a00;
|
102 |
display: inline-block;
|
103 |
margin: 10px 0 5px 320px;
|
104 |
-
text-decoration: none;
|
105 |
}
|
106 |
|
107 |
.woocommerce_page_inspire_checkout_fields_settings .field-settings a.remove-field:hover {
|
@@ -117,9 +117,20 @@ span.inspire-file-error {
|
|
117 |
float: left;
|
118 |
}
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
/* Tabs */
|
121 |
.woocommerce_page_inspire_checkout_fields_settings .fields-container .nav-tab {
|
122 |
-
/*background-color: #ededed;*/
|
123 |
font-size: 12px;
|
124 |
margin-left: 0;
|
125 |
margin-right: .5em;
|
@@ -133,6 +144,11 @@ span.inspire-file-error {
|
|
133 |
border-bottom: 0;
|
134 |
}
|
135 |
|
|
|
|
|
|
|
|
|
|
|
136 |
.woocommerce_page_inspire_checkout_fields_settings .field-settings-tab-container {
|
137 |
border: 1px solid #ccc;
|
138 |
margin-top: -1px;
|
@@ -140,35 +156,6 @@ span.inspire-file-error {
|
|
140 |
padding: 4px 10px 0;
|
141 |
}
|
142 |
|
143 |
-
/* Additional Checkboxes */
|
144 |
-
.woocommerce_page_inspire_checkout_fields_settings #checkboxes_field.sortable {
|
145 |
-
margin: 0 30px 20px 0;
|
146 |
-
width: 700px;
|
147 |
-
}
|
148 |
-
|
149 |
-
.woocommerce_page_inspire_checkout_fields_settings #checkboxes_field .ui-state-default {
|
150 |
-
margin-bottom: 10px;
|
151 |
-
padding: 10px 15px;
|
152 |
-
}
|
153 |
-
|
154 |
-
.woocommerce_page_inspire_checkout_fields_settings #checkboxes_field .ui-state-default .more {
|
155 |
-
float: right;
|
156 |
-
}
|
157 |
-
|
158 |
-
.woocommerce_page_inspire_checkout_fields_settings #checkboxes_field .ui-state-default .field-settings p {
|
159 |
-
font-size: 10px !important;
|
160 |
-
margin: 0px !important;
|
161 |
-
}
|
162 |
-
|
163 |
-
.woocommerce_page_inspire_checkout_fields_settings #add-new-field.inspire_checkout_fields_checkboxes {
|
164 |
-
margin-top: 40px;
|
165 |
-
}
|
166 |
-
|
167 |
-
.woocommerce_page_inspire_checkout_fields_settings #add-new-field.inspire_checkout_fields_checkboxes input[type="text"],
|
168 |
-
.woocommerce_page_inspire_checkout_fields_settings #add-new-field.inspire_checkout_fields_checkboxes textarea {
|
169 |
-
max-width: 480px;
|
170 |
-
}
|
171 |
-
|
172 |
/* Edit Order */
|
173 |
.post-type-shop_order .edit_address .form-left {
|
174 |
float: left !important;
|
@@ -178,60 +165,3 @@ span.inspire-file-error {
|
|
178 |
.post-type-shop_order .edit_address .form-right {
|
179 |
float: right !important;
|
180 |
}
|
181 |
-
|
182 |
-
/* PRO */
|
183 |
-
|
184 |
-
/* Hooks */
|
185 |
-
.woocommerce_page_inspire_checkout_fields_settings code.hook {
|
186 |
-
visibility: hidden;
|
187 |
-
}
|
188 |
-
|
189 |
-
.woocommerce_page_inspire_checkout_fields_settings .form-table td p:first-child {
|
190 |
-
margin-bottom: 4px;
|
191 |
-
}
|
192 |
-
|
193 |
-
/* Rules */
|
194 |
-
.woocommerce_page_inspire_checkout_fields_settings .options {
|
195 |
-
margin-bottom: 10px;
|
196 |
-
}
|
197 |
-
|
198 |
-
.woocommerce_page_inspire_checkout_fields_settings .rules fieldset {
|
199 |
-
border: 1px solid #ccc;
|
200 |
-
padding: 8px 8px 3px;
|
201 |
-
margin-bottom: 10px;
|
202 |
-
|
203 |
-
/*border-bottom: 1px solid #dadada;
|
204 |
-
margin-bottom: 10px;*/
|
205 |
-
}
|
206 |
-
|
207 |
-
.woocommerce_page_inspire_checkout_fields_settings .rules fieldset legend {
|
208 |
-
font-weight: bold;
|
209 |
-
}
|
210 |
-
|
211 |
-
.woocommerce_page_inspire_checkout_fields_settings .rules fieldset > div {
|
212 |
-
margin-bottom: 2px;
|
213 |
-
}
|
214 |
-
|
215 |
-
/*.woocommerce_page_inspire_checkout_fields_settings .rules .select2-container-multi .select2-choices {
|
216 |
-
width: auto;
|
217 |
-
}*/
|
218 |
-
|
219 |
-
.woocommerce_page_inspire_checkout_fields_settings .rules .select2-container {
|
220 |
-
max-width: 345px;
|
221 |
-
}
|
222 |
-
|
223 |
-
.woocommerce_page_inspire_checkout_fields_settings .reset_settings {
|
224 |
-
float: right !important;
|
225 |
-
background:none!important;
|
226 |
-
border:none!important;
|
227 |
-
padding:0!important;
|
228 |
-
font: inherit;
|
229 |
-
/*border is optional*/
|
230 |
-
/* border-bottom:1px solid #444; */
|
231 |
-
cursor: pointer;
|
232 |
-
color: #a00;
|
233 |
-
display: inline-block;
|
234 |
-
margin: 5px 5px;
|
235 |
-
text-decoration: none;
|
236 |
-
box-shadow: 0 0px 0 #ccc;
|
237 |
-
}
|
101 |
color: #a00;
|
102 |
display: inline-block;
|
103 |
margin: 10px 0 5px 320px;
|
104 |
+
text-decoration: none;
|
105 |
}
|
106 |
|
107 |
.woocommerce_page_inspire_checkout_fields_settings .field-settings a.remove-field:hover {
|
117 |
float: left;
|
118 |
}
|
119 |
|
120 |
+
.woocommerce_page_inspire_checkout_fields_settings #nav-menu-footer .reset_settings {
|
121 |
+
border: none;
|
122 |
+
box-shadow: none;
|
123 |
+
color: #a00;
|
124 |
+
float: right;
|
125 |
+
padding: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.woocommerce_page_inspire_checkout_fields_settings #nav-menu-footer .reset_settings:hover {
|
129 |
+
color: red;
|
130 |
+
}
|
131 |
+
|
132 |
/* Tabs */
|
133 |
.woocommerce_page_inspire_checkout_fields_settings .fields-container .nav-tab {
|
|
|
134 |
font-size: 12px;
|
135 |
margin-left: 0;
|
136 |
margin-right: .5em;
|
144 |
border-bottom: 0;
|
145 |
}
|
146 |
|
147 |
+
.woocommerce_page_inspire_checkout_fields_settings .nav-tab-wrapper {
|
148 |
+
border-bottom: 0;
|
149 |
+
margin-right: 10px;
|
150 |
+
}
|
151 |
+
|
152 |
.woocommerce_page_inspire_checkout_fields_settings .field-settings-tab-container {
|
153 |
border: 1px solid #ccc;
|
154 |
margin-top: -1px;
|
156 |
padding: 4px 10px 0;
|
157 |
}
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
/* Edit Order */
|
160 |
.post-type-shop_order .edit_address .form-left {
|
161 |
float: left !important;
|
165 |
.post-type-shop_order .edit_address .form-right {
|
166 |
float: right !important;
|
167 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class/inspireCheckoutFieldsSettings.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
$array_options = explode("\n", $field['option']);
|
32 |
if ( !empty( $array_options ) ){
|
33 |
foreach ( $array_options as $option ) {
|
34 |
-
$tmp = explode(':', $option);
|
35 |
$option_label = trim( $tmp[1] );
|
36 |
pll_register_string( $option_label, $option_label, __('Flexible Checkout Fields', 'flexible-checkout-fields' ) );
|
37 |
unset($tmp);
|
@@ -62,7 +62,7 @@
|
|
62 |
$array_options = explode("\n", $field['option']);
|
63 |
if ( !empty( $array_options ) ){
|
64 |
foreach ( $array_options as $option ) {
|
65 |
-
$tmp = explode(':', $option);
|
66 |
$option_label = trim( $tmp[1] );
|
67 |
icl_register_string( 'flexible-checkout-fields', $option_label, $option_label, false, $icl_language_code );
|
68 |
unset($tmp);
|
@@ -141,6 +141,10 @@
|
|
141 |
$args['tabs'][$section_data['tab']] = $section_data['tab_title'];
|
142 |
}
|
143 |
|
|
|
|
|
|
|
|
|
144 |
include( 'views/settings-tabs.php' );
|
145 |
|
146 |
switch ($current_tab) {
|
@@ -161,6 +165,12 @@
|
|
161 |
);
|
162 |
break;
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
default:
|
165 |
|
166 |
$args = array(
|
31 |
$array_options = explode("\n", $field['option']);
|
32 |
if ( !empty( $array_options ) ){
|
33 |
foreach ( $array_options as $option ) {
|
34 |
+
$tmp = explode(':', $option, 2);
|
35 |
$option_label = trim( $tmp[1] );
|
36 |
pll_register_string( $option_label, $option_label, __('Flexible Checkout Fields', 'flexible-checkout-fields' ) );
|
37 |
unset($tmp);
|
62 |
$array_options = explode("\n", $field['option']);
|
63 |
if ( !empty( $array_options ) ){
|
64 |
foreach ( $array_options as $option ) {
|
65 |
+
$tmp = explode(':', $option, 2);
|
66 |
$option_label = trim( $tmp[1] );
|
67 |
icl_register_string( 'flexible-checkout-fields', $option_label, $option_label, false, $icl_language_code );
|
68 |
unset($tmp);
|
141 |
$args['tabs'][$section_data['tab']] = $section_data['tab_title'];
|
142 |
}
|
143 |
|
144 |
+
if ( !is_flexible_checkout_fields_pro_active() ) {
|
145 |
+
$args['tabs']['pro'] = __( 'Custom Sections', 'flexible-checkout-fields' );
|
146 |
+
}
|
147 |
+
|
148 |
include( 'views/settings-tabs.php' );
|
149 |
|
150 |
switch ($current_tab) {
|
165 |
);
|
166 |
break;
|
167 |
|
168 |
+
case 'pro':
|
169 |
+
|
170 |
+
include( 'views/settings-pro.php' );
|
171 |
+
|
172 |
+
break;
|
173 |
+
|
174 |
default:
|
175 |
|
176 |
$args = array(
|
class/views/settings-ads.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php if ( ! is_flexible_checkout_fields_pro_active() ): ?>
|
2 |
|
3 |
<div class="stuffbox">
|
4 |
-
<h3 class="hndle"><?php _e( 'Get more WP Desk Plugins!', 'flexible-
|
5 |
|
6 |
<div class="inside">
|
7 |
<div class="main">
|
8 |
-
<p><a href="<?php _e( 'https://www.wpdesk.net/products/woocommerce-checkout-fields/', 'flexible-
|
9 |
|
10 |
-
<p><a href="<?php _e( 'https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/', 'flexible-
|
11 |
|
12 |
-
<p><a href="<?php _e( 'https://www.wpdesk.net/products/active-payments-woocommerce/', 'flexible-
|
13 |
</div>
|
14 |
</div>
|
15 |
</div>
|
1 |
<?php if ( ! is_flexible_checkout_fields_pro_active() ): ?>
|
2 |
|
3 |
<div class="stuffbox">
|
4 |
+
<h3 class="hndle"><?php _e( 'Get more WP Desk Plugins!', 'flexible-checkout-fields' ); ?></h3>
|
5 |
|
6 |
<div class="inside">
|
7 |
<div class="main">
|
8 |
+
<p><a href="<?php _e( 'https://www.wpdesk.net/products/woocommerce-checkout-fields/', 'flexible-checkout-fields' ); ?>?utm_source=flexible-checkout-fields-settings&utm_medium=link&utm_campaign=flexible-checkout-fields-plugin" target="_blank"><?php _e( 'Flexible Checkout Fields PRO', 'flexible-checkout-fields' ); ?></a> - <?php _e( 'Go PRO and get new field types (i.e. checkboxes, radios, file upload) and custom sections. And get rid of these ads :)', 'flexible-checkout-fields' ); ?></p>
|
9 |
|
10 |
+
<p><a href="<?php _e( 'https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/', 'flexible-checkout-fields' ); ?>?utm_source=flexible-checkout-fields-settings&utm_medium=link&utm_campaign=flexible-shipping-pro-plugin" target="_blank"><?php _e( 'Flexible Shipping', 'flexible-checkout-fields' ); ?></a> - <?php _e( 'Create shipping methods based on weight, totals and more.', 'flexible-checkout-fields' ); ?></p>
|
11 |
|
12 |
+
<p><a href="<?php _e( 'https://www.wpdesk.net/products/active-payments-woocommerce/', 'flexible-checkout-fields' ); ?>?utm_source=flexible-checkout-fields-settings&utm_medium=link&utm_campaign=active-payments-plugin" target="_blank"><?php _e( 'Active Payments', 'flexible-checkout-fields' ); ?></a> - <?php _e( 'Conditionally display payment methods based on shipping.', 'flexible-checkout-fields' ); ?></p>
|
13 |
</div>
|
14 |
</div>
|
15 |
</div>
|
class/views/settings-fields.php
CHANGED
@@ -50,7 +50,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
50 |
</select>
|
51 |
</div>
|
52 |
|
53 |
-
<div>
|
54 |
<label for="woocommerce_checkout_fields_field_name"><?php _e( 'Label', 'flexible-checkout-fields' ); ?></label>
|
55 |
|
56 |
<textarea id="woocommerce_checkout_fields_field_name"
|
@@ -59,6 +59,15 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
59 |
<p class="description"><?php _e( 'You can use HTML.', 'flexible-checkout-fields' ); ?></p>
|
60 |
</div>
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
<div style="display:none;">
|
63 |
<label for="woocommerce_checkout_fields_field_section"><?php _e( 'Section', 'flexible-checkout-fields' ); ?></label>
|
64 |
|
@@ -78,7 +87,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
78 |
|
79 |
<p class="button-controls wp-clearfix">
|
80 |
<span class="add-to-menu">
|
81 |
-
<input type="submit" name=""
|
82 |
value="<?php _e( 'Add Field', 'flexible-checkout-fields' ) ?>"
|
83 |
class="button-secondary right">
|
84 |
</span>
|
@@ -156,7 +165,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
156 |
</div>
|
157 |
|
158 |
<div class="menu-item-settings field-settings">
|
159 |
-
<div
|
160 |
<a href="#general"
|
161 |
class="nav-tab nav-tab-active"><?php _e( 'General', 'flexible-checkout-fields' ); ?></a>
|
162 |
<a class="nav-tab"
|
@@ -225,7 +234,22 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
225 |
|
226 |
<label for="label_<?php echo $name ?>"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>
|
227 |
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][label]"><?php if ( isset( $settings[ $key ][ $name ]['label'] ) ): echo stripslashes( $settings[ $key ][ $name ]['label'] );
|
230 |
elseif ( isset( $field['label'] ) ): echo $field['label']; endif; ?></textarea>
|
231 |
|
@@ -243,8 +267,8 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
243 |
echo " show" ?>">
|
244 |
<label for="option_<?php echo $name ?>"><?php _e( 'Options', 'flexible-checkout-fields' ) ?></label>
|
245 |
|
246 |
-
<textarea id="option_<?php echo $name ?>"
|
247 |
-
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][option]" <?php echo $required; ?>><?php echo isset( $settings[ $key ][ $name ]['option'] ) ? $settings[ $key ][ $name ]['option'] : ''; ?></textarea>
|
248 |
|
249 |
<p><?php _e( 'Format: <code>Value : Name</code>. Value will be in the code, name will be visible to the user. One option per line. Example:<br /><code>woman : I am a woman</code><br /><code>man : I am a man</code>', 'flexible-checkout-fields' ) ?></p>
|
250 |
</div>
|
@@ -267,8 +291,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
267 |
</div>
|
268 |
<?php endif; ?>
|
269 |
</div>
|
270 |
-
<div class="field-settings-tab-container field-settings-apperance"
|
271 |
-
style="display:none;">
|
272 |
<?php if ( ! $is_custom_field || empty( $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['disable_placeholder'] ) || ! $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['disable_placeholder'] ): ?>
|
273 |
<div class="field_placeholder">
|
274 |
<?php
|
@@ -279,7 +302,22 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
279 |
?>
|
280 |
<label for="placeholder_<?php echo $name ?>"><?php if ( $is_custom_field && isset( $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['placeholder_label'] ) ): ?><?php echo $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['placeholder_label']; ?><?php else: ?><?php _e( 'Placeholder', 'flexible-checkout-fields' ) ?><?php endif; ?></label>
|
281 |
|
282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][placeholder]"
|
284 |
value="<?php if ( ! empty( $settings[ $key ][ $name ]['placeholder'] ) ): echo $settings[ $key ][ $name ]['placeholder'];
|
285 |
else: echo isset( $field['placeholder'] ) ? $field['placeholder'] : ''; endif; ?>" <?php echo $required; ?> />
|
@@ -297,7 +335,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
297 |
</div>
|
298 |
<?php do_action( 'flexible_checkout_fields_field_tabs_content', $key, $name, $field, $settings ); ?>
|
299 |
<?php if ( $is_custom_field ) : ?>
|
300 |
-
<a class="remove-field"
|
301 |
href="#"><?php _e( 'Delete Field', 'flexible-checkout-fields' ) ?></a>
|
302 |
<?php endif; ?>
|
303 |
</div>
|
@@ -366,7 +404,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
366 |
html += '</div>';
|
367 |
html += '<div class="menu-item-settings field-settings">';
|
368 |
|
369 |
-
html += '<div
|
370 |
html += '<a href="#general" class="nav-tab nav-tab-active"><?php _e( 'General', 'flexible-checkout-fields' ); ?></a>';
|
371 |
html += '<a class="nav-tab" href="#apperance"><?php _e( 'Appearance', 'flexible-checkout-fields' ); ?></a>';
|
372 |
<?php
|
@@ -402,8 +440,8 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
402 |
html += '</label>';
|
403 |
html += '</div>';
|
404 |
html += '<div class="field-type-label">';
|
405 |
-
html += '<label for="label_' + field_slug + '"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>';
|
406 |
-
html += '<textarea id="label_' + field_slug + '" class="field-name" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][label]">' + field_name + '</textarea>';
|
407 |
html += '<p class="description"><?php _e( 'You can use HTML.', 'flexible-checkout-fields' ); ?></p>';
|
408 |
html += '</div>';
|
409 |
|
@@ -428,7 +466,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
428 |
|
429 |
html += '</div>';
|
430 |
|
431 |
-
<?php do_action( 'flexible_checkout_fields_field_tabs_content_js'
|
432 |
|
433 |
html += '<a class="remove-field" href="#"><?php _e( 'Delete Field', 'flexible-checkout-fields' ) ?></a>';
|
434 |
html += '</li>';
|
@@ -447,7 +485,7 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
447 |
jQuery('.element_' + field_slug + ' .field_placeholder').show();
|
448 |
break;
|
449 |
}
|
450 |
-
|
451 |
jQuery(this).find('#woocommerce_checkout_fields_field_name').val('');
|
452 |
}
|
453 |
// Display Alert if Name (label) is NOT filled
|
@@ -465,10 +503,24 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
465 |
jQuery(this).closest('.field-item').toggleClass('menu-item-edit-active');
|
466 |
});
|
467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
// Toggle between placeholder or value
|
469 |
jQuery(document).on('change', '.field-item .field-settings #woocommerce_checkout_fields_field_type', function (e) {
|
470 |
switch (jQuery(this).val()) {
|
471 |
-
|
472 |
default:
|
473 |
jQuery(this).closest('.field-item').find('.element-option').removeClass('show');
|
474 |
jQuery(this).closest('.field-item').find('.field_placeholder label').html('<?php _e( 'Placeholder', 'flexible-checkout-fields' ); ?>');
|
@@ -481,8 +533,9 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
481 |
// Remove field
|
482 |
jQuery(document).on('click', '.field-item a.remove-field', function (e) {
|
483 |
e.preventDefault();
|
484 |
-
var toRemove = jQuery(this).closest('
|
485 |
if (confirm('<?php _e( 'Do you really want to delete this field: ', 'flexible-checkout-fields' ) ?>' + toRemove.find('.field-name').val() + '?')) {
|
|
|
486 |
toRemove.remove();
|
487 |
}
|
488 |
});
|
@@ -513,9 +566,9 @@ $checkout_field_type = $args['plugin']->get_fields();
|
|
513 |
});
|
514 |
});
|
515 |
|
516 |
-
<?php do_action( 'flexible_checkout_fields_java_script' ); ?>
|
517 |
|
518 |
-
jQuery(document).on('click', '.nav-tab-wrapper > a', function () {
|
519 |
jQuery(this).parent().find('a').each(function () {
|
520 |
jQuery(this).removeClass('nav-tab-active');
|
521 |
});
|
50 |
</select>
|
51 |
</div>
|
52 |
|
53 |
+
<div id="woocommerce_checkout_fields_field_name_container">
|
54 |
<label for="woocommerce_checkout_fields_field_name"><?php _e( 'Label', 'flexible-checkout-fields' ); ?></label>
|
55 |
|
56 |
<textarea id="woocommerce_checkout_fields_field_name"
|
59 |
<p class="description"><?php _e( 'You can use HTML.', 'flexible-checkout-fields' ); ?></p>
|
60 |
</div>
|
61 |
|
62 |
+
<div id="woocommerce_checkout_fields_field_name_container_pro" style="display:none;">
|
63 |
+
<div class="updated">
|
64 |
+
<?php
|
65 |
+
$pro_link = get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/sklep/woocommerce-checkout-fields/' : 'https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/';
|
66 |
+
?>
|
67 |
+
<p><?php _e( 'This field is available in the PRO version.', 'flexible-checkout-fields' ); ?> <a href="<?php echo $pro_link; ?>?utm_source=flexible-checkout-fields-settings&utm_medium=link&utm_campaign=flexible-checkout-fields-pro-fields" target="_blank"><?php _e( 'Upgrade to PRO now →', 'flexible-checkout-fields' ); ?></a></p>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
|
71 |
<div style="display:none;">
|
72 |
<label for="woocommerce_checkout_fields_field_section"><?php _e( 'Section', 'flexible-checkout-fields' ); ?></label>
|
73 |
|
87 |
|
88 |
<p class="button-controls wp-clearfix">
|
89 |
<span class="add-to-menu">
|
90 |
+
<input id="button_add_field" type="submit" name=""
|
91 |
value="<?php _e( 'Add Field', 'flexible-checkout-fields' ) ?>"
|
92 |
class="button-secondary right">
|
93 |
</span>
|
165 |
</div>
|
166 |
|
167 |
<div class="menu-item-settings field-settings">
|
168 |
+
<div class="nav-tab-wrapper">
|
169 |
<a href="#general"
|
170 |
class="nav-tab nav-tab-active"><?php _e( 'General', 'flexible-checkout-fields' ); ?></a>
|
171 |
<a class="nav-tab"
|
234 |
|
235 |
<label for="label_<?php echo $name ?>"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>
|
236 |
|
237 |
+
<?php
|
238 |
+
$disabled = '';
|
239 |
+
$tip = '';
|
240 |
+
if ( in_array( $name, array(
|
241 |
+
'billing_city', 'billing_state', 'billing_postcode',
|
242 |
+
'shipping_city', 'shipping_state', 'shipping_postcode'
|
243 |
+
) ) ) {
|
244 |
+
$disabled = 'disabled';
|
245 |
+
$tip = __( 'This field is address locale dependent and cannot be modified.', 'flexible-checkout-fields' );
|
246 |
+
?>
|
247 |
+
<span class="woocommerce-help-tip" data-tip="<?php echo $tip;?>"></span>
|
248 |
+
<?php
|
249 |
+
}
|
250 |
+
?>
|
251 |
+
|
252 |
+
<textarea <?php echo $tip; ?> <?php echo $disabled; ?> data-field="<?php echo $name; ?>" class="fcf_label" id="label_<?php echo $name ?>" class="field-name"
|
253 |
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][label]"><?php if ( isset( $settings[ $key ][ $name ]['label'] ) ): echo stripslashes( $settings[ $key ][ $name ]['label'] );
|
254 |
elseif ( isset( $field['label'] ) ): echo $field['label']; endif; ?></textarea>
|
255 |
|
267 |
echo " show" ?>">
|
268 |
<label for="option_<?php echo $name ?>"><?php _e( 'Options', 'flexible-checkout-fields' ) ?></label>
|
269 |
|
270 |
+
<textarea data-field="<?php echo $name; ?>" class="fcf_options" id="option_<?php echo $name ?>"
|
271 |
+
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][option]" <?php echo $required; ?>><?php echo isset( $settings[ $key ][ $name ]['option'] ) ? esc_textarea( stripslashes( $settings[ $key ][ $name ]['option'] ) ) : ''; ?></textarea>
|
272 |
|
273 |
<p><?php _e( 'Format: <code>Value : Name</code>. Value will be in the code, name will be visible to the user. One option per line. Example:<br /><code>woman : I am a woman</code><br /><code>man : I am a man</code>', 'flexible-checkout-fields' ) ?></p>
|
274 |
</div>
|
291 |
</div>
|
292 |
<?php endif; ?>
|
293 |
</div>
|
294 |
+
<div class="field-settings-tab-container field-settings-apperance" style="display:none;">
|
|
|
295 |
<?php if ( ! $is_custom_field || empty( $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['disable_placeholder'] ) || ! $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['disable_placeholder'] ): ?>
|
296 |
<div class="field_placeholder">
|
297 |
<?php
|
302 |
?>
|
303 |
<label for="placeholder_<?php echo $name ?>"><?php if ( $is_custom_field && isset( $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['placeholder_label'] ) ): ?><?php echo $checkout_field_type[ $settings[ $key ][ $name ]['type'] ]['placeholder_label']; ?><?php else: ?><?php _e( 'Placeholder', 'flexible-checkout-fields' ) ?><?php endif; ?></label>
|
304 |
|
305 |
+
<?php
|
306 |
+
$disabled = '';
|
307 |
+
$tip = '';
|
308 |
+
if ( in_array( $name, array(
|
309 |
+
'billing_city', 'billing_state', 'billing_postcode', 'billing_country',
|
310 |
+
'shipping_city', 'shipping_state', 'shipping_postcode', 'shipping_country'
|
311 |
+
) ) ) {
|
312 |
+
$disabled = 'disabled';
|
313 |
+
$tip = __( 'This field is address locale dependent and cannot be modified.', 'flexible-checkout-fields' );
|
314 |
+
?>
|
315 |
+
<span class="woocommerce-help-tip" data-tip="<?php echo $tip;?>"></span>
|
316 |
+
<?php
|
317 |
+
}
|
318 |
+
?>
|
319 |
+
|
320 |
+
<input <?php echo $disabled; ?> type="text" id="placeholder_<?php echo $name ?>"
|
321 |
name="inspire_checkout_fields[settings][<?php echo $key ?>][<?php echo $name ?>][placeholder]"
|
322 |
value="<?php if ( ! empty( $settings[ $key ][ $name ]['placeholder'] ) ): echo $settings[ $key ][ $name ]['placeholder'];
|
323 |
else: echo isset( $field['placeholder'] ) ? $field['placeholder'] : ''; endif; ?>" <?php echo $required; ?> />
|
335 |
</div>
|
336 |
<?php do_action( 'flexible_checkout_fields_field_tabs_content', $key, $name, $field, $settings ); ?>
|
337 |
<?php if ( $is_custom_field ) : ?>
|
338 |
+
<a class="remove-field" data-field="<?php echo $name; ?>"
|
339 |
href="#"><?php _e( 'Delete Field', 'flexible-checkout-fields' ) ?></a>
|
340 |
<?php endif; ?>
|
341 |
</div>
|
404 |
html += '</div>';
|
405 |
html += '<div class="menu-item-settings field-settings">';
|
406 |
|
407 |
+
html += '<div class="nav-tab-wrapper">';
|
408 |
html += '<a href="#general" class="nav-tab nav-tab-active"><?php _e( 'General', 'flexible-checkout-fields' ); ?></a>';
|
409 |
html += '<a class="nav-tab" href="#apperance"><?php _e( 'Appearance', 'flexible-checkout-fields' ); ?></a>';
|
410 |
<?php
|
440 |
html += '</label>';
|
441 |
html += '</div>';
|
442 |
html += '<div class="field-type-label">';
|
443 |
+
html += '<label class="fcf_label" for="label_' + field_slug + '"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>';
|
444 |
+
html += '<textarea data-field="' + field_slug + '" id="label_' + field_slug + '" class="fcf_label field-name" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][label]">' + field_name + '</textarea>';
|
445 |
html += '<p class="description"><?php _e( 'You can use HTML.', 'flexible-checkout-fields' ); ?></p>';
|
446 |
html += '</div>';
|
447 |
|
466 |
|
467 |
html += '</div>';
|
468 |
|
469 |
+
<?php do_action( 'flexible_checkout_fields_field_tabs_content_js' ); ?>
|
470 |
|
471 |
html += '<a class="remove-field" href="#"><?php _e( 'Delete Field', 'flexible-checkout-fields' ) ?></a>';
|
472 |
html += '</li>';
|
485 |
jQuery('.element_' + field_slug + ' .field_placeholder').show();
|
486 |
break;
|
487 |
}
|
488 |
+
jQuery(document).trigger("fcf:add_field", [ field_slug ] );
|
489 |
jQuery(this).find('#woocommerce_checkout_fields_field_name').val('');
|
490 |
}
|
491 |
// Display Alert if Name (label) is NOT filled
|
503 |
jQuery(this).closest('.field-item').toggleClass('menu-item-edit-active');
|
504 |
});
|
505 |
|
506 |
+
jQuery(document).on('change', '#woocommerce_checkout_fields_field_type', function (e) {
|
507 |
+
<?php if (!is_flexible_checkout_fields_pro_active()) : ?>
|
508 |
+
if ( jQuery(this).val() == 'text' || jQuery(this).val() == 'textarea' ) {
|
509 |
+
jQuery('#woocommerce_checkout_fields_field_name_container').show();
|
510 |
+
jQuery('#woocommerce_checkout_fields_field_name_container_pro').hide();
|
511 |
+
jQuery('#button_add_field').prop('disabled',false);
|
512 |
+
}
|
513 |
+
else {
|
514 |
+
jQuery('#woocommerce_checkout_fields_field_name_container').hide();
|
515 |
+
jQuery('#woocommerce_checkout_fields_field_name_container_pro').show();
|
516 |
+
jQuery('#button_add_field').prop('disabled',true);
|
517 |
+
}
|
518 |
+
<?php endif; ?>
|
519 |
+
})
|
520 |
+
|
521 |
// Toggle between placeholder or value
|
522 |
jQuery(document).on('change', '.field-item .field-settings #woocommerce_checkout_fields_field_type', function (e) {
|
523 |
switch (jQuery(this).val()) {
|
|
|
524 |
default:
|
525 |
jQuery(this).closest('.field-item').find('.element-option').removeClass('show');
|
526 |
jQuery(this).closest('.field-item').find('.field_placeholder label').html('<?php _e( 'Placeholder', 'flexible-checkout-fields' ); ?>');
|
533 |
// Remove field
|
534 |
jQuery(document).on('click', '.field-item a.remove-field', function (e) {
|
535 |
e.preventDefault();
|
536 |
+
var toRemove = jQuery(this).closest('li');
|
537 |
if (confirm('<?php _e( 'Do you really want to delete this field: ', 'flexible-checkout-fields' ) ?>' + toRemove.find('.field-name').val() + '?')) {
|
538 |
+
jQuery(this).trigger('fcf:remove_field');
|
539 |
toRemove.remove();
|
540 |
}
|
541 |
});
|
566 |
});
|
567 |
});
|
568 |
|
569 |
+
<?php do_action( 'flexible_checkout_fields_java_script', $settings ); ?>
|
570 |
|
571 |
+
jQuery(document).on('click', '.field-settings .nav-tab-wrapper > a', function () {
|
572 |
jQuery(this).parent().find('a').each(function () {
|
573 |
jQuery(this).removeClass('nav-tab-active');
|
574 |
});
|
class/views/settings-pro.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
2 |
+
|
3 |
+
<?php
|
4 |
+
$pro_link = get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/sklep/woocommerce-checkout-fields/' : 'https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/';
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="notice notice-success">
|
8 |
+
<table>
|
9 |
+
<tbody>
|
10 |
+
<tr>
|
11 |
+
<td width="60%">
|
12 |
+
<p><strong><?php _e( 'Buy Flexible Checkout Fields PRO to use Custom Sections:', 'flexible-checkout-fields' ); ?></strong></p>
|
13 |
+
|
14 |
+
<ul>
|
15 |
+
<li><span class="dashicons dashicons-yes"></span> <?php _e( 'Add fields anywhere in the WooCommerce checkout form.', 'flexible-checkout-fields' ); ?></li>
|
16 |
+
<li><span class="dashicons dashicons-yes"></span> <?php _e( 'Get more fields: checkboxes, radios buttons, dropdowns, file uploads, date & time or color pickers and more.', 'flexible-checkout-fields' ); ?></li>
|
17 |
+
<li><span class="dashicons dashicons-yes"></span> <?php _e( 'Conditionally show or hide fields based on products or categories.', 'flexible-checkout-fields' ); ?></li>
|
18 |
+
</ul>
|
19 |
+
</td>
|
20 |
+
|
21 |
+
<td>
|
22 |
+
<a class="button button-primary button-hero" href="<?php echo $pro_link; ?>?utm_source=flexible-checkout-fields&utm_campaign=flexible-checkout-fields-custom-sections&utm_medium=button" target="_blank"><?php _e( 'Get Flexible Checkout Fields PRO now →', 'flexible-checkout-fields' ); ?></a>
|
23 |
+
</td>
|
24 |
+
</tr>
|
25 |
+
</tbody>
|
26 |
+
</table>
|
27 |
+
</div>
|
flexible-checkout-fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
-
Version: 1.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -60,6 +60,8 @@
|
|
60 |
|
61 |
public $sections = array();
|
62 |
|
|
|
|
|
63 |
public $page_size = array();
|
64 |
|
65 |
public function __construct() {
|
@@ -118,6 +120,8 @@
|
|
118 |
|
119 |
add_action( 'flexible_checkout_fields_field_tabs_content', array( 'inspireCheckoutFields', 'flexible_checkout_fields_field_tabs_content'), 10, 4 );
|
120 |
|
|
|
|
|
121 |
$this->get_sections();
|
122 |
}
|
123 |
|
@@ -143,7 +147,12 @@
|
|
143 |
)
|
144 |
);
|
145 |
|
|
|
|
|
146 |
$this->sections = apply_filters( 'flexible_checkout_fields_sections', $sections );
|
|
|
|
|
|
|
147 |
}
|
148 |
|
149 |
function init_fields() {
|
@@ -157,7 +166,64 @@
|
|
157 |
);
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
public function get_fields() {
|
|
|
161 |
return apply_filters( 'flexible_checkout_fields_fields' , $this->fields );
|
162 |
}
|
163 |
|
@@ -215,7 +281,7 @@
|
|
215 |
wp_enqueue_script( 'jquery-ui' );
|
216 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
217 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
218 |
-
wp_enqueue_script( 'inspire_checkout_fields_admin_js', $this->getPluginUrl() . '/assets/js/admin.js' );
|
219 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
220 |
|
221 |
$labels_and_packing_list_params = array(
|
@@ -230,7 +296,7 @@
|
|
230 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
231 |
add_action( 'wp_enqueue_scripts', array( $this, 'wp_localize_jquery_ui_datepicker' ), 1000 );
|
232 |
|
233 |
-
wp_register_script( 'inspire_checkout_fields_checkout_js', $this->getPluginUrl() . '/assets/js/checkout.js' );
|
234 |
$translation_array = array(
|
235 |
'uploading' => __( 'Uploading file...', 'flexible-checkout-fields' ),
|
236 |
);
|
@@ -317,7 +383,9 @@
|
|
317 |
else{
|
318 |
$new[$key][$field['name']]['required'] = false;
|
319 |
}
|
320 |
-
|
|
|
|
|
321 |
if ( isset( $field['placeholder'] ) ) {
|
322 |
$new[$key][$field['name']]['placeholder'] = wpdesk__( $field['placeholder'], 'flexible-checkout-fields' );
|
323 |
}
|
@@ -341,7 +409,9 @@
|
|
341 |
$array_options = explode("\n", $field['option']);
|
342 |
if(!empty($array_options)){
|
343 |
foreach ($array_options as $option) {
|
344 |
-
$tmp = explode(':', $option);
|
|
|
|
|
345 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
346 |
unset($tmp);
|
347 |
}
|
@@ -374,7 +444,12 @@
|
|
374 |
return $new;
|
375 |
}
|
376 |
else{
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
378 |
}
|
379 |
|
380 |
}
|
@@ -404,7 +479,9 @@
|
|
404 |
}
|
405 |
|
406 |
//if(!empty($field['label'])){
|
407 |
-
|
|
|
|
|
408 |
//}
|
409 |
//if(!empty($field['placeholder'])){
|
410 |
if ( isset( $field['placeholder'] ) ) {
|
@@ -434,7 +511,7 @@
|
|
434 |
$array_options = explode( "\n", $field['option'] );
|
435 |
if ( !empty( $array_options ) ) {
|
436 |
foreach ( $array_options as $option ) {
|
437 |
-
$tmp = explode( ':', $option );
|
438 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
439 |
unset($tmp);
|
440 |
}
|
@@ -554,13 +631,13 @@
|
|
554 |
foreach ( $settings as $key => $type ) {
|
555 |
if ( isset( $type ) && is_array( $type ) ) {
|
556 |
foreach ( $type as $field ) {
|
557 |
-
if($field['visible'] == 0 && isset($field['custom_field']) && $field['custom_field'] == 1){
|
558 |
if($value = get_post_meta( $order_id, '_'.$field['name'] , true )){
|
559 |
if ( !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
560 |
$array_options = explode("\n", $field['option']);
|
561 |
if(!empty($array_options)){
|
562 |
foreach ($array_options as $option) {
|
563 |
-
$tmp = explode(':', $option);
|
564 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
565 |
unset($tmp);
|
566 |
}
|
@@ -804,6 +881,11 @@
|
|
804 |
include( 'views/settings-field-advanced.php' );
|
805 |
}
|
806 |
|
|
|
|
|
|
|
|
|
|
|
807 |
}
|
808 |
|
809 |
/**
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
+
Version: 1.4
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
60 |
|
61 |
public $sections = array();
|
62 |
|
63 |
+
public $all_sections = array();
|
64 |
+
|
65 |
public $page_size = array();
|
66 |
|
67 |
public function __construct() {
|
120 |
|
121 |
add_action( 'flexible_checkout_fields_field_tabs_content', array( 'inspireCheckoutFields', 'flexible_checkout_fields_field_tabs_content'), 10, 4 );
|
122 |
|
123 |
+
//add_action( 'woocommerce_get_country_locale_default', array( $this, 'woocommerce_get_country_locale_default' ), 11 );
|
124 |
+
//do użycia dla pola miasto, kod pocztowy i stan
|
125 |
$this->get_sections();
|
126 |
}
|
127 |
|
147 |
)
|
148 |
);
|
149 |
|
150 |
+
$all_sections = unserialize( serialize( $sections ) );
|
151 |
+
|
152 |
$this->sections = apply_filters( 'flexible_checkout_fields_sections', $sections );
|
153 |
+
|
154 |
+
$this->all_sections = apply_filters( 'flexible_checkout_fields_all_sections', $all_sections );
|
155 |
+
|
156 |
}
|
157 |
|
158 |
function init_fields() {
|
166 |
);
|
167 |
}
|
168 |
|
169 |
+
function pro_fields( $fields ) {
|
170 |
+
$add_fields = array();
|
171 |
+
|
172 |
+
$add_fields['inspirecheckbox'] = array(
|
173 |
+
'name' => __( 'Checkbox', 'flexible-checkout-fields-pro' ),
|
174 |
+
'pro' => true
|
175 |
+
);
|
176 |
+
|
177 |
+
$add_fields['inspireradio'] = array(
|
178 |
+
'name' => __( 'Radio button', 'flexible-checkout-fields-pro' ),
|
179 |
+
'pro' => true
|
180 |
+
);
|
181 |
+
|
182 |
+
$add_fields['select'] = array(
|
183 |
+
'name' => __( 'Select (Drop Down)', 'flexible-checkout-fields-pro' ),
|
184 |
+
'pro' => true
|
185 |
+
);
|
186 |
+
|
187 |
+
$add_fields['datepicker'] = array(
|
188 |
+
'name' => __( 'Date', 'flexible-checkout-fields-pro' ),
|
189 |
+
'pro' => true
|
190 |
+
);
|
191 |
+
|
192 |
+
$add_fields['timepicker'] = array(
|
193 |
+
'name' => __( 'Time', 'flexible-checkout-fields-pro'),
|
194 |
+
'pro' => true
|
195 |
+
);
|
196 |
+
|
197 |
+
$add_fields['colorpicker'] = array(
|
198 |
+
'name' => __( 'Color Picker', 'flexible-checkout-fields-pro' ),
|
199 |
+
'pro' => true
|
200 |
+
);
|
201 |
+
|
202 |
+
$add_fields['heading'] = array(
|
203 |
+
'name' => __( 'Headline', 'flexible-checkout-fields-pro' ),
|
204 |
+
'pro' => true
|
205 |
+
);
|
206 |
+
|
207 |
+
$add_fields['info'] = array(
|
208 |
+
'name' => __( 'HTML', 'flexible-checkout-fields-pro' ),
|
209 |
+
'pro' => true
|
210 |
+
);
|
211 |
+
|
212 |
+
$add_fields['file'] = array(
|
213 |
+
'name' => __( 'File Upload', 'flexible-checkout-fields-pro' ),
|
214 |
+
'pro' => true
|
215 |
+
);
|
216 |
+
|
217 |
+
foreach ( $add_fields as $key => $field ) {
|
218 |
+
$fields[$key] = $field;
|
219 |
+
}
|
220 |
+
|
221 |
+
return $fields;
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
public function get_fields() {
|
226 |
+
$this->fields = $this->pro_fields( $this->fields );
|
227 |
return apply_filters( 'flexible_checkout_fields_fields' , $this->fields );
|
228 |
}
|
229 |
|
281 |
wp_enqueue_script( 'jquery-ui' );
|
282 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
283 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
284 |
+
wp_enqueue_script( 'inspire_checkout_fields_admin_js', $this->getPluginUrl() . '/assets/js/admin.js', array(), '1.1' );
|
285 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
286 |
|
287 |
$labels_and_packing_list_params = array(
|
296 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
297 |
add_action( 'wp_enqueue_scripts', array( $this, 'wp_localize_jquery_ui_datepicker' ), 1000 );
|
298 |
|
299 |
+
wp_register_script( 'inspire_checkout_fields_checkout_js', $this->getPluginUrl() . '/assets/js/checkout.js', array(), '1.1.1' );
|
300 |
$translation_array = array(
|
301 |
'uploading' => __( 'Uploading file...', 'flexible-checkout-fields' ),
|
302 |
);
|
383 |
else{
|
384 |
$new[$key][$field['name']]['required'] = false;
|
385 |
}
|
386 |
+
if ( isset( $field['label'] ) ) {
|
387 |
+
$new[ $key ][ $field['name'] ]['label'] = stripcslashes( wpdesk__( $field['label'], 'flexible-checkout-fields' ) );
|
388 |
+
}
|
389 |
if ( isset( $field['placeholder'] ) ) {
|
390 |
$new[$key][$field['name']]['placeholder'] = wpdesk__( $field['placeholder'], 'flexible-checkout-fields' );
|
391 |
}
|
409 |
$array_options = explode("\n", $field['option']);
|
410 |
if(!empty($array_options)){
|
411 |
foreach ($array_options as $option) {
|
412 |
+
$tmp = explode( ':', $option, 2 );
|
413 |
+
$tmp[1] = strip_tags( $tmp[1], '<img><a><strong><em><br>' );
|
414 |
+
$tmp[1] = wp_unslash( $tmp[1] );
|
415 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
416 |
unset($tmp);
|
417 |
}
|
444 |
return $new;
|
445 |
}
|
446 |
else{
|
447 |
+
if ( isset( $new[$request_type] ) ) {
|
448 |
+
return $new[$request_type];
|
449 |
+
}
|
450 |
+
else {
|
451 |
+
return array();
|
452 |
+
}
|
453 |
}
|
454 |
|
455 |
}
|
479 |
}
|
480 |
|
481 |
//if(!empty($field['label'])){
|
482 |
+
if ( isset( $field['label'] ) ) {
|
483 |
+
$new[ $key ]['label'] = wpdesk__( $field['label'], 'flexible-checkout-fields' );
|
484 |
+
}
|
485 |
//}
|
486 |
//if(!empty($field['placeholder'])){
|
487 |
if ( isset( $field['placeholder'] ) ) {
|
511 |
$array_options = explode( "\n", $field['option'] );
|
512 |
if ( !empty( $array_options ) ) {
|
513 |
foreach ( $array_options as $option ) {
|
514 |
+
$tmp = explode( ':', $option, 2 );
|
515 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
516 |
unset($tmp);
|
517 |
}
|
631 |
foreach ( $settings as $key => $type ) {
|
632 |
if ( isset( $type ) && is_array( $type ) ) {
|
633 |
foreach ( $type as $field ) {
|
634 |
+
if ( isset( $field['visible'] ) && $field['visible'] == 0 && isset($field['custom_field']) && $field['custom_field'] == 1 ){
|
635 |
if($value = get_post_meta( $order_id, '_'.$field['name'] , true )){
|
636 |
if ( !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
637 |
$array_options = explode("\n", $field['option']);
|
638 |
if(!empty($array_options)){
|
639 |
foreach ($array_options as $option) {
|
640 |
+
$tmp = explode(':', $option , 2 );
|
641 |
$options[trim($tmp[0])] = wpdesk__( trim($tmp[1]), 'flexible-checkout-fields' );
|
642 |
unset($tmp);
|
643 |
}
|
881 |
include( 'views/settings-field-advanced.php' );
|
882 |
}
|
883 |
|
884 |
+
public function woocommerce_get_country_locale_default( $address_fields ) {
|
885 |
+
error_log( print_r( $address_fields, true ) );
|
886 |
+
return $address_fields;
|
887 |
+
}
|
888 |
+
|
889 |
}
|
890 |
|
891 |
/**
|
lang/flexible-checkout-fields-pl_PL.mo
CHANGED
Binary file
|
lang/flexible-checkout-fields-pl_PL.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce Flexible Checkout Fields\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@inspirelabs.pl>\n"
|
7 |
"Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
|
8 |
"Language: pl_PL\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.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-WPHeader: flexible-checkout-fields.php\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
@@ -71,10 +71,14 @@ msgstr ""
|
|
71 |
"Notatka do twojego zamówienia, np. informacje o dostarczeniu przesyłki."
|
72 |
|
73 |
#: class/inspireCheckoutFieldsSettings.php:136
|
74 |
-
#: class/views/settings-settings.php:11 flexible-checkout-fields.php:
|
75 |
msgid "Settings"
|
76 |
msgstr "Ustawienia"
|
77 |
|
|
|
|
|
|
|
|
|
78 |
#: class/views/settings-ads.php:4
|
79 |
msgid "Get more WP Desk Plugins!"
|
80 |
msgstr "Wtyczki WP Desk"
|
@@ -131,71 +135,83 @@ msgstr "Ustawienia zostały zapisane."
|
|
131 |
msgid "Add New Field"
|
132 |
msgstr "Dodaj nowe pole"
|
133 |
|
134 |
-
#: class/views/settings-fields.php:43 class/views/settings-fields.php:
|
135 |
-
#: class/views/settings-fields.php:
|
136 |
msgid "Field Type"
|
137 |
msgstr "Typ pola"
|
138 |
|
139 |
-
#: class/views/settings-fields.php:
|
140 |
-
#: class/views/settings-fields.php:
|
141 |
msgid "Label"
|
142 |
msgstr "Etykieta"
|
143 |
|
144 |
-
#: class/views/settings-fields.php:
|
145 |
-
#: class/views/settings-fields.php:
|
146 |
msgid "You can use HTML."
|
147 |
msgstr "Możesz używać HTML."
|
148 |
|
149 |
-
#: class/views/settings-fields.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
msgid "Section"
|
151 |
msgstr "Sekcja"
|
152 |
|
153 |
-
#: class/views/settings-fields.php:
|
154 |
msgid "Save changes after adding a field."
|
155 |
msgstr "Zapisz zmiany po dodaniu pola."
|
156 |
|
157 |
-
#: class/views/settings-fields.php:
|
158 |
msgid "Add Field"
|
159 |
msgstr "Dodaj pole"
|
160 |
|
161 |
-
#: class/views/settings-fields.php:
|
162 |
msgid "Edit Section"
|
163 |
msgstr "Edytuj sekcję"
|
164 |
|
165 |
-
#: class/views/settings-fields.php:
|
166 |
#: class/views/settings-settings.php:35
|
167 |
msgid "Save Changes"
|
168 |
msgstr "Zapisz zmiany"
|
169 |
|
170 |
-
#: class/views/settings-fields.php:
|
171 |
msgid "Section Fields"
|
172 |
msgstr "Pola sekcji"
|
173 |
|
174 |
-
#: class/views/settings-fields.php:
|
175 |
msgid "Edit"
|
176 |
msgstr "Edytuj"
|
177 |
|
178 |
-
#: class/views/settings-fields.php:
|
179 |
msgid "General"
|
180 |
msgstr "Główne"
|
181 |
|
182 |
-
#: class/views/settings-fields.php:
|
183 |
msgid "Appearance"
|
184 |
msgstr "Wygląd"
|
185 |
|
186 |
-
#: class/views/settings-fields.php:
|
187 |
msgid "Enable Field"
|
188 |
msgstr "Pokaż pole"
|
189 |
|
190 |
-
#: class/views/settings-fields.php:
|
191 |
msgid "Required Field"
|
192 |
msgstr "Pole wymagane"
|
193 |
|
194 |
-
#: class/views/settings-fields.php:
|
|
|
|
|
|
|
|
|
195 |
msgid "Options"
|
196 |
msgstr "Opcje"
|
197 |
|
198 |
-
#: class/views/settings-fields.php:
|
199 |
msgid ""
|
200 |
"Format: <code>Value : Name</code>. Value will be in the code, name will be "
|
201 |
"visible to the user. One option per line. Example:<br /><code>woman : I am a "
|
@@ -206,35 +222,59 @@ msgstr ""
|
|
206 |
"Przykład:<br /><code>kobieta : Jestem kobietą</code><br /><code>mezczyzna : "
|
207 |
"Jestem mężczyzną</code>"
|
208 |
|
209 |
-
#: class/views/settings-fields.php:
|
210 |
-
#: class/views/settings-fields.php:
|
211 |
msgid "Placeholder"
|
212 |
msgstr "Placeholder"
|
213 |
|
214 |
-
#: class/views/settings-fields.php:
|
215 |
msgid "CSS Class"
|
216 |
msgstr "Klasa CSS"
|
217 |
|
218 |
-
#: class/views/settings-fields.php:
|
219 |
msgid "Delete Field"
|
220 |
msgstr "Usuń pole"
|
221 |
|
222 |
-
#: class/views/settings-fields.php:
|
223 |
msgid "Reset Section Settings"
|
224 |
msgstr "Resetuj ustawienia sekcji"
|
225 |
|
226 |
-
#: class/views/settings-fields.php:
|
227 |
msgid "Enter field label!"
|
228 |
msgstr "Wpisz etykietę pola!"
|
229 |
|
230 |
-
#: class/views/settings-fields.php:
|
231 |
msgid "Do you really want to delete this field: "
|
232 |
msgstr "Czy na pewno chcesz usunąć to pole: "
|
233 |
|
234 |
-
#: class/views/settings-fields.php:
|
235 |
msgid "Please confirm settings reset."
|
236 |
msgstr "Potwierdź reset ustawień."
|
237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
#: class/views/settings-settings.php:17
|
239 |
msgid "CSS jQuery UI"
|
240 |
msgstr "CSS jQuery UI"
|
@@ -260,63 +300,99 @@ msgstr ""
|
|
260 |
"Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-fields-"
|
261 |
"docs/\" target=\"_blank\">instrukcję konfiguracji →"
|
262 |
|
263 |
-
#: flexible-checkout-fields.php:
|
264 |
msgid "Billing"
|
265 |
msgstr "Płatność"
|
266 |
|
267 |
-
#: flexible-checkout-fields.php:
|
268 |
msgid "Shipping"
|
269 |
msgstr "Wysyłka"
|
270 |
|
271 |
-
#: flexible-checkout-fields.php:
|
272 |
msgid "Order"
|
273 |
msgstr "Zamówienie"
|
274 |
|
275 |
-
#: flexible-checkout-fields.php:
|
276 |
msgid "Single Line Text"
|
277 |
msgstr "Pojedyncza linia (input)"
|
278 |
|
279 |
-
#: flexible-checkout-fields.php:
|
280 |
msgid "Paragraph Text"
|
281 |
msgstr "Obszar tekstowy (textarea)"
|
282 |
|
283 |
-
#: flexible-checkout-fields.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
msgid "Uploading file..."
|
285 |
msgstr "Przesyłanie plik..."
|
286 |
|
287 |
-
#: flexible-checkout-fields.php:
|
288 |
msgid "Close"
|
289 |
msgstr "Zamknij"
|
290 |
|
291 |
-
#: flexible-checkout-fields.php:
|
292 |
msgid "Today"
|
293 |
msgstr "Dzisiaj"
|
294 |
|
295 |
-
#: flexible-checkout-fields.php:
|
296 |
msgid "Next"
|
297 |
msgstr "Następny"
|
298 |
|
299 |
-
#: flexible-checkout-fields.php:
|
300 |
msgid "Previous"
|
301 |
msgstr "Poprzedni"
|
302 |
|
303 |
-
#: flexible-checkout-fields.php:
|
304 |
msgid "Additional Information"
|
305 |
msgstr "Dodatkowe informacje"
|
306 |
|
307 |
-
#: flexible-checkout-fields.php:
|
308 |
msgid "https://www.wpdesk.net/docs/flexible-checkout-fields-docs/"
|
309 |
msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
|
310 |
|
311 |
-
#: flexible-checkout-fields.php:
|
312 |
msgid "Docs"
|
313 |
msgstr "Docs"
|
314 |
|
315 |
-
#: flexible-checkout-fields.php:
|
316 |
msgid "Support"
|
317 |
msgstr "Wsparcie"
|
318 |
|
319 |
-
#: flexible-checkout-fields.php:
|
320 |
msgid "Advanced"
|
321 |
msgstr "Zaawansowane"
|
322 |
|
@@ -423,33 +499,6 @@ msgstr "https://www.wpdesk.pl/"
|
|
423 |
#~ msgid "Displayed in the order edit screen when checked by the user"
|
424 |
#~ msgstr "Wyświetlane w edycji zamówienia, jeśli użytkownik zaznaczy"
|
425 |
|
426 |
-
#~ msgid "Checkbox"
|
427 |
-
#~ msgstr "Wybór (checkbox)"
|
428 |
-
|
429 |
-
#~ msgid "Radio button"
|
430 |
-
#~ msgstr "Wybór (radio)"
|
431 |
-
|
432 |
-
#~ msgid "Select (Drop Down)"
|
433 |
-
#~ msgstr "Lista rozwijana (select)"
|
434 |
-
|
435 |
-
#~ msgid "Date"
|
436 |
-
#~ msgstr "Data"
|
437 |
-
|
438 |
-
#~ msgid "Time"
|
439 |
-
#~ msgstr "Czas"
|
440 |
-
|
441 |
-
#~ msgid "Color Picker"
|
442 |
-
#~ msgstr "Wybór koloru"
|
443 |
-
|
444 |
-
#~ msgid "Headline"
|
445 |
-
#~ msgstr "Nagłówek"
|
446 |
-
|
447 |
-
#~ msgid "HTML"
|
448 |
-
#~ msgstr "HTML"
|
449 |
-
|
450 |
-
#~ msgid "File Upload"
|
451 |
-
#~ msgstr "Przesyłanie pliku"
|
452 |
-
|
453 |
#~ msgid "Edit Fields"
|
454 |
#~ msgstr "Edycja pól"
|
455 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce Flexible Checkout Fields\n"
|
4 |
+
"POT-Creation-Date: 2017-02-09 10:48+0100\n"
|
5 |
+
"PO-Revision-Date: 2017-02-09 10:49+0100\n"
|
6 |
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@inspirelabs.pl>\n"
|
7 |
"Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
|
8 |
"Language: pl_PL\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.11\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-WPHeader: flexible-checkout-fields.php\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
71 |
"Notatka do twojego zamówienia, np. informacje o dostarczeniu przesyłki."
|
72 |
|
73 |
#: class/inspireCheckoutFieldsSettings.php:136
|
74 |
+
#: class/views/settings-settings.php:11 flexible-checkout-fields.php:853
|
75 |
msgid "Settings"
|
76 |
msgstr "Ustawienia"
|
77 |
|
78 |
+
#: class/inspireCheckoutFieldsSettings.php:145
|
79 |
+
msgid "Custom Sections"
|
80 |
+
msgstr "Dodatkowe sekcje"
|
81 |
+
|
82 |
#: class/views/settings-ads.php:4
|
83 |
msgid "Get more WP Desk Plugins!"
|
84 |
msgstr "Wtyczki WP Desk"
|
135 |
msgid "Add New Field"
|
136 |
msgstr "Dodaj nowe pole"
|
137 |
|
138 |
+
#: class/views/settings-fields.php:43 class/views/settings-fields.php:280
|
139 |
+
#: class/views/settings-fields.php:452
|
140 |
msgid "Field Type"
|
141 |
msgstr "Typ pola"
|
142 |
|
143 |
+
#: class/views/settings-fields.php:54 class/views/settings-fields.php:235
|
144 |
+
#: class/views/settings-fields.php:444
|
145 |
msgid "Label"
|
146 |
msgstr "Etykieta"
|
147 |
|
148 |
+
#: class/views/settings-fields.php:59 class/views/settings-fields.php:256
|
149 |
+
#: class/views/settings-fields.php:446
|
150 |
msgid "You can use HTML."
|
151 |
msgstr "Możesz używać HTML."
|
152 |
|
153 |
+
#: class/views/settings-fields.php:67
|
154 |
+
msgid "This field is available in the PRO version."
|
155 |
+
msgstr "To pole jest dostępne w wersji PRO."
|
156 |
+
|
157 |
+
#: class/views/settings-fields.php:67
|
158 |
+
msgid "Upgrade to PRO now →"
|
159 |
+
msgstr "Zaktualizuj do PRO →"
|
160 |
+
|
161 |
+
#: class/views/settings-fields.php:72
|
162 |
msgid "Section"
|
163 |
msgstr "Sekcja"
|
164 |
|
165 |
+
#: class/views/settings-fields.php:86
|
166 |
msgid "Save changes after adding a field."
|
167 |
msgstr "Zapisz zmiany po dodaniu pola."
|
168 |
|
169 |
+
#: class/views/settings-fields.php:91
|
170 |
msgid "Add Field"
|
171 |
msgstr "Dodaj pole"
|
172 |
|
173 |
+
#: class/views/settings-fields.php:110
|
174 |
msgid "Edit Section"
|
175 |
msgstr "Edytuj sekcję"
|
176 |
|
177 |
+
#: class/views/settings-fields.php:115 class/views/settings-fields.php:355
|
178 |
#: class/views/settings-settings.php:35
|
179 |
msgid "Save Changes"
|
180 |
msgstr "Zapisz zmiany"
|
181 |
|
182 |
+
#: class/views/settings-fields.php:127
|
183 |
msgid "Section Fields"
|
184 |
msgstr "Pola sekcji"
|
185 |
|
186 |
+
#: class/views/settings-fields.php:162 class/views/settings-fields.php:402
|
187 |
msgid "Edit"
|
188 |
msgstr "Edytuj"
|
189 |
|
190 |
+
#: class/views/settings-fields.php:170 class/views/settings-fields.php:409
|
191 |
msgid "General"
|
192 |
msgstr "Główne"
|
193 |
|
194 |
+
#: class/views/settings-fields.php:172 class/views/settings-fields.php:410
|
195 |
msgid "Appearance"
|
196 |
msgstr "Wygląd"
|
197 |
|
198 |
+
#: class/views/settings-fields.php:202 class/views/settings-fields.php:433
|
199 |
msgid "Enable Field"
|
200 |
msgstr "Pokaż pole"
|
201 |
|
202 |
+
#: class/views/settings-fields.php:229 class/views/settings-fields.php:440
|
203 |
msgid "Required Field"
|
204 |
msgstr "Pole wymagane"
|
205 |
|
206 |
+
#: class/views/settings-fields.php:245 class/views/settings-fields.php:314
|
207 |
+
msgid "This field is address locale dependent and cannot be modified."
|
208 |
+
msgstr "Nazwa tego pola nie może byc edytowana."
|
209 |
+
|
210 |
+
#: class/views/settings-fields.php:268
|
211 |
msgid "Options"
|
212 |
msgstr "Opcje"
|
213 |
|
214 |
+
#: class/views/settings-fields.php:273
|
215 |
msgid ""
|
216 |
"Format: <code>Value : Name</code>. Value will be in the code, name will be "
|
217 |
"visible to the user. One option per line. Example:<br /><code>woman : I am a "
|
222 |
"Przykład:<br /><code>kobieta : Jestem kobietą</code><br /><code>mezczyzna : "
|
223 |
"Jestem mężczyzną</code>"
|
224 |
|
225 |
+
#: class/views/settings-fields.php:304 class/views/settings-fields.php:460
|
226 |
+
#: class/views/settings-fields.php:485 class/views/settings-fields.php:527
|
227 |
msgid "Placeholder"
|
228 |
msgstr "Placeholder"
|
229 |
|
230 |
+
#: class/views/settings-fields.php:328 class/views/settings-fields.php:464
|
231 |
msgid "CSS Class"
|
232 |
msgstr "Klasa CSS"
|
233 |
|
234 |
+
#: class/views/settings-fields.php:340 class/views/settings-fields.php:472
|
235 |
msgid "Delete Field"
|
236 |
msgstr "Usuń pole"
|
237 |
|
238 |
+
#: class/views/settings-fields.php:358
|
239 |
msgid "Reset Section Settings"
|
240 |
msgstr "Resetuj ustawienia sekcji"
|
241 |
|
242 |
+
#: class/views/settings-fields.php:494
|
243 |
msgid "Enter field label!"
|
244 |
msgstr "Wpisz etykietę pola!"
|
245 |
|
246 |
+
#: class/views/settings-fields.php:538
|
247 |
msgid "Do you really want to delete this field: "
|
248 |
msgstr "Czy na pewno chcesz usunąć to pole: "
|
249 |
|
250 |
+
#: class/views/settings-fields.php:560
|
251 |
msgid "Please confirm settings reset."
|
252 |
msgstr "Potwierdź reset ustawień."
|
253 |
|
254 |
+
#: class/views/settings-pro.php:12
|
255 |
+
msgid "Buy Flexible Checkout Fields PRO to use Custom Sections:"
|
256 |
+
msgstr "Kup wtyczkę Edycja Pól Zamówienia PRO, aby używać dodatkowych sekcji:"
|
257 |
+
|
258 |
+
#: class/views/settings-pro.php:15
|
259 |
+
msgid "Add fields anywhere in the WooCommerce checkout form."
|
260 |
+
msgstr "Dodaj nowe pola w dowolnym miejscu formularza zamówienia."
|
261 |
+
|
262 |
+
#: class/views/settings-pro.php:16
|
263 |
+
msgid ""
|
264 |
+
"Get more fields: checkboxes, radios buttons, dropdowns, file uploads, date & "
|
265 |
+
"time or color pickers and more."
|
266 |
+
msgstr ""
|
267 |
+
"Uzyskaj nowe pola: checkboksy, przyciski wyboru (radio), listy wyboru "
|
268 |
+
"(select), wgrywanie plików, wybór daty, czasu lub koloru, a nawet więcej."
|
269 |
+
|
270 |
+
#: class/views/settings-pro.php:17
|
271 |
+
msgid "Conditionally show or hide fields based on products or categories."
|
272 |
+
msgstr "Warunkowo pokazuj lub chowaj pola w oparciu o produkty lub kategorie."
|
273 |
+
|
274 |
+
#: class/views/settings-pro.php:22
|
275 |
+
msgid "Get Flexible Checkout Fields PRO now →"
|
276 |
+
msgstr "Kup wersję PRO teraz →"
|
277 |
+
|
278 |
#: class/views/settings-settings.php:17
|
279 |
msgid "CSS jQuery UI"
|
280 |
msgstr "CSS jQuery UI"
|
300 |
"Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-fields-"
|
301 |
"docs/\" target=\"_blank\">instrukcję konfiguracji →"
|
302 |
|
303 |
+
#: flexible-checkout-fields.php:133
|
304 |
msgid "Billing"
|
305 |
msgstr "Płatność"
|
306 |
|
307 |
+
#: flexible-checkout-fields.php:139
|
308 |
msgid "Shipping"
|
309 |
msgstr "Wysyłka"
|
310 |
|
311 |
+
#: flexible-checkout-fields.php:145
|
312 |
msgid "Order"
|
313 |
msgstr "Zamówienie"
|
314 |
|
315 |
+
#: flexible-checkout-fields.php:161
|
316 |
msgid "Single Line Text"
|
317 |
msgstr "Pojedyncza linia (input)"
|
318 |
|
319 |
+
#: flexible-checkout-fields.php:165
|
320 |
msgid "Paragraph Text"
|
321 |
msgstr "Obszar tekstowy (textarea)"
|
322 |
|
323 |
+
#: flexible-checkout-fields.php:173
|
324 |
+
msgid "Checkbox"
|
325 |
+
msgstr "Wybór (checkbox)"
|
326 |
+
|
327 |
+
#: flexible-checkout-fields.php:178
|
328 |
+
msgid "Radio button"
|
329 |
+
msgstr "Wybór (radio)"
|
330 |
+
|
331 |
+
#: flexible-checkout-fields.php:183
|
332 |
+
msgid "Select (Drop Down)"
|
333 |
+
msgstr "Lista rozwijana (select)"
|
334 |
+
|
335 |
+
#: flexible-checkout-fields.php:188
|
336 |
+
msgid "Date"
|
337 |
+
msgstr "Data"
|
338 |
+
|
339 |
+
#: flexible-checkout-fields.php:193
|
340 |
+
msgid "Time"
|
341 |
+
msgstr "Czas"
|
342 |
+
|
343 |
+
#: flexible-checkout-fields.php:198
|
344 |
+
msgid "Color Picker"
|
345 |
+
msgstr "Wybór koloru"
|
346 |
+
|
347 |
+
#: flexible-checkout-fields.php:203
|
348 |
+
msgid "Headline"
|
349 |
+
msgstr "Nagłówek"
|
350 |
+
|
351 |
+
#: flexible-checkout-fields.php:208
|
352 |
+
msgid "HTML"
|
353 |
+
msgstr "HTML"
|
354 |
+
|
355 |
+
#: flexible-checkout-fields.php:213
|
356 |
+
msgid "File Upload"
|
357 |
+
msgstr "Przesyłanie pliku"
|
358 |
+
|
359 |
+
#: flexible-checkout-fields.php:301
|
360 |
msgid "Uploading file..."
|
361 |
msgstr "Przesyłanie plik..."
|
362 |
|
363 |
+
#: flexible-checkout-fields.php:332
|
364 |
msgid "Close"
|
365 |
msgstr "Zamknij"
|
366 |
|
367 |
+
#: flexible-checkout-fields.php:333
|
368 |
msgid "Today"
|
369 |
msgstr "Dzisiaj"
|
370 |
|
371 |
+
#: flexible-checkout-fields.php:336
|
372 |
msgid "Next"
|
373 |
msgstr "Następny"
|
374 |
|
375 |
+
#: flexible-checkout-fields.php:337
|
376 |
msgid "Previous"
|
377 |
msgstr "Poprzedni"
|
378 |
|
379 |
+
#: flexible-checkout-fields.php:660 flexible-checkout-fields.php:818
|
380 |
msgid "Additional Information"
|
381 |
msgstr "Dodatkowe informacje"
|
382 |
|
383 |
+
#: flexible-checkout-fields.php:854
|
384 |
msgid "https://www.wpdesk.net/docs/flexible-checkout-fields-docs/"
|
385 |
msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
|
386 |
|
387 |
+
#: flexible-checkout-fields.php:854
|
388 |
msgid "Docs"
|
389 |
msgstr "Docs"
|
390 |
|
391 |
+
#: flexible-checkout-fields.php:855
|
392 |
msgid "Support"
|
393 |
msgstr "Wsparcie"
|
394 |
|
395 |
+
#: flexible-checkout-fields.php:875
|
396 |
msgid "Advanced"
|
397 |
msgstr "Zaawansowane"
|
398 |
|
499 |
#~ msgid "Displayed in the order edit screen when checked by the user"
|
500 |
#~ msgstr "Wyświetlane w edycji zamówienia, jeśli użytkownik zaznaczy"
|
501 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
#~ msgid "Edit Fields"
|
503 |
#~ msgstr "Edycja pól"
|
504 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk, swoboda, jablonowski
|
|
3 |
Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
4 |
Tags: woocommerce checkout, woocommerce checkout fields, flexible checkout fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -82,7 +82,11 @@ Billing, Shipping or Order sections are not enough? Now you can add fields to 12
|
|
82 |
* Before Submit - `woocommerce_review_order_before_submit`
|
83 |
* After Submit - `woocommerce_review_order_after_submit`
|
84 |
|
85 |
-
= Conditional Logic (PRO) =
|
|
|
|
|
|
|
|
|
86 |
|
87 |
Enable conditional logic (show or hide) for fields based on products and/or categories in the cart, i.e.:
|
88 |
|
@@ -142,6 +146,11 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
142 |
|
143 |
== Changelog ==
|
144 |
|
|
|
|
|
|
|
|
|
|
|
145 |
= 1.3.3 - 2016-11-28 =
|
146 |
* Fixed radio buttons saving
|
147 |
* Strip tags from labels when viewing fields settings
|
3 |
Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
4 |
Tags: woocommerce checkout, woocommerce checkout fields, flexible checkout fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
82 |
* Before Submit - `woocommerce_review_order_before_submit`
|
83 |
* After Submit - `woocommerce_review_order_after_submit`
|
84 |
|
85 |
+
= Conditional Logic for Fields (PRO) =
|
86 |
+
|
87 |
+
Enable conditional logic (show or hide) for fields based on other fields values (checkbox, radio, select).
|
88 |
+
|
89 |
+
= Conditional Logic for Products and Categories (PRO) =
|
90 |
|
91 |
Enable conditional logic (show or hide) for fields based on products and/or categories in the cart, i.e.:
|
92 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 1.4 - 2017-02-15 =
|
150 |
+
* Added support for conditional logic in FCF PRO 1.4 (this update is necessary for FCF PRO 1.4)
|
151 |
+
* Disabled editing field name for: Town, State, Postcode (unsupported in WooCommerce)
|
152 |
+
* CSS tweaks for WordPress 4.7.x
|
153 |
+
|
154 |
= 1.3.3 - 2016-11-28 =
|
155 |
* Fixed radio buttons saving
|
156 |
* Strip tags from labels when viewing fields settings
|