Flexible Shipping for WooCommerce - Version 1.9.12

Version Description

  • 2017-12-22 =
  • Fixed generating empty zip file for labels with no shipment
  • Fixed some minor notices with WooCommerce 3.2.x
Download this release

Release Info

Developer wpdesk
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 1.9.12
Comparing to
See all releases

Code changes from version 1.9.11 to 1.9.12

assets/js/admin.js CHANGED
@@ -13,6 +13,7 @@ jQuery(document).ready(function(){
13
  url = fs_removeParam('bulk_flexible_shipping_labels', url);
14
  url = fs_removeParam('bulk_flexible_shipping_send', url);
15
  url = fs_removeParam('bulk_flexible_shipping_manifests', url);
 
16
  url = fs_trimChar(url,'?');
17
  if ( url != url2 ) {
18
  window.history.pushState({}, "", url);
13
  url = fs_removeParam('bulk_flexible_shipping_labels', url);
14
  url = fs_removeParam('bulk_flexible_shipping_send', url);
15
  url = fs_removeParam('bulk_flexible_shipping_manifests', url);
16
+ url = fs_removeParam('bulk_flexible_shipping_no_labels_created', url);
17
  url = fs_trimChar(url,'?');
18
  if ( url != url2 ) {
19
  window.history.pushState({}, "", url);
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){if(jQuery("#flexible_shipping_labels_url").length){window.location.href=jQuery("#flexible_shipping_labels_url").attr("href")}if(jQuery("a.shipping_manifest_download").length==1){window.location.href=jQuery("a.shipping_manifest_download").attr("href")}if(typeof window.history.pushState=="function"){var a=document.location.href;var b=document.location.href;a=fs_removeParam("bulk_flexible_shipping_labels",a);a=fs_removeParam("bulk_flexible_shipping_send",a);a=fs_removeParam("bulk_flexible_shipping_manifests",a);a=fs_trimChar(a,"?");if(a!=b){window.history.pushState({},"",a)}}});function fs_removeParam(b,d){var e=d.split("?")[0],f,c=[],g=(d.indexOf("?")!==-1)?d.split("?")[1]:"";if(g!==""){c=g.split("&");for(var a=c.length-1;a>=0;a-=1){f=c[a].split("=")[0];if(f===b){c.splice(a,1)}}e=e+"?"+c.join("&")}return e}function fs_trimChar(b,a){while(b.charAt(0)==a){b=b.substring(1)}while(b.charAt(b.length-1)==a){b=b.substring(0,b.length-1)}return b}function fs_id(a){return jQuery(a).closest(".flexible_shipping_shipment").attr("data-id")}function fs_data_set_val(c,a,f){if(typeof a=="undefined"){return c}if(a.indexOf("[")==-1){c[a]=f}else{var d=a.split("[");var g=c;var e=c;var b="";jQuery.each(d,function(i,h){b=h.replace("]","");if(typeof g[b]=="undefined"){g[b]={}}e=g;g=g[b]});e[b]=f}return c}function fs_ajax(a,e,d){jQuery(".button-shipping").attr("disabled",true);jQuery(a).parent().find(".spinner").css({visibility:"visible"});var c={};jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content input, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content select, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content textarea").each(function(){if(jQuery(this).attr("type")=="radio"){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery("#flexible_shipping_shipment_"+e+" input[name="+jQuery(this).attr("name")+"]:checked").val())}else{if(jQuery(this).attr("type")=="checkbox"){if(jQuery(this).is(":checked")){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}else{c=fs_data_set_val(c,jQuery(this).attr("name"),"")}}else{c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}}});var b=jQuery("#flexible_shipping_shipment_nonce_"+e).val();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").removeClass("flexible_shipping_shipment_message_error");jQuery.ajax({url:fs_admin.ajax_url,type:"POST",data:{fs_action:d,action:"flexible_shipping",nonce:b,shipment_id:e,data:c},dataType:"json"}).done(function(f){if(f){if(f=="0"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Invalid response: 0")}else{if(f.status=="success"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content").html(f.content);jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();if(typeof f.message!="undefined"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}else{jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}}else{jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: invalid method?")}}).always(function(){jQuery(".button-shipping").attr("disabled",false);jQuery(".shipping-spinner").parent().find(".spinner").css({visibility:"hidden"})}).fail(function(f,g){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: "+g+" "+f.status)})};
1
+ jQuery(document).ready(function(){if(jQuery("#flexible_shipping_labels_url").length){window.location.href=jQuery("#flexible_shipping_labels_url").attr("href")}if(jQuery("a.shipping_manifest_download").length==1){window.location.href=jQuery("a.shipping_manifest_download").attr("href")}if(typeof window.history.pushState=="function"){var a=document.location.href;var b=document.location.href;a=fs_removeParam("bulk_flexible_shipping_labels",a);a=fs_removeParam("bulk_flexible_shipping_send",a);a=fs_removeParam("bulk_flexible_shipping_manifests",a);a=fs_removeParam("bulk_flexible_shipping_no_labels_created",a);a=fs_trimChar(a,"?");if(a!=b){window.history.pushState({},"",a)}}});function fs_removeParam(b,d){var e=d.split("?")[0],f,c=[],g=(d.indexOf("?")!==-1)?d.split("?")[1]:"";if(g!==""){c=g.split("&");for(var a=c.length-1;a>=0;a-=1){f=c[a].split("=")[0];if(f===b){c.splice(a,1)}}e=e+"?"+c.join("&")}return e}function fs_trimChar(b,a){while(b.charAt(0)==a){b=b.substring(1)}while(b.charAt(b.length-1)==a){b=b.substring(0,b.length-1)}return b}function fs_id(a){return jQuery(a).closest(".flexible_shipping_shipment").attr("data-id")}function fs_data_set_val(c,a,f){if(typeof a=="undefined"){return c}if(a.indexOf("[")==-1){c[a]=f}else{var d=a.split("[");var g=c;var e=c;var b="";jQuery.each(d,function(i,h){b=h.replace("]","");if(typeof g[b]=="undefined"){g[b]={}}e=g;g=g[b]});e[b]=f}return c}function fs_ajax(a,e,d){jQuery(".button-shipping").attr("disabled",true);jQuery(a).parent().find(".spinner").css({visibility:"visible"});var c={};jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content input, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content select, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content textarea").each(function(){if(jQuery(this).attr("type")=="radio"){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery("#flexible_shipping_shipment_"+e+" input[name="+jQuery(this).attr("name")+"]:checked").val())}else{if(jQuery(this).attr("type")=="checkbox"){if(jQuery(this).is(":checked")){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}else{c=fs_data_set_val(c,jQuery(this).attr("name"),"")}}else{c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}}});var b=jQuery("#flexible_shipping_shipment_nonce_"+e).val();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").removeClass("flexible_shipping_shipment_message_error");jQuery.ajax({url:fs_admin.ajax_url,type:"POST",data:{fs_action:d,action:"flexible_shipping",nonce:b,shipment_id:e,data:c},dataType:"json"}).done(function(f){if(f){if(f=="0"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Invalid response: 0")}else{if(f.status=="success"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content").html(f.content);jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();if(typeof f.message!="undefined"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}else{jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}}else{jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: invalid method?")}}).always(function(){jQuery(".button-shipping").attr("disabled",false);jQuery(".shipping-spinner").parent().find(".spinner").css({visibility:"hidden"})}).fail(function(f,g){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: "+g+" "+f.status)})};
classes/bulk-actions.php CHANGED
@@ -247,12 +247,19 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
247
  return $columns;
248
  }
249
  $ret = array();
 
 
 
250
  foreach ( $columns as $key => $column ) {
251
- if ( $key == 'order_actions' ) {
252
  $ret['flexible_shipping'] = __( 'Shipping', 'flexible-shipping' );
 
253
  }
254
  $ret[$key] = $column;
255
  }
 
 
 
256
  return $ret;
257
  }
258
 
@@ -325,6 +332,11 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
325
  }
326
  $labels = apply_filters( 'flexible_shipping_bulk_label', $labels, $post_id );
327
  }
 
 
 
 
 
