Version Description
- 2017-07-27 =
- Fixed issue with the fields order in the checkout
- Tweaked message in WP Desk Tracker class
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- flexible-checkout-fields.php +46 -5
- inc/wpdesk-tracker/class-wpdesk-tracker.php +103 -11
- inc/wpdesk-tracker/lang/wpdesk-tracker-pl_PL.mo +0 -0
- inc/wpdesk-tracker/lang/wpdesk-tracker-pl_PL.po +15 -8
- inc/wpdesk-tracker/views/tracker-connect.php +0 -15
- inc/wpdesk-tracker/views/tracker-notice.php +2 -2
- lang/flexible-checkout-fields-pl_PL.mo +0 -0
- lang/flexible-checkout-fields-pl_PL.po +199 -30
- readme.txt +8 -8
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.5.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -124,11 +124,39 @@
|
|
124 |
|
125 |
add_action( 'flexible_checkout_fields_field_tabs_content', array( 'inspireCheckoutFields', 'flexible_checkout_fields_field_tabs_content'), 10, 4 );
|
126 |
|
127 |
-
|
|
|
|
|
|
|
|
|
128 |
//do użycia dla pola miasto, kod pocztowy i stan
|
129 |
$this->get_sections();
|
130 |
}
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
public function get_sections() {
|
133 |
$sections = array(
|
134 |
'billing' => array(
|
@@ -427,9 +455,6 @@
|
|
427 |
}
|
428 |
|
429 |
$new[$key][$field['name']]['custom_attributes'] = apply_filters( 'flexible_checkout_fields_custom_attributes', array(), $field );
|
430 |
-
$priority = $priority + 10;
|
431 |
-
$new[$key][$field['name']]['priority'] = $priority;
|
432 |
-
|
433 |
}
|
434 |
}
|
435 |
}
|
@@ -445,6 +470,14 @@
|
|
445 |
}
|
446 |
}
|
447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
if ( $request_type == null ) {
|
449 |
if ( !empty($fields['account'] ) ) {
|
450 |
$new['account'] = $fields['account'];
|
@@ -471,8 +504,11 @@
|
|
471 |
|
472 |
$checkout_field_type = $this->get_fields();
|
473 |
|
|
|
|
|
474 |
if ( !empty($settings[$request_type] ) ) {
|
475 |
foreach ( $settings[$request_type] as $key => $field ) {
|
|
|
476 |
if($field['visible'] == 0 or $field['name'] == 'billing_country' or $field['name'] == 'shipping_country' or ( isset($_GET['page']) && $_GET['page'] == 'inspire_checkout_fields_settings' and $field['visible'] == 1)){
|
477 |
|
478 |
if(!empty($fields[$key])){
|
@@ -529,6 +565,10 @@
|
|
529 |
}
|
530 |
}
|
531 |
}
|
|
|
|
|
|
|
|
|
532 |
return $new;
|
533 |
}
|
534 |
else {
|
@@ -895,6 +935,7 @@
|
|
895 |
include( 'views/settings-field-advanced.php' );
|
896 |
}
|
897 |
|
|
|
898 |
public function woocommerce_get_country_locale_default( $address_fields ) {
|
899 |
return $address_fields;
|
900 |
}
|
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.5.2
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
124 |
|
125 |
add_action( 'flexible_checkout_fields_field_tabs_content', array( 'inspireCheckoutFields', 'flexible_checkout_fields_field_tabs_content'), 10, 4 );
|
126 |
|
127 |
+
add_action( 'woocommerce_default_address_fields', array( $this, 'woocommerce_default_address_fields' ), 9999 );
|
128 |
+
add_filter( 'woocommerce_get_country_locale', array( $this, 'woocommerce_get_country_locale' ) );
|
129 |
+
add_filter( 'woocommerce_localisation_address_formats', array( $this, 'woocommerce_localisation_address_formats' ) );
|
130 |
+
|
131 |
+
add_action( 'woocommerce_get_country_locale_default', array( $this, 'woocommerce_get_country_locale_default' ), 11 );
|
132 |
//do użycia dla pola miasto, kod pocztowy i stan
|
133 |
$this->get_sections();
|
134 |
}
|
135 |
|
136 |
+
public function woocommerce_localisation_address_formats( $formats ) {
|
137 |
+
return $formats;
|
138 |
+
}
|
139 |
+
|
140 |
+
public function woocommerce_get_country_locale( $locale ) {
|
141 |
+
if ( is_checkout() ) {
|
142 |
+
foreach ( $locale as $country => $fields ) {
|
143 |
+
foreach ( $fields as $field => $settings ) {
|
144 |
+
unset( $locale[ $country ][ $field ]['priority'] );
|
145 |
+
}
|
146 |
+
}
|
147 |
+
}
|
148 |
+
return $locale;
|
149 |
+
}
|
150 |
+
|
151 |
+
public function woocommerce_default_address_fields( $fields ) {
|
152 |
+
if ( is_checkout() ) {
|
153 |
+
foreach ( $fields as $key => $field ) {
|
154 |
+
unset( $fields[$key]['priority'] );
|
155 |
+
}
|
156 |
+
}
|
157 |
+
return $fields;
|
158 |
+
}
|
159 |
+
|
160 |
public function get_sections() {
|
161 |
$sections = array(
|
162 |
'billing' => array(
|
455 |
}
|
456 |
|
457 |
$new[$key][$field['name']]['custom_attributes'] = apply_filters( 'flexible_checkout_fields_custom_attributes', array(), $field );
|
|
|
|
|
|
|
458 |
}
|
459 |
}
|
460 |
}
|
470 |
}
|
471 |
}
|
472 |
|
473 |
+
foreach ( $new as $type => $fields ) {
|
474 |
+
$priority = 0;
|
475 |
+
foreach ( $fields as $key => $field ) {
|
476 |
+
$priority = $priority + 10;
|
477 |
+
$new[$type][$key]['priority'] = $priority;
|
478 |
+
}
|
479 |
+
}
|
480 |
+
//error_log(print_r($new,true));
|
481 |
if ( $request_type == null ) {
|
482 |
if ( !empty($fields['account'] ) ) {
|
483 |
$new['account'] = $fields['account'];
|
504 |
|
505 |
$checkout_field_type = $this->get_fields();
|
506 |
|
507 |
+
$priority = 0;
|
508 |
+
|
509 |
if ( !empty($settings[$request_type] ) ) {
|
510 |
foreach ( $settings[$request_type] as $key => $field ) {
|
511 |
+
|
512 |
if($field['visible'] == 0 or $field['name'] == 'billing_country' or $field['name'] == 'shipping_country' or ( isset($_GET['page']) && $_GET['page'] == 'inspire_checkout_fields_settings' and $field['visible'] == 1)){
|
513 |
|
514 |
if(!empty($fields[$key])){
|
565 |
}
|
566 |
}
|
567 |
}
|
568 |
+
foreach ( $new as $key => $field ) {
|
569 |
+
$priority += 10;
|
570 |
+
$new[$key]['priority'] = $priority;
|
571 |
+
}
|
572 |
return $new;
|
573 |
}
|
574 |
else {
|
935 |
include( 'views/settings-field-advanced.php' );
|
936 |
}
|
937 |
|
938 |
+
|
939 |
public function woocommerce_get_country_locale_default( $address_fields ) {
|
940 |
return $address_fields;
|
941 |
}
|
inc/wpdesk-tracker/class-wpdesk-tracker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* WP Desk Tracker
|
4 |
*
|
5 |
* @class WPDESK_Tracker
|
6 |
-
* @version
|
7 |
* @package WPDESK/Helper
|
8 |
* @category Class
|
9 |
* @author WP Desk
|
@@ -23,6 +23,8 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
23 |
|
24 |
public static $plugin_basename = '';
|
25 |
|
|
|
|
|
26 |
/**
|
27 |
* URL to the WP Desk Tracker API endpoint.
|
28 |
* @var string
|
@@ -36,6 +38,7 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
36 |
public static function init( $plugin_basename ) {
|
37 |
self::$plugin_basename = $plugin_basename;
|
38 |
add_action( 'plugins_loaded', array( __CLASS__, 'load_plugin_text_domain') );
|
|
|
39 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_enqueue_scripts' ), 100 );
|
40 |
add_action( 'wpdesk_tracker_send_event', array( __CLASS__, 'send_tracking_data' ) );
|
41 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
@@ -43,20 +46,27 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
43 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
44 |
add_action( 'wp_ajax_wpdesk_tracker_notice_handler', array( __CLASS__, 'wp_ajax_wpdesk_tracker_notice_handler' ) );
|
45 |
add_action( 'wp_ajax_wpdesk_tracker_deactivation_handler', array( __CLASS__, 'wp_ajax_wpdesk_tracker_deactivation_handler' ) );
|
|
|
46 |
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
|
|
|
|
47 |
|
48 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_license_emails' ) );
|
49 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_shipping_country_per_order' ) );
|
50 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_shipping_classes' ) );
|
51 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_product_variations' ) );
|
52 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_orders_per_month' ) );
|
|
|
53 |
|
54 |
global $pagenow;
|
55 |
if ( 'plugins.php' === $pagenow ) {
|
56 |
add_action( 'admin_footer', array( __CLASS__, 'admin_footer' ) );
|
57 |
}
|
58 |
|
59 |
-
|
|
|
|
|
|
|
60 |
if ( !is_array( $options ) ) {
|
61 |
$options = array();
|
62 |
}
|
@@ -78,7 +88,7 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
78 |
}
|
79 |
|
80 |
public static function admin_footer() {
|
81 |
-
if ( wpdesk_tracker_enabled() ) {
|
82 |
$plugins = array(
|
83 |
'wpdesk-helper/wpdesk-helper.php' => 'wpdesk-helper/wpdesk-helper.php'
|
84 |
);
|
@@ -120,6 +130,10 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
120 |
|
121 |
|
122 |
public static function wp_ajax_wpdesk_tracker_notice_handler() {
|
|
|
|
|
|
|
|
|
123 |
$type = '';
|
124 |
if ( isset( $_REQUEST['type'] ) ) {
|
125 |
$type = $_REQUEST['type'];
|
@@ -156,10 +170,15 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
156 |
update_option( 'wpdesk_helper_options', $options );
|
157 |
}
|
158 |
if ( $type == 'dismiss_coupon' ) {
|
|
|
159 |
$options = get_option('wpdesk_helper_options', array() );
|
160 |
if ( !is_array( $options ) ) {
|
161 |
$options = array();
|
162 |
}
|
|
|
|
|
|
|
|
|
163 |
delete_option( 'wpdesk_tracker_notice' );
|
164 |
$options['wpdesk_tracker_agree'] = '0';
|
165 |
update_option( 'wpdesk_helper_options', $options );
|
@@ -169,23 +188,23 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
169 |
|
170 |
public static function update_option_wpdesk_helper_options( $old_value, $value, $option ) {
|
171 |
if ( empty( $old_value ) ) {
|
172 |
-
$old_value = array( 'wpdesk_tracker_agree' => '
|
173 |
}
|
174 |
-
if (
|
175 |
-
$old_value['wpdesk_tracker_agree'] = '
|
176 |
}
|
177 |
if ( empty( $value ) ) {
|
178 |
-
$value = array( 'wpdesk_tracker_agree' => '
|
179 |
}
|
180 |
-
if (
|
181 |
-
$value['wpdesk_tracker_agree'] = '
|
182 |
}
|
183 |
-
if ( $old_value['wpdesk_tracker_agree']
|
184 |
if ( $value['wpdesk_tracker_agree'] == '1' ) {
|
185 |
self::send_tracking_data( true, 'agree' );
|
186 |
}
|
187 |
}
|
188 |
-
if ( $old_value['wpdesk_tracker_agree']
|
189 |
if ( $value['wpdesk_tracker_agree'] == '0' ) {
|
190 |
self::send_tracking_data( true, 'no' );
|
191 |
update_option( 'wpdesk_tracker_notice', 'dismiss_all' );
|
@@ -193,6 +212,24 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
193 |
}
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
public static function admin_notices() {
|
197 |
if ( !wpdesk_tracker_enabled() ) {
|
198 |
return;
|
@@ -259,10 +296,19 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
259 |
$options = array();
|
260 |
}
|
261 |
if ( $_GET['allow'] == '0' ) {
|
|
|
|
|
|
|
|
|
262 |
$options['wpdesk_tracker_agree'] = '0';
|
263 |
update_option( 'wpdesk_helper_options', $options );
|
|
|
264 |
}
|
265 |
else {
|
|
|
|
|
|
|
|
|
266 |
delete_option( 'wpdesk_tracker_notice' );
|
267 |
update_option( 'wpdesk_tracker_agree', '1' );
|
268 |
$options['wpdesk_tracker_agree'] = '1';
|
@@ -356,6 +402,36 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
356 |
return $data;
|
357 |
}
|
358 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
public static function send_deactivation_data() {
|
361 |
|
@@ -449,6 +525,10 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
449 |
}
|
450 |
else {
|
451 |
$params = array( 'click_action' => 'no' );
|
|
|
|
|
|
|
|
|
452 |
}
|
453 |
|
454 |
$params['localhost'] = 'no';
|
@@ -802,3 +882,15 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
802 |
}
|
803 |
|
804 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
* WP Desk Tracker
|
4 |
*
|
5 |
* @class WPDESK_Tracker
|
6 |
+
* @version 1.3.1
|
7 |
* @package WPDESK/Helper
|
8 |
* @category Class
|
9 |
* @author WP Desk
|
23 |
|
24 |
public static $plugin_basename = '';
|
25 |
|
26 |
+
public static $dismiss_coupon = false;
|
27 |
+
|
28 |
/**
|
29 |
* URL to the WP Desk Tracker API endpoint.
|
30 |
* @var string
|
38 |
public static function init( $plugin_basename ) {
|
39 |
self::$plugin_basename = $plugin_basename;
|
40 |
add_action( 'plugins_loaded', array( __CLASS__, 'load_plugin_text_domain') );
|
41 |
+
add_action( 'admin_init', array( __CLASS__, 'init_schedule') );
|
42 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_enqueue_scripts' ), 100 );
|
43 |
add_action( 'wpdesk_tracker_send_event', array( __CLASS__, 'send_tracking_data' ) );
|
44 |
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
|
46 |
add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) );
|
47 |
add_action( 'wp_ajax_wpdesk_tracker_notice_handler', array( __CLASS__, 'wp_ajax_wpdesk_tracker_notice_handler' ) );
|
48 |
add_action( 'wp_ajax_wpdesk_tracker_deactivation_handler', array( __CLASS__, 'wp_ajax_wpdesk_tracker_deactivation_handler' ) );
|
49 |
+
|
50 |
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
51 |
+
add_filter( 'option_wpdesk_helper_options', array( __CLASS__, 'option_wpdesk_helper_options' ), 10, 2 );
|
52 |
+
add_filter( 'default_option_wpdesk_helper_options', array( __CLASS__, 'default_option_wpdesk_helper_options' ), 10, 3 );
|
53 |
|
54 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_license_emails' ) );
|
55 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_shipping_country_per_order' ) );
|
56 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_shipping_classes' ) );
|
57 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_product_variations' ) );
|
58 |
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_orders_per_month' ) );
|
59 |
+
add_filter( 'wpdesk_tracker_data', array( __CLASS__, 'wpdesk_tracker_data_shipping_methods_in_zones' ) );
|
60 |
|
61 |
global $pagenow;
|
62 |
if ( 'plugins.php' === $pagenow ) {
|
63 |
add_action( 'admin_footer', array( __CLASS__, 'admin_footer' ) );
|
64 |
}
|
65 |
|
66 |
+
}
|
67 |
+
|
68 |
+
public static function init_schedule() {
|
69 |
+
$options = get_option( 'wpdesk_helper_options' );
|
70 |
if ( !is_array( $options ) ) {
|
71 |
$options = array();
|
72 |
}
|
88 |
}
|
89 |
|
90 |
public static function admin_footer() {
|
91 |
+
if ( wpdesk_tracker_enabled() && !apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
92 |
$plugins = array(
|
93 |
'wpdesk-helper/wpdesk-helper.php' => 'wpdesk-helper/wpdesk-helper.php'
|
94 |
);
|
130 |
|
131 |
|
132 |
public static function wp_ajax_wpdesk_tracker_notice_handler() {
|
133 |
+
$option = get_option( 'wpdesk_helper_options' );
|
134 |
+
if ( !$option ) {
|
135 |
+
add_option( 'wpdesk_helper_options', array() );
|
136 |
+
}
|
137 |
$type = '';
|
138 |
if ( isset( $_REQUEST['type'] ) ) {
|
139 |
$type = $_REQUEST['type'];
|
170 |
update_option( 'wpdesk_helper_options', $options );
|
171 |
}
|
172 |
if ( $type == 'dismiss_coupon' ) {
|
173 |
+
self::$dismiss_coupon = true;
|
174 |
$options = get_option('wpdesk_helper_options', array() );
|
175 |
if ( !is_array( $options ) ) {
|
176 |
$options = array();
|
177 |
}
|
178 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
179 |
+
unset( $options['wpdesk_tracker_agree'] );
|
180 |
+
update_option( 'wpdesk_helper_options', $options );
|
181 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
182 |
delete_option( 'wpdesk_tracker_notice' );
|
183 |
$options['wpdesk_tracker_agree'] = '0';
|
184 |
update_option( 'wpdesk_helper_options', $options );
|
188 |
|
189 |
public static function update_option_wpdesk_helper_options( $old_value, $value, $option ) {
|
190 |
if ( empty( $old_value ) ) {
|
191 |
+
$old_value = array( 'wpdesk_tracker_agree' => '-1' );
|
192 |
}
|
193 |
+
if ( !isset( $old_value['wpdesk_tracker_agree'] ) ) {
|
194 |
+
$old_value['wpdesk_tracker_agree'] = '-1';
|
195 |
}
|
196 |
if ( empty( $value ) ) {
|
197 |
+
$value = array( 'wpdesk_tracker_agree' => '-1' );
|
198 |
}
|
199 |
+
if ( !isset( $value['wpdesk_tracker_agree'] ) ) {
|
200 |
+
$value['wpdesk_tracker_agree'] = '-1';
|
201 |
}
|
202 |
+
if ( $old_value['wpdesk_tracker_agree'] != '1' ) {
|
203 |
if ( $value['wpdesk_tracker_agree'] == '1' ) {
|
204 |
self::send_tracking_data( true, 'agree' );
|
205 |
}
|
206 |
}
|
207 |
+
if ( $old_value['wpdesk_tracker_agree'] != '0' ) {
|
208 |
if ( $value['wpdesk_tracker_agree'] == '0' ) {
|
209 |
self::send_tracking_data( true, 'no' );
|
210 |
update_option( 'wpdesk_tracker_notice', 'dismiss_all' );
|
212 |
}
|
213 |
}
|
214 |
|
215 |
+
public static function option_wpdesk_helper_options( $value, $option ) {
|
216 |
+
if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
217 |
+
if ( !is_array( $value ) ) {
|
218 |
+
$value = array();
|
219 |
+
}
|
220 |
+
$value['wpdesk_tracker_agree'] = 1;
|
221 |
+
}
|
222 |
+
return $value;
|
223 |
+
}
|
224 |
+
|
225 |
+
public static function default_option_wpdesk_helper_options( $default, $option = null, $passed_default = null ) {
|
226 |
+
if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
227 |
+
$default = array();
|
228 |
+
$default['wpdesk_tracker_agree'] = 1;
|
229 |
+
}
|
230 |
+
return $default;
|
231 |
+
}
|
232 |
+
|
233 |
public static function admin_notices() {
|
234 |
if ( !wpdesk_tracker_enabled() ) {
|
235 |
return;
|
296 |
$options = array();
|
297 |
}
|
298 |
if ( $_GET['allow'] == '0' ) {
|
299 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
300 |
+
unset( $options['wpdesk_tracker_agree'] );
|
301 |
+
update_option( 'wpdesk_helper_options', $options );
|
302 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
303 |
$options['wpdesk_tracker_agree'] = '0';
|
304 |
update_option( 'wpdesk_helper_options', $options );
|
305 |
+
update_option( 'wpdesk_tracker_notice', '1' );
|
306 |
}
|
307 |
else {
|
308 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
309 |
+
unset( $options['wpdesk_tracker_agree'] );
|
310 |
+
update_option( 'wpdesk_helper_options', $options );
|
311 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
312 |
delete_option( 'wpdesk_tracker_notice' );
|
313 |
update_option( 'wpdesk_tracker_agree', '1' );
|
314 |
$options['wpdesk_tracker_agree'] = '1';
|
402 |
return $data;
|
403 |
}
|
404 |
|
405 |
+
public static function wpdesk_tracker_data_shipping_methods_in_zones( $data ) {
|
406 |
+
if ( class_exists( 'WC_Shipping_Zones' )) {
|
407 |
+
$other_zones = WC_Shipping_Zones::get_zones();
|
408 |
+
$zones = array();
|
409 |
+
foreach ( $other_zones as $zone ) {
|
410 |
+
$zones[] = WC_Shipping_Zones::get_zone_by( 'zone_id', $zone['zone_id'] );
|
411 |
+
}
|
412 |
+
$zones[] = WC_Shipping_Zones::get_zone_by();
|
413 |
+
$data['shipping_methods_by_title'] = array();
|
414 |
+
$data['shipping_zones_by_name'] = array();
|
415 |
+
foreach ( $zones as $zone ) {
|
416 |
+
if ( empty( $data['shipping_zones_by_name'][$zone->get_zone_name()] ) ) {
|
417 |
+
$data['shipping_zones_by_name'][$zone->get_zone_name()] = 1;
|
418 |
+
}
|
419 |
+
else {
|
420 |
+
$data['shipping_zones_by_name'][$zone->get_zone_name()]++;
|
421 |
+
}
|
422 |
+
foreach ( $zone->get_shipping_methods() as $shipping_method ) {
|
423 |
+
if ( empty( $data['shipping_methods_by_title'][$shipping_method->method_title] ) ) {
|
424 |
+
$data['shipping_methods_by_title'][$shipping_method->method_title] = 1;
|
425 |
+
}
|
426 |
+
else {
|
427 |
+
$data['shipping_methods_by_title'][$shipping_method->method_title]++;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
}
|
431 |
+
}
|
432 |
+
return $data;
|
433 |
+
}
|
434 |
+
|
435 |
|
436 |
public static function send_deactivation_data() {
|
437 |
|
525 |
}
|
526 |
else {
|
527 |
$params = array( 'click_action' => 'no' );
|
528 |
+
if ( self::$dismiss_coupon ) {
|
529 |
+
$params = array( 'click_action' => 'no_coupon' );
|
530 |
+
}
|
531 |
+
$params['url'] = home_url();
|
532 |
}
|
533 |
|
534 |
$params['localhost'] = 'no';
|
882 |
}
|
883 |
|
884 |
}
|
885 |
+
|
886 |
+
if ( !function_exists( 'wpdesk_tracker_enabled' ) ) {
|
887 |
+
function wpdesk_tracker_enabled() {
|
888 |
+
$tracker_enabled = true;
|
889 |
+
if ( !empty( $_SERVER['SERVER_ADDR'] ) && $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
|
890 |
+
$tracker_enabled = false;
|
891 |
+
}
|
892 |
+
return apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled );
|
893 |
+
// add_filter( 'wpdesk_tracker_enabled', '__return_true' );
|
894 |
+
// add_filter( 'wpdesk_tracker_do_not_ask', '__return_true' );
|
895 |
+
}
|
896 |
+
}
|
inc/wpdesk-tracker/lang/wpdesk-tracker-pl_PL.mo
CHANGED
Binary file
|
inc/wpdesk-tracker/lang/wpdesk-tracker-pl_PL.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Desk Tracker\n"
|
4 |
-
"POT-Creation-Date: 2017-
|
5 |
-
"PO-Revision-Date: 2017-
|
6 |
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
|
7 |
"Language-Team: \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 2.0.
|
13 |
"X-Poedit-Basepath: ../..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
15 |
"|| n%100>=20) ? 1 : 2);\n"
|
@@ -153,12 +153,11 @@ msgstr "Wyślij i dezaktywuj"
|
|
153 |
|
154 |
#: wpdesk-tracker/views/tracker-notice.php:6
|
155 |
msgid ""
|
156 |
-
"
|
157 |
-
"coupon</strong>
|
158 |
msgstr ""
|
159 |
-
"
|
160 |
-
"
|
161 |
-
"zbierane."
|
162 |
|
163 |
#: wpdesk-tracker/views/tracker-notice.php:10
|
164 |
#: wpdesk-tracker/views/tracker-notice.php:21
|
@@ -174,6 +173,14 @@ msgstr ""
|
|
174 |
"została przyjęta. Jeśli zmienisz zdanie, zawsze możesz włączyć zgodę poprzez "
|
175 |
"szybkie linki w menu wtyczek."
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
#~ msgid "Error"
|
178 |
#~ msgstr "Błąd"
|
179 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Desk Tracker\n"
|
4 |
+
"POT-Creation-Date: 2017-07-25 17:30+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-07-25 17:30+0200\n"
|
6 |
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
|
7 |
"Language-Team: \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 2.0.1\n"
|
13 |
"X-Poedit-Basepath: ../..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
15 |
"|| n%100>=20) ? 1 : 2);\n"
|
153 |
|
154 |
#: wpdesk-tracker/views/tracker-notice.php:6
|
155 |
msgid ""
|
156 |
+
"Please help us improve our plugins and get a <strong>20% discount "
|
157 |
+
"coupon</strong> for <strong>WP Desk</strong> plugins."
|
158 |
msgstr ""
|
159 |
+
"Pomóż nam ulepszyć nasze wtyczki i otrzymaj <strong>kupon rabatowy 20%</"
|
160 |
+
"strong> na kolejne zakupy w <strong>WP Desk</strong>."
|
|
|
161 |
|
162 |
#: wpdesk-tracker/views/tracker-notice.php:10
|
163 |
#: wpdesk-tracker/views/tracker-notice.php:21
|
173 |
"została przyjęta. Jeśli zmienisz zdanie, zawsze możesz włączyć zgodę poprzez "
|
174 |
"szybkie linki w menu wtyczek."
|
175 |
|
176 |
+
#~ msgid ""
|
177 |
+
#~ "Allow WP Desk to collect plugin usage information and <strong>get "
|
178 |
+
#~ "discount coupon</strong> in our shop. No sensitive data is tracked."
|
179 |
+
#~ msgstr ""
|
180 |
+
#~ "Pozwól WP Desk na zbieranie danych użytkowania wtyczek i <strong>otrzymaj "
|
181 |
+
#~ "kupon rabatowy</strong> do naszego sklepu. Żadne wrażliwe dane nie będą "
|
182 |
+
#~ "zbierane."
|
183 |
+
|
184 |
#~ msgid "Error"
|
185 |
#~ msgstr "Błąd"
|
186 |
|
inc/wpdesk-tracker/views/tracker-connect.php
CHANGED
@@ -66,19 +66,4 @@
|
|
66 |
jQuery(this).parent().addClass('open');
|
67 |
}
|
68 |
});
|
69 |
-
jQuery(document).on('click', '#wpdesk_tracker_allow_button',function(e){
|
70 |
-
e.preventDefault();
|
71 |
-
var href = jQuery(this).attr('href');
|
72 |
-
jQuery.ajax( '<?php echo admin_url('admin-ajax.php'); ?>',
|
73 |
-
{
|
74 |
-
type: 'POST',
|
75 |
-
data: {
|
76 |
-
action: 'wpdesk_tracker_notice_handler',
|
77 |
-
type: 'allow',
|
78 |
-
}
|
79 |
-
}
|
80 |
-
).always(function() {
|
81 |
-
window.location.href = href;
|
82 |
-
});
|
83 |
-
});
|
84 |
</script>
|
66 |
jQuery(this).parent().addClass('open');
|
67 |
}
|
68 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</script>
|
inc/wpdesk-tracker/views/tracker-notice.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
<div id="wpdesk_tracker_notice_coupon" class="updated notice wpdesk_tracker_notice is-dismissible">
|
4 |
<p>
|
5 |
<?php printf ( __( 'Hey %s,', 'wpdesk-tracker'), $username ); ?><br/>
|
6 |
-
<?php _e( '
|
7 |
-
<a href="<?php echo $terms_url;
|
8 |
</p>
|
9 |
<p>
|
10 |
<button id="wpdesk_tracker_allow_coupon_button_notice" class="button button-primary"><?php _e( 'Allow', 'wpdesk-tracker' ); ?></button>
|
3 |
<div id="wpdesk_tracker_notice_coupon" class="updated notice wpdesk_tracker_notice is-dismissible">
|
4 |
<p>
|
5 |
<?php printf ( __( 'Hey %s,', 'wpdesk-tracker'), $username ); ?><br/>
|
6 |
+
<?php _e( 'Please help us improve our plugins and get a <strong>20% discount coupon</strong> for <strong>WP Desk</strong> plugins.', 'wpdesk-tracker'); ?>
|
7 |
+
<a href="<?php echo $terms_url; ?>?utm_source=tracker&utm_medium=link&utm_campaign=tracker-coupon-message" target="_blank"><?php _e( 'Find out more »', 'wpdesk-tracker' ); ?></a>
|
8 |
</p>
|
9 |
<p>
|
10 |
<button id="wpdesk_tracker_allow_coupon_button_notice" class="button button-primary"><?php _e( 'Allow', 'wpdesk-tracker' ); ?></button>
|
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: 2017-
|
5 |
-
"PO-Revision-Date: 2017-
|
6 |
-
"Last-Translator:
|
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 2.0\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,7 +71,7 @@ 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 |
|
@@ -79,6 +79,14 @@ msgstr "Ustawienia"
|
|
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"
|
@@ -300,106 +308,259 @@ msgstr ""
|
|
300 |
"Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-fields-"
|
301 |
"docs/\" target=\"_blank\">instrukcję konfiguracji →"
|
302 |
|
303 |
-
#: flexible-checkout-fields.php:
|
304 |
msgid "Billing"
|
305 |
msgstr "Płatność"
|
306 |
|
307 |
-
#: flexible-checkout-fields.php:
|
308 |
msgid "Shipping"
|
309 |
msgstr "Wysyłka"
|
310 |
|
311 |
-
#: flexible-checkout-fields.php:
|
312 |
msgid "Order"
|
313 |
msgstr "Zamówienie"
|
314 |
|
315 |
-
#: flexible-checkout-fields.php:
|
316 |
msgid "Single Line Text"
|
317 |
msgstr "Pojedyncza linia (input)"
|
318 |
|
319 |
-
#: flexible-checkout-fields.php:
|
320 |
msgid "Paragraph Text"
|
321 |
msgstr "Obszar tekstowy (textarea)"
|
322 |
|
323 |
-
#: flexible-checkout-fields.php:
|
324 |
msgid "Checkbox"
|
325 |
msgstr "Wybór (checkbox)"
|
326 |
|
327 |
-
#: flexible-checkout-fields.php:
|
328 |
msgid "Radio button"
|
329 |
msgstr "Wybór (radio)"
|
330 |
|
331 |
-
#: flexible-checkout-fields.php:
|
332 |
msgid "Select (Drop Down)"
|
333 |
msgstr "Lista rozwijana (select)"
|
334 |
|
335 |
-
#: flexible-checkout-fields.php:
|
336 |
msgid "Date"
|
337 |
msgstr "Data"
|
338 |
|
339 |
-
#: flexible-checkout-fields.php:
|
340 |
msgid "Time"
|
341 |
msgstr "Czas"
|
342 |
|
343 |
-
#: flexible-checkout-fields.php:
|
344 |
msgid "Color Picker"
|
345 |
msgstr "Wybór koloru"
|
346 |
|
347 |
-
#: flexible-checkout-fields.php:
|
348 |
msgid "Headline"
|
349 |
msgstr "Nagłówek"
|
350 |
|
351 |
-
#: flexible-checkout-fields.php:
|
352 |
msgid "HTML"
|
353 |
msgstr "HTML"
|
354 |
|
355 |
-
#: flexible-checkout-fields.php:
|
356 |
msgid "File Upload"
|
357 |
msgstr "Przesyłanie pliku"
|
358 |
|
359 |
-
#: flexible-checkout-fields.php:
|
360 |
msgid "Uploading file..."
|
361 |
msgstr "Przesyłanie plik..."
|
362 |
|
363 |
-
#: flexible-checkout-fields.php:
|
364 |
msgid "Close"
|
365 |
msgstr "Zamknij"
|
366 |
|
367 |
-
#: flexible-checkout-fields.php:
|
368 |
msgid "Today"
|
369 |
msgstr "Dzisiaj"
|
370 |
|
371 |
-
#: flexible-checkout-fields.php:
|
372 |
msgid "Next"
|
373 |
msgstr "Następny"
|
374 |
|
375 |
-
#: flexible-checkout-fields.php:
|
376 |
msgid "Previous"
|
377 |
msgstr "Poprzedni"
|
378 |
|
379 |
-
#: flexible-checkout-fields.php:
|
380 |
msgid "Additional Information"
|
381 |
msgstr "Dodatkowe informacje"
|
382 |
|
383 |
-
#: flexible-checkout-fields.php:
|
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:
|
388 |
msgid "Docs"
|
389 |
msgstr "Docs"
|
390 |
|
391 |
-
#: flexible-checkout-fields.php:
|
392 |
msgid "Support"
|
393 |
msgstr "Wsparcie"
|
394 |
|
395 |
-
#: flexible-checkout-fields.php:
|
396 |
msgid "Upgrade"
|
397 |
msgstr "Kup PRO"
|
398 |
|
399 |
-
#: flexible-checkout-fields.php:
|
400 |
msgid "Advanced"
|
401 |
msgstr "Zaawansowane"
|
402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
#: views/settings-field-advanced.php:6
|
404 |
#, php-format
|
405 |
msgid ""
|
@@ -429,6 +590,14 @@ msgstr "WP Desk"
|
|
429 |
msgid "https://www.wpdesk.net/"
|
430 |
msgstr "https://www.wpdesk.pl/"
|
431 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
#~ msgid ""
|
433 |
#~ "Check %sFlexible Checkout Fields PRO%s → to add conditional logic for "
|
434 |
#~ "field."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce Flexible Checkout Fields\n"
|
4 |
+
"POT-Creation-Date: 2017-07-27 13:50+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-07-27 13:50+0200\n"
|
6 |
+
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\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 2.0.3\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:901
|
75 |
msgid "Settings"
|
76 |
msgstr "Ustawienia"
|
77 |
|
79 |
msgid "Custom Sections"
|
80 |
msgstr "Dodatkowe sekcje"
|
81 |
|
82 |
+
#: class/tracker.php:140
|
83 |
+
msgid "Opt-in"
|
84 |
+
msgstr "Opt-in"
|
85 |
+
|
86 |
+
#: class/tracker.php:144
|
87 |
+
msgid "Opt-out"
|
88 |
+
msgstr "Opt-out"
|
89 |
+
|
90 |
#: class/views/settings-ads.php:4
|
91 |
msgid "Get more WP Desk Plugins!"
|
92 |
msgstr "Wtyczki WP Desk"
|
308 |
"Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-fields-"
|
309 |
"docs/\" target=\"_blank\">instrukcję konfiguracji →"
|
310 |
|
311 |
+
#: flexible-checkout-fields.php:165
|
312 |
msgid "Billing"
|
313 |
msgstr "Płatność"
|
314 |
|
315 |
+
#: flexible-checkout-fields.php:171
|
316 |
msgid "Shipping"
|
317 |
msgstr "Wysyłka"
|
318 |
|
319 |
+
#: flexible-checkout-fields.php:177
|
320 |
msgid "Order"
|
321 |
msgstr "Zamówienie"
|
322 |
|
323 |
+
#: flexible-checkout-fields.php:193
|
324 |
msgid "Single Line Text"
|
325 |
msgstr "Pojedyncza linia (input)"
|
326 |
|
327 |
+
#: flexible-checkout-fields.php:197
|
328 |
msgid "Paragraph Text"
|
329 |
msgstr "Obszar tekstowy (textarea)"
|
330 |
|
331 |
+
#: flexible-checkout-fields.php:205
|
332 |
msgid "Checkbox"
|
333 |
msgstr "Wybór (checkbox)"
|
334 |
|
335 |
+
#: flexible-checkout-fields.php:210
|
336 |
msgid "Radio button"
|
337 |
msgstr "Wybór (radio)"
|
338 |
|
339 |
+
#: flexible-checkout-fields.php:215
|
340 |
msgid "Select (Drop Down)"
|
341 |
msgstr "Lista rozwijana (select)"
|
342 |
|
343 |
+
#: flexible-checkout-fields.php:220
|
344 |
msgid "Date"
|
345 |
msgstr "Data"
|
346 |
|
347 |
+
#: flexible-checkout-fields.php:225
|
348 |
msgid "Time"
|
349 |
msgstr "Czas"
|
350 |
|
351 |
+
#: flexible-checkout-fields.php:230
|
352 |
msgid "Color Picker"
|
353 |
msgstr "Wybór koloru"
|
354 |
|
355 |
+
#: flexible-checkout-fields.php:235
|
356 |
msgid "Headline"
|
357 |
msgstr "Nagłówek"
|
358 |
|
359 |
+
#: flexible-checkout-fields.php:240
|
360 |
msgid "HTML"
|
361 |
msgstr "HTML"
|
362 |
|
363 |
+
#: flexible-checkout-fields.php:245
|
364 |
msgid "File Upload"
|
365 |
msgstr "Przesyłanie pliku"
|
366 |
|
367 |
+
#: flexible-checkout-fields.php:333
|
368 |
msgid "Uploading file..."
|
369 |
msgstr "Przesyłanie plik..."
|
370 |
|
371 |
+
#: flexible-checkout-fields.php:364
|
372 |
msgid "Close"
|
373 |
msgstr "Zamknij"
|
374 |
|
375 |
+
#: flexible-checkout-fields.php:365
|
376 |
msgid "Today"
|
377 |
msgstr "Dzisiaj"
|
378 |
|
379 |
+
#: flexible-checkout-fields.php:368
|
380 |
msgid "Next"
|
381 |
msgstr "Następny"
|
382 |
|
383 |
+
#: flexible-checkout-fields.php:369
|
384 |
msgid "Previous"
|
385 |
msgstr "Poprzedni"
|
386 |
|
387 |
+
#: flexible-checkout-fields.php:708 flexible-checkout-fields.php:866
|
388 |
msgid "Additional Information"
|
389 |
msgstr "Dodatkowe informacje"
|
390 |
|
391 |
+
#: flexible-checkout-fields.php:902
|
392 |
msgid "https://www.wpdesk.net/docs/flexible-checkout-fields-docs/"
|
393 |
msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
|
394 |
|
395 |
+
#: flexible-checkout-fields.php:902
|
396 |
msgid "Docs"
|
397 |
msgstr "Docs"
|
398 |
|
399 |
+
#: flexible-checkout-fields.php:903
|
400 |
msgid "Support"
|
401 |
msgstr "Wsparcie"
|
402 |
|
403 |
+
#: flexible-checkout-fields.php:910
|
404 |
msgid "Upgrade"
|
405 |
msgstr "Kup PRO"
|
406 |
|
407 |
+
#: flexible-checkout-fields.php:929
|
408 |
msgid "Advanced"
|
409 |
msgstr "Zaawansowane"
|
410 |
|
411 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:7
|
412 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:5
|
413 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:16
|
414 |
+
#, php-format
|
415 |
+
msgid "Hey %s,"
|
416 |
+
msgstr "Hej %s,"
|
417 |
+
|
418 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:8
|
419 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:17
|
420 |
+
msgid ""
|
421 |
+
"Please help us improve our plugins! If you opt-in, we will collect some non-"
|
422 |
+
"sensitive data and usage information. If you skip this, that's okay! All "
|
423 |
+
"plugins will work just fine."
|
424 |
+
msgstr ""
|
425 |
+
"Proszę pomóż nam udoskonalić nasze wtyczki! Jeśli się zgodzisz, będziemy "
|
426 |
+
"zbierać niewrażliwe dane użytkowania. Jeśli pominiesz ten krok, w porządku! "
|
427 |
+
"Wszystkie wtyczki będą działać."
|
428 |
+
|
429 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:13
|
430 |
+
msgid "Allow & Continue →"
|
431 |
+
msgstr "Pozwól i kontunuuj →"
|
432 |
+
|
433 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:14
|
434 |
+
msgid "Skip"
|
435 |
+
msgstr "Pomiń"
|
436 |
+
|
437 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:19
|
438 |
+
msgid "What permissions are being granted?"
|
439 |
+
msgstr "Jakie uprawnienia są przyznawane?"
|
440 |
+
|
441 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:26
|
442 |
+
msgid "Your Site Overview"
|
443 |
+
msgstr "Dane witryny"
|
444 |
+
|
445 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:27
|
446 |
+
msgid "Site URL, WP version, PHP info, admin email"
|
447 |
+
msgstr "URL strony, wersja WP, wersja PHP, email admina"
|
448 |
+
|
449 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:33
|
450 |
+
msgid "Plugin Usage"
|
451 |
+
msgstr "Dane użytkowania wtyczek"
|
452 |
+
|
453 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:34
|
454 |
+
msgid "Current settings and usage information of WP Desk plugins"
|
455 |
+
msgstr "Ustawienia i informacje o użytkowaniu wtyczek WP Desk"
|
456 |
+
|
457 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:40
|
458 |
+
msgid "Your Store Overview"
|
459 |
+
msgstr "Dane sklepu"
|
460 |
+
|
461 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:41
|
462 |
+
msgid "Non-sensitive store usage information"
|
463 |
+
msgstr "Tylko niewrażliwe dane o użytkowaniu sklepu"
|
464 |
+
|
465 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:47
|
466 |
+
msgid "Admin Updates"
|
467 |
+
msgstr "Powiadomienia"
|
468 |
+
|
469 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:48
|
470 |
+
msgid "Announcements, updates, marketing, no spam and easy opt-out"
|
471 |
+
msgstr ""
|
472 |
+
"Ważne powiadomienia, uaktualnienia, marketing, żadnego spamu i łatwa "
|
473 |
+
"rezygnacja"
|
474 |
+
|
475 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:54
|
476 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:7
|
477 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:18
|
478 |
+
msgid "Find out more »"
|
479 |
+
msgstr "Dowiedz się więcej »"
|
480 |
+
|
481 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:3
|
482 |
+
#, php-format
|
483 |
+
msgid "You are deactivating %s plugin."
|
484 |
+
msgstr "Dezaktywowałeś wtyczkę %s."
|
485 |
+
|
486 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:9
|
487 |
+
msgid ""
|
488 |
+
" If you have a moment, please let us know why you are deactivating plugin "
|
489 |
+
"(anonymous feedback):"
|
490 |
+
msgstr ""
|
491 |
+
"Jeśli masz chwilę, prosimy daj nam znać dlaczego dezaktywowałeś wtyczkę "
|
492 |
+
"(anonimowa opinia):"
|
493 |
+
|
494 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:16
|
495 |
+
msgid "The plugin suddenly stopped working"
|
496 |
+
msgstr "Wtyczka nagle przestała działać"
|
497 |
+
|
498 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:24
|
499 |
+
msgid "The plugin broke my site"
|
500 |
+
msgstr "Wtyczka zepsuła moją stronę"
|
501 |
+
|
502 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:32
|
503 |
+
msgid "I found a better plugin"
|
504 |
+
msgstr "Znalazłem lepszą wtyczkę"
|
505 |
+
|
506 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:35
|
507 |
+
msgid "What's the plugin's name?"
|
508 |
+
msgstr "Jaka jest nazwa wtyczki?"
|
509 |
+
|
510 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:43
|
511 |
+
msgid "I only needed the plugin for a short period"
|
512 |
+
msgstr "Potrzebowałem wtyczki tylko przez krótki okres"
|
513 |
+
|
514 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:51
|
515 |
+
msgid "I no longer need the plugin"
|
516 |
+
msgstr "Nie potrzebuję już wtyczki"
|
517 |
+
|
518 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:59
|
519 |
+
msgid "It's a temporary deactivation. I'm just debugging an issue."
|
520 |
+
msgstr "Jest to tymczasowa dezaktywacja, debaguję problem"
|
521 |
+
|
522 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:67
|
523 |
+
msgid "Other"
|
524 |
+
msgstr "Inny"
|
525 |
+
|
526 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:70
|
527 |
+
msgid "Kindly tell us the reason so we can improve"
|
528 |
+
msgstr "Napisz nam powód abyśmy mogli go poprawić"
|
529 |
+
|
530 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:77
|
531 |
+
msgid "Skip & Deactivate"
|
532 |
+
msgstr "Pomiń i dezaktywuj"
|
533 |
+
|
534 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:78
|
535 |
+
msgid "Cancel"
|
536 |
+
msgstr "Anuluj"
|
537 |
+
|
538 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:92
|
539 |
+
msgid "Submit & Deactivate"
|
540 |
+
msgstr "Wyślij i dezaktywuj"
|
541 |
+
|
542 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:6
|
543 |
+
msgid ""
|
544 |
+
"Please help us improve our plugins and get a <strong>20% discount "
|
545 |
+
"coupon</strong> for <strong>WP Desk</strong> plugins."
|
546 |
+
msgstr ""
|
547 |
+
"Pomóż nam ulepszyć nasze wtyczki i otrzymaj <strong>kupon rabatowy 20%</"
|
548 |
+
"strong> na kolejne zakupy w <strong>WP Desk</strong>."
|
549 |
+
|
550 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:10
|
551 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:21
|
552 |
+
msgid "Allow"
|
553 |
+
msgstr "Pozwól"
|
554 |
+
|
555 |
+
#: inc/wpdesk-tracker/views/tracker-opt-out-notice.php:3
|
556 |
+
msgid ""
|
557 |
+
"You successfully opted out of collecting usage data by WP Desk. If you "
|
558 |
+
"change your mind, you can always opt in later in the plugin's quick links."
|
559 |
+
msgstr ""
|
560 |
+
"Twoja rezygnacja ze zbierania danych użytkowania wtyczek przez WP Desk "
|
561 |
+
"została przyjęta. Jeśli zmienisz zdanie, zawsze możesz włączyć zgodę poprzez "
|
562 |
+
"szybkie linki w menu wtyczek."
|
563 |
+
|
564 |
#: views/settings-field-advanced.php:6
|
565 |
#, php-format
|
566 |
msgid ""
|
590 |
msgid "https://www.wpdesk.net/"
|
591 |
msgstr "https://www.wpdesk.pl/"
|
592 |
|
593 |
+
#~ msgid ""
|
594 |
+
#~ "Allow WP Desk to collect plugin usage information and <strong>get "
|
595 |
+
#~ "discount coupon</strong> in our shop. No sensitive data is tracked."
|
596 |
+
#~ msgstr ""
|
597 |
+
#~ "Pozwól WP Desk na zbieranie danych użytkowania wtyczek i <strong>otrzymaj "
|
598 |
+
#~ "kupon rabatowy</strong> do naszego sklepu. Żadne wrażliwe dane nie będą "
|
599 |
+
#~ "zbierane."
|
600 |
+
|
601 |
#~ msgid ""
|
602 |
#~ "Check %sFlexible Checkout Fields PRO%s → to add conditional logic for "
|
603 |
#~ "field."
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk, swoboda, jablonowski, barczakszymon, ospiotr
|
|
3 |
Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
4 |
Tags: woocommerce checkout fields, woocommerce custom 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.5
|
6 |
-
Tested up to: 4.8
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -100,18 +100,14 @@ Enable conditional logic (show or hide) for fields based on products and/or cate
|
|
100 |
|
101 |
= WooCommerce Compatibility =
|
102 |
|
103 |
-
**WooCommerce 3.
|
104 |
|
105 |
-
Flexible Checkout Fields also plays well with older versions of WooCommerce. We tested the plugin with WooCommerce 2.5.5 and
|
106 |
|
107 |
= Well Documented =
|
108 |
|
109 |
We are proud of our docs. We spend a great deal of time to polish them and make them as complete as possible. [Read Flexible Checkout Fields Docs →](https://www.wpdesk.net/docs/woocommerce-checkout-fields-docs/)
|
110 |
|
111 |
-
= Heavily Tested in Production Shops =
|
112 |
-
|
113 |
-
We uploaded Flexible Checkout Fields to the WordPress Plugin Directory in September 2016 however the plugin is heavily used by hundreds of our customers since November 2014.
|
114 |
-
|
115 |
= Support Policy =
|
116 |
|
117 |
We provide a limited support for the free version in the [plugin Support Forum](https://wordpress.org/support/plugin/flexible-checkout-fields/). Please purchase a PRO version to get priority e-mail support as well as all e-commerce features. [Upgrade Now →](https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/?utm_source=wporg&utm_medium=link&utm_campaign=wporg-fcf)
|
@@ -169,6 +165,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
172 |
= 1.5.1 - 2017-05-30 =
|
173 |
* Fixed fields sorting bug
|
174 |
* Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)
|
3 |
Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
4 |
Tags: woocommerce checkout fields, woocommerce custom 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.5
|
6 |
+
Tested up to: 4.8.1
|
7 |
+
Stable tag: 1.5.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
100 |
|
101 |
= WooCommerce Compatibility =
|
102 |
|
103 |
+
**WooCommerce 3.1 ready!**
|
104 |
|
105 |
+
Flexible Checkout Fields also plays well with older versions of WooCommerce. We tested the plugin with WooCommerce 2.5.5 and up.
|
106 |
|
107 |
= Well Documented =
|
108 |
|
109 |
We are proud of our docs. We spend a great deal of time to polish them and make them as complete as possible. [Read Flexible Checkout Fields Docs →](https://www.wpdesk.net/docs/woocommerce-checkout-fields-docs/)
|
110 |
|
|
|
|
|
|
|
|
|
111 |
= Support Policy =
|
112 |
|
113 |
We provide a limited support for the free version in the [plugin Support Forum](https://wordpress.org/support/plugin/flexible-checkout-fields/). Please purchase a PRO version to get priority e-mail support as well as all e-commerce features. [Upgrade Now →](https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/?utm_source=wporg&utm_medium=link&utm_campaign=wporg-fcf)
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 1.5.2 - 2017-07-27 =
|
169 |
+
* Fixed issue with the fields order in the checkout
|
170 |
+
* Tweaked message in WP Desk Tracker class
|
171 |
+
|
172 |
= 1.5.1 - 2017-05-30 =
|
173 |
* Fixed fields sorting bug
|
174 |
* Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)
|