Version Description
- 2017-06-13 =
- Added compatibility with WooCommerce DPD 1.0
- Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Shipping for WooCommerce |
Version | 1.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.3
- classes/bulk-actions.php +2 -2
- classes/inspire/plugin4.php +0 -1
- classes/manifest/cpt-shipping-manifest.php +1 -2
- classes/order-add-shipping.php +1 -1
- classes/settings-shipping-method-form.php +6 -1
- classes/shipment/cpt-shipment.php +13 -0
- classes/shipment/functions.php +2 -2
- classes/shipping_method.php +2 -1
- classes/tracker.php +14 -1
- flexible-shipping.php +16 -21
- inc/wpdesk-tracker/class-wpdesk-tracker.php +60 -11
- inc/wpdesk-tracker/views/tracker-connect.php +0 -15
- languages/flexible-shipping-pl_PL.mo +0 -0
- languages/flexible-shipping-pl_PL.po +222 -73
- readme.txt +8 -3
classes/bulk-actions.php
CHANGED
@@ -283,7 +283,7 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
283 |
$shipment->api_create();
|
284 |
$messages[$post_id][$shipment->get_id()] = array(
|
285 |
'status' => 'created',
|
286 |
-
'message' => __( 'Shipment created.', '
|
287 |
);
|
288 |
}
|
289 |
catch ( Exception $e ) {
|
@@ -315,7 +315,7 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
315 |
$label = $shipment->get_label();
|
316 |
$labels[] = array(
|
317 |
'status' => 'created',
|
318 |
-
'message' => __('Label downloaded.', '
|
319 |
'content' => $label['content'],
|
320 |
'file_name' => $label['file_name']
|
321 |
);
|
283 |
$shipment->api_create();
|
284 |
$messages[$post_id][$shipment->get_id()] = array(
|
285 |
'status' => 'created',
|
286 |
+
'message' => __( 'Shipment created.', 'flexible-shipping' )
|
287 |
);
|
288 |
}
|
289 |
catch ( Exception $e ) {
|
315 |
$label = $shipment->get_label();
|
316 |
$labels[] = array(
|
317 |
'status' => 'created',
|
318 |
+
'message' => __('Label downloaded.', 'flexible-shipping'),
|
319 |
'content' => $label['content'],
|
320 |
'file_name' => $label['file_name']
|
321 |
);
|
classes/inspire/plugin4.php
CHANGED
@@ -73,7 +73,6 @@
|
|
73 |
|
74 |
add_action( 'plugins_loaded', array($this, 'loadPluginTextDomain') );
|
75 |
add_filter( 'plugin_action_links_' . plugin_basename( $this->getPluginFilePath() ), array( $this, 'linksFilter' ) );
|
76 |
-
|
77 |
/*$this->_initPluginUpdates();
|
78 |
echo '<pre style="margin-left: 170px;">';
|
79 |
var_dump($this->_pluginPath);
|
73 |
|
74 |
add_action( 'plugins_loaded', array($this, 'loadPluginTextDomain') );
|
75 |
add_filter( 'plugin_action_links_' . plugin_basename( $this->getPluginFilePath() ), array( $this, 'linksFilter' ) );
|
|
|
76 |
/*$this->_initPluginUpdates();
|
77 |
echo '<pre style="margin-left: 170px;">';
|
78 |
var_dump($this->_pluginPath);
|
classes/manifest/cpt-shipping-manifest.php
CHANGED
@@ -251,9 +251,8 @@ class WPDesk_Flexible_Shipping_Shipping_Manifest_CPT {
|
|
251 |
}
|
252 |
catch ( Exception $e ) {
|
253 |
echo $e->getMessage();
|
254 |
-
exit();
|
255 |
}
|
256 |
-
|
257 |
}
|
258 |
}
|
259 |
|
251 |
}
|
252 |
catch ( Exception $e ) {
|
253 |
echo $e->getMessage();
|
|
|
254 |
}
|
255 |
+
exit();
|
256 |
}
|
257 |
}
|
258 |
|
classes/order-add-shipping.php
CHANGED
@@ -58,7 +58,7 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Add_Shipping' ) ) {
|
|
58 |
$created_via = get_post_meta( $order->id, '_created_via', true );
|
59 |
}
|
60 |
else {
|
61 |
-
$created_via = $order->
|
62 |
}
|
63 |
if ( $created_via != 'checkout' ) {
|
64 |
$add_metabox = true;
|
58 |
$created_via = get_post_meta( $order->id, '_created_via', true );
|
59 |
}
|
60 |
else {
|
61 |
+
$created_via = $order->get_created_via();
|
62 |
}
|
63 |
if ( $created_via != 'checkout' ) {
|
64 |
$add_metabox = true;
|
classes/settings-shipping-method-form.php
CHANGED
@@ -25,6 +25,11 @@ if ( empty( $shipping_method['method_integration'] ) ) {
|
|
25 |
$shipping_method['method_integration'] = '';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
28 |
$settings = array(
|
29 |
'method_enabled' => array(
|
30 |
'title' => __( 'Enable/Disable', 'flexible-shipping' ),
|
@@ -57,7 +62,7 @@ $settings = array(
|
|
57 |
'method_free_shipping' => array(
|
58 |
'title' => __( 'Free Shipping', 'flexible-shipping' ),
|
59 |
'type' => 'price',
|
60 |
-
'default' =>
|
61 |
'description' => __( 'Enter a minimum order amount for free shipment. This will override the costs configured below.', 'flexible-shipping' ),
|
62 |
'desc_tip' => true
|
63 |
),
|
25 |
$shipping_method['method_integration'] = '';
|
26 |
}
|
27 |
|
28 |
+
$method_free_shipping = '';
|
29 |
+
if ( isset( $shipping_method['method_free_shipping'] ) && $shipping_method['method_free_shipping'] != '' ) {
|
30 |
+
$method_free_shipping = floatval( $shipping_method['method_free_shipping'] );
|
31 |
+
}
|
32 |
+
|
33 |
$settings = array(
|
34 |
'method_enabled' => array(
|
35 |
'title' => __( 'Enable/Disable', 'flexible-shipping' ),
|
62 |
'method_free_shipping' => array(
|
63 |
'title' => __( 'Free Shipping', 'flexible-shipping' ),
|
64 |
'type' => 'price',
|
65 |
+
'default' => $method_free_shipping,
|
66 |
'description' => __( 'Enter a minimum order amount for free shipment. This will override the costs configured below.', 'flexible-shipping' ),
|
67 |
'desc_tip' => true
|
68 |
),
|
classes/shipment/cpt-shipment.php
CHANGED
@@ -193,9 +193,22 @@ class WPDesk_Flexible_Shipping_Shipment_CPT {
|
|
193 |
$order_shipping_methods = $order->get_shipping_methods();
|
194 |
$packages = WC()->shipping->get_packages();
|
195 |
$package_id = -1;
|
|
|
196 |
foreach ( $order_shipping_methods as $shipping_id => $shipping_method ) {
|
197 |
$package_id++;
|
|
|
198 |
$fs_method = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
if ( version_compare( WC_VERSION, '2.7', '<' ) ) {
|
200 |
if (isset($shipping_method['item_meta'])
|
201 |
&& isset($shipping_method['item_meta']['_fs_method'])
|
193 |
$order_shipping_methods = $order->get_shipping_methods();
|
194 |
$packages = WC()->shipping->get_packages();
|
195 |
$package_id = -1;
|
196 |
+
global $fs_package_id;
|
197 |
foreach ( $order_shipping_methods as $shipping_id => $shipping_method ) {
|
198 |
$package_id++;
|
199 |
+
$fs_package_id = $package_id;
|
200 |
$fs_method = array();
|
201 |
+
if ( version_compare( WC_VERSION, '2.6', '<' ) ) {
|
202 |
+
if (isset($shipping_method['item_meta'])
|
203 |
+
&& isset($shipping_method['item_meta']['method_id'])
|
204 |
+
&& isset($shipping_method['item_meta']['method_id'][0])
|
205 |
+
) {
|
206 |
+
$all_shipping_methods = flexible_shipping_get_all_shipping_methods();
|
207 |
+
$flexible_shipping = $all_shipping_methods['flexible_shipping'];
|
208 |
+
$flexible_shipping_rates = $flexible_shipping->get_all_rates();
|
209 |
+
$fs_method = $flexible_shipping_rates[$shipping_method['item_meta']['method_id'][0]];
|
210 |
+
}
|
211 |
+
}
|
212 |
if ( version_compare( WC_VERSION, '2.7', '<' ) ) {
|
213 |
if (isset($shipping_method['item_meta'])
|
214 |
&& isset($shipping_method['item_meta']['_fs_method'])
|
classes/shipment/functions.php
CHANGED
@@ -91,7 +91,7 @@ function fs_calculate_order_weight( WC_Order $order ) {
|
|
91 |
}
|
92 |
$product_weight = $product->get_weight();
|
93 |
if ( ! $product->is_virtual() && is_numeric( $product_weight ) ) {
|
94 |
-
$weight += $product->get_weight() * $item['qty'];
|
95 |
}
|
96 |
}
|
97 |
}
|
@@ -102,7 +102,7 @@ function fs_calculate_order_weight( WC_Order $order ) {
|
|
102 |
function fs_calculate_package_weight( $package ) {
|
103 |
$weight = 0;
|
104 |
foreach( $package['contents'] as $item ) {
|
105 |
-
$weight += $item['data']->get_weight() * $item['quantity'];
|
106 |
}
|
107 |
return $weight;
|
108 |
}
|
91 |
}
|
92 |
$product_weight = $product->get_weight();
|
93 |
if ( ! $product->is_virtual() && is_numeric( $product_weight ) ) {
|
94 |
+
$weight += floatval( $product->get_weight() ) * floatval( $item['qty'] );
|
95 |
}
|
96 |
}
|
97 |
}
|
102 |
function fs_calculate_package_weight( $package ) {
|
103 |
$weight = 0;
|
104 |
foreach( $package['contents'] as $item ) {
|
105 |
+
$weight += floatval( $item['data']->get_weight() ) * floatval( $item['quantity'] );
|
106 |
}
|
107 |
return $weight;
|
108 |
}
|
classes/shipping_method.php
CHANGED
@@ -247,7 +247,8 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping' ) ) {
|
|
247 |
$shipping_method['id_for_shipping'] = $method_id_for_shipping;
|
248 |
$shipping_method['method_title'] = $_POST['woocommerce_' . $this->id . '_method_title'];
|
249 |
$shipping_method['method_description'] = $_POST['woocommerce_' . $this->id . '_method_description'];
|
250 |
-
|
|
|
251 |
$shipping_method['method_free_shipping'] = floatval( $_POST['woocommerce_' . $this->id . '_method_free_shipping'] );
|
252 |
}
|
253 |
if ( version_compare( WC()->version, '2.6' ) >= 0 ) {
|
247 |
$shipping_method['id_for_shipping'] = $method_id_for_shipping;
|
248 |
$shipping_method['method_title'] = $_POST['woocommerce_' . $this->id . '_method_title'];
|
249 |
$shipping_method['method_description'] = $_POST['woocommerce_' . $this->id . '_method_description'];
|
250 |
+
$shipping_method['method_free_shipping'] = '';
|
251 |
+
if ( isset( $_POST['woocommerce_' . $this->id . '_method_free_shipping'] ) && $_POST['woocommerce_' . $this->id . '_method_free_shipping'] != '' ) {
|
252 |
$shipping_method['method_free_shipping'] = floatval( $_POST['woocommerce_' . $this->id . '_method_free_shipping'] );
|
253 |
}
|
254 |
if ( version_compare( WC()->version, '2.6' ) >= 0 ) {
|
classes/tracker.php
CHANGED
@@ -186,7 +186,7 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Tracker' ) ) {
|
|
186 |
|
187 |
|
188 |
public function activated_plugin( $plugin, $network_wide ) {
|
189 |
-
if (
|
190 |
return;
|
191 |
}
|
192 |
if ( $plugin == 'flexible-shipping/flexible-shipping.php' ) {
|
@@ -225,3 +225,16 @@ if ( !function_exists( 'wpdesk_activated_plugin_activation_date' ) ) {
|
|
225 |
}
|
226 |
add_action( 'activated_plugin', 'wpdesk_activated_plugin_activation_date', 10, 2 );
|
227 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
|
188 |
public function activated_plugin( $plugin, $network_wide ) {
|
189 |
+
if ( wpdesk_tracker_enabled() && apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
190 |
return;
|
191 |
}
|
192 |
if ( $plugin == 'flexible-shipping/flexible-shipping.php' ) {
|
225 |
}
|
226 |
add_action( 'activated_plugin', 'wpdesk_activated_plugin_activation_date', 10, 2 );
|
227 |
}
|
228 |
+
|
229 |
+
if ( !function_exists( 'wpdesk_tracker_enabled' ) ) {
|
230 |
+
function wpdesk_tracker_enabled() {
|
231 |
+
$tracker_enabled = true;
|
232 |
+
if ( !empty( $_SERVER['SERVER_ADDR'] ) && $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
|
233 |
+
$tracker_enabled = false;
|
234 |
+
}
|
235 |
+
return apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled );
|
236 |
+
// add_filter( 'wpdesk_tracker_enabled', '__return_true' );
|
237 |
+
// add_filter( 'wpdesk_tracker_do_not_ask', '__return_true' );
|
238 |
+
}
|
239 |
+
}
|
240 |
+
|
flexible-shipping.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Flexible Shipping
|
4 |
Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
-
Version: 1.9.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
10 |
Domain Path: /languages/
|
11 |
-
Tested up to: 4.
|
12 |
|
13 |
Copyright 2017 WP Desk Ltd.
|
14 |
|
@@ -35,6 +35,8 @@ if (!class_exists('inspire_Plugin4')) {
|
|
35 |
require_once('classes/inspire/plugin4.php');
|
36 |
}
|
37 |
|
|
|
|
|
38 |
if ( !function_exists( 'wpdesk_is_plugin_active' ) ) {
|
39 |
function wpdesk_is_plugin_active( $plugin_file ) {
|
40 |
|
@@ -48,24 +50,11 @@ if ( !function_exists( 'wpdesk_is_plugin_active' ) ) {
|
|
48 |
}
|
49 |
}
|
50 |
|
51 |
-
if ( !
|
52 |
-
function wpdesk_tracker_enabled() {
|
53 |
-
$tracker_enabled = true;
|
54 |
-
if ( !empty( $_SERVER['SERVER_ADDR'] ) && $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
|
55 |
-
$tracker_enabled = false;
|
56 |
-
}
|
57 |
-
return apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled );
|
58 |
-
// add_filter( 'wpdesk_tracker_enabled', '__return_true' );
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
//require_once('classes/tracker.php');
|
63 |
-
|
64 |
-
if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
65 |
|
66 |
class WPDesk_Flexible_Shipping_Free_Plugin extends inspire_Plugin4 {
|
67 |
|
68 |
-
private $scripts_version = '
|
69 |
|
70 |
protected $_pluginNamespace = "flexible-shipping";
|
71 |
|
@@ -101,6 +90,9 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
|
101 |
new WPDesk_Flexible_Shipping_Add_Shipping();
|
102 |
|
103 |
require_once('classes/shipping_method.php');
|
|
|
|
|
|
|
104 |
add_action( 'admin_enqueue_scripts', array($this, 'enqueue_admin_scripts'), 75 );
|
105 |
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
106 |
|
@@ -146,6 +138,12 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
|
146 |
|
147 |
}
|
148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
public function woocommerce_checkout_create_order( WC_Order $order ) {
|
150 |
$order_shipping_methods = $order->get_shipping_methods();
|
151 |
foreach ( $order_shipping_methods as $shipping_id => $shipping_method ) {
|
@@ -499,13 +497,11 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
|
499 |
'<a href="' . $docs_link . '">' . __( 'Docs', 'flexible-shipping' ) . '</a>',
|
500 |
'<a href="' . $support_link . '">' . __( 'Support', 'flexible-shipping' ) . '</a>',
|
501 |
);
|
502 |
-
|
503 |
$pro_link = get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/sklep/flexible-shipping-pro-woocommerce/' : 'https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/';
|
504 |
$utm = '?utm_source=wp-admin-plugins&utm_medium=link&utm_campaign=flexible-shipping-plugins-upgrade-link';
|
505 |
|
506 |
if ( ! wpdesk_is_plugin_active( 'flexible-shipping-pro/flexible-shipping-pro.php' ) )
|
507 |
$plugin_links[] = '<a href="' . $pro_link . $utm . '" target="_blank" style="color:#d64e07;font-weight:bold;">' . __( 'Upgrade', 'flexible-shipping' ) . '</a>';
|
508 |
-
|
509 |
return array_merge( $plugin_links, $links );
|
510 |
}
|
511 |
|
@@ -655,7 +651,7 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
|
655 |
|
656 |
$_GLOBALS['woocommerce_flexible_shipping'] = new WPDesk_Flexible_Shipping_Free_Plugin();
|
657 |
|
658 |
-
|
659 |
function flexible_shipping_plugins_loaded() {
|
660 |
if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
661 |
include( 'inc/wpdesk-tracker/class-wpdesk-tracker.php' );
|
@@ -664,4 +660,3 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
|
664 |
}
|
665 |
|
666 |
}
|
667 |
-
|
3 |
Plugin Name: Flexible Shipping
|
4 |
Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
+
Version: 1.9.3
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
10 |
Domain Path: /languages/
|
11 |
+
Tested up to: 4.8
|
12 |
|
13 |
Copyright 2017 WP Desk Ltd.
|
14 |
|
35 |
require_once('classes/inspire/plugin4.php');
|
36 |
}
|
37 |
|
38 |
+
require_once('classes/tracker.php');
|
39 |
+
|
40 |
if ( !function_exists( 'wpdesk_is_plugin_active' ) ) {
|
41 |
function wpdesk_is_plugin_active( $plugin_file ) {
|
42 |
|
50 |
}
|
51 |
}
|
52 |
|
53 |
+
if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) && !class_exists( 'WPDesk_Flexible_Shipping_Free_Plugin' ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
class WPDesk_Flexible_Shipping_Free_Plugin extends inspire_Plugin4 {
|
56 |
|
57 |
+
private $scripts_version = '31';
|
58 |
|
59 |
protected $_pluginNamespace = "flexible-shipping";
|
60 |
|
90 |
new WPDesk_Flexible_Shipping_Add_Shipping();
|
91 |
|
92 |
require_once('classes/shipping_method.php');
|
93 |
+
|
94 |
+
add_action( 'admin_init', array( $this, 'session_init') );
|
95 |
+
|
96 |
add_action( 'admin_enqueue_scripts', array($this, 'enqueue_admin_scripts'), 75 );
|
97 |
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
98 |
|
138 |
|
139 |
}
|
140 |
|
141 |
+
public function session_init() {
|
142 |
+
if ( ! session_id() ) {
|
143 |
+
session_start();
|
144 |
+
}
|
145 |
+
}
|
146 |
+
|
147 |
public function woocommerce_checkout_create_order( WC_Order $order ) {
|
148 |
$order_shipping_methods = $order->get_shipping_methods();
|
149 |
foreach ( $order_shipping_methods as $shipping_id => $shipping_method ) {
|
497 |
'<a href="' . $docs_link . '">' . __( 'Docs', 'flexible-shipping' ) . '</a>',
|
498 |
'<a href="' . $support_link . '">' . __( 'Support', 'flexible-shipping' ) . '</a>',
|
499 |
);
|
|
|
500 |
$pro_link = get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/sklep/flexible-shipping-pro-woocommerce/' : 'https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/';
|
501 |
$utm = '?utm_source=wp-admin-plugins&utm_medium=link&utm_campaign=flexible-shipping-plugins-upgrade-link';
|
502 |
|
503 |
if ( ! wpdesk_is_plugin_active( 'flexible-shipping-pro/flexible-shipping-pro.php' ) )
|
504 |
$plugin_links[] = '<a href="' . $pro_link . $utm . '" target="_blank" style="color:#d64e07;font-weight:bold;">' . __( 'Upgrade', 'flexible-shipping' ) . '</a>';
|
|
|
505 |
return array_merge( $plugin_links, $links );
|
506 |
}
|
507 |
|
651 |
|
652 |
$_GLOBALS['woocommerce_flexible_shipping'] = new WPDesk_Flexible_Shipping_Free_Plugin();
|
653 |
|
654 |
+
add_action( 'plugins_loaded', 'flexible_shipping_plugins_loaded', 9 );
|
655 |
function flexible_shipping_plugins_loaded() {
|
656 |
if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
657 |
include( 'inc/wpdesk-tracker/class-wpdesk-tracker.php' );
|
660 |
}
|
661 |
|
662 |
}
|
|
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,7 +46,10 @@ 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' ) );
|
@@ -56,7 +62,10 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
56 |
add_action( 'admin_footer', array( __CLASS__, 'admin_footer' ) );
|
57 |
}
|
58 |
|
59 |
-
|
|
|
|
|
|
|
60 |
if ( !is_array( $options ) ) {
|
61 |
$options = array();
|
62 |
}
|
@@ -78,7 +87,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 +129,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 +169,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 +187,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 +211,24 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
193 |
}
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
public static function admin_notices() {
|
197 |
if ( !wpdesk_tracker_enabled() ) {
|
198 |
return;
|
@@ -259,10 +295,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';
|
@@ -449,6 +494,10 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
|
|
449 |
}
|
450 |
else {
|
451 |
$params = array( 'click_action' => 'no' );
|
|
|
|
|
|
|
|
|
452 |
}
|
453 |
|
454 |
$params['localhost'] = 'no';
|
3 |
* WP Desk Tracker
|
4 |
*
|
5 |
* @class WPDESK_Tracker
|
6 |
+
* @version 1.3
|
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' ) );
|
62 |
add_action( 'admin_footer', array( __CLASS__, 'admin_footer' ) );
|
63 |
}
|
64 |
|
65 |
+
}
|
66 |
+
|
67 |
+
public static function init_schedule() {
|
68 |
+
$options = get_option( 'wpdesk_helper_options' );
|
69 |
if ( !is_array( $options ) ) {
|
70 |
$options = array();
|
71 |
}
|
87 |
}
|
88 |
|
89 |
public static function admin_footer() {
|
90 |
+
if ( wpdesk_tracker_enabled() && !apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
91 |
$plugins = array(
|
92 |
'wpdesk-helper/wpdesk-helper.php' => 'wpdesk-helper/wpdesk-helper.php'
|
93 |
);
|
129 |
|
130 |
|
131 |
public static function wp_ajax_wpdesk_tracker_notice_handler() {
|
132 |
+
$option = get_option( 'wpdesk_helper_options' );
|
133 |
+
if ( !$option ) {
|
134 |
+
add_option( 'wpdesk_helper_options', array() );
|
135 |
+
}
|
136 |
$type = '';
|
137 |
if ( isset( $_REQUEST['type'] ) ) {
|
138 |
$type = $_REQUEST['type'];
|
169 |
update_option( 'wpdesk_helper_options', $options );
|
170 |
}
|
171 |
if ( $type == 'dismiss_coupon' ) {
|
172 |
+
self::$dismiss_coupon = true;
|
173 |
$options = get_option('wpdesk_helper_options', array() );
|
174 |
if ( !is_array( $options ) ) {
|
175 |
$options = array();
|
176 |
}
|
177 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
178 |
+
unset( $options['wpdesk_tracker_agree'] );
|
179 |
+
update_option( 'wpdesk_helper_options', $options );
|
180 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
181 |
delete_option( 'wpdesk_tracker_notice' );
|
182 |
$options['wpdesk_tracker_agree'] = '0';
|
183 |
update_option( 'wpdesk_helper_options', $options );
|
187 |
|
188 |
public static function update_option_wpdesk_helper_options( $old_value, $value, $option ) {
|
189 |
if ( empty( $old_value ) ) {
|
190 |
+
$old_value = array( 'wpdesk_tracker_agree' => '-1' );
|
191 |
}
|
192 |
+
if ( !isset( $old_value['wpdesk_tracker_agree'] ) ) {
|
193 |
+
$old_value['wpdesk_tracker_agree'] = '-1';
|
194 |
}
|
195 |
if ( empty( $value ) ) {
|
196 |
+
$value = array( 'wpdesk_tracker_agree' => '-1' );
|
197 |
}
|
198 |
+
if ( !isset( $value['wpdesk_tracker_agree'] ) ) {
|
199 |
+
$value['wpdesk_tracker_agree'] = '-1';
|
200 |
}
|
201 |
+
if ( $old_value['wpdesk_tracker_agree'] != '1' ) {
|
202 |
if ( $value['wpdesk_tracker_agree'] == '1' ) {
|
203 |
self::send_tracking_data( true, 'agree' );
|
204 |
}
|
205 |
}
|
206 |
+
if ( $old_value['wpdesk_tracker_agree'] != '0' ) {
|
207 |
if ( $value['wpdesk_tracker_agree'] == '0' ) {
|
208 |
self::send_tracking_data( true, 'no' );
|
209 |
update_option( 'wpdesk_tracker_notice', 'dismiss_all' );
|
211 |
}
|
212 |
}
|
213 |
|
214 |
+
public static function option_wpdesk_helper_options( $value, $option ) {
|
215 |
+
if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
216 |
+
if ( !is_array( $value ) ) {
|
217 |
+
$value = array();
|
218 |
+
}
|
219 |
+
$value['wpdesk_tracker_agree'] = 1;
|
220 |
+
}
|
221 |
+
return $value;
|
222 |
+
}
|
223 |
+
|
224 |
+
public static function default_option_wpdesk_helper_options( $default, $option, $passed_default ) {
|
225 |
+
if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
|
226 |
+
$default = array();
|
227 |
+
$default['wpdesk_tracker_agree'] = 1;
|
228 |
+
}
|
229 |
+
return $default;
|
230 |
+
}
|
231 |
+
|
232 |
public static function admin_notices() {
|
233 |
if ( !wpdesk_tracker_enabled() ) {
|
234 |
return;
|
295 |
$options = array();
|
296 |
}
|
297 |
if ( $_GET['allow'] == '0' ) {
|
298 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
299 |
+
unset( $options['wpdesk_tracker_agree'] );
|
300 |
+
update_option( 'wpdesk_helper_options', $options );
|
301 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
302 |
$options['wpdesk_tracker_agree'] = '0';
|
303 |
update_option( 'wpdesk_helper_options', $options );
|
304 |
+
update_option( 'wpdesk_tracker_notice', '1' );
|
305 |
}
|
306 |
else {
|
307 |
+
remove_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
308 |
+
unset( $options['wpdesk_tracker_agree'] );
|
309 |
+
update_option( 'wpdesk_helper_options', $options );
|
310 |
+
add_action( 'update_option_wpdesk_helper_options', array( __CLASS__, 'update_option_wpdesk_helper_options' ), 10, 3 );
|
311 |
delete_option( 'wpdesk_tracker_notice' );
|
312 |
update_option( 'wpdesk_tracker_agree', '1' );
|
313 |
$options['wpdesk_tracker_agree'] = '1';
|
494 |
}
|
495 |
else {
|
496 |
$params = array( 'click_action' => 'no' );
|
497 |
+
if ( self::$dismiss_coupon ) {
|
498 |
+
$params = array( 'click_action' => 'no_coupon' );
|
499 |
+
}
|
500 |
+
$params['url'] = home_url();
|
501 |
}
|
502 |
|
503 |
$params['localhost'] = 'no';
|
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>
|
languages/flexible-shipping-pl_PL.mo
CHANGED
Binary file
|
languages/flexible-shipping-pl_PL.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Flexible Shipping\n"
|
4 |
-
"POT-Creation-Date: 2017-06-
|
5 |
-
"PO-Revision-Date: 2017-06-
|
6 |
-
"Last-Translator: Piotr Jabłonowski <piotr.jablonowski@
|
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.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-WPHeader: flexible-shipping.php\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
@@ -20,7 +20,6 @@ msgstr ""
|
|
20 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
"X-Poedit-SearchPath-0: .\n"
|
22 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
-
"X-Poedit-SearchPathExcluded-1: inc/wpdesk-tracker\n"
|
24 |
|
25 |
#: classes/bulk-actions.php:46
|
26 |
msgid "New"
|
@@ -91,7 +90,7 @@ msgstr ""
|
|
91 |
"Nie można utworzyć tymczasowego archwium zip dla etykiet. Sprawdź "
|
92 |
"konfigurację folderu na serwerze."
|
93 |
|
94 |
-
#: classes/bulk-actions.php:
|
95 |
#, php-format
|
96 |
msgid ""
|
97 |
"Created manifest: %s (%s). If download not start automatically click %shere"
|
@@ -100,21 +99,21 @@ msgstr ""
|
|
100 |
"Utworzone protokoły nadania: %s (%s). Jesli pobieranie nie rozpoczęło się "
|
101 |
"automatycznie kliknij %stutaj%s."
|
102 |
|
103 |
-
#: classes/bulk-actions.php:
|
104 |
#, php-format
|
105 |
msgid "Manifest creation error: %s (%s)."
|
106 |
msgstr "Błąd podczas tworzenia protokołu nadania: %s (%s)."
|
107 |
|
108 |
-
#: classes/bulk-actions.php:
|
109 |
msgid "No manifests created."
|
110 |
msgstr "Nie zostały utworzone protokoły nadania."
|
111 |
|
112 |
-
#: classes/bulk-actions.php:
|
113 |
#, php-format
|
114 |
msgid "Bulk send shipment - processed orders: %d"
|
115 |
msgstr "Masowe nadawanie przesyłek - przetworzone zamówienia: %d"
|
116 |
|
117 |
-
#: classes/bulk-actions.php:
|
118 |
#, php-format
|
119 |
msgid ""
|
120 |
"Bulk labels - processed orders: %d. If download not start automatically "
|
@@ -123,12 +122,12 @@ msgstr ""
|
|
123 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Jeśli pobieranie "
|
124 |
"nie rozpoczęło się automatycznie kliknij %stutaj%s ."
|
125 |
|
126 |
-
#: classes/bulk-actions.php:
|
127 |
#, php-format
|
128 |
msgid "Bulk shipping manifest - processed orders: %d"
|
129 |
msgstr "Zbiorcze tworzenie protokołów nadania - przetworzone zamówienia: %d"
|
130 |
|
131 |
-
#: classes/inspire/plugin4.php:
|
132 |
msgid ""
|
133 |
"An Unexpected HTTP Error occurred during the API request. <a href=\"?\" "
|
134 |
"onclick=\"document.location.reload(); return false;\">Try again</a>"
|
@@ -136,19 +135,19 @@ msgstr ""
|
|
136 |
"Wystąpił nieoczekiwany błąd HTTP podczas zapytania API.</p> <p><a href=„?” "
|
137 |
"onclick=„document.location.reload(); return false;”>Spróbuj ponownie</a>"
|
138 |
|
139 |
-
#: classes/inspire/plugin4.php:
|
140 |
msgid "An unknown error occurred"
|
141 |
msgstr "Wystąpił nieznany błąd"
|
142 |
|
143 |
-
#: classes/inspire/plugin4.php:
|
144 |
msgid "Settings"
|
145 |
msgstr "Ustawienia"
|
146 |
|
147 |
-
#: classes/inspire/plugin4.php:
|
148 |
msgid "Docs"
|
149 |
msgstr "Docs"
|
150 |
|
151 |
-
#: classes/inspire/plugin4.php:
|
152 |
msgid "Support"
|
153 |
msgstr "Wsparcie"
|
154 |
|
@@ -211,7 +210,7 @@ msgstr "Data"
|
|
211 |
|
212 |
#: classes/manifest/cpt-shipping-manifest.php:161
|
213 |
#: classes/manifest/views/filter-form.php:5
|
214 |
-
#: classes/settings-shipping-method-form.php:
|
215 |
#: classes/views/html-orders-filter-form.php:5
|
216 |
#: classes/views/html-shipping-method-settings.php:15
|
217 |
msgid "Integration"
|
@@ -245,6 +244,7 @@ msgid "Download"
|
|
245 |
msgstr "Pobierz"
|
246 |
|
247 |
#: classes/manifest/views/column-actions.php:2
|
|
|
248 |
msgid "Cancel"
|
249 |
msgstr "Anuluj"
|
250 |
|
@@ -268,21 +268,21 @@ msgstr "Zamówienie"
|
|
268 |
msgid "Shipment for order %s, %s"
|
269 |
msgstr "Przesyłka do zamówienia %s, %s"
|
270 |
|
271 |
-
#: classes/order-add-shipping.php:
|
272 |
msgid "Select integration"
|
273 |
msgstr "Wybierz integrację"
|
274 |
|
275 |
-
#: classes/order-add-shipping.php:
|
276 |
msgid "Add shipping"
|
277 |
msgstr "Dodaj przesyłkę"
|
278 |
|
279 |
#. Plugin Name of the plugin/theme
|
280 |
#: classes/settings-flexible-shipping.php:14
|
281 |
#: classes/settings-flexible-shipping.php:28
|
282 |
-
#: classes/settings-shipping-method-form.php:
|
283 |
#: classes/shipping_method.php:25 classes/shipping_method.php:43
|
284 |
-
#: flexible-shipping.php:
|
285 |
-
#: flexible-shipping.php:
|
286 |
msgid "Flexible Shipping"
|
287 |
msgstr "Flexible Shipping"
|
288 |
|
@@ -292,7 +292,7 @@ msgid "See how to %sconfigure Flexible Shipping%s."
|
|
292 |
msgstr "Zobacz jak %sskonfigurować Flexible Shipping%s."
|
293 |
|
294 |
#: classes/settings-flexible-shipping.php:19
|
295 |
-
#: classes/settings-shipping-method-form.php:
|
296 |
msgid "Enable/Disable"
|
297 |
msgstr "Włącz/Wyłącz"
|
298 |
|
@@ -339,35 +339,35 @@ msgstr ""
|
|
339 |
"%sDodaj integrację%s z DPD, DHL, InPost, eNadawca Poczta Polska, Paczka w "
|
340 |
"Ruchu."
|
341 |
|
342 |
-
#: classes/settings-shipping-method-form.php:19 classes/shipping_method.php:
|
343 |
msgid "Free"
|
344 |
msgstr "Bezpłatnie"
|
345 |
|
346 |
-
#: classes/settings-shipping-method-form.php:
|
347 |
msgid "Enable this shipment method"
|
348 |
msgstr "Włącz tę metodę wysyłki"
|
349 |
|
350 |
-
#: classes/settings-shipping-method-form.php:
|
351 |
msgid "Method Title"
|
352 |
msgstr "Tytuł metody"
|
353 |
|
354 |
-
#: classes/settings-shipping-method-form.php:
|
355 |
msgid "This controls the title which the user sees during checkout."
|
356 |
msgstr "Tytuł, który widzi użytkownik podczas składania zamówienia."
|
357 |
|
358 |
-
#: classes/settings-shipping-method-form.php:
|
359 |
msgid "Method Description"
|
360 |
msgstr "Opis"
|
361 |
|
362 |
-
#: classes/settings-shipping-method-form.php:
|
363 |
msgid "This controls method description which the user sees during checkout."
|
364 |
msgstr "Opis, który widzi użytkownik podczas składania zamówienia."
|
365 |
|
366 |
-
#: classes/settings-shipping-method-form.php:
|
367 |
msgid "Free Shipping"
|
368 |
msgstr "Darmowa wysyłka"
|
369 |
|
370 |
-
#: classes/settings-shipping-method-form.php:
|
371 |
msgid ""
|
372 |
"Enter a minimum order amount for free shipment. This will override the costs "
|
373 |
"configured below."
|
@@ -375,46 +375,46 @@ msgstr ""
|
|
375 |
"Wpisz minimalną kwotę zamówienia dla bezpłatnej wysyłki. Spowoduje to "
|
376 |
"zastąpienie reguł skonfigurowanych poniżej."
|
377 |
|
378 |
-
#: classes/settings-shipping-method-form.php:
|
379 |
msgid "Free Shipping Label"
|
380 |
msgstr "Etykieta darmowej wysyłki"
|
381 |
|
382 |
-
#: classes/settings-shipping-method-form.php:
|
383 |
msgid "Enter additional label for shipment when free shipment available."
|
384 |
msgstr ""
|
385 |
"Wpisz dodatkową etykietę, która zostanie wyświetlona dla darmowej wysyłki."
|
386 |
|
387 |
-
#: classes/settings-shipping-method-form.php:
|
388 |
msgid "Calculation Method"
|
389 |
msgstr "Metoda obliczania"
|
390 |
|
391 |
-
#: classes/settings-shipping-method-form.php:
|
392 |
msgid ""
|
393 |
"Select how rules will be calculated. If you choose \"sum\" the rules order "
|
394 |
"is important."
|
395 |
msgstr ""
|
396 |
"Wybierz jak będą obliczane reguły. Dla sumy, kolejność reguł ma znaczenie."
|
397 |
|
398 |
-
#: classes/settings-shipping-method-form.php:
|
399 |
msgid "Sum"
|
400 |
msgstr "Suma"
|
401 |
|
402 |
-
#: classes/settings-shipping-method-form.php:
|
403 |
#: classes/views/html-shipping-method-settings.php:13
|
404 |
msgid "Visibility"
|
405 |
msgstr "Wyświetlanie"
|
406 |
|
407 |
-
#: classes/settings-shipping-method-form.php:
|
408 |
#: classes/views/html-shipping-method-settings.php:46
|
409 |
msgid "Show only for logged in users"
|
410 |
msgstr "Pokaż tylko dla zalogowanych użytkowników"
|
411 |
|
412 |
-
#: classes/settings-shipping-method-form.php:
|
413 |
#: classes/views/html-shipping-method-settings.php:14
|
414 |
msgid "Default"
|
415 |
msgstr "Domyślnie"
|
416 |
|
417 |
-
#: classes/settings-shipping-method-form.php:
|
418 |
msgid ""
|
419 |
"Check the box to set this option as the default selected choice on the cart "
|
420 |
"page."
|
@@ -422,24 +422,24 @@ msgstr ""
|
|
422 |
"Zaznacz, aby ustawić tę metodę wysyłki jako domyślną przy składaniu "
|
423 |
"zamówienia."
|
424 |
|
425 |
-
#: classes/settings-shipping-method-form.php:
|
426 |
msgid "Select integration. "
|
427 |
msgstr "Wybierz integrację. "
|
428 |
|
429 |
-
#: classes/settings-shipping-method-form.php:
|
430 |
#: classes/views/html-shipping-method-rules.php:7
|
431 |
msgid "None"
|
432 |
msgstr "Brak"
|
433 |
|
434 |
-
#: classes/settings-shipping-method-form.php:
|
435 |
msgid "Rules"
|
436 |
msgstr "Reguły"
|
437 |
|
438 |
-
#: classes/settings-shipping-method-form.php:
|
439 |
msgid "Shipping Zone"
|
440 |
msgstr "Strefa wysyłki"
|
441 |
|
442 |
-
#: classes/settings-shipping-method-form.php:
|
443 |
#, php-format
|
444 |
msgid "See how to %sconfigure shipment methods%s."
|
445 |
msgstr "Zobacz jak %sskonfigurować metody wysyłki %s."
|
@@ -570,90 +570,90 @@ msgstr "Tytuł"
|
|
570 |
msgid "Add New"
|
571 |
msgstr "Dodaj nową"
|
572 |
|
573 |
-
#: classes/shipping_method.php:
|
574 |
msgid ""
|
575 |
"Sorry, there has been an error. The CSV is invalid or incorrect file type."
|
576 |
msgstr ""
|
577 |
"Przepraszamy, wystąpił błąd. Plik CSV jest niepoprawny lub typ pliku jest "
|
578 |
"nieprawidłowy."
|
579 |
|
580 |
-
#: classes/shipping_method.php:
|
581 |
msgid "import"
|
582 |
msgstr "import"
|
583 |
|
584 |
-
#: classes/shipping_method.php:
|
585 |
#, php-format
|
586 |
msgid "Free Shipping value %s is not valid number. Row number %d."
|
587 |
msgstr "Wartość darmowej wysyłki %s jest niepoprawna. Numer wiersza %d."
|
588 |
|
589 |
-
#: classes/shipping_method.php:
|
590 |
#, php-format
|
591 |
msgid "Maximum Cost value %s is not valid number. Row number %d."
|
592 |
msgstr "Maksymalny koszt %s jest niepoprawny. Numer wiersza %d."
|
593 |
|
594 |
-
#: classes/shipping_method.php:
|
595 |
#, php-format
|
596 |
msgid "Invalid value for Calculation Method in row number %d."
|
597 |
msgstr "Nieprawidłowa wartość dla Metody obliczania w wierszu %d."
|
598 |
|
599 |
-
#: classes/shipping_method.php:
|
600 |
#, php-format
|
601 |
msgid "Invalid value for Based On in row number %d."
|
602 |
msgstr "Nieprawidłowa wartość dla Oparte na w wierszu %d."
|
603 |
|
604 |
-
#: classes/shipping_method.php:
|
605 |
#, php-format
|
606 |
msgid "Min value %s is not valid number. Row number %d."
|
607 |
msgstr "Wartość Min %s jest niepoprawna. Numer wiersza %d."
|
608 |
|
609 |
-
#: classes/shipping_method.php:
|
610 |
#, php-format
|
611 |
msgid "Max value %s is not valid number. Row number %d."
|
612 |
msgstr "Wartość Maks %s jest niepoprawna. Numer wiersza %d."
|
613 |
|
614 |
-
#: classes/shipping_method.php:
|
615 |
#, php-format
|
616 |
msgid "Cost per order value %s is not valid number. Row number %d."
|
617 |
msgstr "Wartość Koszt na zamówienie %s jest niepoprawna. Numer wiersza %d."
|
618 |
|
619 |
-
#: classes/shipping_method.php:
|
620 |
#, php-format
|
621 |
msgid "Additional cost value %s is not valid number. Row number %d."
|
622 |
msgstr "Wartość Dodatkowy koszt %s jest niepoprawna. Numer wiersza %d."
|
623 |
|
624 |
-
#: classes/shipping_method.php:
|
625 |
#, php-format
|
626 |
msgid "Value value %s is not valid number. Row number %d."
|
627 |
msgstr "Wartość w polu Wartość %s jest niepoprawna. Numer wiersza %d."
|
628 |
|
629 |
-
#: classes/shipping_method.php:
|
630 |
#, php-format
|
631 |
msgid "Shipping method %s imported as %s."
|
632 |
msgstr "Metoda wysyłki %s została zaimportowana jako %s."
|
633 |
|
634 |
-
#: classes/shipping_method.php:
|
635 |
msgid "New Shipping Method"
|
636 |
msgstr "Nowa metoda wysyłki"
|
637 |
|
638 |
-
#: classes/shipping_method.php:
|
639 |
msgid "Edit Shipping Method"
|
640 |
msgstr "Edytuj metodę wysyłki"
|
641 |
|
642 |
-
#: classes/shipping_method.php:
|
643 |
#, php-format
|
644 |
msgid "Shipping method %s added."
|
645 |
msgstr "Metoda wysyłki dodana: %s."
|
646 |
|
647 |
-
#: classes/shipping_method.php:
|
648 |
#, php-format
|
649 |
msgid "Shipping method %s deleted."
|
650 |
msgstr "Metoda wysyłki usunięta: %s."
|
651 |
|
652 |
-
#: classes/shipping_method.php:
|
653 |
msgid "Shipping method not found."
|
654 |
msgstr "Metoda wysyłki nie znaleziona."
|
655 |
|
656 |
-
#: classes/shipping_method.php:
|
657 |
#, php-format
|
658 |
msgid "Shipping method %s updated."
|
659 |
msgstr "Metoda wysyłki zaktualizowana: %s."
|
@@ -704,10 +704,6 @@ msgstr "Pobierz etykietę dla "
|
|
704 |
msgid "Track shipment for: "
|
705 |
msgstr "Śledź przesyłkę "
|
706 |
|
707 |
-
#: classes/views/html-order-add_shipping-metabox.php:8
|
708 |
-
msgid "Integration "
|
709 |
-
msgstr "Integracja "
|
710 |
-
|
711 |
#: classes/views/html-order-add_shipping-metabox.php:15
|
712 |
msgid "Add"
|
713 |
msgstr "Dodaj"
|
@@ -843,23 +839,23 @@ msgstr "Proszę wybrać metody wysyłki do usunięcia"
|
|
843 |
msgid "Select file to import"
|
844 |
msgstr "Wybierz plik do importu"
|
845 |
|
846 |
-
#: flexible-shipping.php:
|
847 |
msgid ""
|
848 |
"Flexible Shipping requires at least version 2.7 of Active Payments plugin."
|
849 |
msgstr ""
|
850 |
"Flexible Shipping wymaga wtyczki Aktywne płatności w wersji co najmniej 2.7."
|
851 |
|
852 |
-
#: flexible-shipping.php:
|
853 |
msgid "Flexible Shipping requires at least version 1.2 of eNadawca plugin."
|
854 |
msgstr "Flexible Shipping wymaga wtyczki eNadawca w wersji co najmniej 1.2."
|
855 |
|
856 |
-
#: flexible-shipping.php:
|
857 |
msgid ""
|
858 |
"Flexible Shipping requires at least version 1.1 of Paczka w Ruchu plugin."
|
859 |
msgstr ""
|
860 |
"Flexible Shipping wymaga wtyczki Paczka w Ruchu w wersji co najmniej 1.1."
|
861 |
|
862 |
-
#: flexible-shipping.php:
|
863 |
#, php-format
|
864 |
msgid ""
|
865 |
"You are using WooCommerce Flexible Shipping below 1.4. Please deactivate it "
|
@@ -870,17 +866,167 @@ msgstr ""
|
|
870 |
"Wyłącz go na %sstronie wtyczek%s. Przeczytaj o dużej zmianie we Flexible "
|
871 |
"Shipping na %snaszym blogu →%s"
|
872 |
|
873 |
-
#: flexible-shipping.php:
|
874 |
msgid "Upgrade"
|
875 |
msgstr "Kup PRO"
|
876 |
|
877 |
-
#: flexible-shipping.php:
|
878 |
#, php-format
|
879 |
msgid "Redirecting. If page not redirects click %s here %s."
|
880 |
msgstr ""
|
881 |
"Przekierowywanie. Jeśli strona nie przekierowuje cię automatycznie, kliknij "
|
882 |
"%s tu %s."
|
883 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
#. Plugin URI of the plugin/theme
|
885 |
msgid "https://wordpress.org/plugins/flexible-shipping/"
|
886 |
msgstr "https://pl.wordpress.org/plugins/flexible-shipping/"
|
@@ -901,6 +1047,9 @@ msgstr "WP Desk"
|
|
901 |
msgid "https://www.wpdesk.net/"
|
902 |
msgstr "https://www.wpdesk.pl/"
|
903 |
|
|
|
|
|
|
|
904 |
#~ msgid "Shipping method title is not set in row number %d."
|
905 |
#~ msgstr "Tytuł metody wysyłki nie został ustawiony w wierszu %d."
|
906 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Flexible Shipping\n"
|
4 |
+
"POT-Creation-Date: 2017-06-13 18:41+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-06-13 18:46+0200\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 2.0.1\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-WPHeader: flexible-shipping.php\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
20 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
"X-Poedit-SearchPath-0: .\n"
|
22 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
|
|
23 |
|
24 |
#: classes/bulk-actions.php:46
|
25 |
msgid "New"
|
90 |
"Nie można utworzyć tymczasowego archwium zip dla etykiet. Sprawdź "
|
91 |
"konfigurację folderu na serwerze."
|
92 |
|
93 |
+
#: classes/bulk-actions.php:395
|
94 |
#, php-format
|
95 |
msgid ""
|
96 |
"Created manifest: %s (%s). If download not start automatically click %shere"
|
99 |
"Utworzone protokoły nadania: %s (%s). Jesli pobieranie nie rozpoczęło się "
|
100 |
"automatycznie kliknij %stutaj%s."
|
101 |
|
102 |
+
#: classes/bulk-actions.php:407
|
103 |
#, php-format
|
104 |
msgid "Manifest creation error: %s (%s)."
|
105 |
msgstr "Błąd podczas tworzenia protokołu nadania: %s (%s)."
|
106 |
|
107 |
+
#: classes/bulk-actions.php:418
|
108 |
msgid "No manifests created."
|
109 |
msgstr "Nie zostały utworzone protokoły nadania."
|
110 |
|
111 |
+
#: classes/bulk-actions.php:432
|
112 |
#, php-format
|
113 |
msgid "Bulk send shipment - processed orders: %d"
|
114 |
msgstr "Masowe nadawanie przesyłek - przetworzone zamówienia: %d"
|
115 |
|
116 |
+
#: classes/bulk-actions.php:449
|
117 |
#, php-format
|
118 |
msgid ""
|
119 |
"Bulk labels - processed orders: %d. If download not start automatically "
|
122 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Jeśli pobieranie "
|
123 |
"nie rozpoczęło się automatycznie kliknij %stutaj%s ."
|
124 |
|
125 |
+
#: classes/bulk-actions.php:457
|
126 |
#, php-format
|
127 |
msgid "Bulk shipping manifest - processed orders: %d"
|
128 |
msgstr "Zbiorcze tworzenie protokołów nadania - przetworzone zamówienia: %d"
|
129 |
|
130 |
+
#: classes/inspire/plugin4.php:217
|
131 |
msgid ""
|
132 |
"An Unexpected HTTP Error occurred during the API request. <a href=\"?\" "
|
133 |
"onclick=\"document.location.reload(); return false;\">Try again</a>"
|
135 |
"Wystąpił nieoczekiwany błąd HTTP podczas zapytania API.</p> <p><a href=„?” "
|
136 |
"onclick=„document.location.reload(); return false;”>Spróbuj ponownie</a>"
|
137 |
|
138 |
+
#: classes/inspire/plugin4.php:222
|
139 |
msgid "An unknown error occurred"
|
140 |
msgstr "Wystąpił nieznany błąd"
|
141 |
|
142 |
+
#: classes/inspire/plugin4.php:386 flexible-shipping.php:496
|
143 |
msgid "Settings"
|
144 |
msgstr "Ustawienia"
|
145 |
|
146 |
+
#: classes/inspire/plugin4.php:387 flexible-shipping.php:497
|
147 |
msgid "Docs"
|
148 |
msgstr "Docs"
|
149 |
|
150 |
+
#: classes/inspire/plugin4.php:388 flexible-shipping.php:498
|
151 |
msgid "Support"
|
152 |
msgstr "Wsparcie"
|
153 |
|
210 |
|
211 |
#: classes/manifest/cpt-shipping-manifest.php:161
|
212 |
#: classes/manifest/views/filter-form.php:5
|
213 |
+
#: classes/settings-shipping-method-form.php:102
|
214 |
#: classes/views/html-orders-filter-form.php:5
|
215 |
#: classes/views/html-shipping-method-settings.php:15
|
216 |
msgid "Integration"
|
244 |
msgstr "Pobierz"
|
245 |
|
246 |
#: classes/manifest/views/column-actions.php:2
|
247 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:78
|
248 |
msgid "Cancel"
|
249 |
msgstr "Anuluj"
|
250 |
|
268 |
msgid "Shipment for order %s, %s"
|
269 |
msgstr "Przesyłka do zamówienia %s, %s"
|
270 |
|
271 |
+
#: classes/order-add-shipping.php:81
|
272 |
msgid "Select integration"
|
273 |
msgstr "Wybierz integrację"
|
274 |
|
275 |
+
#: classes/order-add-shipping.php:90
|
276 |
msgid "Add shipping"
|
277 |
msgstr "Dodaj przesyłkę"
|
278 |
|
279 |
#. Plugin Name of the plugin/theme
|
280 |
#: classes/settings-flexible-shipping.php:14
|
281 |
#: classes/settings-flexible-shipping.php:28
|
282 |
+
#: classes/settings-shipping-method-form.php:44 classes/shipping_method.php:24
|
283 |
#: classes/shipping_method.php:25 classes/shipping_method.php:43
|
284 |
+
#: flexible-shipping.php:380 flexible-shipping.php:383
|
285 |
+
#: flexible-shipping.php:386
|
286 |
msgid "Flexible Shipping"
|
287 |
msgstr "Flexible Shipping"
|
288 |
|
292 |
msgstr "Zobacz jak %sskonfigurować Flexible Shipping%s."
|
293 |
|
294 |
#: classes/settings-flexible-shipping.php:19
|
295 |
+
#: classes/settings-shipping-method-form.php:35 classes/shipping_method.php:34
|
296 |
msgid "Enable/Disable"
|
297 |
msgstr "Włącz/Wyłącz"
|
298 |
|
339 |
"%sDodaj integrację%s z DPD, DHL, InPost, eNadawca Poczta Polska, Paczka w "
|
340 |
"Ruchu."
|
341 |
|
342 |
+
#: classes/settings-shipping-method-form.php:19 classes/shipping_method.php:786
|
343 |
msgid "Free"
|
344 |
msgstr "Bezpłatnie"
|
345 |
|
346 |
+
#: classes/settings-shipping-method-form.php:38 classes/shipping_method.php:36
|
347 |
msgid "Enable this shipment method"
|
348 |
msgstr "Włącz tę metodę wysyłki"
|
349 |
|
350 |
+
#: classes/settings-shipping-method-form.php:41
|
351 |
msgid "Method Title"
|
352 |
msgstr "Tytuł metody"
|
353 |
|
354 |
+
#: classes/settings-shipping-method-form.php:43 classes/shipping_method.php:42
|
355 |
msgid "This controls the title which the user sees during checkout."
|
356 |
msgstr "Tytuł, który widzi użytkownik podczas składania zamówienia."
|
357 |
|
358 |
+
#: classes/settings-shipping-method-form.php:50
|
359 |
msgid "Method Description"
|
360 |
msgstr "Opis"
|
361 |
|
362 |
+
#: classes/settings-shipping-method-form.php:52
|
363 |
msgid "This controls method description which the user sees during checkout."
|
364 |
msgstr "Opis, który widzi użytkownik podczas składania zamówienia."
|
365 |
|
366 |
+
#: classes/settings-shipping-method-form.php:63
|
367 |
msgid "Free Shipping"
|
368 |
msgstr "Darmowa wysyłka"
|
369 |
|
370 |
+
#: classes/settings-shipping-method-form.php:66
|
371 |
msgid ""
|
372 |
"Enter a minimum order amount for free shipment. This will override the costs "
|
373 |
"configured below."
|
375 |
"Wpisz minimalną kwotę zamówienia dla bezpłatnej wysyłki. Spowoduje to "
|
376 |
"zastąpienie reguł skonfigurowanych poniżej."
|
377 |
|
378 |
+
#: classes/settings-shipping-method-form.php:70
|
379 |
msgid "Free Shipping Label"
|
380 |
msgstr "Etykieta darmowej wysyłki"
|
381 |
|
382 |
+
#: classes/settings-shipping-method-form.php:73
|
383 |
msgid "Enter additional label for shipment when free shipment available."
|
384 |
msgstr ""
|
385 |
"Wpisz dodatkową etykietę, która zostanie wyświetlona dla darmowej wysyłki."
|
386 |
|
387 |
+
#: classes/settings-shipping-method-form.php:82
|
388 |
msgid "Calculation Method"
|
389 |
msgstr "Metoda obliczania"
|
390 |
|
391 |
+
#: classes/settings-shipping-method-form.php:84
|
392 |
msgid ""
|
393 |
"Select how rules will be calculated. If you choose \"sum\" the rules order "
|
394 |
"is important."
|
395 |
msgstr ""
|
396 |
"Wybierz jak będą obliczane reguły. Dla sumy, kolejność reguł ma znaczenie."
|
397 |
|
398 |
+
#: classes/settings-shipping-method-form.php:87
|
399 |
msgid "Sum"
|
400 |
msgstr "Suma"
|
401 |
|
402 |
+
#: classes/settings-shipping-method-form.php:90
|
403 |
#: classes/views/html-shipping-method-settings.php:13
|
404 |
msgid "Visibility"
|
405 |
msgstr "Wyświetlanie"
|
406 |
|
407 |
+
#: classes/settings-shipping-method-form.php:93
|
408 |
#: classes/views/html-shipping-method-settings.php:46
|
409 |
msgid "Show only for logged in users"
|
410 |
msgstr "Pokaż tylko dla zalogowanych użytkowników"
|
411 |
|
412 |
+
#: classes/settings-shipping-method-form.php:96
|
413 |
#: classes/views/html-shipping-method-settings.php:14
|
414 |
msgid "Default"
|
415 |
msgstr "Domyślnie"
|
416 |
|
417 |
+
#: classes/settings-shipping-method-form.php:99
|
418 |
msgid ""
|
419 |
"Check the box to set this option as the default selected choice on the cart "
|
420 |
"page."
|
422 |
"Zaznacz, aby ustawić tę metodę wysyłki jako domyślną przy składaniu "
|
423 |
"zamówienia."
|
424 |
|
425 |
+
#: classes/settings-shipping-method-form.php:104
|
426 |
msgid "Select integration. "
|
427 |
msgstr "Wybierz integrację. "
|
428 |
|
429 |
+
#: classes/settings-shipping-method-form.php:107
|
430 |
#: classes/views/html-shipping-method-rules.php:7
|
431 |
msgid "None"
|
432 |
msgstr "Brak"
|
433 |
|
434 |
+
#: classes/settings-shipping-method-form.php:118
|
435 |
msgid "Rules"
|
436 |
msgstr "Reguły"
|
437 |
|
438 |
+
#: classes/settings-shipping-method-form.php:139
|
439 |
msgid "Shipping Zone"
|
440 |
msgstr "Strefa wysyłki"
|
441 |
|
442 |
+
#: classes/settings-shipping-method-form.php:151
|
443 |
#, php-format
|
444 |
msgid "See how to %sconfigure shipment methods%s."
|
445 |
msgstr "Zobacz jak %sskonfigurować metody wysyłki %s."
|
570 |
msgid "Add New"
|
571 |
msgstr "Dodaj nową"
|
572 |
|
573 |
+
#: classes/shipping_method.php:347
|
574 |
msgid ""
|
575 |
"Sorry, there has been an error. The CSV is invalid or incorrect file type."
|
576 |
msgstr ""
|
577 |
"Przepraszamy, wystąpił błąd. Plik CSV jest niepoprawny lub typ pliku jest "
|
578 |
"nieprawidłowy."
|
579 |
|
580 |
+
#: classes/shipping_method.php:357 classes/shipping_method.php:360
|
581 |
msgid "import"
|
582 |
msgstr "import"
|
583 |
|
584 |
+
#: classes/shipping_method.php:369
|
585 |
#, php-format
|
586 |
msgid "Free Shipping value %s is not valid number. Row number %d."
|
587 |
msgstr "Wartość darmowej wysyłki %s jest niepoprawna. Numer wiersza %d."
|
588 |
|
589 |
+
#: classes/shipping_method.php:375
|
590 |
#, php-format
|
591 |
msgid "Maximum Cost value %s is not valid number. Row number %d."
|
592 |
msgstr "Maksymalny koszt %s jest niepoprawny. Numer wiersza %d."
|
593 |
|
594 |
+
#: classes/shipping_method.php:386
|
595 |
#, php-format
|
596 |
msgid "Invalid value for Calculation Method in row number %d."
|
597 |
msgstr "Nieprawidłowa wartość dla Metody obliczania w wierszu %d."
|
598 |
|
599 |
+
#: classes/shipping_method.php:410
|
600 |
#, php-format
|
601 |
msgid "Invalid value for Based On in row number %d."
|
602 |
msgstr "Nieprawidłowa wartość dla Oparte na w wierszu %d."
|
603 |
|
604 |
+
#: classes/shipping_method.php:415
|
605 |
#, php-format
|
606 |
msgid "Min value %s is not valid number. Row number %d."
|
607 |
msgstr "Wartość Min %s jest niepoprawna. Numer wiersza %d."
|
608 |
|
609 |
+
#: classes/shipping_method.php:421
|
610 |
#, php-format
|
611 |
msgid "Max value %s is not valid number. Row number %d."
|
612 |
msgstr "Wartość Maks %s jest niepoprawna. Numer wiersza %d."
|
613 |
|
614 |
+
#: classes/shipping_method.php:427
|
615 |
#, php-format
|
616 |
msgid "Cost per order value %s is not valid number. Row number %d."
|
617 |
msgstr "Wartość Koszt na zamówienie %s jest niepoprawna. Numer wiersza %d."
|
618 |
|
619 |
+
#: classes/shipping_method.php:433
|
620 |
#, php-format
|
621 |
msgid "Additional cost value %s is not valid number. Row number %d."
|
622 |
msgstr "Wartość Dodatkowy koszt %s jest niepoprawna. Numer wiersza %d."
|
623 |
|
624 |
+
#: classes/shipping_method.php:439
|
625 |
#, php-format
|
626 |
msgid "Value value %s is not valid number. Row number %d."
|
627 |
msgstr "Wartość w polu Wartość %s jest niepoprawna. Numer wiersza %d."
|
628 |
|
629 |
+
#: classes/shipping_method.php:484
|
630 |
#, php-format
|
631 |
msgid "Shipping method %s imported as %s."
|
632 |
msgstr "Metoda wysyłki %s została zaimportowana jako %s."
|
633 |
|
634 |
+
#: classes/shipping_method.php:544
|
635 |
msgid "New Shipping Method"
|
636 |
msgstr "Nowa metoda wysyłki"
|
637 |
|
638 |
+
#: classes/shipping_method.php:547
|
639 |
msgid "Edit Shipping Method"
|
640 |
msgstr "Edytuj metodę wysyłki"
|
641 |
|
642 |
+
#: classes/shipping_method.php:557 classes/shipping_method.php:598
|
643 |
#, php-format
|
644 |
msgid "Shipping method %s added."
|
645 |
msgstr "Metoda wysyłki dodana: %s."
|
646 |
|
647 |
+
#: classes/shipping_method.php:581
|
648 |
#, php-format
|
649 |
msgid "Shipping method %s deleted."
|
650 |
msgstr "Metoda wysyłki usunięta: %s."
|
651 |
|
652 |
+
#: classes/shipping_method.php:584
|
653 |
msgid "Shipping method not found."
|
654 |
msgstr "Metoda wysyłki nie znaleziona."
|
655 |
|
656 |
+
#: classes/shipping_method.php:610
|
657 |
#, php-format
|
658 |
msgid "Shipping method %s updated."
|
659 |
msgstr "Metoda wysyłki zaktualizowana: %s."
|
704 |
msgid "Track shipment for: "
|
705 |
msgstr "Śledź przesyłkę "
|
706 |
|
|
|
|
|
|
|
|
|
707 |
#: classes/views/html-order-add_shipping-metabox.php:15
|
708 |
msgid "Add"
|
709 |
msgstr "Dodaj"
|
839 |
msgid "Select file to import"
|
840 |
msgstr "Wybierz plik do importu"
|
841 |
|
842 |
+
#: flexible-shipping.php:420
|
843 |
msgid ""
|
844 |
"Flexible Shipping requires at least version 2.7 of Active Payments plugin."
|
845 |
msgstr ""
|
846 |
"Flexible Shipping wymaga wtyczki Aktywne płatności w wersji co najmniej 2.7."
|
847 |
|
848 |
+
#: flexible-shipping.php:431
|
849 |
msgid "Flexible Shipping requires at least version 1.2 of eNadawca plugin."
|
850 |
msgstr "Flexible Shipping wymaga wtyczki eNadawca w wersji co najmniej 1.2."
|
851 |
|
852 |
+
#: flexible-shipping.php:442
|
853 |
msgid ""
|
854 |
"Flexible Shipping requires at least version 1.1 of Paczka w Ruchu plugin."
|
855 |
msgstr ""
|
856 |
"Flexible Shipping wymaga wtyczki Paczka w Ruchu w wersji co najmniej 1.1."
|
857 |
|
858 |
+
#: flexible-shipping.php:450
|
859 |
#, php-format
|
860 |
msgid ""
|
861 |
"You are using WooCommerce Flexible Shipping below 1.4. Please deactivate it "
|
866 |
"Wyłącz go na %sstronie wtyczek%s. Przeczytaj o dużej zmianie we Flexible "
|
867 |
"Shipping na %snaszym blogu →%s"
|
868 |
|
869 |
+
#: flexible-shipping.php:504
|
870 |
msgid "Upgrade"
|
871 |
msgstr "Kup PRO"
|
872 |
|
873 |
+
#: flexible-shipping.php:620
|
874 |
#, php-format
|
875 |
msgid "Redirecting. If page not redirects click %s here %s."
|
876 |
msgstr ""
|
877 |
"Przekierowywanie. Jeśli strona nie przekierowuje cię automatycznie, kliknij "
|
878 |
"%s tu %s."
|
879 |
|
880 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:7
|
881 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:5
|
882 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:16
|
883 |
+
#, php-format
|
884 |
+
msgid "Hey %s,"
|
885 |
+
msgstr "Hej %s,"
|
886 |
+
|
887 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:8
|
888 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:17
|
889 |
+
msgid ""
|
890 |
+
"Please help us improve our plugins! If you opt-in, we will collect some non-"
|
891 |
+
"sensitive data and usage information. If you skip this, that's okay! All "
|
892 |
+
"plugins will work just fine."
|
893 |
+
msgstr ""
|
894 |
+
"Proszę pomóż nam udoskonalić nasze wtyczki! Jeśli się zgodzisz, będziemy "
|
895 |
+
"zbierać niewrażliwe dane użytkowania. Jeśli pominiesz ten krok, w porządku! "
|
896 |
+
"Wszystkie wtyczki będą działać."
|
897 |
+
|
898 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:13
|
899 |
+
msgid "Allow & Continue →"
|
900 |
+
msgstr "Pozwól i kontunuuj →"
|
901 |
+
|
902 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:14
|
903 |
+
msgid "Skip"
|
904 |
+
msgstr "Pomiń"
|
905 |
+
|
906 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:19
|
907 |
+
msgid "What permissions are being granted?"
|
908 |
+
msgstr "Jakie uprawnienia są przyznawane?"
|
909 |
+
|
910 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:26
|
911 |
+
msgid "Your Site Overview"
|
912 |
+
msgstr "Dane witryny"
|
913 |
+
|
914 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:27
|
915 |
+
msgid "Site URL, WP version, PHP info, admin email"
|
916 |
+
msgstr "URL strony, wersja WP, wersja PHP, email admina"
|
917 |
+
|
918 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:33
|
919 |
+
msgid "Plugin Usage"
|
920 |
+
msgstr "Dane użytkowania wtyczek"
|
921 |
+
|
922 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:34
|
923 |
+
msgid "Current settings and usage information of WP Desk plugins"
|
924 |
+
msgstr "Ustawienia i informacje o użytkowaniu wtyczek WP Desk"
|
925 |
+
|
926 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:40
|
927 |
+
msgid "Your Store Overview"
|
928 |
+
msgstr "Ustawienia i informacje o użytkowaniu wtyczek WP Desk"
|
929 |
+
|
930 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:41
|
931 |
+
msgid "Non-sensitive store usage information"
|
932 |
+
msgstr "Tylko niewrażliwe dane o użytkowaniu sklepu"
|
933 |
+
|
934 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:47
|
935 |
+
msgid "Admin Updates"
|
936 |
+
msgstr "Powiadomienia"
|
937 |
+
|
938 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:48
|
939 |
+
msgid "Announcements, updates, marketing, no spam and easy opt-out"
|
940 |
+
msgstr ""
|
941 |
+
"Ważne powiadomienia, uaktualnienia, marketing, żadnego spamu i łatwa "
|
942 |
+
"rezygnacja"
|
943 |
+
|
944 |
+
#: inc/wpdesk-tracker/views/tracker-connect.php:54
|
945 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:7
|
946 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:18
|
947 |
+
msgid "Find out more »"
|
948 |
+
msgstr "Dowiedz się więcej »"
|
949 |
+
|
950 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:3
|
951 |
+
#, php-format
|
952 |
+
msgid "You are deactivating %s plugin."
|
953 |
+
msgstr "Dezaktywowałeś wtyczkę %s."
|
954 |
+
|
955 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:9
|
956 |
+
msgid ""
|
957 |
+
" If you have a moment, please let us know why you are deactivating plugin "
|
958 |
+
"(anonymous feedback):"
|
959 |
+
msgstr ""
|
960 |
+
"Jeśli masz chwilę, prosimy daj nam znać dlaczego dezaktywowałeś wtyczkę "
|
961 |
+
"(anonimowa opinia):"
|
962 |
+
|
963 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:16
|
964 |
+
msgid "The plugin suddenly stopped working"
|
965 |
+
msgstr "Wtyczka nagle przestała działać"
|
966 |
+
|
967 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:24
|
968 |
+
msgid "The plugin broke my site"
|
969 |
+
msgstr "Wtyczka zepsuła moją stronę"
|
970 |
+
|
971 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:32
|
972 |
+
msgid "I found a better plugin"
|
973 |
+
msgstr "Znalazłem lepszą wtyczkę"
|
974 |
+
|
975 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:35
|
976 |
+
msgid "What's the plugin's name?"
|
977 |
+
msgstr "Jaka jest nazwa wtyczki?"
|
978 |
+
|
979 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:43
|
980 |
+
msgid "I only needed the plugin for a short period"
|
981 |
+
msgstr "Potrzebowałem wtyczki tylko przez krótki okres"
|
982 |
+
|
983 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:51
|
984 |
+
msgid "I no longer need the plugin"
|
985 |
+
msgstr "Nie potrzebuję już wtyczki"
|
986 |
+
|
987 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:59
|
988 |
+
msgid "It's a temporary deactivation. I'm just debugging an issue."
|
989 |
+
msgstr "Jest to tymczasowa dezaktywacja, debaguję problem"
|
990 |
+
|
991 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:67
|
992 |
+
msgid "Other"
|
993 |
+
msgstr "Inny"
|
994 |
+
|
995 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:70
|
996 |
+
msgid "Kindly tell us the reason so we can improve"
|
997 |
+
msgstr "Napisz nam powód abyśmy mogli go poprawić"
|
998 |
+
|
999 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:77
|
1000 |
+
msgid "Skip & Deactivate"
|
1001 |
+
msgstr "Pomiń i dezaktywuj"
|
1002 |
+
|
1003 |
+
#: inc/wpdesk-tracker/views/tracker-deactivate.php:92
|
1004 |
+
msgid "Submit & Deactivate"
|
1005 |
+
msgstr "Anuluj"
|
1006 |
+
|
1007 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:6
|
1008 |
+
msgid ""
|
1009 |
+
"Allow WP Desk to collect plugin usage information and <strong>get discount "
|
1010 |
+
"coupon</strong> in our shop. No sensitive data is tracked."
|
1011 |
+
msgstr ""
|
1012 |
+
"Pozwól WP Desk na zbieranie danych użytkowania wtyczek i <strong>otrzymaj "
|
1013 |
+
"kupon rabatowy</strong> do naszego sklepu. Żadne wrażliwe dane nie będą "
|
1014 |
+
"zbierane."
|
1015 |
+
|
1016 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:10
|
1017 |
+
#: inc/wpdesk-tracker/views/tracker-notice.php:21
|
1018 |
+
msgid "Allow"
|
1019 |
+
msgstr "Pozwól"
|
1020 |
+
|
1021 |
+
#: inc/wpdesk-tracker/views/tracker-opt-out-notice.php:3
|
1022 |
+
msgid ""
|
1023 |
+
"You successfully opted out of collecting usage data by WP Desk. If you "
|
1024 |
+
"change your mind, you can always opt in later in the plugin's quick links."
|
1025 |
+
msgstr ""
|
1026 |
+
"Twoja rezygnacja ze zbierania danych użytkowania wtyczek przez WP Desk "
|
1027 |
+
"została przyjęta. Jeśli zmienisz zdanie, zawsze możesz włączyć zgodę poprzez "
|
1028 |
+
"szybkie linki w menu wtyczek."
|
1029 |
+
|
1030 |
#. Plugin URI of the plugin/theme
|
1031 |
msgid "https://wordpress.org/plugins/flexible-shipping/"
|
1032 |
msgstr "https://pl.wordpress.org/plugins/flexible-shipping/"
|
1047 |
msgid "https://www.wpdesk.net/"
|
1048 |
msgstr "https://www.wpdesk.pl/"
|
1049 |
|
1050 |
+
#~ msgid "Integration "
|
1051 |
+
#~ msgstr "Integracja "
|
1052 |
+
|
1053 |
#~ msgid "Shipping method title is not set in row number %d."
|
1054 |
#~ msgstr "Tytuł metody wysyłki nie został ustawiony w wierszu %d."
|
1055 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Flexible Shipping for WooCommerce ===
|
2 |
-
Contributors: wpdesk, swoboda, jablonowski,
|
3 |
Donate link: https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -90,6 +90,7 @@ We provide a limited support for the free version in the [plugin Support Forum](
|
|
90 |
|
91 |
There are several integrations that we provide for Flexible Shipping in Poland:
|
92 |
|
|
|
93 |
* DHL - WooCommerce
|
94 |
* Paczkomaty InPost - WooCommerce
|
95 |
* eNadawca Poczta Polska - WooCommerce
|
@@ -153,6 +154,10 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
|
|
156 |
= 1.9.2 - 2017-06-07 =
|
157 |
* Added compatibility with WooCommerce InPost 3.4
|
158 |
|
1 |
=== Flexible Shipping for WooCommerce ===
|
2 |
+
Contributors: wpdesk, swoboda, jablonowski, barczakszymon, ospiotr
|
3 |
Donate link: https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.9.3
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
90 |
|
91 |
There are several integrations that we provide for Flexible Shipping in Poland:
|
92 |
|
93 |
+
* DPD - WooCommerce
|
94 |
* DHL - WooCommerce
|
95 |
* Paczkomaty InPost - WooCommerce
|
96 |
* eNadawca Poczta Polska - WooCommerce
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= 1.9.3 - 2017-06-13 =
|
158 |
+
* Added compatibility with WooCommerce DPD 1.0
|
159 |
+
* Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)
|
160 |
+
|
161 |
= 1.9.2 - 2017-06-07 =
|
162 |
* Added compatibility with WooCommerce InPost 3.4
|
163 |
|