328
  $tmp_zip = tempnam ( 'tmp', 'labels_' ) . '.zip';
329
  $zip = new ZipArchive();
330
  if ( !$zip->open( $tmp_zip, ZIPARCHIVE::CREATE) ) {
@@ -435,21 +447,30 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
435
  }
436
  if ( ! empty( $_REQUEST['bulk_flexible_shipping_labels'] ) ) {
437
  $bulk_flexible_shipping_labels_count = intval( $_REQUEST['bulk_flexible_shipping_labels'] );
438
- if ( ! session_id() ) {
439
- session_start();
 
 
 
 
440
  }
441
- $labels = null;
442
- if ( isset( $_SESSION['flexible_shipping_bulk_labels'] ) ) {
443
- $labels = $_SESSION['flexible_shipping_bulk_labels'];
444
- unset( $_SESSION['flexible_shipping_bulk_labels'] );
 
 
 
 
 
 
 
 
 
 
 
 
445
  }
446
- if ( is_array( $labels ) ) {
447
- $nonce = wp_create_nonce('flexible_shipping_labels');
448
- printf('<div id="message" class="updated fade"><p>' .
449
- __('Bulk labels - processed orders: %d. If download not start automatically click %shere%s.', 'flexible-shipping') .
450
- '</p></div>', $bulk_flexible_shipping_labels_count, '<a id="flexible_shipping_labels_url" target="_blank" href=' . admin_url('?flexible_shipping_labels=' . basename($labels['tmp_zip']) . '&nonce=' . $nonce) . '>', '</a>'
451
- );
452
- }
453
  }
