Version Description
- 2019-02-12 =
- Fixed error handling on bulk labels generation
- Fixed polish translation for Create
Download this release
Release Info
Developer | jablonowski |
Plugin | Flexible Shipping for WooCommerce |
Version | 3.1.8 |
Comparing to | |
See all releases |
Code changes from version 3.1.7 to 3.1.8
- ab-tests.php +0 -32
- assets/css/admin.css +0 -1
- assets/css/admin.min.css +1 -1
- classes/abtests/ab-menu-test/class-ab-variant-old.php +20 -0
- classes/abtests/ab-menu-test/class-ab-variant-with-menu.php +21 -0
- classes/abtests/ab-menu-test/class-ab-variant-without-menu.php +20 -0
- classes/abtests/ab-message-test/class-ab-variant-both-messages.php +0 -10
- classes/abtests/ab-message-test/class-ab-variant-connect-no-tracker.php +0 -10
- classes/abtests/ab-message-test/class-ab-variant-no-connect-tracker.php +0 -9
- classes/abtests/ab-message-test/class-ab-variant-no-messages.php +0 -10
- classes/abtests/ab-message-test/class-ab-variant-old.php +0 -5
- classes/abtests/class-ab-menu-page.php +107 -0
- classes/abtests/{class-ab-message-test.php → class-ab-menu-test.php} +20 -34
- classes/abtests/class-ab-plugin-activation.php +0 -47
- classes/abtests/class-tracker-button.php +0 -79
- classes/bulk-actions.php +18 -12
- classes/class-flexible-shipping-plugin.php +12 -12
- classes/saas/class-saas-settings.php +54 -5
- classes/saas/class-saas-shipping-services-manager.php +3 -5
- classes/saas/class-saas-user-registration.php +0 -5
- classes/saas/views/html-flexible-shipping-connect-notice.php +2 -0
- classes/saas/views/html-settings-connect-script.php +3 -0
- classes/saas/views/html-shipping-method-info-description-body.php +45 -0
- classes/saas/views/html-shipping-method-info-description.php +5 -74
- classes/shipment/saas/class-shipment-saas-send.php +42 -1
- classes/tracker.php +0 -42
- classes/views/html-menu-icon.php +15 -0
- flexible-shipping.php +3 -6
- inc/wpdesk-tracker/views/tracker-notice.php +2 -2
- lang/flexible-shipping-pl_PL.mo +0 -0
- lang/flexible-shipping-pl_PL.po +112 -101
- readme.txt +6 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +5 -8
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +9 -12
ab-tests.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
} // Exit if accessed directly
|
6 |
-
|
7 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-persistence/src/PersistentContainer.php';
|
8 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-persistence/src/ElementNotExistsException.php';
|
9 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-persistence/src/Wordpress/WordpressOptionsContainer.php';
|
10 |
-
|
11 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-abtesting/src/ABTest.php';
|
12 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-abtesting/src/ABVariant.php';
|
13 |
-
|
14 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-abtesting/src/ABVariant/BasicABVariant.php';
|
15 |
-
require_once __DIR__ . '/vendor/wpdesk/wp-abtesting/src/ABTest/EqualGroupsRandomABTest.php';
|
16 |
-
|
17 |
-
require_once __DIR__ . '/classes/abtests/ab-message-test/class-ab-variant-both-messages.php';
|
18 |
-
require_once __DIR__ . '/classes/abtests/ab-message-test/class-ab-variant-connect-no-tracker.php';
|
19 |
-
require_once __DIR__ . '/classes/abtests/ab-message-test/class-ab-variant-no-connect-tracker.php';
|
20 |
-
require_once __DIR__ . '/classes/abtests/ab-message-test/class-ab-variant-no-messages.php';
|
21 |
-
require_once __DIR__ . '/classes/abtests/ab-message-test/class-ab-variant-old.php';
|
22 |
-
|
23 |
-
require_once __DIR__ . '/classes/abtests/class-ab-message-test.php';
|
24 |
-
require_once __DIR__ . '/classes/abtests/class-ab-plugin-activation.php';
|
25 |
-
require_once __DIR__ . '/classes/abtests/class-tracker-button.php';
|
26 |
-
|
27 |
-
$activationAB = new WPDesk_Flexible_Shipping_AB_PluginActivation( ( new WPDesk_Flexible_Shipping_AB_MessageTest() )->get_variant() );
|
28 |
-
$activationAB->hooks();
|
29 |
-
|
30 |
-
|
31 |
-
$trackerButton = new WPDesk_Flexible_Shipping_Tracker_Button();
|
32 |
-
$trackerButton->hooks();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/admin.css
CHANGED
@@ -640,7 +640,6 @@ input.woocommerce_flexible_shipping_service_name {
|
|
640 |
.fs-page-wrap {
|
641 |
margin: 0 auto;
|
642 |
max-width: 45rem;
|
643 |
-
padding: 1.5rem;
|
644 |
}
|
645 |
|
646 |
.fs-page-wrap h1 {
|
640 |
.fs-page-wrap {
|
641 |
margin: 0 auto;
|
642 |
max-width: 45rem;
|
|
|
643 |
}
|
644 |
|
645 |
.fs-page-wrap h1 {
|
assets/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
table.flexible_shipping_methods th.select,table.flexible_shipping_methods td.select{text-align:center;width:40px;margin-top:-7px;margin-left:-6px;padding:2px}table.flexible_shipping_methods .checkbox-select-all{margin:0 12px 0 8px}table.flexible_shipping_methods th.integration,table.flexible_shipping_methods td.integration{text-align:center;width:130px}table.flexible_shipping_methods tr.highlight td{background-color:#e4f2fd}table.flexible_shipping_methods.wc_shipping th{font-weight:400;width:auto}table.flexible_shipping_methods td.ui-sortable-handle:before,table.flexible_shipping_services td.ui-sortable-handle:before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}table.flexible_shipping_method_rules th,table.flexible_shipping_method_rules th{padding:5px 10px 5px 0}table.flexible_shipping_method_rules td p,table.flexible_shipping_method_rules td p input,table.flexible_shipping_method_rules td p select{margin:0;width:100%;box-shadow:none;padding:0 !important}table.flexible_shipping_method_rules td p input[type=text]{text-align:right;padding:0 5px 0 5px !important;width:100% !important}table.flexible_shipping_method_rules td p select{margin:0;width:100% !important;box-shadow:none;line-height:28px;height:37px;vertical-align:middle}table.flexible_shipping_method_rules td p input[type=checkbox]{margin:0;width:auto}table.flexible_shipping_method_rules th,table.flexible_shipping_method_rules td{text-align:center}table.flexible_shipping_method_rules th.shipping_class,table.flexible_shipping_method_rules td.shipping_class{text-align:center;width:200px}table.flexible_shipping_method_rules td.shipping_class span{border:0}table.flexible_shipping_method_rules th.stop,table.flexible_shipping_method_rules td.stop{text-align:center;width:30px}table.flexible_shipping_method_rules th.cancel,table.flexible_shipping_method_rules td.cancel{text-align:center;width:60px}.woocommerce table.form-table .flexible_shipping_method_rules th span.woocommerce-help-tip{float:none;margin:0}.woocommerce table.form-table .flexible_shipping_method_rules .select2-container{margin:0}.woocommerce table.form-table .fs-locations-table .select2-container{max-width:none}.woocommerce table.form-table .fs-locations-table th .woocommerce-help-tip{float:none}div.flexilble_shipping_export_import{float:right}table.flexible_shipping_method_rules tfoot th{padding:10px}.woocommerce_page_wc-settings #mainform{position:relative}.flexible-shipping-pro-box{max-width:280px;min-width:180px;right:0;position:absolute;top:135px}@media screen and (max-width:1199px){.flexible-shipping-pro-box{display:none}}.column-flexible_shipping{width:130px}.column-flexible_shipping .shipping-status{float:left;margin-right:8px;margin-top:4px;text-align:left;width:18px}.column-flexible_shipping .shipping-status .created:after{color:#d0c21f !important}.column-flexible_shipping .shipping-actions a.button{float:left;margin:0 4px 2px 0;display:block;height:2em !important;padding:0 !important;position:relative;text-indent:-9999px;width:2em}.column-flexible_shipping .shipping-actions a.button:after{font-family:WooCommerce;font-variant:normal;font-weight:400;height:100%;left:0;line-height:1.85;margin:0;position:absolute;text-align:center;text-indent:0;text-transform:none;top:0;width:100%}.column-flexible_shipping .shipping-actions a.button.get-label:after{content:"\e01e"}.column-flexible_shipping .shipping-actions a.button.track:after{content:"\e01b"}.column-flexible_shipping mark.failed:after{color:#a00 !important}.column-flexible_shipping mark.manifest:after{color:#2ea2cc !important}.flexible_shipping_shipment_message{color:green}.flexible_shipping_shipment_message_error{color:#a00}.flexible_shipping_shipment_message_error span{color:#444;font-weight:bold}.wp-admin select{height:100%}.button.flexible-printing-button-print{height:auto !important;white-space:normal !important;word-wrap:break-word !important}.inspire-settings{display:table;width:100%}.inspire-settings .inspire-main-content,.inspire-settings .inspire-sidebar{display:table-cell;height:500px;margin:0;padding:0;vertical-align:top}.inspire-settings .inspire-main-content{min-width:800px}.inspire-settings .inspire-sidebar{padding-left:30px;width:250px}.flexible-shipping-info ol{margin-top:0}#wpbody-content .flexible-shipping-info .metabox-holder{padding-top:0}#adminmenu #toplevel_page_flexible-shipping .menu-icon-generic div.wp-menu-image::before{font-family:WooCommerce !important;content:'\e01d'}.fs-new-service{color:#006799}span.flexible_shipping_saas_connection_error{color:#a00;font-weight:bold}.fs-order-item-fallback{margin-top:.5em;color:#888}.flexible_shipping_shipment_content p select{max-width:95%}.flexible_shipping_shipment_content span.description{display:block}.fs-saas-button-cancel-created{float:right;color:#a00;margin-top:5px}.fs-saas-button-cancel-created:hover{color:#a00;cursor:pointer}.flexible_shipping_shipment_content input[type=checkbox]{float:left;margin-right:5px;margin-top:2px !important;opacity:1;border-color:#888}.flexible_shipping_shipment_content input[type=checkbox]:disabled{opacity:.7;border-color:rgba(51,51,51,0.5)}.flexible_shipping_shipment_content p.fs-saas-status span{font-weight:bold;color:#444}.flexible_shipping_shipment_content p.fs-saas-status-fs-new{color:#ffba00}.flexible_shipping_shipment_content p.fs-saas-status-fs-created{color:#d0c21f}.flexible_shipping_shipment_content p.fs-saas-status-fs-confirmed{color:#444}.flexible_shipping_shipment_content p.fs-saas-status-fs-failed{color:#a00}.flexible_shipping_shipment_content p.fs-saas-status-fs-manifest{color:#2ea2cc}.flexible_shipping_shipment_content p.connection-error{font-weight:bold;color:#a00}.fs-saas-shipment span{font-weight:bold}.fs-saas-labels-counts span{font-weight:bold}.fs-saas-no-labels-left{color:#a00}table.flexible_shipping_services{max-width:550px}table.flexible_shipping_services .sort{width:1%}table.flexible_shipping_services .service_code{width:30px}table.flexible_shipping_services .select{text-align:center;width:1%}table.flexible_shipping_services .select input{margin:0 8px 0 8px}.woocommerce table.form-table table.flexible_shipping_services td.service_name input{width:100%}input.woocommerce_flexible_shipping_service_name{width:100%}.updated .fs-banner__button-container{padding:.75rem 0 0}.notice-info.fs-connect__container{border-left:0;padding:0;box-shadow:0 0 0 1px #dfdfdf,0 1px 2px #dfdfdf}@media screen and (max-width:782px){.notice-info.fs-connect__container{padding:0 !important}}.fs-connect__container{display:block;position:relative;box-sizing:border-box}.fs-connect__inner-container>a:first-child{z-index:1}.fs-connect__inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:left;justify-content:left}.fs-connect__content-container{width:1250px;position:relative;padding:2rem;z-index:0}@media(min-width:782px){.fs-connect__content-container{padding:2rem 2rem 4rem 2rem}}.fs-connect__content-container p{color:#555;font-size:.875rem}.fs-connect__content-container h2{margin-top:0;color:#555;line-height:1.6}.fs-connect__content-icon{float:right;margin:0 1.5rem 0 2.25rem}.fs-connect__content-icon svg{fill:#0085ba;height:180px;width:auto}@media(max-width:782px){.fs-connect__content-icon.fs-connect-illo{float:none;width:100%;text-align:center;margin:2.25rem 0 1.5rem}}.fs-connect__slide{display:none}.fs-connect__slide.fs__slide-is-active{display:block}@media(min-width:782px){.fs-connect__content-container .fs-banner__button-container{position:absolute;bottom:.5rem}}.fs-banner__button-container .button-primary{margin:0 .3125rem .3125rem 0}.fs-connect__vertical-nav{background-color:#f1f1f1}@media(min-width:600px){.fs-connect__vertical-nav{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}}@media(max-width:600px){.fs-connect__vertical-nav{display:none}}.fs-connect__vertical-nav-container{width:15rem}.vertical-menu__feature-item-label{display:none}@media(min-width:600px){.vertical-menu__feature-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:0;padding:.5rem;border-bottom:1px solid #dfdfdf;border-right:1px solid #dfdfdf;border-left:3px solid #f9f9f9;background-color:#f9f9f9;color:#555;cursor:pointer}.vertical-menu__feature-item:last-of-type{position:relative;top:1px}.vertical-menu__feature-item-is-selected{border-left:3px solid #0085ba;border-right:1px solid #fff;background-color:#fff;color:#2e4453}.vertical-menu__feature-item-is-selected.fs-feature-intro{border-left:3px solid #00be28}.vertical-menu__feature-item-icon{width:1.25rem;height:1.25rem;padding:.25rem;text-align:center}.vertical-menu__feature-item svg{fill:#555;vertical-align:middle}.vertical-menu__feature-item-is-selected svg{fill:#0085ba}.vertical-menu__feature-item-label{display:block;padding:.5rem}}.fs-couriers{margin-top:2.5em}.fs-courier{position:relative;margin-bottom:2.5em;text-align:center}.fs-courier img{height:50px;width:auto}.fs-courier-label{background-color:#333;border-radius:3px;color:#fff;padding:0 4px 1px;position:absolute;right:0;top:-10px}@media(min-width:1200px){.fs-couriers{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.fs-courier{width:20%}}.admin_page_flexible_shipping_connect_register .notice.is-dismissible,.admin_page_flexible_shipping_connect_register .update-nag,.admin_page_flexible_shipping_connect_register .updated,.admin_page_flexible_shipping_connect_register .settings-error{display:none !important}.fs-page-wrap{margin:0 auto;max-width:45rem;padding:1.5rem}.fs-page-wrap h1{font-weight:normal;margin-bottom:.67em;text-align:center}.fs-box{display:block;position:relative;margin:0 auto 20px;padding:16px;box-sizing:border-box;background:white;box-shadow:0 0 0 1px #dfdfdf,0 1px 2px #dfdfdf}.fs-box:after{content:".";display:block;height:0;clear:both;visibility:hidden}.admin_page_flexible_shipping_connect_register .fs-box,.fs-box.text-center{text-align:center}.admin_page_flexible_shipping_connect_register .fs-box p{margin:1.5em 0}.fs-box input[type="email"]{padding:8px 10px}.fs-actions{padding-left:40px}.fs-actions button:active{vertical-align:inherit !important}.fs-actions .spinner{float:none;margin-top:0}.fs-cols{display:flex;flex-wrap:wrap;justify-content:space-between}.fs-inner-box{box-sizing:border-box;margin-top:30px;padding:0 20px}.fs-inner-box h4{font-size:1.2em;margin-bottom:.37em}.fs-inner-box svg{fill:#0085ba;height:70px;width:auto}@media(min-width:600px){.fs-inner-box{width:33.33%}}
|
1 |
+
table.flexible_shipping_methods th.select,table.flexible_shipping_methods td.select{text-align:center;width:40px;margin-top:-7px;margin-left:-6px;padding:2px}table.flexible_shipping_methods .checkbox-select-all{margin:0 12px 0 8px}table.flexible_shipping_methods th.integration,table.flexible_shipping_methods td.integration{text-align:center;width:130px}table.flexible_shipping_methods tr.highlight td{background-color:#e4f2fd}table.flexible_shipping_methods.wc_shipping th{font-weight:400;width:auto}table.flexible_shipping_methods td.ui-sortable-handle:before,table.flexible_shipping_services td.ui-sortable-handle:before{content:'\f333';font-family:Dashicons;text-align:center;line-height:1;color:#999;display:block;width:17px;float:left;height:100%;line-height:24px}table.flexible_shipping_method_rules th,table.flexible_shipping_method_rules th{padding:5px 10px 5px 0}table.flexible_shipping_method_rules td p,table.flexible_shipping_method_rules td p input,table.flexible_shipping_method_rules td p select{margin:0;width:100%;box-shadow:none;padding:0 !important}table.flexible_shipping_method_rules td p input[type=text]{text-align:right;padding:0 5px 0 5px !important;width:100% !important}table.flexible_shipping_method_rules td p select{margin:0;width:100% !important;box-shadow:none;line-height:28px;height:37px;vertical-align:middle}table.flexible_shipping_method_rules td p input[type=checkbox]{margin:0;width:auto}table.flexible_shipping_method_rules th,table.flexible_shipping_method_rules td{text-align:center}table.flexible_shipping_method_rules th.shipping_class,table.flexible_shipping_method_rules td.shipping_class{text-align:center;width:200px}table.flexible_shipping_method_rules td.shipping_class span{border:0}table.flexible_shipping_method_rules th.stop,table.flexible_shipping_method_rules td.stop{text-align:center;width:30px}table.flexible_shipping_method_rules th.cancel,table.flexible_shipping_method_rules td.cancel{text-align:center;width:60px}.woocommerce table.form-table .flexible_shipping_method_rules th span.woocommerce-help-tip{float:none;margin:0}.woocommerce table.form-table .flexible_shipping_method_rules .select2-container{margin:0}.woocommerce table.form-table .fs-locations-table .select2-container{max-width:none}.woocommerce table.form-table .fs-locations-table th .woocommerce-help-tip{float:none}div.flexilble_shipping_export_import{float:right}table.flexible_shipping_method_rules tfoot th{padding:10px}.woocommerce_page_wc-settings #mainform{position:relative}.flexible-shipping-pro-box{max-width:280px;min-width:180px;right:0;position:absolute;top:135px}@media screen and (max-width:1199px){.flexible-shipping-pro-box{display:none}}.column-flexible_shipping{width:130px}.column-flexible_shipping .shipping-status{float:left;margin-right:8px;margin-top:4px;text-align:left;width:18px}.column-flexible_shipping .shipping-status .created:after{color:#d0c21f !important}.column-flexible_shipping .shipping-actions a.button{float:left;margin:0 4px 2px 0;display:block;height:2em !important;padding:0 !important;position:relative;text-indent:-9999px;width:2em}.column-flexible_shipping .shipping-actions a.button:after{font-family:WooCommerce;font-variant:normal;font-weight:400;height:100%;left:0;line-height:1.85;margin:0;position:absolute;text-align:center;text-indent:0;text-transform:none;top:0;width:100%}.column-flexible_shipping .shipping-actions a.button.get-label:after{content:"\e01e"}.column-flexible_shipping .shipping-actions a.button.track:after{content:"\e01b"}.column-flexible_shipping mark.failed:after{color:#a00 !important}.column-flexible_shipping mark.manifest:after{color:#2ea2cc !important}.flexible_shipping_shipment_message{color:green}.flexible_shipping_shipment_message_error{color:#a00}.flexible_shipping_shipment_message_error span{color:#444;font-weight:bold}.wp-admin select{height:100%}.button.flexible-printing-button-print{height:auto !important;white-space:normal !important;word-wrap:break-word !important}.inspire-settings{display:table;width:100%}.inspire-settings .inspire-main-content,.inspire-settings .inspire-sidebar{display:table-cell;height:500px;margin:0;padding:0;vertical-align:top}.inspire-settings .inspire-main-content{min-width:800px}.inspire-settings .inspire-sidebar{padding-left:30px;width:250px}.flexible-shipping-info ol{margin-top:0}#wpbody-content .flexible-shipping-info .metabox-holder{padding-top:0}#adminmenu #toplevel_page_flexible-shipping .menu-icon-generic div.wp-menu-image::before{font-family:WooCommerce !important;content:'\e01d'}.fs-new-service{color:#006799}span.flexible_shipping_saas_connection_error{color:#a00;font-weight:bold}.fs-order-item-fallback{margin-top:.5em;color:#888}.flexible_shipping_shipment_content p select{max-width:95%}.flexible_shipping_shipment_content span.description{display:block}.fs-saas-button-cancel-created{float:right;color:#a00;margin-top:5px}.fs-saas-button-cancel-created:hover{color:#a00;cursor:pointer}.flexible_shipping_shipment_content input[type=checkbox]{float:left;margin-right:5px;margin-top:2px !important;opacity:1;border-color:#888}.flexible_shipping_shipment_content input[type=checkbox]:disabled{opacity:.7;border-color:rgba(51,51,51,0.5)}.flexible_shipping_shipment_content p.fs-saas-status span{font-weight:bold;color:#444}.flexible_shipping_shipment_content p.fs-saas-status-fs-new{color:#ffba00}.flexible_shipping_shipment_content p.fs-saas-status-fs-created{color:#d0c21f}.flexible_shipping_shipment_content p.fs-saas-status-fs-confirmed{color:#444}.flexible_shipping_shipment_content p.fs-saas-status-fs-failed{color:#a00}.flexible_shipping_shipment_content p.fs-saas-status-fs-manifest{color:#2ea2cc}.flexible_shipping_shipment_content p.connection-error{font-weight:bold;color:#a00}.fs-saas-shipment span{font-weight:bold}.fs-saas-labels-counts span{font-weight:bold}.fs-saas-no-labels-left{color:#a00}table.flexible_shipping_services{max-width:550px}table.flexible_shipping_services .sort{width:1%}table.flexible_shipping_services .service_code{width:30px}table.flexible_shipping_services .select{text-align:center;width:1%}table.flexible_shipping_services .select input{margin:0 8px 0 8px}.woocommerce table.form-table table.flexible_shipping_services td.service_name input{width:100%}input.woocommerce_flexible_shipping_service_name{width:100%}.updated .fs-banner__button-container{padding:.75rem 0 0}.notice-info.fs-connect__container{border-left:0;padding:0;box-shadow:0 0 0 1px #dfdfdf,0 1px 2px #dfdfdf}@media screen and (max-width:782px){.notice-info.fs-connect__container{padding:0 !important}}.fs-connect__container{display:block;position:relative;box-sizing:border-box}.fs-connect__inner-container>a:first-child{z-index:1}.fs-connect__inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:left;justify-content:left}.fs-connect__content-container{width:1250px;position:relative;padding:2rem;z-index:0}@media(min-width:782px){.fs-connect__content-container{padding:2rem 2rem 4rem 2rem}}.fs-connect__content-container p{color:#555;font-size:.875rem}.fs-connect__content-container h2{margin-top:0;color:#555;line-height:1.6}.fs-connect__content-icon{float:right;margin:0 1.5rem 0 2.25rem}.fs-connect__content-icon svg{fill:#0085ba;height:180px;width:auto}@media(max-width:782px){.fs-connect__content-icon.fs-connect-illo{float:none;width:100%;text-align:center;margin:2.25rem 0 1.5rem}}.fs-connect__slide{display:none}.fs-connect__slide.fs__slide-is-active{display:block}@media(min-width:782px){.fs-connect__content-container .fs-banner__button-container{position:absolute;bottom:.5rem}}.fs-banner__button-container .button-primary{margin:0 .3125rem .3125rem 0}.fs-connect__vertical-nav{background-color:#f1f1f1}@media(min-width:600px){.fs-connect__vertical-nav{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}}@media(max-width:600px){.fs-connect__vertical-nav{display:none}}.fs-connect__vertical-nav-container{width:15rem}.vertical-menu__feature-item-label{display:none}@media(min-width:600px){.vertical-menu__feature-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:0;padding:.5rem;border-bottom:1px solid #dfdfdf;border-right:1px solid #dfdfdf;border-left:3px solid #f9f9f9;background-color:#f9f9f9;color:#555;cursor:pointer}.vertical-menu__feature-item:last-of-type{position:relative;top:1px}.vertical-menu__feature-item-is-selected{border-left:3px solid #0085ba;border-right:1px solid #fff;background-color:#fff;color:#2e4453}.vertical-menu__feature-item-is-selected.fs-feature-intro{border-left:3px solid #00be28}.vertical-menu__feature-item-icon{width:1.25rem;height:1.25rem;padding:.25rem;text-align:center}.vertical-menu__feature-item svg{fill:#555;vertical-align:middle}.vertical-menu__feature-item-is-selected svg{fill:#0085ba}.vertical-menu__feature-item-label{display:block;padding:.5rem}}.fs-couriers{margin-top:2.5em}.fs-courier{position:relative;margin-bottom:2.5em;text-align:center}.fs-courier img{height:50px;width:auto}.fs-courier-label{background-color:#333;border-radius:3px;color:#fff;padding:0 4px 1px;position:absolute;right:0;top:-10px}@media(min-width:1200px){.fs-couriers{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.fs-courier{width:20%}}.admin_page_flexible_shipping_connect_register .notice.is-dismissible,.admin_page_flexible_shipping_connect_register .update-nag,.admin_page_flexible_shipping_connect_register .updated,.admin_page_flexible_shipping_connect_register .settings-error{display:none !important}.fs-page-wrap{margin:0 auto;max-width:45rem}.fs-page-wrap h1{font-weight:normal;margin-bottom:.67em;text-align:center}.fs-box{display:block;position:relative;margin:0 auto 20px;padding:16px;box-sizing:border-box;background:white;box-shadow:0 0 0 1px #dfdfdf,0 1px 2px #dfdfdf}.fs-box:after{content:".";display:block;height:0;clear:both;visibility:hidden}.admin_page_flexible_shipping_connect_register .fs-box,.fs-box.text-center{text-align:center}.admin_page_flexible_shipping_connect_register .fs-box p{margin:1.5em 0}.fs-box input[type="email"]{padding:8px 10px}.fs-actions{padding-left:40px}.fs-actions button:active{vertical-align:inherit !important}.fs-actions .spinner{float:none;margin-top:0}.fs-cols{display:flex;flex-wrap:wrap;justify-content:space-between}.fs-inner-box{box-sizing:border-box;margin-top:30px;padding:0 20px}.fs-inner-box h4{font-size:1.2em;margin-bottom:.37em}.fs-inner-box svg{fill:#0085ba;height:70px;width:auto}@media(min-width:600px){.fs-inner-box{width:33.33%}}
|
classes/abtests/ab-menu-test/class-ab-variant-old.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WPDesk\ABTesting\ABVariant;
|
4 |
+
|
5 |
+
class WPDesk_Flexible_Shipping_AB_Variant_Old implements ABVariant {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Define a new value for the generated variant
|
9 |
+
* @var int
|
10 |
+
*/
|
11 |
+
const VARIANT_ID = 0;
|
12 |
+
|
13 |
+
public function is_on( $functionality ) {
|
14 |
+
return !$functionality === WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU;
|
15 |
+
}
|
16 |
+
|
17 |
+
public function get_variant_id() {
|
18 |
+
return self::VARIANT_ID;
|
19 |
+
}
|
20 |
+
}
|
classes/abtests/ab-menu-test/class-ab-variant-with-menu.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WPDesk\ABTesting\ABVariant;
|
4 |
+
|
5 |
+
class WPDesk_Flexible_Shipping_AB_Variant_With_Menu implements ABVariant {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Define a new value for the generated variant
|
9 |
+
* @var int
|
10 |
+
*/
|
11 |
+
const VARIANT_ID = 5;
|
12 |
+
|
13 |
+
public function is_on( $functionality ) {
|
14 |
+
return $functionality === WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU;
|
15 |
+
}
|
16 |
+
|
17 |
+
public function get_variant_id() {
|
18 |
+
return self::VARIANT_ID;
|
19 |
+
}
|
20 |
+
|
21 |
+
}
|
classes/abtests/ab-menu-test/class-ab-variant-without-menu.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WPDesk\ABTesting\ABVariant;
|
4 |
+
|
5 |
+
class WPDesk_Flexible_Shipping_AB_Variant_Without_Menu implements ABVariant {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Define a new value for the generated variant
|
9 |
+
* @var int
|
10 |
+
*/
|
11 |
+
const VARIANT_ID = 6;
|
12 |
+
|
13 |
+
public function is_on( $functionality ) {
|
14 |
+
return !$functionality === WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU;
|
15 |
+
}
|
16 |
+
|
17 |
+
public function get_variant_id() {
|
18 |
+
return self::VARIANT_ID;
|
19 |
+
}
|
20 |
+
}
|
classes/abtests/ab-message-test/class-ab-variant-both-messages.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use WPDesk\ABTesting\ABVariant\BasicABVariant;
|
4 |
-
|
5 |
-
class WPDesk_Flexible_Shipping_AB_Variant_Both_Messages extends BasicABVariant {
|
6 |
-
public function is_on( $functionality ) {
|
7 |
-
return true;
|
8 |
-
}
|
9 |
-
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/abtests/ab-message-test/class-ab-variant-connect-no-tracker.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use WPDesk\ABTesting\ABVariant\BasicABVariant;
|
4 |
-
|
5 |
-
class WPDesk_Flexible_Shipping_AB_Variant_Connect_NO_Tracker extends BasicABVariant {
|
6 |
-
public function is_on( $functionality ) {
|
7 |
-
return $functionality === WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_CONNECT;
|
8 |
-
}
|
9 |
-
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/abtests/ab-message-test/class-ab-variant-no-connect-tracker.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use WPDesk\ABTesting\ABVariant\BasicABVariant;
|
4 |
-
|
5 |
-
class WPDesk_Flexible_Shipping_AB_Variant_No_Connect_Tracker extends BasicABVariant {
|
6 |
-
public function is_on( $functionality ) {
|
7 |
-
return $functionality === WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_ACTIVATION_TRACKER;
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/abtests/ab-message-test/class-ab-variant-no-messages.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use WPDesk\ABTesting\ABVariant\BasicABVariant;
|
4 |
-
|
5 |
-
class WPDesk_Flexible_Shipping_AB_Variant_No_Messages extends BasicABVariant {
|
6 |
-
public function is_on( $functionality ) {
|
7 |
-
return false;
|
8 |
-
}
|
9 |
-
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/abtests/ab-message-test/class-ab-variant-old.php
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
class WPDesk_Flexible_Shipping_AB_Variant_Old extends WPDesk_Flexible_Shipping_AB_Variant_Both_Messages {
|
5 |
-
}
|
|
|
|
|
|
|
|
|
|
classes/abtests/class-ab-menu-page.php
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
use WPDesk\ABTesting\ABVariant;
|
4 |
+
|
5 |
+
class WPDesk_Flexible_Shipping_AB_MenuPage implements \WPDesk\PluginBuilder\Plugin\Hookable {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Selected variant for AB message testing.
|
9 |
+
*
|
10 |
+
* @var ABVariant
|
11 |
+
*/
|
12 |
+
private $variant;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Plugin path
|
16 |
+
*
|
17 |
+
* @var string
|
18 |
+
*/
|
19 |
+
private $plugin_path;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Menu position.
|
23 |
+
* It must be a string to set it correctly under WooCommerce
|
24 |
+
*
|
25 |
+
* @var string
|
26 |
+
*/
|
27 |
+
const MENU_POSITION = '55.7';
|
28 |
+
|
29 |
+
/**
|
30 |
+
* WPDesk_Flexible_Shipping_AB_MenuPage constructor.
|
31 |
+
*
|
32 |
+
* @param ABVariant $variant
|
33 |
+
* @param string $plugin_path
|
34 |
+
*/
|
35 |
+
public function __construct( ABVariant $variant, $plugin_path ) {
|
36 |
+
$this->variant = $variant;
|
37 |
+
$this->plugin_path = $plugin_path;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Fires hooks
|
42 |
+
*
|
43 |
+
* @return void
|
44 |
+
*/
|
45 |
+
public function hooks() {
|
46 |
+
if ( $this->variant->is_on( WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU ) ) {
|
47 |
+
add_action( 'admin_menu', array( $this, 'add_flexible_shipping_menu_page' ), 999 );
|
48 |
+
add_action( 'admin_head', array( $this, 'add_flexible_shipping_menu_icon' ) );
|
49 |
+
add_filter( 'wpdesk_tracker_notice_screens', array(
|
50 |
+
$this,
|
51 |
+
'show_tracker_message_on_flexible_shipping_menu_page'
|
52 |
+
) );
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Add FS screen ID for tracker message
|
58 |
+
*
|
59 |
+
* @param $screens
|
60 |
+
*
|
61 |
+
* @return array
|
62 |
+
*/
|
63 |
+
public function show_tracker_message_on_flexible_shipping_menu_page( array $screens ) {
|
64 |
+
$screens[] = 'toplevel_page_flexible-shipping-menu';
|
65 |
+
|
66 |
+
return $screens;
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Add Flexible Shipping menu page near WC Products
|
71 |
+
*
|
72 |
+
* @return void
|
73 |
+
*/
|
74 |
+
public function add_flexible_shipping_menu_page() {
|
75 |
+
add_menu_page(
|
76 |
+
__( 'Flexible Shipping', 'flexible-shipping' ),
|
77 |
+
__( 'Flexible Shipping', 'flexible-shipping' ),
|
78 |
+
'edit_posts',
|
79 |
+
'flexible-shipping-menu',
|
80 |
+
array( $this, 'flexible_shipping_menu_page_wrapper' ),
|
81 |
+
null,
|
82 |
+
self::MENU_POSITION
|
83 |
+
);
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Add inline CSS for FS menu page
|
88 |
+
*
|
89 |
+
* @return void
|
90 |
+
*/
|
91 |
+
public function add_flexible_shipping_menu_icon() {
|
92 |
+
include $this->plugin_path . '/classes/views/html-menu-icon.php';
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Flexible Shipping menu page body
|
97 |
+
*
|
98 |
+
* @return void
|
99 |
+
*/
|
100 |
+
public function flexible_shipping_menu_page_wrapper() {
|
101 |
+
?>
|
102 |
+
<?php $title = __( 'Flexible Shipping', 'flexible-shipping' ); ?>
|
103 |
+
<div class="wrap">
|
104 |
+
<?php include $this->plugin_path . '/classes/saas/views/html-shipping-method-info-description-body.php'; ?>
|
105 |
+
<?php
|
106 |
+
}
|
107 |
+
}
|
classes/abtests/{class-ab-message-test.php → class-ab-menu-test.php}
RENAMED
@@ -1,38 +1,35 @@
|
|
1 |
<?php
|
2 |
|
3 |
use WPDesk\ABTesting\ABTest\EqualGroupsRandomABTest;
|
4 |
-
use WPDesk\ABTesting\ABVariant;
|
5 |
use WPDesk\Persistence\PersistentContainer;
|
6 |
use WPDesk\Persistence\Wordpress\WordpressOptionsContainer;
|
|
|
|
|
7 |
|
8 |
/**
|
9 |
-
* AB Test https://docs.google.com/document/d/
|
10 |
*
|
11 |
-
* We've created
|
12 |
*/
|
13 |
-
class
|
14 |
-
const
|
15 |
-
const
|
16 |
-
|
17 |
-
const VARIANT_ID_FOR_OLD_INSTALLATION = 0;
|
18 |
|
19 |
-
const
|
20 |
-
const
|
21 |
-
const VARIANT_ID_FOR_NO_CONNECT_TRACKER = 3;
|
22 |
-
const VARIANT_ID_FOR_NO_MESSAGES = 4;
|
23 |
|
24 |
-
const
|
25 |
-
const
|
26 |
|
27 |
-
const NEW_USER_AFTER_THIS_DATE = '2019-02-
|
28 |
|
29 |
-
const
|
30 |
|
31 |
/** @var PersistentContainer */
|
32 |
-
|
33 |
|
34 |
public function __construct() {
|
35 |
-
$container
|
36 |
$this->container = $container;
|
37 |
|
38 |
parent::__construct( self::GROUP_COUNT, self::TEST_NAME, $container );
|
@@ -68,10 +65,6 @@ class WPDesk_Flexible_Shipping_AB_MessageTest extends EqualGroupsRandomABTest {
|
|
68 |
* @return bool
|
69 |
*/
|
70 |
private function is_old_installation() {
|
71 |
-
if ( isset( $_COOKIE[ self::COOKIE_NAME_FOR_OVERRIDE_OLD_ACTIVATION ] ) ) {
|
72 |
-
return (bool) $_COOKIE[ self::COOKIE_NAME_FOR_OVERRIDE_OLD_ACTIVATION ];
|
73 |
-
}
|
74 |
-
|
75 |
return strtotime( self::NEW_USER_AFTER_THIS_DATE ) > $this->activation_date_according_to_wpdesk_helper();
|
76 |
}
|
77 |
|
@@ -94,19 +87,12 @@ class WPDesk_Flexible_Shipping_AB_MessageTest extends EqualGroupsRandomABTest {
|
|
94 |
*/
|
95 |
public function get_variant() {
|
96 |
switch ( $this->current_variant_id ) {
|
97 |
-
case self::
|
98 |
-
return new
|
99 |
-
case self::
|
100 |
-
return new
|
101 |
-
case self::VARIANT_ID_FOR_NO_CONNECT_TRACKER:
|
102 |
-
return new WPDesk_Flexible_Shipping_AB_Variant_No_Connect_Tracker( $this->current_variant_id );
|
103 |
-
case self::VARIANT_ID_FOR_NO_MESSAGES:
|
104 |
-
return new WPDesk_Flexible_Shipping_AB_Variant_No_Messages( $this->current_variant_id );
|
105 |
-
case self::VARIANT_ID_FOR_OLD_INSTALLATION:
|
106 |
-
return new WPDesk_Flexible_Shipping_AB_Variant_Old( $this->current_variant_id );
|
107 |
-
|
108 |
default:
|
109 |
-
return new WPDesk_Flexible_Shipping_AB_Variant_Old(
|
110 |
}
|
111 |
}
|
112 |
}
|
1 |
<?php
|
2 |
|
3 |
use WPDesk\ABTesting\ABTest\EqualGroupsRandomABTest;
|
|
|
4 |
use WPDesk\Persistence\PersistentContainer;
|
5 |
use WPDesk\Persistence\Wordpress\WordpressOptionsContainer;
|
6 |
+
use WPDesk\ABTesting\ABVariant;
|
7 |
+
|
8 |
|
9 |
/**
|
10 |
+
* AB Menu Test https://docs.google.com/document/d/1O7SDr-suN1ooLrHdtkM7L6ARbsnveSj_fsRWMpFr5Ac/
|
11 |
*
|
12 |
+
* We've created 2 groups/variants.
|
13 |
*/
|
14 |
+
class WPDesk_Flexible_Shipping_AB_MenuTest extends EqualGroupsRandomABTest {
|
15 |
+
const TEST_NAME = 'menu-test';
|
16 |
+
const GROUP_COUNT = 2;
|
|
|
|
|
17 |
|
18 |
+
const VARIANT_WITH_MENU = 1;
|
19 |
+
const VARIANT_WITHOUT_MENU = 2;
|
|
|
|
|
20 |
|
21 |
+
const FS_WITH_MENU = 'menu_moved';
|
22 |
+
const FS_WITHOUT_MENU = 'no_menu';
|
23 |
|
24 |
+
const NEW_USER_AFTER_THIS_DATE = '2019-02-18 14:00:00';
|
25 |
|
26 |
+
const VARIANT_ID_FOR_OLD_INSTALLATION = 0;
|
27 |
|
28 |
/** @var PersistentContainer */
|
29 |
+
public $container;
|
30 |
|
31 |
public function __construct() {
|
32 |
+
$container = new WordpressOptionsContainer();
|
33 |
$this->container = $container;
|
34 |
|
35 |
parent::__construct( self::GROUP_COUNT, self::TEST_NAME, $container );
|
65 |
* @return bool
|
66 |
*/
|
67 |
private function is_old_installation() {
|
|
|
|
|
|
|
|
|
68 |
return strtotime( self::NEW_USER_AFTER_THIS_DATE ) > $this->activation_date_according_to_wpdesk_helper();
|
69 |
}
|
70 |
|
87 |
*/
|
88 |
public function get_variant() {
|
89 |
switch ( $this->current_variant_id ) {
|
90 |
+
case self::VARIANT_WITH_MENU:
|
91 |
+
return new WPDesk_Flexible_Shipping_AB_Variant_With_Menu();
|
92 |
+
case self::VARIANT_WITHOUT_MENU:
|
93 |
+
return new WPDesk_Flexible_Shipping_AB_Variant_Without_Menu();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
default:
|
95 |
+
return new WPDesk_Flexible_Shipping_AB_Variant_Old();
|
96 |
}
|
97 |
}
|
98 |
}
|
classes/abtests/class-ab-plugin-activation.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use WPDesk\ABTesting\ABVariant;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* AB Test https://docs.google.com/document/d/1JA49dgOqJ1SawEdL506tWdW6zgD30cXDpFZhJ7r_SNo/edit?usp=sharing
|
7 |
-
*
|
8 |
-
* Class to disable tracker for AB test variant
|
9 |
-
*/
|
10 |
-
class WPDesk_Flexible_Shipping_AB_PluginActivation {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* @var WPDesk_Flexible_Shipping_AB_MessageTest
|
14 |
-
*/
|
15 |
-
private $variant;
|
16 |
-
|
17 |
-
/**
|
18 |
-
* WPDesk_Flexible_Shipping_AB_PluginActivation constructor.
|
19 |
-
*
|
20 |
-
* @param $variant
|
21 |
-
*/
|
22 |
-
public function __construct( ABVariant $variant ) {
|
23 |
-
$this->variant = $variant;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Fires hooks
|
28 |
-
*
|
29 |
-
* @return void
|
30 |
-
*/
|
31 |
-
public function hooks() {
|
32 |
-
add_filter( 'wpdesk_tracker_hide_activation_message', array( $this, 'disable_tracker_ask_on_ab_variant' ) );
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Disable OR enable filter for current variant
|
37 |
-
*
|
38 |
-
* @param $disabled
|
39 |
-
*
|
40 |
-
* @return bool
|
41 |
-
*/
|
42 |
-
public function disable_tracker_ask_on_ab_variant( $disabled ) {
|
43 |
-
return !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_ACTIVATION_TRACKER );
|
44 |
-
}
|
45 |
-
|
46 |
-
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/abtests/class-tracker-button.php
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Class to tracking agree button
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
class WPDesk_Flexible_Shipping_Tracker_Button {
|
7 |
-
|
8 |
-
/**
|
9 |
-
* @var string
|
10 |
-
*/
|
11 |
-
const OPTION_NAME = 'fs_button_tracking';
|
12 |
-
|
13 |
-
/**
|
14 |
-
* @var string
|
15 |
-
*/
|
16 |
-
const WC_SETTINGS_PAGE_ID = 'woocommerce_page_wc-settings';
|
17 |
-
|
18 |
-
/**
|
19 |
-
* @var string
|
20 |
-
*/
|
21 |
-
const OPTION_VALUE_ACTIVATE_PAGE = 'plugin_activate';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @var string
|
25 |
-
*/
|
26 |
-
const OPTION_VALUE_WC_SETTINGS_PAGE = 'woocommerce_settings';
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Fires hooks
|
30 |
-
*/
|
31 |
-
public function hooks() {
|
32 |
-
add_action( 'admin_footer', array( $this, 'add_button_tracker_js' ) );
|
33 |
-
add_action( 'wp_ajax_save_button_tracker', array( $this, 'wp_ajax_save_button_tracker' ) );
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Get tracked button type
|
38 |
-
*
|
39 |
-
* @return string|null
|
40 |
-
*/
|
41 |
-
static function get_button_pagetype() {
|
42 |
-
$value = get_option( self::OPTION_NAME, null );
|
43 |
-
return $value;
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Saves to which button the user clicked
|
48 |
-
*/
|
49 |
-
public function wp_ajax_save_button_tracker() {
|
50 |
-
if( $_POST['pagetype'] === self::WC_SETTINGS_PAGE_ID ) {
|
51 |
-
update_option( self::OPTION_NAME, self::OPTION_VALUE_WC_SETTINGS_PAGE );
|
52 |
-
} else {
|
53 |
-
update_option( self::OPTION_NAME, self::OPTION_VALUE_ACTIVATE_PAGE );
|
54 |
-
}
|
55 |
-
wp_send_json_success( array( 'page' => $_POST['pagetype'] ) );
|
56 |
-
}
|
57 |
-
|
58 |
-
public function add_button_tracker_js() {
|
59 |
-
$screen = get_current_screen();
|
60 |
-
if( $screen->id === self::WC_SETTINGS_PAGE_ID || $screen->id === 'admin_page_wpdesk_tracker' ):
|
61 |
-
?>
|
62 |
-
<script>
|
63 |
-
jQuery(function($) {
|
64 |
-
$( '#wpdesk_tracker_allow_button, #wpdesk_tracker_allow_button_notice' ).click( function () {
|
65 |
-
$.ajax( ajaxurl,
|
66 |
-
{
|
67 |
-
type: 'POST',
|
68 |
-
data: {
|
69 |
-
action: 'save_button_tracker',
|
70 |
-
pagetype: pagenow,
|
71 |
-
}
|
72 |
-
} );
|
73 |
-
} );
|
74 |
-
});
|
75 |
-
</script>
|
76 |
-
<?php endif;
|
77 |
-
}
|
78 |
-
|
79 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/bulk-actions.php
CHANGED
@@ -338,9 +338,12 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
338 |
$redirect_to = add_query_arg( 'bulk_flexible_shipping_no_labels_created', 1, $redirect_to );
|
339 |
return $redirect_to;
|
340 |
}
|
341 |
-
$tmp_zip = tempnam ( 'tmp', 'labels_' )
|
342 |
-
|
343 |
-
|
|
|
|
|
|
|
344 |
$labels['error'] = __( 'Unable to create temporary zip archive for labels. Check temporary folder configuration on server.', 'flexible-shipping' );
|
345 |
}
|
346 |
else {
|
@@ -354,10 +357,10 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
354 |
if ( ! session_id() ) {
|
355 |
session_start();
|
356 |
}
|
357 |
-
$_SESSION['flexible_shipping_bulk_labels'] = $labels;
|
358 |
-
$redirect_to = add_query_arg( 'bulk_flexible_shipping_labels', count( $post_ids ), $redirect_to );
|
359 |
-
return $redirect_to;
|
360 |
}
|
|
|
|
|
|
|
361 |
}
|
362 |
if ( $do_action == 'flexible_shipping_manifest' ) {
|
363 |
$manifests = array();
|
@@ -449,7 +452,6 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
449 |
if ( ! empty( $_REQUEST['bulk_flexible_shipping_labels'] ) ) {
|
450 |
$bulk_flexible_shipping_labels_count = intval( $_REQUEST['bulk_flexible_shipping_labels'] );
|
451 |
if ( ! empty( $_REQUEST['bulk_flexible_shipping_no_labels_created'] ) ) {
|
452 |
-
$nonce = wp_create_nonce( 'flexible_shipping_labels' );
|
453 |
printf( '<div id="message" class="updated fade"><p>' .
|
454 |
__( 'Bulk labels - processed orders: %d. No labels for processed orders.', 'flexible-shipping' ) .
|
455 |
'</p></div>', $bulk_flexible_shipping_labels_count
|
@@ -465,11 +467,15 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Bulk_Actions' ) ) {
|
|
465 |
unset( $_SESSION['flexible_shipping_bulk_labels'] );
|
466 |
}
|
467 |
if ( is_array( $labels ) ) {
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
|
|
|
|
|
|
|
|
473 |
}
|
474 |
}
|
475 |
}
|
338 |
$redirect_to = add_query_arg( 'bulk_flexible_shipping_no_labels_created', 1, $redirect_to );
|
339 |
return $redirect_to;
|
340 |
}
|
341 |
+
$tmp_zip = tempnam ( 'tmp', 'labels_' );
|
342 |
+
if ( $tmp_zip ) {
|
343 |
+
$tmp_zip .= '.zip';
|
344 |
+
$zip = new ZipArchive();
|
345 |
+
}
|
346 |
+
if ( empty( $tmp_zip ) || !$zip->open( $tmp_zip, ZIPARCHIVE::CREATE) ) {
|
347 |
$labels['error'] = __( 'Unable to create temporary zip archive for labels. Check temporary folder configuration on server.', 'flexible-shipping' );
|
348 |
}
|
349 |
else {
|
357 |
if ( ! session_id() ) {
|
358 |
session_start();
|
359 |
}
|
|
|
|
|
|
|
360 |
}
|
361 |
+
$_SESSION['flexible_shipping_bulk_labels'] = $labels;
|
362 |
+
$redirect_to = add_query_arg( 'bulk_flexible_shipping_labels', count( $post_ids ), $redirect_to );
|
363 |
+
return $redirect_to;
|
364 |
}
|
365 |
if ( $do_action == 'flexible_shipping_manifest' ) {
|
366 |
$manifests = array();
|
452 |
if ( ! empty( $_REQUEST['bulk_flexible_shipping_labels'] ) ) {
|
453 |
$bulk_flexible_shipping_labels_count = intval( $_REQUEST['bulk_flexible_shipping_labels'] );
|
454 |
if ( ! empty( $_REQUEST['bulk_flexible_shipping_no_labels_created'] ) ) {
|
|
|
455 |
printf( '<div id="message" class="updated fade"><p>' .
|
456 |
__( 'Bulk labels - processed orders: %d. No labels for processed orders.', 'flexible-shipping' ) .
|
457 |
'</p></div>', $bulk_flexible_shipping_labels_count
|
467 |
unset( $_SESSION['flexible_shipping_bulk_labels'] );
|
468 |
}
|
469 |
if ( is_array( $labels ) ) {
|
470 |
+
if ( isset( $labels['error'] ) ) {
|
471 |
+
new \WPDesk\Notice\Notice( $labels['error'], \WPDesk\Notice\Notice::NOTICE_TYPE_ERROR, true, 20 );
|
472 |
+
} else {
|
473 |
+
$nonce = wp_create_nonce( 'flexible_shipping_labels' );
|
474 |
+
printf( '<div id="message" class="updated fade"><p>' .
|
475 |
+
__( 'Bulk labels - processed orders: %d. If download not start automatically click %shere%s.', 'flexible-shipping' ) .
|
476 |
+
'</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>'
|
477 |
+
);
|
478 |
+
}
|
479 |
}
|
480 |
}
|
481 |
}
|
classes/class-flexible-shipping-plugin.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
|
3 |
class Flexible_Shipping_Plugin
|
4 |
extends \WPDesk\PluginBuilder\Plugin\AbstractPlugin
|
@@ -96,11 +97,13 @@ class Flexible_Shipping_Plugin
|
|
96 |
|
97 |
$this->admin_notices = new WPDesk_Flexible_Shipping_Admin_Notices( $this );
|
98 |
|
99 |
-
$abtesting = new
|
100 |
$this->variant = $abtesting->get_variant();
|
101 |
|
102 |
$this->add_hookable( new WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data( $this->variant ) );
|
103 |
|
|
|
|
|
104 |
$this->add_hookable( new WPDesk_Flexible_Shipping_Add_Shipping( ) );
|
105 |
|
106 |
$connection = new WPDesk_Flexible_Shipping_SaaS_Connection( $this->logger, $this->saas_platform_links );
|
@@ -197,8 +200,6 @@ class Flexible_Shipping_Plugin
|
|
197 |
|
198 |
add_action( 'admin_init', array( $this, 'session_init' ) );
|
199 |
|
200 |
-
add_action( 'admin_head', array( $this, 'admin_inline_css_for_ab_test' ) );
|
201 |
-
|
202 |
add_action( 'woocommerce_after_shipping_rate', array( $this, 'woocommerce_after_shipping_rate' ), 10, 2 );
|
203 |
|
204 |
add_action( 'flexible_shipping_method_rate_id', array( $this, 'flexible_shipping_method_rate_id' ), 9999999,
|
@@ -405,14 +406,6 @@ class Flexible_Shipping_Plugin
|
|
405 |
array(), $this->scripts_version );
|
406 |
}
|
407 |
|
408 |
-
public function admin_inline_css_for_ab_test() {
|
409 |
-
if( !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_CONNECT ) ) {
|
410 |
-
?>
|
411 |
-
<style>.fs-page-wrap { display: none; }</style>
|
412 |
-
<?php
|
413 |
-
}
|
414 |
-
}
|
415 |
-
|
416 |
/**
|
417 |
* @param array $links
|
418 |
*
|
@@ -424,8 +417,15 @@ class Flexible_Shipping_Plugin
|
|
424 |
|
425 |
$docs_link .= '??utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=&utm_content=fs-plugins-docs';
|
426 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
$plugin_links = array(
|
428 |
-
'<a href="' .
|
429 |
'flexible-shipping' ) . '</a>',
|
430 |
'<a href="' . $docs_link . '">' . __( 'Docs', 'flexible-shipping' ) . '</a>',
|
431 |
'<a href="' . $support_link . '">' . __( 'Support', 'flexible-shipping' ) . '</a>',
|
1 |
<?php
|
2 |
+
use WPDesk\ABTesting\ABVariant;
|
3 |
|
4 |
class Flexible_Shipping_Plugin
|
5 |
extends \WPDesk\PluginBuilder\Plugin\AbstractPlugin
|
97 |
|
98 |
$this->admin_notices = new WPDesk_Flexible_Shipping_Admin_Notices( $this );
|
99 |
|
100 |
+
$abtesting = new WPDesk_Flexible_Shipping_AB_MenuTest();
|
101 |
$this->variant = $abtesting->get_variant();
|
102 |
|
103 |
$this->add_hookable( new WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data( $this->variant ) );
|
104 |
|
105 |
+
$this->add_hookable( new WPDesk_Flexible_Shipping_AB_MenuPage( $this->variant, $this->plugin_info->get_plugin_dir() ) );
|
106 |
+
|
107 |
$this->add_hookable( new WPDesk_Flexible_Shipping_Add_Shipping( ) );
|
108 |
|
109 |
$connection = new WPDesk_Flexible_Shipping_SaaS_Connection( $this->logger, $this->saas_platform_links );
|
200 |
|
201 |
add_action( 'admin_init', array( $this, 'session_init' ) );
|
202 |
|
|
|
|
|
203 |
add_action( 'woocommerce_after_shipping_rate', array( $this, 'woocommerce_after_shipping_rate' ), 10, 2 );
|
204 |
|
205 |
add_action( 'flexible_shipping_method_rate_id', array( $this, 'flexible_shipping_method_rate_id' ), 9999999,
|
406 |
array(), $this->scripts_version );
|
407 |
}
|
408 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
/**
|
410 |
* @param array $links
|
411 |
*
|
417 |
|
418 |
$docs_link .= '??utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=&utm_content=fs-plugins-docs';
|
419 |
|
420 |
+
if( !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU ) ) {
|
421 |
+
$settings_url = admin_url( 'admin.php?page=wc-settings&tab=shipping§ion=' . WPDesk_Flexible_Shipping_SaaS_Settings::METHOD_ID );
|
422 |
+
} else {
|
423 |
+
$settings_url = admin_url( 'admin.php?page=flexible-shipping-menu' );
|
424 |
+
}
|
425 |
+
|
426 |
+
|
427 |
$plugin_links = array(
|
428 |
+
'<a href="' . $settings_url . '">' . __( 'Settings',
|
429 |
'flexible-shipping' ) . '</a>',
|
430 |
'<a href="' . $docs_link . '">' . __( 'Docs', 'flexible-shipping' ) . '</a>',
|
431 |
'<a href="' . $support_link . '">' . __( 'Support', 'flexible-shipping' ) . '</a>',
|
classes/saas/class-saas-settings.php
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
use WPDesk\ABTesting\ABVariant;
|
4 |
-
|
5 |
/**
|
6 |
* Class WPDesk_Flexible_Shipping_SaaS_Settings
|
7 |
*/
|
|
|
|
|
|
|
8 |
class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implements WPDesk_Flexible_Shipping_Saas_Connection_Aware {
|
9 |
|
10 |
const METHOD_ID = 'flexible_shipping_connect';
|
@@ -80,6 +81,7 @@ class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implemen
|
|
80 |
WPDesk_Flexible_Shipping_SaaS_Platform_Links $saas_platform_links = null,
|
81 |
$shipping_methods_manager = null,
|
82 |
ABVariant $variant
|
|
|
83 |
) {
|
84 |
parent::__construct( $instance_id );
|
85 |
$this->id = self::METHOD_ID;
|
@@ -87,6 +89,10 @@ class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implemen
|
|
87 |
$this->method_title = __( 'Flexible Shipping', 'flexible-shipping' );
|
88 |
$this->variant = $variant;
|
89 |
|
|
|
|
|
|
|
|
|
90 |
$this->supports = array(
|
91 |
'settings',
|
92 |
);
|
@@ -285,10 +291,21 @@ class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implemen
|
|
285 |
*/
|
286 |
public function init_form_fields() {
|
287 |
$this->form_fields = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
'saas_connection' => array(
|
289 |
'type' => 'saas_connection',
|
290 |
),
|
291 |
);
|
|
|
|
|
|
|
|
|
|
|
292 |
if ( $this->is_in_settings() ) {
|
293 |
if ( $this->saas_connection->is_connected() ) {
|
294 |
$shipping_providers_from_platform = $this->get_shipping_services_from_platform();
|
@@ -306,9 +323,43 @@ class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implemen
|
|
306 |
}
|
307 |
}
|
308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
/**
|
311 |
-
* Generate
|
312 |
*
|
313 |
* @param string $key Key.
|
314 |
* @param array $data Data.
|
@@ -362,9 +413,7 @@ class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implemen
|
|
362 |
$this->update_all_shipping_services( $shipping_providers );
|
363 |
}
|
364 |
include 'views/html-settings-connect-script.php';
|
365 |
-
include 'views/html-shipping-method-info-description.php';
|
366 |
$html .= ob_get_clean();
|
367 |
-
|
368 |
if ( $echo ) {
|
369 |
echo $html;
|
370 |
} else {
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
/**
|
4 |
* Class WPDesk_Flexible_Shipping_SaaS_Settings
|
5 |
*/
|
6 |
+
|
7 |
+
use WPDesk\ABTesting\ABVariant;
|
8 |
+
|
9 |
class WPDesk_Flexible_Shipping_SaaS_Settings extends WC_Shipping_Method implements WPDesk_Flexible_Shipping_Saas_Connection_Aware {
|
10 |
|
11 |
const METHOD_ID = 'flexible_shipping_connect';
|
81 |
WPDesk_Flexible_Shipping_SaaS_Platform_Links $saas_platform_links = null,
|
82 |
$shipping_methods_manager = null,
|
83 |
ABVariant $variant
|
84 |
+
|
85 |
) {
|
86 |
parent::__construct( $instance_id );
|
87 |
$this->id = self::METHOD_ID;
|
89 |
$this->method_title = __( 'Flexible Shipping', 'flexible-shipping' );
|
90 |
$this->variant = $variant;
|
91 |
|
92 |
+
if( $this->variant->is_on( WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU ) ) {
|
93 |
+
$this->method_title = __( 'FS Connect', 'flexible-shipping' );
|
94 |
+
}
|
95 |
+
|
96 |
$this->supports = array(
|
97 |
'settings',
|
98 |
);
|
291 |
*/
|
292 |
public function init_form_fields() {
|
293 |
$this->form_fields = array(
|
294 |
+
'fsconnect' => array(
|
295 |
+
'type' => 'fsconnect',
|
296 |
+
),
|
297 |
+
'flexible_shipping' => array(
|
298 |
+
'type' => 'flexible_shipping',
|
299 |
+
),
|
300 |
'saas_connection' => array(
|
301 |
'type' => 'saas_connection',
|
302 |
),
|
303 |
);
|
304 |
+
|
305 |
+
if( !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU ) ) {
|
306 |
+
unset( $this->form_fields['fsconnect'] );
|
307 |
+
}
|
308 |
+
|
309 |
if ( $this->is_in_settings() ) {
|
310 |
if ( $this->saas_connection->is_connected() ) {
|
311 |
$shipping_providers_from_platform = $this->get_shipping_services_from_platform();
|
323 |
}
|
324 |
}
|
325 |
|
326 |
+
/**
|
327 |
+
* Generate HTML for FC connect notice
|
328 |
+
*
|
329 |
+
* @param string $key Key.
|
330 |
+
* @param array $data Data.
|
331 |
+
*
|
332 |
+
* @return string
|
333 |
+
*/
|
334 |
+
public function generate_fsconnect_html( $key, $data ) {
|
335 |
+
$saas_connected = $this->saas_connection->is_connected();
|
336 |
+
$html_class_is_dismissible = 'is-dismissible';
|
337 |
+
ob_start();
|
338 |
+
include 'views/html-flexible-shipping-connect-notice.php';
|
339 |
+
$notice_content = ob_get_contents();
|
340 |
+
ob_end_clean();
|
341 |
+
return $notice_content;
|
342 |
+
}
|
343 |
+
|
344 |
+
/**
|
345 |
+
* Generate FC connect box
|
346 |
+
*
|
347 |
+
* @param string $key Key.
|
348 |
+
* @param array $data Data.
|
349 |
+
*
|
350 |
+
* @return string
|
351 |
+
*/
|
352 |
+
public function generate_flexible_shipping_html( $key, $data ) {
|
353 |
+
$html_class_is_dismissible = 'is-dismissible';
|
354 |
+
ob_start();
|
355 |
+
include 'views/html-shipping-method-info-description.php';
|
356 |
+
$notice_content = ob_get_contents();
|
357 |
+
ob_end_clean();
|
358 |
+
return $notice_content;
|
359 |
+
}
|
360 |
|
361 |
/**
|
362 |
+
* Generate Flexibble Shipping box.
|
363 |
*
|
364 |
* @param string $key Key.
|
365 |
* @param array $data Data.
|
413 |
$this->update_all_shipping_services( $shipping_providers );
|
414 |
}
|
415 |
include 'views/html-settings-connect-script.php';
|
|
|
416 |
$html .= ob_get_clean();
|
|
|
417 |
if ( $echo ) {
|
418 |
echo $html;
|
419 |
} else {
|
classes/saas/class-saas-shipping-services-manager.php
CHANGED
@@ -89,11 +89,9 @@ class WPDesk_Flexible_Shipping_SaaS_Services_Manager
|
|
89 |
WPDesk_Flexible_Shipping_SaaS_Connection $saas_connection,
|
90 |
WPDesk_Flexible_Shipping_SaaS_Platform_Links $saas_platform_links,
|
91 |
\Psr\Log\LoggerInterface $logger = null,
|
92 |
-
ABVariant $
|
93 |
) {
|
94 |
-
|
95 |
-
$this->variant_id = $variant_id;
|
96 |
-
|
97 |
$this->saas_connection = $saas_connection;
|
98 |
if ( null !== $logger ) {
|
99 |
$this->logger = $logger;
|
@@ -381,7 +379,7 @@ class WPDesk_Flexible_Shipping_SaaS_Services_Manager
|
|
381 |
$this->saas_connection,
|
382 |
$this->saas_platform_links,
|
383 |
null,
|
384 |
-
$this->
|
385 |
);
|
386 |
$this->shipping_method_connect->set_shipping_methods_manager( $this );
|
387 |
}
|
89 |
WPDesk_Flexible_Shipping_SaaS_Connection $saas_connection,
|
90 |
WPDesk_Flexible_Shipping_SaaS_Platform_Links $saas_platform_links,
|
91 |
\Psr\Log\LoggerInterface $logger = null,
|
92 |
+
ABVariant $variant
|
93 |
) {
|
94 |
+
$this->variant = $variant;
|
|
|
|
|
95 |
$this->saas_connection = $saas_connection;
|
96 |
if ( null !== $logger ) {
|
97 |
$this->logger = $logger;
|
379 |
$this->saas_connection,
|
380 |
$this->saas_platform_links,
|
381 |
null,
|
382 |
+
$this->variant
|
383 |
);
|
384 |
$this->shipping_method_connect->set_shipping_methods_manager( $this );
|
385 |
}
|
classes/saas/class-saas-user-registration.php
CHANGED
@@ -126,11 +126,6 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_SaaS_User_Registration' ) ) {
|
|
126 |
public function hooks() {
|
127 |
add_filter( 'removable_query_args', [ $this, 'add_email_parameters_to_removable_query_args' ] );
|
128 |
add_action( 'admin_init', [ $this, 'register_user_and_add_notice' ] );
|
129 |
-
|
130 |
-
if( $this->variant->is_on( WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_CONNECT ) ) {
|
131 |
-
add_action( 'admin_init', [ $this, 'register_form_notice' ], self::PRIORITY_AFTER_DEFAULT );
|
132 |
-
}
|
133 |
-
|
134 |
add_action( 'admin_init', [ $this, 'create_registration_notices' ] );
|
135 |
add_action( 'admin_menu', [ $this, 'add_registration_page' ] );
|
136 |
$this->hooks_on_hookable_objects();
|
126 |
public function hooks() {
|
127 |
add_filter( 'removable_query_args', [ $this, 'add_email_parameters_to_removable_query_args' ] );
|
128 |
add_action( 'admin_init', [ $this, 'register_user_and_add_notice' ] );
|
|
|
|
|
|
|
|
|
|
|
129 |
add_action( 'admin_init', [ $this, 'create_registration_notices' ] );
|
130 |
add_action( 'admin_menu', [ $this, 'add_registration_page' ] );
|
131 |
$this->hooks_on_hookable_objects();
|
classes/saas/views/html-flexible-shipping-connect-notice.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
ob_start();
|
3 |
|
4 |
echo '<p>' . __( 'Welcome to new Flexible Shipping Connect installation guide.', 'flexible-shipping' ) . '</p>';
|
@@ -176,3 +177,4 @@
|
|
176 |
?>
|
177 |
</div>
|
178 |
</div>
|
|
1 |
<?php
|
2 |
+
if( !$saas_connected ):
|
3 |
ob_start();
|
4 |
|
5 |
echo '<p>' . __( 'Welcome to new Flexible Shipping Connect installation guide.', 'flexible-shipping' ) . '</p>';
|
177 |
?>
|
178 |
</div>
|
179 |
</div>
|
180 |
+
<?php endif; ?>
|
classes/saas/views/html-settings-connect-script.php
CHANGED
@@ -2,11 +2,14 @@
|
|
2 |
/* Fake saas_connected - always true for debug mode settings. */
|
3 |
$saas_connected = true;
|
4 |
?>
|
|
|
5 |
<script type="text/javascript">
|
6 |
jQuery(document).ready(function () {
|
|
|
7 |
<?php if ( $saas_connected ) : ?>
|
8 |
<?php else : ?>
|
9 |
jQuery('p.submit').hide();
|
10 |
<?php endif; ?>
|
11 |
})
|
12 |
</script>
|
|
2 |
/* Fake saas_connected - always true for debug mode settings. */
|
3 |
$saas_connected = true;
|
4 |
?>
|
5 |
+
</table>
|
6 |
<script type="text/javascript">
|
7 |
jQuery(document).ready(function () {
|
8 |
+
jQuery('#mainform p.submit').appendTo( jQuery('.fs-box.fs-services') );
|
9 |
<?php if ( $saas_connected ) : ?>
|
10 |
<?php else : ?>
|
11 |
jQuery('p.submit').hide();
|
12 |
<?php endif; ?>
|
13 |
})
|
14 |
</script>
|
15 |
+
<table>
|
classes/saas/views/html-shipping-method-info-description-body.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$pl = get_locale() === 'pl_PL';
|
3 |
+
$youtube_url = 'https://www.youtube.com/embed/qsFvYoiNDgU';
|
4 |
+
$general_settings_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=general-settings#Ustawienia_glowne' : 'https://docs.flexibleshipping.com/article/25-general-settings/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=general-settings&utm_content=fs-configuration-flexibleshippingtablerate';
|
5 |
+
$adding_a_shipping_method_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=adding-a-shipping-method#Metody_wysylki' : 'https://docs.flexibleshipping.com/article/29-shipping-methods/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=adding-a-shipping-method&utm_content=fs-configuration-flexibleshippingtablerate';
|
6 |
+
$currency_support_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=currency-support#Waluty' : 'https://docs.flexibleshipping.com/article/30-currency-support/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=currency-support&utm_content=fs-configuration-flexibleshippingtablerate';
|
7 |
+
$weight_based_shipping_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=weight-based-shipping#Koszt_na_wage' : 'https://docs.flexibleshipping.com/article/32-weight-based-shipping-woocommerce/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=weight-based-shipping&utm_content=fs-configuration-flexibleshippingtablerate';
|
8 |
+
$shipping_insurance_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=shipping-insurance#Ubezpieczenie_przesylki' : 'https://docs.flexibleshipping.com/article/34-shipping-insurance/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=shipping-insurance&utm_content=fs-configuration-flexibleshippingtablerate';
|
9 |
+
$conditional_cash_on_delivery_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=conditional-cash-on-delivery#Przesylka_za_pobraniem' : 'https://docs.flexibleshipping.com/article/35-conditional-cash-on-delivery/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=contitional-cash-on-delivery&utm_content=fs-configuration-flexibleshippingtablerate';
|
10 |
+
?>
|
11 |
+
|
12 |
+
<div class="fs-box">
|
13 |
+
<h3 class="wc-settings-sub-title"><?php _e( 'How to use Flexible Shipping?', 'flexible-shipping' ); ?></h3>
|
14 |
+
|
15 |
+
<ol>
|
16 |
+
<li>
|
17 |
+
<?php
|
18 |
+
echo sprintf(
|
19 |
+
__( 'To add first Flexible Shipping method go to %sShipping zones%s and add Flexible Shipping to a shipping zone.', 'flexible-shipping' ),
|
20 |
+
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=shipping§ion' ) . '">',
|
21 |
+
'</a>'
|
22 |
+
);
|
23 |
+
?>
|
24 |
+
</li>
|
25 |
+
|
26 |
+
<li><?php _e( 'You can start the configuration by clicking the Flexible Shipping link in the Shipping methods table.', 'flexible-shipping' ); ?></li>
|
27 |
+
</ol>
|
28 |
+
|
29 |
+
<h4><?php _e( 'Quick Video Overview', 'flexible-shipping' ); ?></h4>
|
30 |
+
|
31 |
+
<div class="flexible-shipping-video">
|
32 |
+
<iframe width="688" height="387" src="<?php echo $youtube_url?>?rel=0&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
33 |
+
</div>
|
34 |
+
|
35 |
+
<h4><?php _e( 'More resources', 'flexible-shipping' ); ?></h4>
|
36 |
+
|
37 |
+
<ul>
|
38 |
+
<li><a href="<?php echo $general_settings_url; ?>"><?php _e( 'General Settings', 'flexible-shipping' ); ?></a></li>
|
39 |
+
<li><a href="<?php echo $adding_a_shipping_method_url; ?>"><?php _e( 'Adding a shipping method', 'flexible-shipping' ); ?></a></li>
|
40 |
+
<li><a href="<?php echo $currency_support_url; ?>"><?php _e( 'Currency Support', 'flexible-shipping' ); ?></a></li>
|
41 |
+
<li><a href="<?php echo $weight_based_shipping_url; ?>"><?php _e( 'Weight Based Shipping', 'flexible-shipping' ); ?></a></li>
|
42 |
+
<li><a href="<?php echo $shipping_insurance_url; ?>"><?php _e( 'Shipping Insurance', 'flexible-shipping' ); ?></a></li>
|
43 |
+
<li><a href="<?php echo $conditional_cash_on_delivery_url; ?>"><?php _e( 'Conditional Cash on Delivery', 'flexible-shipping' ); ?></a></li>
|
44 |
+
</ul>
|
45 |
+
</div>
|
classes/saas/views/html-shipping-method-info-description.php
CHANGED
@@ -1,78 +1,9 @@
|
|
|
|
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
$pl = get_locale() === 'pl_PL';
|
6 |
-
$youtube_url = 'https://www.youtube.com/embed/qsFvYoiNDgU';
|
7 |
-
$general_settings_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=general-settings#Ustawienia_glowne' : 'https://docs.flexibleshipping.com/article/25-general-settings/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=general-settings&utm_content=fs-configuration-flexibleshippingtablerate';
|
8 |
-
$adding_a_shipping_method_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=adding-a-shipping-method#Metody_wysylki' : 'https://docs.flexibleshipping.com/article/29-shipping-methods/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=adding-a-shipping-method&utm_content=fs-configuration-flexibleshippingtablerate';
|
9 |
-
$currency_support_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=currency-support#Waluty' : 'https://docs.flexibleshipping.com/article/30-currency-support/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=currency-support&utm_content=fs-configuration-flexibleshippingtablerate';
|
10 |
-
$weight_based_shipping_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=weight-based-shipping#Koszt_na_wage' : 'https://docs.flexibleshipping.com/article/32-weight-based-shipping-woocommerce/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=weight-based-shipping&utm_content=fs-configuration-flexibleshippingtablerate';
|
11 |
-
$shipping_insurance_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=shipping-insurance#Ubezpieczenie_przesylki' : 'https://docs.flexibleshipping.com/article/34-shipping-insurance/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=shipping-insurance&utm_content=fs-configuration-flexibleshippingtablerate';
|
12 |
-
$conditional_cash_on_delivery_url = $pl ? 'https://www.wpdesk.pl/docs/flexible-shipping-pro-woocommerce-docs/?utm_source=flexible-shipping-info&utm_medium=link&utm_campaign=flexible-shipping-resources-box&utm_content=conditional-cash-on-delivery#Przesylka_za_pobraniem' : 'https://docs.flexibleshipping.com/article/35-conditional-cash-on-delivery/?utm_campaign=flexible-shipping&utm_source=user-site&utm_medium=link&utm_term=contitional-cash-on-delivery&utm_content=fs-configuration-flexibleshippingtablerate';
|
13 |
?>
|
14 |
-
|
15 |
-
<?php if ( $saas_connected ) : ?>
|
16 |
-
</table>
|
17 |
-
</div><!-- Closes .fs-services -->
|
18 |
-
<?php endif; ?>
|
19 |
-
|
20 |
-
<?php
|
21 |
-
if ( ! $saas_connected ) {
|
22 |
-
$button_class = 'button-primary';
|
23 |
-
$button_link = add_query_arg( 'page', WPDesk_Flexible_Shipping_SaaS_User_Registration::REGISTER_PAGE_SLUG, admin_url( 'admin.php' ) );
|
24 |
-
include( 'html-boxes-content.php' );
|
25 |
-
}
|
26 |
-
?>
|
27 |
-
<div class="fs-box" id="flexible-shipping-table-rate">
|
28 |
-
<h3 class="wc-settings-sub-title">Flexible Shipping Table Rate</h3>
|
29 |
-
|
30 |
-
<ol>
|
31 |
-
<li>
|
32 |
-
<?php
|
33 |
-
echo sprintf(
|
34 |
-
__( 'To add first Flexible Shipping method go to %sShipping zones%s and add Flexible Shipping to a shipping zone.', 'flexible-shipping' ),
|
35 |
-
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=shipping§ion' ) . '">',
|
36 |
-
'</a>'
|
37 |
-
);
|
38 |
-
?>
|
39 |
-
</li>
|
40 |
-
|
41 |
-
<li><?php _e( 'You can start the configuration by clicking the Flexible Shipping link in the Shipping methods table.', 'flexible-shipping' ); ?></li>
|
42 |
-
</ol>
|
43 |
-
|
44 |
-
<h4><?php _e( 'Quick Video Overview', 'flexible-shipping' ); ?></h4>
|
45 |
-
|
46 |
-
<div class="flexible-shipping-video">
|
47 |
-
<iframe width="688" height="387" src="<?php echo $youtube_url?>?rel=0&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
48 |
-
</div>
|
49 |
-
|
50 |
-
<h4><?php _e( 'More resources', 'flexible-shipping' ); ?></h4>
|
51 |
-
|
52 |
-
<ul>
|
53 |
-
<li><a href="<?php echo $general_settings_url; ?>"><?php _e( 'General Settings', 'flexible-shipping' ); ?></a></li>
|
54 |
-
<li><a href="<?php echo $adding_a_shipping_method_url; ?>"><?php _e( 'Adding a shipping method', 'flexible-shipping' ); ?></a></li>
|
55 |
-
<li><a href="<?php echo $currency_support_url; ?>"><?php _e( 'Currency Support', 'flexible-shipping' ); ?></a></li>
|
56 |
-
<li><a href="<?php echo $weight_based_shipping_url; ?>"><?php _e( 'Weight Based Shipping', 'flexible-shipping' ); ?></a></li>
|
57 |
-
<li><a href="<?php echo $shipping_insurance_url; ?>"><?php _e( 'Shipping Insurance', 'flexible-shipping' ); ?></a></li>
|
58 |
-
<li><a href="<?php echo $conditional_cash_on_delivery_url; ?>"><?php _e( 'Conditional Cash on Delivery', 'flexible-shipping' ); ?></a></li>
|
59 |
-
</ul>
|
60 |
</div>
|
61 |
-
|
62 |
-
<script type="text/javascript">
|
63 |
-
jQuery(document).ready(function() {
|
64 |
-
//jQuery('.woocommerce-save-button').hide();
|
65 |
-
jQuery('#mainform p.submit').appendTo( jQuery('.fs-box.fs-services') );
|
66 |
-
});
|
67 |
-
<?php if( !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MessageTest::MESSAGE_CONNECT ) ): ?>
|
68 |
-
jQuery(document).ready(function() {
|
69 |
-
var fs_wrap = jQuery('.fs-page-wrap');
|
70 |
-
jQuery('#flexible-shipping-table-rate').prependTo( fs_wrap );
|
71 |
-
fs_wrap.fadeIn();
|
72 |
-
});
|
73 |
-
<?php endif; ?>
|
74 |
-
</script>
|
75 |
-
|
76 |
-
</div><!-- Closes .fs-page-wrap -->
|
77 |
-
|
78 |
<table>
|
1 |
+
</table>
|
2 |
+
<div class="fs-page-wrap">
|
3 |
<?php
|
4 |
+
if( !$this->variant->is_on( WPDesk_Flexible_Shipping_AB_MenuTest::FS_WITH_MENU ) ) {
|
5 |
+
require 'html-shipping-method-info-description-body.php';
|
6 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<table>
|
classes/shipment/saas/class-shipment-saas-send.php
CHANGED
@@ -5,6 +5,9 @@
|
|
5 |
*/
|
6 |
class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
|
7 |
|
|
|
|
|
|
|
8 |
/**
|
9 |
* Shipment.
|
10 |
*
|
@@ -65,7 +68,7 @@ class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
|
|
65 |
private function prepare_packages() {
|
66 |
$package = new \WPDesk\SaasPlatformClient\Model\Shipment\Package();
|
67 |
$package->seTtype( $this->shipment->get_meta( 'package_type' ) );
|
68 |
-
$package->setWeight( intval( wc_get_weight( floatval( $this->shipment->get_meta( 'package_weight' ) ),
|
69 |
$package->setDescription( $this->shipment->get_meta( 'description' ) );
|
70 |
|
71 |
$package->dimensions = new \WPDesk\SaasPlatformClient\Model\Shipment\Package\Dimensions();
|
@@ -78,6 +81,42 @@ class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
|
|
78 |
return $packages;
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/**
|
82 |
* Prepare shop data.
|
83 |
*
|
@@ -119,6 +158,8 @@ class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
|
|
119 |
$shipment_request->setShipTo( $this->prepare_ship_to( $this->shipment->get_order() ) );
|
120 |
$shipment_request->setPackages( $this->prepare_packages() );
|
121 |
|
|
|
|
|
122 |
$shipment_request->setServiceType( $this->shipment->get_meta( 'service_type' ) );
|
123 |
|
124 |
$shipment_request->setShopData( $this->prepare_shop_data() );
|
5 |
*/
|
6 |
class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
|
7 |
|
8 |
+
const WEIGHT_UNIT = 'G';
|
9 |
+
const WOOCOMMERCE_GRAMS = 'g';
|
10 |
+
|
11 |
/**
|
12 |
* Shipment.
|
13 |
*
|
68 |
private function prepare_packages() {
|
69 |
$package = new \WPDesk\SaasPlatformClient\Model\Shipment\Package();
|
70 |
$package->seTtype( $this->shipment->get_meta( 'package_type' ) );
|
71 |
+
$package->setWeight( intval( wc_get_weight( floatval( $this->shipment->get_meta( 'package_weight' ) ), self::WOOCOMMERCE_GRAMS ) ) );
|
72 |
$package->setDescription( $this->shipment->get_meta( 'description' ) );
|
73 |
|
74 |
$package->dimensions = new \WPDesk\SaasPlatformClient\Model\Shipment\Package\Dimensions();
|
81 |
return $packages;
|
82 |
}
|
83 |
|
84 |
+
/**
|
85 |
+
* Prepare commodities.
|
86 |
+
*
|
87 |
+
* @param WC_Order $order Order.
|
88 |
+
*
|
89 |
+
* @return \WPDesk\SaasPlatformClient\Model\Shipment\ClientCommodity[]
|
90 |
+
*/
|
91 |
+
private function prepare_commodities( WC_Order $order ) {
|
92 |
+
$commodities = array();
|
93 |
+
/** @var WC_Order_Item_Product $order_item */
|
94 |
+
foreach ( $order->get_items() as $order_item ) {
|
95 |
+
$unit_price = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientMoney();
|
96 |
+
$unit_price->currency = $order->get_currency();
|
97 |
+
$unit_price->amount = $order_item->get_total();
|
98 |
+
|
99 |
+
$unit_weight = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientWeight();
|
100 |
+
$unit_weight->setUnit( self::WEIGHT_UNIT );
|
101 |
+
$unit_weight->setAmount( intval( wc_get_weight( $order_item->get_product()->get_weight(), self::WOOCOMMERCE_GRAMS ) ) );
|
102 |
+
|
103 |
+
$description = $order_item->get_product()->get_attribute( 'shipping-desc' );
|
104 |
+
$origin_country = $order_item->get_product()->get_attribute( 'origin-country' );
|
105 |
+
$hts = $order_item->get_product()->get_attribute( 'hts-code' );
|
106 |
+
|
107 |
+
$commodities[] = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientCommodity(
|
108 |
+
$order_item->get_name(),
|
109 |
+
$unit_price,
|
110 |
+
$unit_weight,
|
111 |
+
$order_item->get_quantity(),
|
112 |
+
$description,
|
113 |
+
$origin_country,
|
114 |
+
$hts
|
115 |
+
);
|
116 |
+
}
|
117 |
+
return $commodities;
|
118 |
+
}
|
119 |
+
|
120 |
/**
|
121 |
* Prepare shop data.
|
122 |
*
|
158 |
$shipment_request->setShipTo( $this->prepare_ship_to( $this->shipment->get_order() ) );
|
159 |
$shipment_request->setPackages( $this->prepare_packages() );
|
160 |
|
161 |
+
$shipment_request->setCommodities( $this->prepare_commodities( $this->shipment->get_order() ) );
|
162 |
+
|
163 |
$shipment_request->setServiceType( $this->shipment->get_meta( 'service_type' ) );
|
164 |
|
165 |
$shipment_request->setShopData( $this->prepare_shop_data() );
|
classes/tracker.php
CHANGED
@@ -18,7 +18,6 @@ class WPDesk_Flexible_Shipping_Tracker {
|
|
18 |
add_filter( 'wpdesk_track_plugin_deactivation', array( $this, 'wpdesk_track_plugin_deactivation' ) );
|
19 |
|
20 |
add_filter( self::PLUGIN_ACTION_LINKS_FILTER_NAME, array( $this, 'plugin_action_links' ) );
|
21 |
-
add_action( 'activated_plugin', array( $this, 'activated_plugin' ), 10, 2 );
|
22 |
}
|
23 |
|
24 |
/**
|
@@ -166,10 +165,6 @@ class WPDesk_Flexible_Shipping_Tracker {
|
|
166 |
$data['flexible_shipping']['avg_rules'] = $data['flexible_shipping']['avg_rules'] / $data['flexible_shipping']['total_shipping_methods'];
|
167 |
}
|
168 |
|
169 |
-
$button = WPDesk_Flexible_Shipping_Tracker_Button::get_button_pagetype();
|
170 |
-
if( $button ) {
|
171 |
-
$data['flexible_shipping']['button_tracking_pagetype'] = $button;
|
172 |
-
}
|
173 |
return $data;
|
174 |
}
|
175 |
|
@@ -221,43 +216,6 @@ class WPDesk_Flexible_Shipping_Tracker {
|
|
221 |
return array_merge( $plugin_links, $links );
|
222 |
}
|
223 |
|
224 |
-
|
225 |
-
/**
|
226 |
-
* Show tracker message after plugin activation.
|
227 |
-
*
|
228 |
-
* @param string $plugin Plugin name.
|
229 |
-
* @param bool $network_wide Network wide.
|
230 |
-
*/
|
231 |
-
public function activated_plugin( $plugin, $network_wide ) {
|
232 |
-
if ( $network_wide ) {
|
233 |
-
return;
|
234 |
-
}
|
235 |
-
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
236 |
-
return;
|
237 |
-
}
|
238 |
-
if ( ! wpdesk_tracker_enabled() ) {
|
239 |
-
return;
|
240 |
-
}
|
241 |
-
if ( 'flexible-shipping/flexible-shipping.php' === $plugin ) {
|
242 |
-
$options = get_option( 'wpdesk_helper_options', array() );
|
243 |
-
if ( empty( $options ) ) {
|
244 |
-
$options = array();
|
245 |
-
}
|
246 |
-
if ( empty( $options['wpdesk_tracker_agree'] ) ) {
|
247 |
-
$options['wpdesk_tracker_agree'] = '0';
|
248 |
-
}
|
249 |
-
$wpdesk_tracker_skip_plugin = get_option( 'wpdesk_tracker_skip_flexible_shipping', '0' );
|
250 |
-
if ( '0' === $options['wpdesk_tracker_agree'] && '0' === $wpdesk_tracker_skip_plugin ) {
|
251 |
-
update_option( 'wpdesk_tracker_notice', '1' );
|
252 |
-
update_option( 'wpdesk_tracker_skip_flexible_shipping', '1' );
|
253 |
-
if ( ! apply_filters( 'wpdesk_tracker_do_not_ask', false ) && ! apply_filters( 'wpdesk_tracker_hide_activation_message', false ) ) {
|
254 |
-
wp_safe_redirect( admin_url( 'admin.php?page=wpdesk_tracker&plugin=flexible-shipping/flexible-shipping.php' ) );
|
255 |
-
exit;
|
256 |
-
}
|
257 |
-
}
|
258 |
-
}
|
259 |
-
}
|
260 |
-
|
261 |
}
|
262 |
|
263 |
if ( ! function_exists( 'wpdesk_activated_plugin_activation_date' ) ) {
|
18 |
add_filter( 'wpdesk_track_plugin_deactivation', array( $this, 'wpdesk_track_plugin_deactivation' ) );
|
19 |
|
20 |
add_filter( self::PLUGIN_ACTION_LINKS_FILTER_NAME, array( $this, 'plugin_action_links' ) );
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
165 |
$data['flexible_shipping']['avg_rules'] = $data['flexible_shipping']['avg_rules'] / $data['flexible_shipping']['total_shipping_methods'];
|
166 |
}
|
167 |
|
|
|
|
|
|
|
|
|
168 |
return $data;
|
169 |
}
|
170 |
|
216 |
return array_merge( $plugin_links, $links );
|
217 |
}
|
218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
}
|
220 |
|
221 |
if ( ! function_exists( 'wpdesk_activated_plugin_activation_date' ) ) {
|
classes/views/html-menu-icon.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style type="text/css" media="screen">
|
2 |
+
#adminmenu #toplevel_page_flexible-shipping-menu a div.wp-menu-image::before {
|
3 |
+
font-family: WooCommerce !important;
|
4 |
+
content: '\e019';
|
5 |
+
}
|
6 |
+
|
7 |
+
.toplevel_page_flexible-shipping-menu #wpdesk_tracker_notice {
|
8 |
+
margin: 10px 20px 0 2px;
|
9 |
+
}
|
10 |
+
|
11 |
+
.fs-connect__inner-container {
|
12 |
+
background-color: #FFF;
|
13 |
+
margin-bottom: 20px;
|
14 |
+
}
|
15 |
+
</style>
|
flexible-shipping.php
CHANGED
@@ -3,13 +3,13 @@
|
|
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: 3.1.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 4.5
|
12 |
-
Tested up to: 5.0
|
13 |
WC requires at least: 3.1.0
|
14 |
WC tested up to: 3.5.4
|
15 |
|
@@ -44,7 +44,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
|
|
44 |
|
45 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
46 |
|
47 |
-
$plugin_version = '3.1.
|
48 |
$plugin_release_timestamp = '2019-02-06';
|
49 |
|
50 |
$plugin_name = 'Flexible Shipping';
|
@@ -79,9 +79,6 @@ if ( $requirements_checker->are_requirements_met() ) {
|
|
79 |
$plugin_info->set_plugin_url( plugins_url( dirname( plugin_basename( __FILE__ ) ) ) );
|
80 |
|
81 |
require_once dirname( __FILE__ ) . '/plugin-load.php';
|
82 |
-
|
83 |
-
require_once __DIR__ . '/ab-tests.php';
|
84 |
-
|
85 |
} else {
|
86 |
$requirements_checker->disable_plugin_render_notice();
|
87 |
}
|
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: 3.1.8
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 4.5
|
12 |
+
Tested up to: 5.1.0
|
13 |
WC requires at least: 3.1.0
|
14 |
WC tested up to: 3.5.4
|
15 |
|
44 |
|
45 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
46 |
|
47 |
+
$plugin_version = '3.1.8';
|
48 |
$plugin_release_timestamp = '2019-02-06';
|
49 |
|
50 |
$plugin_name = 'Flexible Shipping';
|
79 |
$plugin_info->set_plugin_url( plugins_url( dirname( plugin_basename( __FILE__ ) ) ) );
|
80 |
|
81 |
require_once dirname( __FILE__ ) . '/plugin-load.php';
|
|
|
|
|
|
|
82 |
} else {
|
83 |
$requirements_checker->disable_plugin_render_notice();
|
84 |
}
|
inc/wpdesk-tracker/views/tracker-notice.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<script type="text/javascript">
|
15 |
jQuery(document).on('click', '#wpdesk_tracker_notice .notice-dismiss',function(e){
|
16 |
e.preventDefault();
|
17 |
-
console.log('dismiss');
|
18 |
jQuery.ajax( '<?php echo admin_url('admin-ajax.php'); ?>',
|
19 |
{
|
20 |
type: 'POST',
|
@@ -27,7 +27,7 @@
|
|
27 |
})
|
28 |
jQuery(document).on('click', '#wpdesk_tracker_allow_button_notice',function(e){
|
29 |
e.preventDefault();
|
30 |
-
console.log('allow');
|
31 |
jQuery.ajax( '<?php echo admin_url('admin-ajax.php'); ?>',
|
32 |
{
|
33 |
type: 'POST',
|
14 |
<script type="text/javascript">
|
15 |
jQuery(document).on('click', '#wpdesk_tracker_notice .notice-dismiss',function(e){
|
16 |
e.preventDefault();
|
17 |
+
console.log('dismiss in plugin');
|
18 |
jQuery.ajax( '<?php echo admin_url('admin-ajax.php'); ?>',
|
19 |
{
|
20 |
type: 'POST',
|
27 |
})
|
28 |
jQuery(document).on('click', '#wpdesk_tracker_allow_button_notice',function(e){
|
29 |
e.preventDefault();
|
30 |
+
console.log('allow in plugin');
|
31 |
jQuery.ajax( '<?php echo admin_url('admin-ajax.php'); ?>',
|
32 |
{
|
33 |
type: 'POST',
|
lang/flexible-shipping-pl_PL.mo
CHANGED
Binary file
|
lang/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: 2019-
|
5 |
-
"PO-Revision-Date: 2019-
|
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.2\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 "
|
@@ -22,6 +22,19 @@ msgstr ""
|
|
22 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
"X-Poedit-SearchPathExcluded-1: vendor\n"
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
#: classes/admin-notices.php:164
|
26 |
#, php-format
|
27 |
msgid ""
|
@@ -123,7 +136,7 @@ msgstr "Nie wykonano żadnych działań."
|
|
123 |
msgid "Label downloaded."
|
124 |
msgstr "Etykieta została pobrana."
|
125 |
|
126 |
-
#: classes/bulk-actions.php:
|
127 |
msgid ""
|
128 |
"Unable to create temporary zip archive for labels. Check temporary folder "
|
129 |
"configuration on server."
|
@@ -131,7 +144,7 @@ msgstr ""
|
|
131 |
"Nie można utworzyć tymczasowego archiwum zip dla etykiet. Sprawdź "
|
132 |
"konfigurację folderu na serwerze."
|
133 |
|
134 |
-
#: classes/bulk-actions.php:
|
135 |
#, php-format
|
136 |
msgid ""
|
137 |
"Created manifest: %s (%s). If download not start automatically click %shere"
|
@@ -140,28 +153,28 @@ msgstr ""
|
|
140 |
"Utworzone protokoły nadania: %s (%s). Jeśli pobieranie nie rozpoczęło się "
|
141 |
"automatycznie kliknij %stutaj%s."
|
142 |
|
143 |
-
#: classes/bulk-actions.php:
|
144 |
#, php-format
|
145 |
msgid "Manifest creation error: %s (%s)."
|
146 |
msgstr "Błąd podczas tworzenia protokołu nadania: %s (%s)."
|
147 |
|
148 |
-
#: classes/bulk-actions.php:
|
149 |
msgid "No manifests created."
|
150 |
msgstr "Nie zostały utworzone protokoły nadania."
|
151 |
|
152 |
-
#: classes/bulk-actions.php:
|
153 |
#, php-format
|
154 |
msgid "Bulk send shipment - processed orders: %d"
|
155 |
msgstr "Masowe nadawanie przesyłek - przetworzone zamówienia: %d"
|
156 |
|
157 |
-
#: classes/bulk-actions.php:
|
158 |
#, php-format
|
159 |
msgid "Bulk labels - processed orders: %d. No labels for processed orders."
|
160 |
msgstr ""
|
161 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Brak etykiet dla "
|
162 |
"przetworzonych zamówień."
|
163 |
|
164 |
-
#: classes/bulk-actions.php:
|
165 |
#, php-format
|
166 |
msgid ""
|
167 |
"Bulk labels - processed orders: %d. If download not start automatically "
|
@@ -170,24 +183,24 @@ msgstr ""
|
|
170 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Jeśli pobieranie "
|
171 |
"nie rozpoczęło się automatycznie kliknij %stutaj%s ."
|
172 |
|
173 |
-
#: classes/bulk-actions.php:
|
174 |
#, php-format
|
175 |
msgid "Bulk shipping manifest - processed orders: %d"
|
176 |
msgstr "Zbiorcze tworzenie protokołów nadania - przetworzone zamówienia: %d"
|
177 |
|
178 |
-
#: classes/class-flexible-shipping-plugin.php:
|
179 |
msgid "Settings"
|
180 |
msgstr "Ustawienia"
|
181 |
|
182 |
-
#: classes/class-flexible-shipping-plugin.php:
|
183 |
msgid "Docs"
|
184 |
msgstr "Docs"
|
185 |
|
186 |
-
#: classes/class-flexible-shipping-plugin.php:
|
187 |
msgid "Support"
|
188 |
msgstr "Wsparcie"
|
189 |
|
190 |
-
#: classes/class-flexible-shipping-plugin.php:
|
191 |
msgid "Upgrade"
|
192 |
msgstr "Kup PRO"
|
193 |
|
@@ -345,16 +358,6 @@ msgstr "Przesyłka"
|
|
345 |
msgid "Order"
|
346 |
msgstr "Zamówienie"
|
347 |
|
348 |
-
#. Plugin Name of the plugin/theme
|
349 |
-
#: classes/multilingual.php:44 classes/multilingual.php:47
|
350 |
-
#: classes/multilingual.php:50 classes/saas/class-saas-settings.php:77
|
351 |
-
#: classes/settings/flexible-shipping.php:16
|
352 |
-
#: classes/settings/flexible-shipping.php:30
|
353 |
-
#: classes/settings/shipping-method-form.php:79 classes/shipping-method.php:26
|
354 |
-
#: classes/shipping-method.php:27 classes/shipping-method.php:45
|
355 |
-
msgid "Flexible Shipping"
|
356 |
-
msgstr "Flexible Shipping"
|
357 |
-
|
358 |
#: classes/saas/class-saas-bad-credentials-exception.php:17
|
359 |
#, php-format
|
360 |
msgid ""
|
@@ -492,7 +495,7 @@ msgstr "Połącz"
|
|
492 |
msgid "%1$s (free shipping)"
|
493 |
msgstr "%1$s (darmowa wysyłka)"
|
494 |
|
495 |
-
#: classes/saas/class-saas-live-rates-fallback-metadata-handler.php:
|
496 |
#, php-format
|
497 |
msgid "%1$s (fallback)"
|
498 |
msgstr "%1$s (stawka awaryjna)"
|
@@ -540,11 +543,15 @@ msgstr "Przejdź do ustawień %s</a>"
|
|
540 |
msgid "%1$s%2$s (new)%3$s"
|
541 |
msgstr "%1$s%2$s (nowość)%3$s"
|
542 |
|
543 |
-
#: classes/saas/class-saas-settings.php:
|
|
|
|
|
|
|
|
|
544 |
msgid "Connect Services"
|
545 |
msgstr "Usługi Connect"
|
546 |
|
547 |
-
#: classes/saas/class-saas-settings.php:
|
548 |
msgid ""
|
549 |
"Enable services to automate shipping and print labels with Flexible Shipping "
|
550 |
"Connect."
|
@@ -552,7 +559,7 @@ msgstr ""
|
|
552 |
"Włącz usługi, aby automatyzować wysyłkę i pobierać etykiety dzięki Flexible "
|
553 |
"Shipping Connect."
|
554 |
|
555 |
-
#: classes/saas/class-saas-settings.php:
|
556 |
msgid "Advanced settings"
|
557 |
msgstr "Ustawienia zaawansowane"
|
558 |
|
@@ -665,7 +672,7 @@ msgstr ""
|
|
665 |
msgid "You need to configure the service. %1$sGo to %2$s settings.%3$s"
|
666 |
msgstr "Musisz skonfigurować usługę. %1$sPrzejdź do %2$s ustawień.%3$s"
|
667 |
|
668 |
-
#: classes/saas/class-saas-shipping-services-manager.php:
|
669 |
#, php-format
|
670 |
msgid "%1$sYour settings have been saved.%2$s"
|
671 |
msgstr "%1$sUstawienia zostały zapisane.%2$s"
|
@@ -674,22 +681,22 @@ msgstr "%1$sUstawienia zostały zapisane.%2$s"
|
|
674 |
msgid "Services"
|
675 |
msgstr "Usługi"
|
676 |
|
677 |
-
#: classes/saas/class-saas-user-registration.php:
|
678 |
-
#: classes/saas/class-saas-user-registration.php:
|
679 |
msgid "Flexible Shipping Connect Registration"
|
680 |
msgstr "Rejestracja Flexible Shipping Connect"
|
681 |
|
682 |
-
#: classes/saas/class-saas-user-registration.php:
|
683 |
msgid ""
|
684 |
"There are some connection problems. Please try again in few minutes. Thanks!"
|
685 |
msgstr ""
|
686 |
"Chwilowe problemy z połączeniem. Spróbuj ponownie za kilka minut. Dziękujemy!"
|
687 |
|
688 |
-
#: classes/saas/class-saas-user-registration.php:
|
689 |
msgid "Please enter a valid email!"
|
690 |
msgstr "Proszę podać poprawny adres e-mail!"
|
691 |
|
692 |
-
#: classes/saas/class-saas-user-registration.php:
|
693 |
#, php-format
|
694 |
msgid ""
|
695 |
"%1$sAccount created, please check your email and click the activation link "
|
@@ -700,7 +707,7 @@ msgstr ""
|
|
700 |
"połączyć (%3$s).%2$s Jeśli nie otrzymałeś e-maila, proszę %4$sskontaktuj się "
|
701 |
"z nami%5$s."
|
702 |
|
703 |
-
#: classes/saas/class-saas-user-registration.php:
|
704 |
#, php-format
|
705 |
msgid ""
|
706 |
"Your store (%1$s) is already registered with another account! You can "
|
@@ -711,7 +718,7 @@ msgstr ""
|
|
711 |
"zarejestrować swoją domenę za pomocą jednego konta. Jeśli masz pytania, "
|
712 |
"%2$sskontaktuj się z nami%3$s."
|
713 |
|
714 |
-
#: classes/saas/class-saas-user-registration.php:
|
715 |
#, php-format
|
716 |
msgid ""
|
717 |
"Our demo does not support Flexible Shipping Connect registration. Try FS "
|
@@ -720,7 +727,7 @@ msgstr ""
|
|
720 |
"Nasze demo nie obsługuje rejestracji Flexible Shipping Connect. Wypróbuj FS "
|
721 |
"Connect za darmo. %1$sSprawdź teraz →%2$s"
|
722 |
|
723 |
-
#: classes/saas/class-saas-user-registration.php:
|
724 |
#, php-format
|
725 |
msgid ""
|
726 |
"Account with this email is already registered! We emailed your Connect Key "
|
@@ -731,7 +738,7 @@ msgstr ""
|
|
731 |
"kluczem Connect do %1$s.<br>Wpisz klucz %2$stutaj%4$s. Możesz również "
|
732 |
"uzyskać klucz logując się na %3$sswoje konto%4$s."
|
733 |
|
734 |
-
#: classes/saas/class-saas-user-registration.php:
|
735 |
#, php-format
|
736 |
msgid "Unknown response code from Flexible Shipping Connect API (%s)."
|
737 |
msgstr "Nieznany kod odpowiedzi z API Flexible Shipping Connect (%s)."
|
@@ -751,13 +758,13 @@ msgstr ""
|
|
751 |
|
752 |
#: classes/saas/views/html-boxes-content.php:10
|
753 |
#: classes/saas/views/html-boxes-content.php:11
|
754 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:89
|
755 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:90
|
|
|
756 |
msgid "Calculate Rates"
|
757 |
msgstr "Obliczaj stawki"
|
758 |
|
759 |
#: classes/saas/views/html-boxes-content.php:12
|
760 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
761 |
msgid ""
|
762 |
"Calculate shipping rates in real time, and get available service types and "
|
763 |
"expected delivery time based on customer's address."
|
@@ -767,13 +774,13 @@ msgstr ""
|
|
767 |
|
768 |
#: classes/saas/views/html-boxes-content.php:16
|
769 |
#: classes/saas/views/html-boxes-content.php:17
|
770 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:95
|
771 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:96
|
|
|
772 |
msgid "Track Parcels"
|
773 |
msgstr "Śledź przesyłki"
|
774 |
|
775 |
#: classes/saas/views/html-boxes-content.php:18
|
776 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
777 |
msgid ""
|
778 |
"Always keep your customers (and yourself) up to date with automatic "
|
779 |
"confirmation emails with tracking link and delivery status."
|
@@ -783,13 +790,13 @@ msgstr ""
|
|
783 |
|
784 |
#: classes/saas/views/html-boxes-content.php:22
|
785 |
#: classes/saas/views/html-boxes-content.php:23
|
786 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:101
|
787 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:102
|
|
|
788 |
msgid "Automate Shipping"
|
789 |
msgstr "Automatyzuj wysyłkę"
|
790 |
|
791 |
#: classes/saas/views/html-boxes-content.php:24
|
792 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
793 |
msgid ""
|
794 |
"Automatically create shipments and print labels based on order status. "
|
795 |
"Change order status after shipment creation."
|
@@ -813,13 +820,13 @@ msgstr ""
|
|
813 |
|
814 |
#: classes/saas/views/html-boxes-content.php:34
|
815 |
#: classes/saas/views/html-boxes-content.php:35
|
816 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:107
|
817 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:108
|
|
|
818 |
msgid "Manage Orders"
|
819 |
msgstr "Zarządzaj zamówieniami"
|
820 |
|
821 |
#: classes/saas/views/html-boxes-content.php:36
|
822 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
823 |
msgid ""
|
824 |
"Get a complete overview of your orders and shipments in your WooCommerce "
|
825 |
"dashboard with shipments statuses and filters."
|
@@ -828,7 +835,7 @@ msgstr ""
|
|
828 |
"bezpośrednio z panelu WooCommerce za pomocą statusów i filtrów."
|
829 |
|
830 |
#: classes/saas/views/html-boxes-content.php:43
|
831 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
832 |
msgid "Ship your orders faster with Flexible Shipping Connect"
|
833 |
msgstr "Wysyłaj zamówienia szybciej z Flexible Shipping Connect"
|
834 |
|
@@ -853,18 +860,18 @@ msgstr ""
|
|
853 |
msgid "Check how to start with FS Connect →"
|
854 |
msgstr "Sprawdź jak zacząć z FS Connect →"
|
855 |
|
856 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
857 |
msgid "Welcome to new Flexible Shipping Connect installation guide."
|
858 |
msgstr "Witamy w przewodniku o nowym Flexible Shipping Connect."
|
859 |
|
860 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
861 |
msgid ""
|
862 |
"To complete the installation please click the Sign up for Connect button "
|
863 |
"below."
|
864 |
msgstr ""
|
865 |
"Aby zakończyć instalację, kliknij poniżej przycisk Zarejestruj się w Connect."
|
866 |
|
867 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
868 |
#, php-format
|
869 |
msgid ""
|
870 |
"The %saccount is free (no credit card needed)%s and allows you to send "
|
@@ -873,7 +880,7 @@ msgstr ""
|
|
873 |
"Konto %sjest bezpłatne (nie wymaga karty kredytowej) %s i pozwala na "
|
874 |
"nadawanie paczek bezpośrednio z panelu WooCommerce!"
|
875 |
|
876 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
877 |
msgid ""
|
878 |
"If you want to learn more about other benefits, you may click one of the "
|
879 |
"tabs on the left."
|
@@ -881,28 +888,28 @@ msgstr ""
|
|
881 |
"Jeśli chcesz dowiedzieć się więcej o innych korzyściach, możesz kliknąć "
|
882 |
"jedną z zakładek po lewej stronie."
|
883 |
|
884 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
885 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
886 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
887 |
msgid "soon!"
|
888 |
msgstr "wkrótce!"
|
889 |
|
890 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
891 |
msgid "Using Flexible Shipping Connect, you can send packages via:"
|
892 |
msgstr ""
|
893 |
"Korzystając z Flexible Shipping Connect, możesz wysyłać paczki za "
|
894 |
"pośrednictwem:"
|
895 |
|
896 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
897 |
msgid "Read more about possible integrations →"
|
898 |
msgstr "Przeczytaj więcej o możliwych integracjach →"
|
899 |
|
900 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:83
|
901 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:84
|
|
|
902 |
msgid "Create & Print Labels"
|
903 |
msgstr "Twórz i drukuj etykiety"
|
904 |
|
905 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
906 |
msgid ""
|
907 |
"Create shipments with predefined services, sizes and weights automatically "
|
908 |
"filled in from order items. Download printable PDF shipping labels directly "
|
@@ -912,20 +919,20 @@ msgstr ""
|
|
912 |
"wypełnionymi z pozycji zamówienia. Pobieraj etykiety wysyłkowe bezpośrednio "
|
913 |
"z listy zamówień WooCommerce lub edycji zamówienia."
|
914 |
|
915 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:113
|
916 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:114
|
|
|
917 |
msgid "Couriers"
|
918 |
msgstr "Kurierzy"
|
919 |
|
920 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
921 |
msgid "Sign up for Connect"
|
922 |
msgstr "Zarejestruj się w Connect"
|
923 |
|
924 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
925 |
msgid "Start quick tour"
|
926 |
msgstr "Rozpocznij przewodnik"
|
927 |
|
928 |
-
#: classes/saas/views/html-flexible-shipping-connect-notice.php:
|
929 |
msgid "Next feature"
|
930 |
msgstr "Następna funkcja"
|
931 |
|
@@ -993,7 +1000,11 @@ msgstr ""
|
|
993 |
"Czy jesteś pewien, że chcesz odłączyć swój sklep od Flexible Shipping "
|
994 |
"Connect?\\n\\nWszystkie integracje wysyłkowe zostaną wyłączone."
|
995 |
|
996 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
|
|
|
|
|
|
|
|
997 |
#, php-format
|
998 |
msgid ""
|
999 |
"To add first Flexible Shipping method go to %sShipping zones%s and add "
|
@@ -1002,7 +1013,7 @@ msgstr ""
|
|
1002 |
"Aby dodać pierwszą metodę Flexible Shipping przejdź do zakładki %sStrefy "
|
1003 |
"wysyłki%s i dodaj Flexible Shipping do strefy wysyłki."
|
1004 |
|
1005 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1006 |
msgid ""
|
1007 |
"You can start the configuration by clicking the Flexible Shipping link in "
|
1008 |
"the Shipping methods table."
|
@@ -1010,35 +1021,35 @@ msgstr ""
|
|
1010 |
"Możesz rozpocząć konfigurację klikając na link Flexible Shipping w tabeli "
|
1011 |
"”Metody wysyłki”."
|
1012 |
|
1013 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1014 |
msgid "Quick Video Overview"
|
1015 |
msgstr "Krótki przewodnik video"
|
1016 |
|
1017 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1018 |
msgid "More resources"
|
1019 |
msgstr "Więcej informacji"
|
1020 |
|
1021 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1022 |
msgid "General Settings"
|
1023 |
msgstr "Ustawienia główne"
|
1024 |
|
1025 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1026 |
msgid "Adding a shipping method"
|
1027 |
msgstr "Dodawanie metody wysyłki"
|
1028 |
|
1029 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1030 |
msgid "Currency Support"
|
1031 |
msgstr "Waluty"
|
1032 |
|
1033 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1034 |
msgid "Weight Based Shipping"
|
1035 |
msgstr "Koszt na wagę"
|
1036 |
|
1037 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1038 |
msgid "Shipping Insurance"
|
1039 |
msgstr "Ubezpieczenie przesyłki"
|
1040 |
|
1041 |
-
#: classes/saas/views/html-shipping-method-info-description.php:
|
1042 |
msgid "Conditional Cash on Delivery"
|
1043 |
msgstr "Przesyłka za pobraniem"
|
1044 |
|
@@ -1048,7 +1059,7 @@ msgid "See how to %sconfigure Flexible Shipping%s."
|
|
1048 |
msgstr "Zobacz jak %sskonfigurować Flexible Shipping%s."
|
1049 |
|
1050 |
#: classes/settings/flexible-shipping.php:21
|
1051 |
-
#: classes/settings/shipping-method-form.php:70 classes/shipping-method.php:
|
1052 |
msgid "Enable/Disable"
|
1053 |
msgstr "Włącz/Wyłącz"
|
1054 |
|
@@ -1114,11 +1125,11 @@ msgstr ""
|
|
1114 |
"Wysyłaj zamówienia szybciej z %1$sFlexible Shipping Connect%2$s%3$s"
|
1115 |
"%4$sZarejestruj się teraz!%5$s"
|
1116 |
|
1117 |
-
#: classes/settings/shipping-method-form.php:54 classes/shipping-method.php:
|
1118 |
msgid "Free"
|
1119 |
msgstr "Bezpłatnie"
|
1120 |
|
1121 |
-
#: classes/settings/shipping-method-form.php:73 classes/shipping-method.php:
|
1122 |
msgid "Enable this shipment method"
|
1123 |
msgstr "Włącz tę metodę wysyłki"
|
1124 |
|
@@ -1126,7 +1137,7 @@ msgstr "Włącz tę metodę wysyłki"
|
|
1126 |
msgid "Method Title"
|
1127 |
msgstr "Tytuł metody"
|
1128 |
|
1129 |
-
#: classes/settings/shipping-method-form.php:78 classes/shipping-method.php:
|
1130 |
msgid "This controls the title which the user sees during checkout."
|
1131 |
msgstr "Tytuł, który widzi użytkownik podczas składania zamówienia."
|
1132 |
|
@@ -1366,7 +1377,7 @@ msgstr "Anulowana"
|
|
1366 |
msgid "%1$s notice"
|
1367 |
msgstr "%1$s komunikat"
|
1368 |
|
1369 |
-
#: classes/shipment/saas/class-shipment-saas-send.php:
|
1370 |
#: classes/shipment/saas/class-shipment-saas.php:351
|
1371 |
msgid "UPS! Something is wrong!"
|
1372 |
msgstr "UPS! Nie działa poprawnie!"
|
@@ -1392,7 +1403,7 @@ msgstr "Etykieta nie jest dostępna dla tej przesyłki."
|
|
1392 |
|
1393 |
#: classes/shipment/saas/views/order-metabox-actions.php:3
|
1394 |
msgid "Create"
|
1395 |
-
msgstr "
|
1396 |
|
1397 |
#: classes/shipment/saas/views/order-metabox-actions.php:4
|
1398 |
msgid "Save"
|
@@ -1420,108 +1431,108 @@ msgstr "%1$sKoszt przesyłki:%2$s %3$s"
|
|
1420 |
msgid "%1$sShipment status:%2$s %3$s"
|
1421 |
msgstr "%1$s Status przesyłki: %2$s %3$s"
|
1422 |
|
1423 |
-
#: classes/shipping-method.php:
|
1424 |
msgid "Shipping Title"
|
1425 |
msgstr "Tytuł"
|
1426 |
|
1427 |
-
#: classes/shipping-method.php:
|
1428 |
#: classes/views/html-shipping-method-rules.php:240
|
1429 |
msgid "Add New"
|
1430 |
msgstr "Dodaj nową"
|
1431 |
|
1432 |
-
#: classes/shipping-method.php:
|
1433 |
msgid ""
|
1434 |
"Sorry, there has been an error. The CSV is invalid or incorrect file type."
|
1435 |
msgstr ""
|
1436 |
"Przepraszamy, wystąpił błąd. Plik CSV jest niepoprawny lub typ pliku jest "
|
1437 |
"nieprawidłowy."
|
1438 |
|
1439 |
-
#: classes/shipping-method.php:
|
1440 |
msgid "import"
|
1441 |
msgstr "import"
|
1442 |
|
1443 |
-
#: classes/shipping-method.php:
|
1444 |
#, php-format
|
1445 |
msgid "Free Shipping value %s is not valid number. Row number %d."
|
1446 |
msgstr "Wartość darmowej wysyłki %s jest niepoprawna. Numer wiersza %d."
|
1447 |
|
1448 |
-
#: classes/shipping-method.php:
|
1449 |
#, php-format
|
1450 |
msgid "Maximum Cost value %s is not valid number. Row number %d."
|
1451 |
msgstr "Maksymalny koszt %s jest niepoprawny. Numer wiersza %d."
|
1452 |
|
1453 |
-
#: classes/shipping-method.php:
|
1454 |
#, php-format
|
1455 |
msgid "Invalid value for Calculation Method in row number %d."
|
1456 |
msgstr "Nieprawidłowa wartość dla Metody obliczania w wierszu %d."
|
1457 |
|
1458 |
-
#: classes/shipping-method.php:
|
1459 |
#, php-format
|
1460 |
msgid "Invalid value for Based On in row number %d."
|
1461 |
msgstr "Nieprawidłowa wartość dla Oparte na w wierszu %d."
|
1462 |
|
1463 |
-
#: classes/shipping-method.php:
|
1464 |
#, php-format
|
1465 |
msgid "Min value %s is not valid number. Row number %d."
|
1466 |
msgstr "Wartość Min %s jest niepoprawna. Numer wiersza %d."
|
1467 |
|
1468 |
-
#: classes/shipping-method.php:
|
1469 |
#, php-format
|
1470 |
msgid "Max value %s is not valid number. Row number %d."
|
1471 |
msgstr "Wartość Maks %s jest niepoprawna. Numer wiersza %d."
|
1472 |
|
1473 |
-
#: classes/shipping-method.php:
|
1474 |
#, php-format
|
1475 |
msgid "Cost per order value %s is not valid number. Row number %d."
|
1476 |
msgstr "Wartość Koszt na zamówienie %s jest niepoprawna. Numer wiersza %d."
|
1477 |
|
1478 |
-
#: classes/shipping-method.php:
|
1479 |
#, php-format
|
1480 |
msgid "Additional cost value %s is not valid number. Row number %d."
|
1481 |
msgstr "Wartość Dodatkowy koszt %s jest niepoprawna. Numer wiersza %d."
|
1482 |
|
1483 |
-
#: classes/shipping-method.php:
|
1484 |
#, php-format
|
1485 |
msgid "Value value %s is not valid number. Row number %d."
|
1486 |
msgstr "Wartość w polu Wartość %s jest niepoprawna. Numer wiersza %d."
|
1487 |
|
1488 |
-
#: classes/shipping-method.php:
|
1489 |
#, php-format
|
1490 |
msgid "Shipping method %s imported as %s."
|
1491 |
msgstr "Metoda wysyłki %s została zaimportowana jako %s."
|
1492 |
|
1493 |
-
#: classes/shipping-method.php:
|
1494 |
msgid "New Shipping Method"
|
1495 |
msgstr "Nowa metoda wysyłki"
|
1496 |
|
1497 |
-
#: classes/shipping-method.php:
|
1498 |
msgid "Edit Shipping Method"
|
1499 |
msgstr "Edytuj metodę wysyłki"
|
1500 |
|
1501 |
-
#: classes/shipping-method.php:
|
1502 |
#, php-format
|
1503 |
msgid "Shipping method %s added."
|
1504 |
msgstr "Metoda wysyłki dodana: %s."
|
1505 |
|
1506 |
-
#: classes/shipping-method.php:
|
1507 |
#, php-format
|
1508 |
msgid "Shipping method %s deleted."
|
1509 |
msgstr "Metoda wysyłki usunięta: %s."
|
1510 |
|
1511 |
-
#: classes/shipping-method.php:
|
1512 |
msgid "Shipping method not found."
|
1513 |
msgstr "Metoda wysyłki nie znaleziona."
|
1514 |
|
1515 |
-
#: classes/shipping-method.php:
|
1516 |
#, php-format
|
1517 |
msgid "Shipping method %s updated."
|
1518 |
msgstr "Metoda wysyłki zaktualizowana: %s."
|
1519 |
|
1520 |
-
#: classes/tracker.php:
|
1521 |
msgid "Opt-in"
|
1522 |
msgstr "Opt-in"
|
1523 |
|
1524 |
-
#: classes/tracker.php:
|
1525 |
msgid "Opt-out"
|
1526 |
msgstr "Opt-out"
|
1527 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Flexible Shipping\n"
|
4 |
+
"POT-Creation-Date: 2019-02-19 17:12+0100\n"
|
5 |
+
"PO-Revision-Date: 2019-02-19 17:15+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.2.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 "
|
22 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
"X-Poedit-SearchPathExcluded-1: vendor\n"
|
24 |
|
25 |
+
#. Plugin Name of the plugin/theme
|
26 |
+
#: classes/abtests/class-ab-menu-page.php:76
|
27 |
+
#: classes/abtests/class-ab-menu-page.php:77
|
28 |
+
#: classes/abtests/class-ab-menu-page.php:102 classes/multilingual.php:44
|
29 |
+
#: classes/multilingual.php:47 classes/multilingual.php:50
|
30 |
+
#: classes/saas/class-saas-settings.php:89
|
31 |
+
#: classes/settings/flexible-shipping.php:16
|
32 |
+
#: classes/settings/flexible-shipping.php:30
|
33 |
+
#: classes/settings/shipping-method-form.php:79 classes/shipping-method.php:27
|
34 |
+
#: classes/shipping-method.php:28 classes/shipping-method.php:46
|
35 |
+
msgid "Flexible Shipping"
|
36 |
+
msgstr "Flexible Shipping"
|
37 |
+
|
38 |
#: classes/admin-notices.php:164
|
39 |
#, php-format
|
40 |
msgid ""
|
136 |
msgid "Label downloaded."
|
137 |
msgstr "Etykieta została pobrana."
|
138 |
|
139 |
+
#: classes/bulk-actions.php:347
|
140 |
msgid ""
|
141 |
"Unable to create temporary zip archive for labels. Check temporary folder "
|
142 |
"configuration on server."
|
144 |
"Nie można utworzyć tymczasowego archiwum zip dla etykiet. Sprawdź "
|
145 |
"konfigurację folderu na serwerze."
|
146 |
|
147 |
+
#: classes/bulk-actions.php:411
|
148 |
#, php-format
|
149 |
msgid ""
|
150 |
"Created manifest: %s (%s). If download not start automatically click %shere"
|
153 |
"Utworzone protokoły nadania: %s (%s). Jeśli pobieranie nie rozpoczęło się "
|
154 |
"automatycznie kliknij %stutaj%s."
|
155 |
|
156 |
+
#: classes/bulk-actions.php:423
|
157 |
#, php-format
|
158 |
msgid "Manifest creation error: %s (%s)."
|
159 |
msgstr "Błąd podczas tworzenia protokołu nadania: %s (%s)."
|
160 |
|
161 |
+
#: classes/bulk-actions.php:434
|
162 |
msgid "No manifests created."
|
163 |
msgstr "Nie zostały utworzone protokoły nadania."
|
164 |
|
165 |
+
#: classes/bulk-actions.php:448
|
166 |
#, php-format
|
167 |
msgid "Bulk send shipment - processed orders: %d"
|
168 |
msgstr "Masowe nadawanie przesyłek - przetworzone zamówienia: %d"
|
169 |
|
170 |
+
#: classes/bulk-actions.php:456
|
171 |
#, php-format
|
172 |
msgid "Bulk labels - processed orders: %d. No labels for processed orders."
|
173 |
msgstr ""
|
174 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Brak etykiet dla "
|
175 |
"przetworzonych zamówień."
|
176 |
|
177 |
+
#: classes/bulk-actions.php:475
|
178 |
#, php-format
|
179 |
msgid ""
|
180 |
"Bulk labels - processed orders: %d. If download not start automatically "
|
183 |
"Masowe pobieranie etykiet - przetworzone zamówienia: %d. Jeśli pobieranie "
|
184 |
"nie rozpoczęło się automatycznie kliknij %stutaj%s ."
|
185 |
|
186 |
+
#: classes/bulk-actions.php:485
|
187 |
#, php-format
|
188 |
msgid "Bulk shipping manifest - processed orders: %d"
|
189 |
msgstr "Zbiorcze tworzenie protokołów nadania - przetworzone zamówienia: %d"
|
190 |
|
191 |
+
#: classes/class-flexible-shipping-plugin.php:428
|
192 |
msgid "Settings"
|
193 |
msgstr "Ustawienia"
|
194 |
|
195 |
+
#: classes/class-flexible-shipping-plugin.php:430
|
196 |
msgid "Docs"
|
197 |
msgstr "Docs"
|
198 |
|
199 |
+
#: classes/class-flexible-shipping-plugin.php:431
|
200 |
msgid "Support"
|
201 |
msgstr "Wsparcie"
|
202 |
|
203 |
+
#: classes/class-flexible-shipping-plugin.php:437
|
204 |
msgid "Upgrade"
|
205 |
msgstr "Kup PRO"
|
206 |
|
358 |
msgid "Order"
|
359 |
msgstr "Zamówienie"
|
360 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
#: classes/saas/class-saas-bad-credentials-exception.php:17
|
362 |
#, php-format
|
363 |
msgid ""
|
495 |
msgid "%1$s (free shipping)"
|
496 |
msgstr "%1$s (darmowa wysyłka)"
|
497 |
|
498 |
+
#: classes/saas/class-saas-live-rates-fallback-metadata-handler.php:37
|
499 |
#, php-format
|
500 |
msgid "%1$s (fallback)"
|
501 |
msgstr "%1$s (stawka awaryjna)"
|
543 |
msgid "%1$s%2$s (new)%3$s"
|
544 |
msgstr "%1$s%2$s (nowość)%3$s"
|
545 |
|
546 |
+
#: classes/saas/class-saas-settings.php:93
|
547 |
+
msgid "FS Connect"
|
548 |
+
msgstr "FS Connect"
|
549 |
+
|
550 |
+
#: classes/saas/class-saas-settings.php:258
|
551 |
msgid "Connect Services"
|
552 |
msgstr "Usługi Connect"
|
553 |
|
554 |
+
#: classes/saas/class-saas-settings.php:259
|
555 |
msgid ""
|
556 |
"Enable services to automate shipping and print labels with Flexible Shipping "
|
557 |
"Connect."
|
559 |
"Włącz usługi, aby automatyzować wysyłkę i pobierać etykiety dzięki Flexible "
|
560 |
"Shipping Connect."
|
561 |
|
562 |
+
#: classes/saas/class-saas-settings.php:319
|
563 |
msgid "Advanced settings"
|
564 |
msgstr "Ustawienia zaawansowane"
|
565 |
|
672 |
msgid "You need to configure the service. %1$sGo to %2$s settings.%3$s"
|
673 |
msgstr "Musisz skonfigurować usługę. %1$sPrzejdź do %2$s ustawień.%3$s"
|
674 |
|
675 |
+
#: classes/saas/class-saas-shipping-services-manager.php:163
|
676 |
#, php-format
|
677 |
msgid "%1$sYour settings have been saved.%2$s"
|
678 |
msgstr "%1$sUstawienia zostały zapisane.%2$s"
|
681 |
msgid "Services"
|
682 |
msgstr "Usługi"
|
683 |
|
684 |
+
#: classes/saas/class-saas-user-registration.php:140
|
685 |
+
#: classes/saas/class-saas-user-registration.php:141
|
686 |
msgid "Flexible Shipping Connect Registration"
|
687 |
msgstr "Rejestracja Flexible Shipping Connect"
|
688 |
|
689 |
+
#: classes/saas/class-saas-user-registration.php:215
|
690 |
msgid ""
|
691 |
"There are some connection problems. Please try again in few minutes. Thanks!"
|
692 |
msgstr ""
|
693 |
"Chwilowe problemy z połączeniem. Spróbuj ponownie za kilka minut. Dziękujemy!"
|
694 |
|
695 |
+
#: classes/saas/class-saas-user-registration.php:224
|
696 |
msgid "Please enter a valid email!"
|
697 |
msgstr "Proszę podać poprawny adres e-mail!"
|
698 |
|
699 |
+
#: classes/saas/class-saas-user-registration.php:237
|
700 |
#, php-format
|
701 |
msgid ""
|
702 |
"%1$sAccount created, please check your email and click the activation link "
|
707 |
"połączyć (%3$s).%2$s Jeśli nie otrzymałeś e-maila, proszę %4$sskontaktuj się "
|
708 |
"z nami%5$s."
|
709 |
|
710 |
+
#: classes/saas/class-saas-user-registration.php:261
|
711 |
#, php-format
|
712 |
msgid ""
|
713 |
"Your store (%1$s) is already registered with another account! You can "
|
718 |
"zarejestrować swoją domenę za pomocą jednego konta. Jeśli masz pytania, "
|
719 |
"%2$sskontaktuj się z nami%3$s."
|
720 |
|
721 |
+
#: classes/saas/class-saas-user-registration.php:283
|
722 |
#, php-format
|
723 |
msgid ""
|
724 |
"Our demo does not support Flexible Shipping Connect registration. Try FS "
|
727 |
"Nasze demo nie obsługuje rejestracji Flexible Shipping Connect. Wypróbuj FS "
|
728 |
"Connect za darmo. %1$sSprawdź teraz →%2$s"
|
729 |
|
730 |
+
#: classes/saas/class-saas-user-registration.php:310
|
731 |
#, php-format
|
732 |
msgid ""
|
733 |
"Account with this email is already registered! We emailed your Connect Key "
|
738 |
"kluczem Connect do %1$s.<br>Wpisz klucz %2$stutaj%4$s. Możesz również "
|
739 |
"uzyskać klucz logując się na %3$sswoje konto%4$s."
|
740 |
|
741 |
+
#: classes/saas/class-saas-user-registration.php:328
|
742 |
#, php-format
|
743 |
msgid "Unknown response code from Flexible Shipping Connect API (%s)."
|
744 |
msgstr "Nieznany kod odpowiedzi z API Flexible Shipping Connect (%s)."
|
758 |
|
759 |
#: classes/saas/views/html-boxes-content.php:10
|
760 |
#: classes/saas/views/html-boxes-content.php:11
|
|
|
761 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:90
|
762 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:91
|
763 |
msgid "Calculate Rates"
|
764 |
msgstr "Obliczaj stawki"
|
765 |
|
766 |
#: classes/saas/views/html-boxes-content.php:12
|
767 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:92
|
768 |
msgid ""
|
769 |
"Calculate shipping rates in real time, and get available service types and "
|
770 |
"expected delivery time based on customer's address."
|
774 |
|
775 |
#: classes/saas/views/html-boxes-content.php:16
|
776 |
#: classes/saas/views/html-boxes-content.php:17
|
|
|
777 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:96
|
778 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:97
|
779 |
msgid "Track Parcels"
|
780 |
msgstr "Śledź przesyłki"
|
781 |
|
782 |
#: classes/saas/views/html-boxes-content.php:18
|
783 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:98
|
784 |
msgid ""
|
785 |
"Always keep your customers (and yourself) up to date with automatic "
|
786 |
"confirmation emails with tracking link and delivery status."
|
790 |
|
791 |
#: classes/saas/views/html-boxes-content.php:22
|
792 |
#: classes/saas/views/html-boxes-content.php:23
|
|
|
793 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:102
|
794 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:103
|
795 |
msgid "Automate Shipping"
|
796 |
msgstr "Automatyzuj wysyłkę"
|
797 |
|
798 |
#: classes/saas/views/html-boxes-content.php:24
|
799 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:104
|
800 |
msgid ""
|
801 |
"Automatically create shipments and print labels based on order status. "
|
802 |
"Change order status after shipment creation."
|
820 |
|
821 |
#: classes/saas/views/html-boxes-content.php:34
|
822 |
#: classes/saas/views/html-boxes-content.php:35
|
|
|
823 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:108
|
824 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:109
|
825 |
msgid "Manage Orders"
|
826 |
msgstr "Zarządzaj zamówieniami"
|
827 |
|
828 |
#: classes/saas/views/html-boxes-content.php:36
|
829 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:110
|
830 |
msgid ""
|
831 |
"Get a complete overview of your orders and shipments in your WooCommerce "
|
832 |
"dashboard with shipments statuses and filters."
|
835 |
"bezpośrednio z panelu WooCommerce za pomocą statusów i filtrów."
|
836 |
|
837 |
#: classes/saas/views/html-boxes-content.php:43
|
838 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:19
|
839 |
msgid "Ship your orders faster with Flexible Shipping Connect"
|
840 |
msgstr "Wysyłaj zamówienia szybciej z Flexible Shipping Connect"
|
841 |
|
860 |
msgid "Check how to start with FS Connect →"
|
861 |
msgstr "Sprawdź jak zacząć z FS Connect →"
|
862 |
|
863 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:5
|
864 |
msgid "Welcome to new Flexible Shipping Connect installation guide."
|
865 |
msgstr "Witamy w przewodniku o nowym Flexible Shipping Connect."
|
866 |
|
867 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:7
|
868 |
msgid ""
|
869 |
"To complete the installation please click the Sign up for Connect button "
|
870 |
"below."
|
871 |
msgstr ""
|
872 |
"Aby zakończyć instalację, kliknij poniżej przycisk Zarejestruj się w Connect."
|
873 |
|
874 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:9
|
875 |
#, php-format
|
876 |
msgid ""
|
877 |
"The %saccount is free (no credit card needed)%s and allows you to send "
|
880 |
"Konto %sjest bezpłatne (nie wymaga karty kredytowej) %s i pozwala na "
|
881 |
"nadawanie paczek bezpośrednio z panelu WooCommerce!"
|
882 |
|
883 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:11
|
884 |
msgid ""
|
885 |
"If you want to learn more about other benefits, you may click one of the "
|
886 |
"tabs on the left."
|
888 |
"Jeśli chcesz dowiedzieć się więcej o innych korzyściach, możesz kliknąć "
|
889 |
"jedną z zakładek po lewej stronie."
|
890 |
|
891 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:35
|
892 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:41
|
893 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:47
|
894 |
msgid "soon!"
|
895 |
msgstr "wkrótce!"
|
896 |
|
897 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:56
|
898 |
msgid "Using Flexible Shipping Connect, you can send packages via:"
|
899 |
msgstr ""
|
900 |
"Korzystając z Flexible Shipping Connect, możesz wysyłać paczki za "
|
901 |
"pośrednictwem:"
|
902 |
|
903 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:77
|
904 |
msgid "Read more about possible integrations →"
|
905 |
msgstr "Przeczytaj więcej o możliwych integracjach →"
|
906 |
|
|
|
907 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:84
|
908 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:85
|
909 |
msgid "Create & Print Labels"
|
910 |
msgstr "Twórz i drukuj etykiety"
|
911 |
|
912 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:86
|
913 |
msgid ""
|
914 |
"Create shipments with predefined services, sizes and weights automatically "
|
915 |
"filled in from order items. Download printable PDF shipping labels directly "
|
919 |
"wypełnionymi z pozycji zamówienia. Pobieraj etykiety wysyłkowe bezpośrednio "
|
920 |
"z listy zamówień WooCommerce lub edycji zamówienia."
|
921 |
|
|
|
922 |
#: classes/saas/views/html-flexible-shipping-connect-notice.php:114
|
923 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:115
|
924 |
msgid "Couriers"
|
925 |
msgstr "Kurierzy"
|
926 |
|
927 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:164
|
928 |
msgid "Sign up for Connect"
|
929 |
msgstr "Zarejestruj się w Connect"
|
930 |
|
931 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:166
|
932 |
msgid "Start quick tour"
|
933 |
msgstr "Rozpocznij przewodnik"
|
934 |
|
935 |
+
#: classes/saas/views/html-flexible-shipping-connect-notice.php:166
|
936 |
msgid "Next feature"
|
937 |
msgstr "Następna funkcja"
|
938 |
|
1000 |
"Czy jesteś pewien, że chcesz odłączyć swój sklep od Flexible Shipping "
|
1001 |
"Connect?\\n\\nWszystkie integracje wysyłkowe zostaną wyłączone."
|
1002 |
|
1003 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:13
|
1004 |
+
msgid "How to use Flexible Shipping?"
|
1005 |
+
msgstr "Jak używać Flexible Shipping?"
|
1006 |
+
|
1007 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:19
|
1008 |
#, php-format
|
1009 |
msgid ""
|
1010 |
"To add first Flexible Shipping method go to %sShipping zones%s and add "
|
1013 |
"Aby dodać pierwszą metodę Flexible Shipping przejdź do zakładki %sStrefy "
|
1014 |
"wysyłki%s i dodaj Flexible Shipping do strefy wysyłki."
|
1015 |
|
1016 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:26
|
1017 |
msgid ""
|
1018 |
"You can start the configuration by clicking the Flexible Shipping link in "
|
1019 |
"the Shipping methods table."
|
1021 |
"Możesz rozpocząć konfigurację klikając na link Flexible Shipping w tabeli "
|
1022 |
"”Metody wysyłki”."
|
1023 |
|
1024 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:29
|
1025 |
msgid "Quick Video Overview"
|
1026 |
msgstr "Krótki przewodnik video"
|
1027 |
|
1028 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:35
|
1029 |
msgid "More resources"
|
1030 |
msgstr "Więcej informacji"
|
1031 |
|
1032 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:38
|
1033 |
msgid "General Settings"
|
1034 |
msgstr "Ustawienia główne"
|
1035 |
|
1036 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:39
|
1037 |
msgid "Adding a shipping method"
|
1038 |
msgstr "Dodawanie metody wysyłki"
|
1039 |
|
1040 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:40
|
1041 |
msgid "Currency Support"
|
1042 |
msgstr "Waluty"
|
1043 |
|
1044 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:41
|
1045 |
msgid "Weight Based Shipping"
|
1046 |
msgstr "Koszt na wagę"
|
1047 |
|
1048 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:42
|
1049 |
msgid "Shipping Insurance"
|
1050 |
msgstr "Ubezpieczenie przesyłki"
|
1051 |
|
1052 |
+
#: classes/saas/views/html-shipping-method-info-description-body.php:43
|
1053 |
msgid "Conditional Cash on Delivery"
|
1054 |
msgstr "Przesyłka za pobraniem"
|
1055 |
|
1059 |
msgstr "Zobacz jak %sskonfigurować Flexible Shipping%s."
|
1060 |
|
1061 |
#: classes/settings/flexible-shipping.php:21
|
1062 |
+
#: classes/settings/shipping-method-form.php:70 classes/shipping-method.php:37
|
1063 |
msgid "Enable/Disable"
|
1064 |
msgstr "Włącz/Wyłącz"
|
1065 |
|
1125 |
"Wysyłaj zamówienia szybciej z %1$sFlexible Shipping Connect%2$s%3$s"
|
1126 |
"%4$sZarejestruj się teraz!%5$s"
|
1127 |
|
1128 |
+
#: classes/settings/shipping-method-form.php:54 classes/shipping-method.php:911
|
1129 |
msgid "Free"
|
1130 |
msgstr "Bezpłatnie"
|
1131 |
|
1132 |
+
#: classes/settings/shipping-method-form.php:73 classes/shipping-method.php:39
|
1133 |
msgid "Enable this shipment method"
|
1134 |
msgstr "Włącz tę metodę wysyłki"
|
1135 |
|
1137 |
msgid "Method Title"
|
1138 |
msgstr "Tytuł metody"
|
1139 |
|
1140 |
+
#: classes/settings/shipping-method-form.php:78 classes/shipping-method.php:45
|
1141 |
msgid "This controls the title which the user sees during checkout."
|
1142 |
msgstr "Tytuł, który widzi użytkownik podczas składania zamówienia."
|
1143 |
|
1377 |
msgid "%1$s notice"
|
1378 |
msgstr "%1$s komunikat"
|
1379 |
|
1380 |
+
#: classes/shipment/saas/class-shipment-saas-send.php:187
|
1381 |
#: classes/shipment/saas/class-shipment-saas.php:351
|
1382 |
msgid "UPS! Something is wrong!"
|
1383 |
msgstr "UPS! Nie działa poprawnie!"
|
1403 |
|
1404 |
#: classes/shipment/saas/views/order-metabox-actions.php:3
|
1405 |
msgid "Create"
|
1406 |
+
msgstr "Utwórz"
|
1407 |
|
1408 |
#: classes/shipment/saas/views/order-metabox-actions.php:4
|
1409 |
msgid "Save"
|
1431 |
msgid "%1$sShipment status:%2$s %3$s"
|
1432 |
msgstr "%1$s Status przesyłki: %2$s %3$s"
|
1433 |
|
1434 |
+
#: classes/shipping-method.php:43
|
1435 |
msgid "Shipping Title"
|
1436 |
msgstr "Tytuł"
|
1437 |
|
1438 |
+
#: classes/shipping-method.php:115
|
1439 |
#: classes/views/html-shipping-method-rules.php:240
|
1440 |
msgid "Add New"
|
1441 |
msgstr "Dodaj nową"
|
1442 |
|
1443 |
+
#: classes/shipping-method.php:355
|
1444 |
msgid ""
|
1445 |
"Sorry, there has been an error. The CSV is invalid or incorrect file type."
|
1446 |
msgstr ""
|
1447 |
"Przepraszamy, wystąpił błąd. Plik CSV jest niepoprawny lub typ pliku jest "
|
1448 |
"nieprawidłowy."
|
1449 |
|
1450 |
+
#: classes/shipping-method.php:365 classes/shipping-method.php:368
|
1451 |
msgid "import"
|
1452 |
msgstr "import"
|
1453 |
|
1454 |
+
#: classes/shipping-method.php:377
|
1455 |
#, php-format
|
1456 |
msgid "Free Shipping value %s is not valid number. Row number %d."
|
1457 |
msgstr "Wartość darmowej wysyłki %s jest niepoprawna. Numer wiersza %d."
|
1458 |
|
1459 |
+
#: classes/shipping-method.php:383
|
1460 |
#, php-format
|
1461 |
msgid "Maximum Cost value %s is not valid number. Row number %d."
|
1462 |
msgstr "Maksymalny koszt %s jest niepoprawny. Numer wiersza %d."
|
1463 |
|
1464 |
+
#: classes/shipping-method.php:394
|
1465 |
#, php-format
|
1466 |
msgid "Invalid value for Calculation Method in row number %d."
|
1467 |
msgstr "Nieprawidłowa wartość dla Metody obliczania w wierszu %d."
|
1468 |
|
1469 |
+
#: classes/shipping-method.php:418
|
1470 |
#, php-format
|
1471 |
msgid "Invalid value for Based On in row number %d."
|
1472 |
msgstr "Nieprawidłowa wartość dla Oparte na w wierszu %d."
|
1473 |
|
1474 |
+
#: classes/shipping-method.php:423
|
1475 |
#, php-format
|
1476 |
msgid "Min value %s is not valid number. Row number %d."
|
1477 |
msgstr "Wartość Min %s jest niepoprawna. Numer wiersza %d."
|
1478 |
|
1479 |
+
#: classes/shipping-method.php:429
|
1480 |
#, php-format
|
1481 |
msgid "Max value %s is not valid number. Row number %d."
|
1482 |
msgstr "Wartość Maks %s jest niepoprawna. Numer wiersza %d."
|
1483 |
|
1484 |
+
#: classes/shipping-method.php:435
|
1485 |
#, php-format
|
1486 |
msgid "Cost per order value %s is not valid number. Row number %d."
|
1487 |
msgstr "Wartość Koszt na zamówienie %s jest niepoprawna. Numer wiersza %d."
|
1488 |
|
1489 |
+
#: classes/shipping-method.php:441
|
1490 |
#, php-format
|
1491 |
msgid "Additional cost value %s is not valid number. Row number %d."
|
1492 |
msgstr "Wartość Dodatkowy koszt %s jest niepoprawna. Numer wiersza %d."
|
1493 |
|
1494 |
+
#: classes/shipping-method.php:447
|
1495 |
#, php-format
|
1496 |
msgid "Value value %s is not valid number. Row number %d."
|
1497 |
msgstr "Wartość w polu Wartość %s jest niepoprawna. Numer wiersza %d."
|
1498 |
|
1499 |
+
#: classes/shipping-method.php:499
|
1500 |
#, php-format
|
1501 |
msgid "Shipping method %s imported as %s."
|
1502 |
msgstr "Metoda wysyłki %s została zaimportowana jako %s."
|
1503 |
|
1504 |
+
#: classes/shipping-method.php:559
|
1505 |
msgid "New Shipping Method"
|
1506 |
msgstr "Nowa metoda wysyłki"
|
1507 |
|
1508 |
+
#: classes/shipping-method.php:562
|
1509 |
msgid "Edit Shipping Method"
|
1510 |
msgstr "Edytuj metodę wysyłki"
|
1511 |
|
1512 |
+
#: classes/shipping-method.php:572 classes/shipping-method.php:614
|
1513 |
#, php-format
|
1514 |
msgid "Shipping method %s added."
|
1515 |
msgstr "Metoda wysyłki dodana: %s."
|
1516 |
|
1517 |
+
#: classes/shipping-method.php:597
|
1518 |
#, php-format
|
1519 |
msgid "Shipping method %s deleted."
|
1520 |
msgstr "Metoda wysyłki usunięta: %s."
|
1521 |
|
1522 |
+
#: classes/shipping-method.php:600
|
1523 |
msgid "Shipping method not found."
|
1524 |
msgstr "Metoda wysyłki nie znaleziona."
|
1525 |
|
1526 |
+
#: classes/shipping-method.php:626
|
1527 |
#, php-format
|
1528 |
msgid "Shipping method %s updated."
|
1529 |
msgstr "Metoda wysyłki zaktualizowana: %s."
|
1530 |
|
1531 |
+
#: classes/tracker.php:210
|
1532 |
msgid "Opt-in"
|
1533 |
msgstr "Opt-in"
|
1534 |
|
1535 |
+
#: classes/tracker.php:213
|
1536 |
msgid "Opt-out"
|
1537 |
msgstr "Opt-out"
|
1538 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk, swoboda
|
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
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: 5.0
|
7 |
-
Stable tag: 3.1.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -175,6 +175,10 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
178 |
= 3.1.7 - 2019-02-12 =
|
179 |
* Fixed warnings in cart or checkout when shipment default method is not valid for current package
|
180 |
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
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: 5.1.0
|
7 |
+
Stable tag: 3.1.8
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 3.1.8 - 2019-02-12 =
|
179 |
+
* Fixed error handling on bulk labels generation
|
180 |
+
* Fixed polish translation for Create
|
181 |
+
|
182 |
= 3.1.7 - 2019-02-12 =
|
183 |
* Fixed warnings in cart or checkout when shipment default method is not valid for current package
|
184 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit147321ceed019f0eeb430825940030d8::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -420,14 +420,12 @@ return array(
|
|
420 |
'WPDesk\\View\\Resolver\\Resolver' => $vendorDir . '/wpdesk/wp-view/src/Resolver/Resolver.php',
|
421 |
'WPDesk\\View\\Resolver\\WPThemeResolver' => $vendorDir . '/wpdesk/wp-view/src/Resolver/WPThemeResolver.php',
|
422 |
'WPDesk_Flexible_Shipping' => $baseDir . '/classes/shipping-method.php',
|
423 |
-
'
|
424 |
-
'
|
425 |
'WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data' => $baseDir . '/classes/abtests/class-ab-tracker-deactivation-data.php',
|
426 |
-
'
|
427 |
-
'
|
428 |
-
'
|
429 |
-
'WPDesk_Flexible_Shipping_AB_Variant_No_Messages' => $baseDir . '/classes/abtests/ab-message-test/class-ab-variant-no-messages.php',
|
430 |
-
'WPDesk_Flexible_Shipping_AB_Variant_Old' => $baseDir . '/classes/abtests/ab-message-test/class-ab-variant-old.php',
|
431 |
'WPDesk_Flexible_Shipping_Add_Shipping' => $baseDir . '/classes/class-order-add-shipping.php',
|
432 |
'WPDesk_Flexible_Shipping_Admin_Notices' => $baseDir . '/classes/admin-notices.php',
|
433 |
'WPDesk_Flexible_Shipping_Bulk_Actions' => $baseDir . '/classes/bulk-actions.php',
|
@@ -496,7 +494,6 @@ return array(
|
|
496 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => $baseDir . '/classes/class-shortcode-unit-dimension.php',
|
497 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => $baseDir . '/classes/class-shortcode-unit-weight.php',
|
498 |
'WPDesk_Flexible_Shipping_Tracker' => $baseDir . '/classes/tracker.php',
|
499 |
-
'WPDesk_Flexible_Shipping_Tracker_Button' => $baseDir . '/classes/abtests/class-tracker-button.php',
|
500 |
'WPDesk_Flexible_Shipping_UK_States' => $baseDir . '/classes/class-uk-states.php',
|
501 |
'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => $baseDir . '/classes/logger/class-woocommerce-context-logger.php',
|
502 |
'WPDesk_S214_Settings' => $vendorDir . '/wpdesk/wp-settings/source/class.wpdesk-s214-settings.php',
|
420 |
'WPDesk\\View\\Resolver\\Resolver' => $vendorDir . '/wpdesk/wp-view/src/Resolver/Resolver.php',
|
421 |
'WPDesk\\View\\Resolver\\WPThemeResolver' => $vendorDir . '/wpdesk/wp-view/src/Resolver/WPThemeResolver.php',
|
422 |
'WPDesk_Flexible_Shipping' => $baseDir . '/classes/shipping-method.php',
|
423 |
+
'WPDesk_Flexible_Shipping_AB_MenuPage' => $baseDir . '/classes/abtests/class-ab-menu-page.php',
|
424 |
+
'WPDesk_Flexible_Shipping_AB_MenuTest' => $baseDir . '/classes/abtests/class-ab-menu-test.php',
|
425 |
'WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data' => $baseDir . '/classes/abtests/class-ab-tracker-deactivation-data.php',
|
426 |
+
'WPDesk_Flexible_Shipping_AB_Variant_Old' => $baseDir . '/classes/abtests/ab-menu-test/class-ab-variant-old.php',
|
427 |
+
'WPDesk_Flexible_Shipping_AB_Variant_With_Menu' => $baseDir . '/classes/abtests/ab-menu-test/class-ab-variant-with-menu.php',
|
428 |
+
'WPDesk_Flexible_Shipping_AB_Variant_Without_Menu' => $baseDir . '/classes/abtests/ab-menu-test/class-ab-variant-without-menu.php',
|
|
|
|
|
429 |
'WPDesk_Flexible_Shipping_Add_Shipping' => $baseDir . '/classes/class-order-add-shipping.php',
|
430 |
'WPDesk_Flexible_Shipping_Admin_Notices' => $baseDir . '/classes/admin-notices.php',
|
431 |
'WPDesk_Flexible_Shipping_Bulk_Actions' => $baseDir . '/classes/bulk-actions.php',
|
494 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => $baseDir . '/classes/class-shortcode-unit-dimension.php',
|
495 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => $baseDir . '/classes/class-shortcode-unit-weight.php',
|
496 |
'WPDesk_Flexible_Shipping_Tracker' => $baseDir . '/classes/tracker.php',
|
|
|
497 |
'WPDesk_Flexible_Shipping_UK_States' => $baseDir . '/classes/class-uk-states.php',
|
498 |
'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => $baseDir . '/classes/logger/class-woocommerce-context-logger.php',
|
499 |
'WPDesk_S214_Settings' => $vendorDir . '/wpdesk/wp-settings/source/class.wpdesk-s214-settings.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitf41b80c822a8656cf5a1645fecc357f4
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitf41b80c822a8656cf5a1645fecc357f4
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit147321ceed019f0eeb430825940030d8
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit147321ceed019f0eeb430825940030d8', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit147321ceed019f0eeb430825940030d8', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit147321ceed019f0eeb430825940030d8::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit147321ceed019f0eeb430825940030d8::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire147321ceed019f0eeb430825940030d8($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire147321ceed019f0eeb430825940030d8($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
|
@@ -509,14 +509,12 @@ class ComposerStaticInitf41b80c822a8656cf5a1645fecc357f4
|
|
509 |
'WPDesk\\View\\Resolver\\Resolver' => __DIR__ . '/..' . '/wpdesk/wp-view/src/Resolver/Resolver.php',
|
510 |
'WPDesk\\View\\Resolver\\WPThemeResolver' => __DIR__ . '/..' . '/wpdesk/wp-view/src/Resolver/WPThemeResolver.php',
|
511 |
'WPDesk_Flexible_Shipping' => __DIR__ . '/../..' . '/classes/shipping-method.php',
|
512 |
-
'
|
513 |
-
'
|
514 |
'WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data' => __DIR__ . '/../..' . '/classes/abtests/class-ab-tracker-deactivation-data.php',
|
515 |
-
'
|
516 |
-
'
|
517 |
-
'
|
518 |
-
'WPDesk_Flexible_Shipping_AB_Variant_No_Messages' => __DIR__ . '/../..' . '/classes/abtests/ab-message-test/class-ab-variant-no-messages.php',
|
519 |
-
'WPDesk_Flexible_Shipping_AB_Variant_Old' => __DIR__ . '/../..' . '/classes/abtests/ab-message-test/class-ab-variant-old.php',
|
520 |
'WPDesk_Flexible_Shipping_Add_Shipping' => __DIR__ . '/../..' . '/classes/class-order-add-shipping.php',
|
521 |
'WPDesk_Flexible_Shipping_Admin_Notices' => __DIR__ . '/../..' . '/classes/admin-notices.php',
|
522 |
'WPDesk_Flexible_Shipping_Bulk_Actions' => __DIR__ . '/../..' . '/classes/bulk-actions.php',
|
@@ -585,7 +583,6 @@ class ComposerStaticInitf41b80c822a8656cf5a1645fecc357f4
|
|
585 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => __DIR__ . '/../..' . '/classes/class-shortcode-unit-dimension.php',
|
586 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => __DIR__ . '/../..' . '/classes/class-shortcode-unit-weight.php',
|
587 |
'WPDesk_Flexible_Shipping_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
|
588 |
-
'WPDesk_Flexible_Shipping_Tracker_Button' => __DIR__ . '/../..' . '/classes/abtests/class-tracker-button.php',
|
589 |
'WPDesk_Flexible_Shipping_UK_States' => __DIR__ . '/../..' . '/classes/class-uk-states.php',
|
590 |
'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => __DIR__ . '/../..' . '/classes/logger/class-woocommerce-context-logger.php',
|
591 |
'WPDesk_S214_Settings' => __DIR__ . '/..' . '/wpdesk/wp-settings/source/class.wpdesk-s214-settings.php',
|
@@ -623,9 +620,9 @@ class ComposerStaticInitf41b80c822a8656cf5a1645fecc357f4
|
|
623 |
public static function getInitializer(ClassLoader $loader)
|
624 |
{
|
625 |
return \Closure::bind(function () use ($loader) {
|
626 |
-
$loader->prefixLengthsPsr4 =
|
627 |
-
$loader->prefixDirsPsr4 =
|
628 |
-
$loader->classMap =
|
629 |
|
630 |
}, null, ClassLoader::class);
|
631 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit147321ceed019f0eeb430825940030d8
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
|
509 |
'WPDesk\\View\\Resolver\\Resolver' => __DIR__ . '/..' . '/wpdesk/wp-view/src/Resolver/Resolver.php',
|
510 |
'WPDesk\\View\\Resolver\\WPThemeResolver' => __DIR__ . '/..' . '/wpdesk/wp-view/src/Resolver/WPThemeResolver.php',
|
511 |
'WPDesk_Flexible_Shipping' => __DIR__ . '/../..' . '/classes/shipping-method.php',
|
512 |
+
'WPDesk_Flexible_Shipping_AB_MenuPage' => __DIR__ . '/../..' . '/classes/abtests/class-ab-menu-page.php',
|
513 |
+
'WPDesk_Flexible_Shipping_AB_MenuTest' => __DIR__ . '/../..' . '/classes/abtests/class-ab-menu-test.php',
|
514 |
'WPDesk_Flexible_Shipping_AB_Tracker_Deactivation_Data' => __DIR__ . '/../..' . '/classes/abtests/class-ab-tracker-deactivation-data.php',
|
515 |
+
'WPDesk_Flexible_Shipping_AB_Variant_Old' => __DIR__ . '/../..' . '/classes/abtests/ab-menu-test/class-ab-variant-old.php',
|
516 |
+
'WPDesk_Flexible_Shipping_AB_Variant_With_Menu' => __DIR__ . '/../..' . '/classes/abtests/ab-menu-test/class-ab-variant-with-menu.php',
|
517 |
+
'WPDesk_Flexible_Shipping_AB_Variant_Without_Menu' => __DIR__ . '/../..' . '/classes/abtests/ab-menu-test/class-ab-variant-without-menu.php',
|
|
|
|
|
518 |
'WPDesk_Flexible_Shipping_Add_Shipping' => __DIR__ . '/../..' . '/classes/class-order-add-shipping.php',
|
519 |
'WPDesk_Flexible_Shipping_Admin_Notices' => __DIR__ . '/../..' . '/classes/admin-notices.php',
|
520 |
'WPDesk_Flexible_Shipping_Bulk_Actions' => __DIR__ . '/../..' . '/classes/bulk-actions.php',
|
583 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => __DIR__ . '/../..' . '/classes/class-shortcode-unit-dimension.php',
|
584 |
'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => __DIR__ . '/../..' . '/classes/class-shortcode-unit-weight.php',
|
585 |
'WPDesk_Flexible_Shipping_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
|
|
|
586 |
'WPDesk_Flexible_Shipping_UK_States' => __DIR__ . '/../..' . '/classes/class-uk-states.php',
|
587 |
'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => __DIR__ . '/../..' . '/classes/logger/class-woocommerce-context-logger.php',
|
588 |
'WPDesk_S214_Settings' => __DIR__ . '/..' . '/wpdesk/wp-settings/source/class.wpdesk-s214-settings.php',
|
620 |
public static function getInitializer(ClassLoader $loader)
|
621 |
{
|
622 |
return \Closure::bind(function () use ($loader) {
|
623 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit147321ceed019f0eeb430825940030d8::$prefixLengthsPsr4;
|
624 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit147321ceed019f0eeb430825940030d8::$prefixDirsPsr4;
|
625 |
+
$loader->classMap = ComposerStaticInit147321ceed019f0eeb430825940030d8::$classMap;
|
626 |
|
627 |
}, null, ClassLoader::class);
|
628 |
}
|