454
  if ( ! empty( $_REQUEST['bulk_flexible_shipping_manifests'] ) ) {
455
  $bulk_flexible_shipping_manifest_count = intval( $_REQUEST['bulk_flexible_shipping_manifests'] );
247
  return $columns;
248
  }
249
  $ret = array();
250
+
251
+ $col_added = false;
252
+
253
  foreach ( $columns as $key => $column ) {
254
+ if ( !$col_added && ( $key == 'order_actions' || $key == 'wc_actions' ) ) {
255
  $ret['flexible_shipping'] = __( 'Shipping', 'flexible-shipping' );
256
+ $col_added = true;
257
  }
258
  $ret[$key] = $column;
259
  }
260
+ if ( !$col_added ) {
261
+ $ret['flexible_shipping'] = __( 'Shipping', 'flexible-shipping' );
262
+ }
263
  return $ret;
264
  }
265
 
332
  }
333
  $labels = apply_filters( 'flexible_shipping_bulk_label', $labels, $post_id );
334
  }
335
+ if ( count( $labels ) == 0 ) {
336
+ $redirect_to = add_query_arg( 'bulk_flexible_shipping_labels', count( $post_ids ), $redirect_to );
337
+ $redirect_to = add_query_arg( 'bulk_flexible_shipping_no_labels_created', 1, $redirect_to );
338
+ return $redirect_to;
339
+ }
340
  $tmp_zip = tempnam ( 'tmp', 'labels_' ) . '.zip';
341
  $zip = new ZipArchive();
342
  if ( !$zip->open( $tmp_zip, ZIPARCHIVE::CREATE) ) {
447
  }
448
  if ( ! empty( $_REQUEST['bulk_flexible_shipping_labels'] ) ) {
449
  $bulk_flexible_shipping_labels_count = intval( $_REQUEST['bulk_flexible_shipping_labels'] );
450
+ if ( ! empty( $_REQUEST['bulk_flexible_shipping_no_labels_created'] ) ) {
451
+ $nonce = wp_create_nonce( 'flexible_shipping_labels' );
452
+ printf( '<div id="message" class="updated fade"><p>' .
453
+ __( 'Bulk labels - processed orders: %d. No labels for processed orders.', 'flexible-shipping' ) .
454
+ '</p></div>', $bulk_flexible_shipping_labels_count
455
+ );
456
  }
457
+ else {
458
+ if ( ! session_id() ) {
459
+ session_start();
460
+ }
461
+ $labels = null;
462
+ if ( isset( $_SESSION['flexible_shipping_bulk_labels'] ) ) {
463
+ $labels = $_SESSION['flexible_shipping_bulk_labels'];
464
+ unset( $_SESSION['flexible_shipping_bulk_labels'] );
465
+ }
466
+ if ( is_array( $labels ) ) {
467
+ $nonce = wp_create_nonce( 'flexible_shipping_labels' );
468
+ printf( '<div id="message" class="updated fade"><p>' .
469
+ __( 'Bulk labels - processed orders: %d. If download not start automatically click %shere%s.', 'flexible-shipping' ) .
470
+ '</p></div>', $bulk_flexible_shipping_labels_count, '<a id="flexible_shipping_labels_url" target="_blank" href=' . admin_url( '?flexible_shipping_labels=' . basename( $labels['tmp_zip'] ) . '&nonce=' . $nonce ) . '>', '</a>'
471
+ );
472
+ }
473
  }
 
 
 
 
 
 
 
474
  }
475
  if ( ! empty( $_REQUEST['bulk_flexible_shipping_manifests'] ) ) {
476
  $bulk_flexible_shipping_manifest_count = intval( $_REQUEST['bulk_flexible_shipping_manifests'] );
classes/order-add-shipping.php CHANGED
@@ -42,6 +42,7 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Add_Shipping' ) ) {
42
  $shipment->admin_add_shipment();
43
  $shipment->save();
44
  }
 
45
  $this->shipping_added = true;
46
  }
47
  }
42
  $shipment->admin_add_shipment();
43
  $shipment->save();
44
  }
45
+ $order->add_order_note( sprintf( __( 'Added new shipment via metabox. Shipment ID: %s', 'flexible-shipping' ), $shipment->get_id() ) );
46
  $this->shipping_added = true;
47
  }
48
  }
classes/shipping_method.php CHANGED
@@ -734,7 +734,14 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping' ) ) {
734
 
735
  $contents_cost = 0;
736
  if ( WC()->cart->prices_include_tax ) {
737
- $contents_cost = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes );
 
 
 
 
 
 
 
738
  }
739
  else {
740
  $contents_cost = WC()->cart->cart_contents_total;
734
 
735
  $contents_cost = 0;
736
  if ( WC()->cart->prices_include_tax ) {
737
+ $taxes = array();
738
+ if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
739
+ $taxes = WC()->cart->taxes;
740
+ }
741
+ else {
742
+ $taxes = WC()->cart->get_cart_contents_taxes();
743
+ }
744
+ $contents_cost = WC()->cart->get_cart_contents_total() + array_sum( $taxes );
745
  }
746
  else {
747
  $contents_cost = WC()->cart->cart_contents_total;
flexible-shipping.php CHANGED
@@ -3,7 +3,7 @@
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.11
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
@@ -11,7 +11,7 @@
11
  Requires at least: 4.5
12
  Tested up to: 4.9
13
  WC requires at least: 2.6.14
14
- WC tested up to: 3.2.4
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
@@ -57,7 +57,7 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) && !class_exists(
57
 
58
  class WPDesk_Flexible_Shipping_Free_Plugin extends inspire_Plugin4 {
59
 
60
- private $scripts_version = '36';
61
 
62
  protected $_pluginNamespace = "flexible-shipping";
63
 
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.12
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
11
  Requires at least: 4.5
12
  Tested up to: 4.9
13
  WC requires at least: 2.6.14
14
+ WC tested up to: 3.2.6
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
57
 
58
  class WPDesk_Flexible_Shipping_Free_Plugin extends inspire_Plugin4 {
59
 
60
+ private $scripts_version = '37';
61
 
62
  protected $_pluginNamespace = "flexible-shipping";
63
 
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-10-10 11:53+0200\n"
5
- "PO-Revision-Date: 2017-10-10 11:53+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.4\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 "
@@ -82,7 +82,7 @@ msgstr "Nie wykonano żdanych działań."
82
  msgid "Label downloaded."
83
  msgstr "Etykieta została pobrana."
84
 
85
- #: classes/bulk-actions.php:331
86
  msgid ""
87
  "Unable to create temporary zip archive for labels. Check temporary folder "
88
  "configuration on server."
@@ -90,7 +90,7 @@ msgstr ""
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,21 +99,28 @@ msgstr ""
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,7 +129,7 @@ msgstr ""
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"
@@ -139,15 +146,15 @@ msgstr ""
139
  msgid "An unknown error occurred"
140
  msgstr "Wystąpił nieznany błąd"
141
 
142
- #: classes/inspire/plugin4.php:386 flexible-shipping.php:534
143
  msgid "Settings"
144
  msgstr "Ustawienia"
145
 
146
- #: classes/inspire/plugin4.php:387 flexible-shipping.php:535
147
  msgid "Docs"
148
  msgstr "Docs"
149
 
150
- #: classes/inspire/plugin4.php:388 flexible-shipping.php:536
151
  msgid "Support"
152
  msgstr "Wsparcie"
153
 
@@ -281,8 +288,8 @@ msgstr "Dodaj przesyłkę"
281
  #: classes/settings-flexible-shipping.php:30
282
  #: classes/settings-shipping-method-form.php:57 classes/shipping_method.php:24
283
  #: classes/shipping_method.php:25 classes/shipping_method.php:43
284
- #: flexible-shipping.php:416 flexible-shipping.php:419
285
- #: flexible-shipping.php:422
286
  msgid "Flexible Shipping"
287
  msgstr "Flexible Shipping"
288
 
@@ -849,23 +856,23 @@ msgstr "Proszę wybrać metody wysyłki do usunięcia"
849
  msgid "Select file to import"
850
  msgstr "Wybierz plik do importu"
851
 
852
- #: flexible-shipping.php:456
853
  msgid ""
854
  "Flexible Shipping requires at least version 2.7 of Active Payments plugin."
855
  msgstr ""
856
  "Flexible Shipping wymaga wtyczki Aktywne płatności w wersji co najmniej 2.7."
857
 
858
- #: flexible-shipping.php:467
859
  msgid "Flexible Shipping requires at least version 1.2 of eNadawca plugin."
860
  msgstr "Flexible Shipping wymaga wtyczki eNadawca w wersji co najmniej 1.2."
861
 
862
- #: flexible-shipping.php:478
863
  msgid ""
864
  "Flexible Shipping requires at least version 1.1 of Paczka w Ruchu plugin."
865
  msgstr ""
866
  "Flexible Shipping wymaga wtyczki Paczka w Ruchu w wersji co najmniej 1.1."
867
 
868
- #: flexible-shipping.php:486
869
  #, php-format
870
  msgid ""
871
  "You are using WooCommerce Flexible Shipping below 1.4. Please deactivate it "
@@ -876,11 +883,11 @@ msgstr ""
876
  "Wyłącz go na %sstronie wtyczek%s. Przeczytaj o dużej zmianie we Flexible "
877
  "Shipping na %snaszym blogu →%s"
878
 
879
- #: flexible-shipping.php:542
880
  msgid "Upgrade"
881
  msgstr "Kup PRO"
882
 
883
- #: flexible-shipping.php:658
884
  #, php-format
885
  msgid "Redirecting. If page not redirects click %s here %s."
886
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Flexible Shipping\n"
4
+ "POT-Creation-Date: 2017-12-07 12:40+0100\n"
5
+ "PO-Revision-Date: 2017-12-07 12:41+0100\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-shipping.php\n"
15
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
82
  msgid "Label downloaded."
83
  msgstr "Etykieta została pobrana."
84
 
85
+ #: classes/bulk-actions.php:336
86
  msgid ""
87
  "Unable to create temporary zip archive for labels. Check temporary folder "
88
  "configuration on server."
90
  "Nie można utworzyć tymczasowego archwium zip dla etykiet. Sprawdź "
91
  "konfigurację folderu na serwerze."
92
 
93
+ #: classes/bulk-actions.php:400
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:412
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:423
108
  msgid "No manifests created."
109
  msgstr "Nie zostały utworzone protokoły nadania."
110
 
111
+ #: classes/bulk-actions.php:437
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:446
117
+ #, php-format
118
+ msgid "Bulk labels - processed orders: %d. No labels for processed orders."
119
+ msgstr ""
120
+ "Masowe pobieranie etykiet - przetworzone zamówienia: %d. Brak etykiet dla "
121
+ "przetworzonych zamówień."
122
+
123
+ #: classes/bulk-actions.php:462
124
  #, php-format
125
  msgid ""
126
  "Bulk labels - processed orders: %d. If download not start automatically "
129
  "Masowe pobieranie etykiet - przetworzone zamówienia: %d. Jeśli pobieranie "
130
  "nie rozpoczęło się automatycznie kliknij %stutaj%s ."
131
 
132
+ #: classes/bulk-actions.php:471
133
  #, php-format
134
  msgid "Bulk shipping manifest - processed orders: %d"
135
  msgstr "Zbiorcze tworzenie protokołów nadania - przetworzone zamówienia: %d"
146
  msgid "An unknown error occurred"
147
  msgstr "Wystąpił nieznany błąd"
148
 
149
+ #: classes/inspire/plugin4.php:386 flexible-shipping.php:541
150
  msgid "Settings"
151
  msgstr "Ustawienia"
152
 
153
+ #: classes/inspire/plugin4.php:387 flexible-shipping.php:542
154
  msgid "Docs"
155
  msgstr "Docs"
156
 
157
+ #: classes/inspire/plugin4.php:388 flexible-shipping.php:543
158
  msgid "Support"
159
  msgstr "Wsparcie"
160
 
288
  #: classes/settings-flexible-shipping.php:30
289
  #: classes/settings-shipping-method-form.php:57 classes/shipping_method.php:24
290
  #: classes/shipping_method.php:25 classes/shipping_method.php:43
291
+ #: flexible-shipping.php:423 flexible-shipping.php:426
292
+ #: flexible-shipping.php:429
293
  msgid "Flexible Shipping"
294
  msgstr "Flexible Shipping"
295
 
856
  msgid "Select file to import"
857
  msgstr "Wybierz plik do importu"
858
 
859
+ #: flexible-shipping.php:463
860
  msgid ""
861
  "Flexible Shipping requires at least version 2.7 of Active Payments plugin."
862
  msgstr ""
863
  "Flexible Shipping wymaga wtyczki Aktywne płatności w wersji co najmniej 2.7."
864
 
865
+ #: flexible-shipping.php:474
866
  msgid "Flexible Shipping requires at least version 1.2 of eNadawca plugin."
867
  msgstr "Flexible Shipping wymaga wtyczki eNadawca w wersji co najmniej 1.2."
868
 
869
+ #: flexible-shipping.php:485
870
  msgid ""
871
  "Flexible Shipping requires at least version 1.1 of Paczka w Ruchu plugin."
872
  msgstr ""
873
  "Flexible Shipping wymaga wtyczki Paczka w Ruchu w wersji co najmniej 1.1."
874
 
875
+ #: flexible-shipping.php:493
876
  #, php-format
877
  msgid ""
878
  "You are using WooCommerce Flexible Shipping below 1.4. Please deactivate it "
883
  "Wyłącz go na %sstronie wtyczek%s. Przeczytaj o dużej zmianie we Flexible "
884
  "Shipping na %snaszym blogu →%s"
885
 
886
+ #: flexible-shipping.php:549
887
  msgid "Upgrade"
888
  msgstr "Kup PRO"
889
 
890
+ #: flexible-shipping.php:674
891
  #, php-format
892
  msgid "Redirecting. If page not redirects click %s here %s."
893
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk, swoboda
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.5
6
- Tested up to: 4.9
7
- Stable tag: 1.9.11
8
  Requires PHP: 5.3
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -165,6 +165,10 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
165
 
166
  == Changelog ==
167
 
 
 
 
 
168
  = 1.9.11 - 2017-11-20 =
169
  * Fixed shipment filtering for shipping integrations
170
  * Fixed saving decimal values for free shipping
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.5
6
+ Tested up to: 4.9.1
7
+ Stable tag: 1.9.12
8
  Requires PHP: 5.3
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
165
 
166
  == Changelog ==
167
 
168
+ = 1.9.12 - 2017-12-22 =
169
+ * Fixed generating empty zip file for labels with no shipment
170
+ * Fixed some minor notices with WooCommerce 3.2.x
171
+
172
  = 1.9.11 - 2017-11-20 =
173
  * Fixed shipment filtering for shipping integrations
174
  * Fixed saving decimal values for free shipping