Flexible Shipping for WooCommerce - Version 4.16.0

Version Description

  • 2022-10-20 =
  • Added support for WooCommerce 7.1
  • Updated Octolize tracker
  • Fixed fatal error when handle bulk action
Download this release

Release Info

Developer octolize
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 4.16.0
Comparing to
See all releases

Code changes from version 4.15.0 to 4.16.0

Files changed (23) hide show
  1. classes/class-flexible-shipping-plugin.php +29 -32
  2. classes/tracker/{tracker.php → class-wpdesk-flexible-shipping-tracker.php} +7 -58
  3. flexible-shipping.php +3 -3
  4. lang/flexible-shipping.pot +7 -570
  5. readme.txt +6 -1
  6. src/WPDesk/FS/Shipment/BulkAction.php +5 -3
  7. vendor/composer/autoload_classmap.php +13 -1
  8. vendor/composer/autoload_static.php +13 -1
  9. vendor_prefixed/octolize/wp-octolize-tracker/composer.json +59 -0
  10. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/OptInNotice.php +73 -0
  11. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplay.php +16 -0
  12. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAlways.php +17 -0
  13. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAndConditions.php +35 -0
  14. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php +28 -0
  15. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterValue.php +34 -0
  16. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayNever.php +17 -0
  17. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayOrConditions.php +35 -0
  18. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayShippingMethodInstanceSettings.php +29 -0
  19. vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/views/html-notice.php +46 -0
  20. vendor_prefixed/octolize/wp-octolize-tracker/src/SenderRegistrator.php +36 -0
  21. vendor_prefixed/octolize/wp-octolize-tracker/src/SenderToOctolize.php +46 -0
  22. vendor_prefixed/octolize/wp-octolize-tracker/src/TrackerInitializer.php +126 -0
  23. vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/OptInPage.php +6 -4
classes/class-flexible-shipping-plugin.php CHANGED
@@ -5,6 +5,11 @@
5
  * @package Flexible Shippign
6
  */
7
 
 
 
 
 
 
8
  use FSVendor\WPDesk\FS\Compatibility\PluginCompatibility;
9
  use FSVendor\WPDesk\FS\Shipment\ShipmentFunctionality;
10
  use FSVendor\WPDesk\FS\TableRate\Logger\Assets;
@@ -17,9 +22,6 @@ use FSVendor\WPDesk\PluginBuilder\Plugin\HookableCollection;
17
  use FSVendor\WPDesk\PluginBuilder\Plugin\HookableParent;
18
  use FSVendor\WPDesk\PluginBuilder\Plugin\TemplateLoad;
19
  use FSVendor\WPDesk\Session\SessionFactory;
20
- use FSVendor\WPDesk\Tracker\Deactivation\PluginData;
21
- use FSVendor\WPDesk\Tracker\Deactivation\Thickbox;
22
- use FSVendor\WPDesk\Tracker\Deactivation\TrackerFactory;
23
  use FSVendor\WPDesk\View\Resolver\ChainResolver;
24
  use FSVendor\WPDesk\View\Resolver\DirResolver;
25
  use FSVendor\WPDesk\View\Resolver\WPThemeResolver;
@@ -70,7 +72,6 @@ use WPDesk\FS\TableRate\ShippingMethodSingle;
70
  use WPDesk\FS\TableRate\Tax\Tracker;
71
  use WPDesk\FS\TableRate\UserFeedback;
72
  use WPDesk\FS\TableRate\ContextualInfo;
73
- use WPDesk\FS\Tracker\TrackerNotices;
74
  use WPDesk\FS\Shipment;
75
 
76
  /**
@@ -202,10 +203,6 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
202
 
203
  $this->admin_notices = new WPDesk_Flexible_Shipping_Admin_Notices( $this );
204
 
205
- $this->add_hookable( new WPDesk_Flexible_Shipping_Tracker() );
206
-
207
- $this->add_hookable( new TrackerData() );
208
-
209
  $this->add_hookable( new WPDesk\FS\Rate\WPDesk_Flexible_Shipping_Rate_Notice() );
210
 
211
  $this->add_hookable( new WPDesk_Flexible_Shipping_Shorcode_Unit_Weight() );
@@ -379,6 +376,7 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
379
  $this->init_base_variables();
380
  $this->init_renderer();
381
  $this->load_dependencies();
 
382
  $this->hooks();
383
  $this->init_assets_url_on_rules_settings_field();
384
  }
@@ -433,10 +431,6 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
433
 
434
  add_filter( 'option_woocommerce_cod_settings', [ $this, 'option_woocommerce_cod_settings' ] );
435
 
436
- add_action( 'plugins_loaded', [ $this, 'create_tracker' ], self::PRIORITY_BEFORE_SHARED_HELPER );
437
-
438
- add_action( 'admin_init', [ $this, 'init_deactivation_tracker' ] );
439
-
440
  add_action( 'woocommerce_init', [ $this, 'init_free_shipping_notice' ] );
441
 
442
  add_action( 'woocommerce_init', [ $this, 'init_logger_on_shipping_method' ] );
@@ -498,32 +492,35 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
498
  }
499
 
500
  /**
501
- * Init deactivation tracker.
502
  */
503
- public function init_deactivation_tracker() {
504
- $plugin_data = new PluginData(
505
- WPDesk_Flexible_Shipping_Tracker::FLEXIBLE_SHIPPING_PLUGIN_SLUG,
506
- WPDesk_Flexible_Shipping_Tracker::FLEXIBLE_SHIPPING_PLUGIN_FILE,
507
- WPDesk_Flexible_Shipping_Tracker::FLEXIBLE_SHIPPING_PLUGIN_TITLE
508
- );
509
- $deactivation_tracker = TrackerFactory::createCustomTracker(
510
- $plugin_data,
511
- null,
512
- new Thickbox(
513
- $plugin_data,
514
- __DIR__ . '/views/deactivation_thickbox.php'
515
- )
516
  );
517
- $deactivation_tracker->hooks();
 
518
  }
519
 
520
  /**
521
- * Maybe create tracker.
522
  */
523
- public function create_tracker() {
524
- $tracker_factory = new WPDesk_Tracker_Factory();
525
- $tracker_factory->create_tracker( basename( dirname( __FILE__ ) ) );
526
- ( new TrackerNotices() )->hooks();
 
 
 
 
 
 
 
 
 
 
 
 
527
  }
528
 
529
  /**
5
  * @package Flexible Shippign
6
  */
7
 
8
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAndConditions;
9
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue;
10
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayOrConditions;
11
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayShippingMethodInstanceSettings;
12
+ use FSVendor\Octolize\Tracker\TrackerInitializer;
13
  use FSVendor\WPDesk\FS\Compatibility\PluginCompatibility;
14
  use FSVendor\WPDesk\FS\Shipment\ShipmentFunctionality;
15
  use FSVendor\WPDesk\FS\TableRate\Logger\Assets;
22
  use FSVendor\WPDesk\PluginBuilder\Plugin\HookableParent;
23
  use FSVendor\WPDesk\PluginBuilder\Plugin\TemplateLoad;
24
  use FSVendor\WPDesk\Session\SessionFactory;
 
 
 
25
  use FSVendor\WPDesk\View\Resolver\ChainResolver;
26
  use FSVendor\WPDesk\View\Resolver\DirResolver;
27
  use FSVendor\WPDesk\View\Resolver\WPThemeResolver;
72
  use WPDesk\FS\TableRate\Tax\Tracker;
73
  use WPDesk\FS\TableRate\UserFeedback;
74
  use WPDesk\FS\TableRate\ContextualInfo;
 
75
  use WPDesk\FS\Shipment;
76
 
77
  /**
203
 
204
  $this->admin_notices = new WPDesk_Flexible_Shipping_Admin_Notices( $this );
205
 
 
 
 
 
206
  $this->add_hookable( new WPDesk\FS\Rate\WPDesk_Flexible_Shipping_Rate_Notice() );
207
 
208
  $this->add_hookable( new WPDesk_Flexible_Shipping_Shorcode_Unit_Weight() );
376
  $this->init_base_variables();
377
  $this->init_renderer();
378
  $this->load_dependencies();
379
+ $this->init_tracker();
380
  $this->hooks();
381
  $this->init_assets_url_on_rules_settings_field();
382
  }
431
 
432
  add_filter( 'option_woocommerce_cod_settings', [ $this, 'option_woocommerce_cod_settings' ] );
433
 
 
 
 
 
434
  add_action( 'woocommerce_init', [ $this, 'init_free_shipping_notice' ] );
435
 
436
  add_action( 'woocommerce_init', [ $this, 'init_logger_on_shipping_method' ] );
492
  }
493
 
494
  /**
495
+ * Init tracker.
496
  */
497
+ private function init_tracker() {
498
+ $this->add_hookable(
499
+ TrackerInitializer::create_from_plugin_info( $this->plugin_info, $this->prepare_shoud_display_for_flexible_shipping() )
 
 
 
 
 
 
 
 
 
 
500
  );
501
+ $this->add_hookable( new WPDesk_Flexible_Shipping_Tracker() );
502
+ $this->add_hookable( new TrackerData() );
503
  }
504
 
505
  /**
506
+ * @return ShouldDisplayOrConditions
507
  */
508
+ private function prepare_shoud_display_for_flexible_shipping() {
509
+ $should_display = new ShouldDisplayOrConditions();
510
+ $should_display->add_should_diaplay_condition( new ShouldDisplayShippingMethodInstanceSettings( ShippingMethodSingle::SHIPPING_METHOD_ID ) );
511
+ $should_display_and_conditions = new ShouldDisplayAndConditions();
512
+ $should_display_and_conditions->add_should_diaplay_condition(
513
+ new ShouldDisplayGetParameterValue( 'page', 'wc-settings' )
514
+ );
515
+ $should_display_and_conditions->add_should_diaplay_condition(
516
+ new ShouldDisplayGetParameterValue( 'tab', 'shipping' )
517
+ );
518
+ $should_display_and_conditions->add_should_diaplay_condition(
519
+ new ShouldDisplayGetParameterValue( 'section', WPDesk_Flexible_Shipping_Settings::METHOD_ID )
520
+ );
521
+ $should_display->add_should_diaplay_condition( $should_display_and_conditions );
522
+
523
+ return $should_display;
524
  }
525
 
526
  /**
classes/tracker/{tracker.php → class-wpdesk-flexible-shipping-tracker.php} RENAMED
@@ -34,10 +34,7 @@ class WPDesk_Flexible_Shipping_Tracker implements Hookable {
34
  * Hooks.
35
  */
36
  public function hooks() {
37
- add_filter( 'wpdesk_tracker_data', array( $this, 'wpdesk_tracker_data_flexible_shipping' ), self::TRACKER_DATA_FILTER_PRIORITY );
38
- add_filter( 'wpdesk_tracker_notice_screens', array( $this, 'wpdesk_tracker_notice_screens' ) );
39
-
40
- add_filter( self::PLUGIN_ACTION_LINKS_FILTER_NAME, array( $this, 'plugin_action_links' ) );
41
  }
42
 
43
  /**
@@ -53,17 +50,17 @@ class WPDesk_Flexible_Shipping_Tracker implements Hookable {
53
  $flexible_shipping = $all_shipping_methods['flexible_shipping'];
54
 
55
  $flexible_shipping_rates = $flexible_shipping->get_all_rates();
56
- $data['flexible_shipping'] = array();
57
  $data['flexible_shipping']['total_shipping_methods'] = 0;
58
  $data['flexible_shipping']['group_shipping_methods'] = 0;
59
  $data['flexible_shipping']['single_shipping_methods'] = 0;
60
  $data['flexible_shipping']['avg_rules'] = 0;
61
  $data['flexible_shipping']['max_rules'] = 0;
62
- $data['flexible_shipping']['integrations'] = array();
63
- $data['flexible_shipping']['free_shipping_requires'] = array();
64
- $data['flexible_shipping']['calculation_methods'] = array();
65
- $data['flexible_shipping']['based_on'] = array();
66
- $data['flexible_shipping']['shipping_class_option'] = array();
67
  $data['flexible_shipping']['method_description_count'] = 0;
68
  $data['flexible_shipping']['free_shipping_label_count'] = 0;
69
  $data['flexible_shipping']['free_shipping_cart_notice_count'] = 0;
@@ -162,54 +159,6 @@ class WPDesk_Flexible_Shipping_Tracker implements Hookable {
162
  return $data;
163
  }
164
 
165
- /**
166
- * Tracker notice screens.
167
- *
168
- * @param array $screens Screens.
169
- *
170
- * @return array
171
- */
172
- public function wpdesk_tracker_notice_screens( $screens ) {
173
- $current_screen = get_current_screen();
174
- if ( 'woocommerce_page_wc-settings' === $current_screen->id ) {
175
- if ( isset( $_GET['tab'] ) && 'shipping' === sanitize_key( $_GET['tab'] ) ) {
176
- $screens[] = $current_screen->id;
177
- }
178
- }
179
-
180
- return $screens;
181
- }
182
-
183
- /**
184
- * Add action links.
185
- *
186
- * @param array $links Links.
187
- *
188
- * @return array
189
- */
190
- public function plugin_action_links( $links ) {
191
- if ( ! wpdesk_tracker_enabled() || apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
192
- return $links;
193
- }
194
- $options = get_option( 'wpdesk_helper_options', array() );
195
- if ( ! is_array( $options ) ) {
196
- $options = array();
197
- }
198
- if ( empty( $options['wpdesk_tracker_agree'] ) ) {
199
- $options['wpdesk_tracker_agree'] = '0';
200
- }
201
- $plugin_links = array();
202
- if ( '0' === $options['wpdesk_tracker_agree'] ) {
203
- $opt_in_link = admin_url( 'admin.php?page=wpdesk_tracker&plugin=' . self::FLEXIBLE_SHIPPING_PLUGIN_FILE );
204
- $plugin_links[] = '<a href="' . $opt_in_link . '">' . __( 'Opt-in', 'flexible-shipping' ) . '</a>';
205
- } else {
206
- $opt_in_link = admin_url( 'plugins.php?wpdesk_tracker_opt_out=1&plugin=' . self::FLEXIBLE_SHIPPING_PLUGIN_FILE );
207
- $plugin_links[] = '<a href="' . $opt_in_link . '">' . __( 'Opt-out', 'flexible-shipping' ) . '</a>';
208
- }
209
-
210
- return array_merge( $plugin_links, $links );
211
- }
212
-
213
  }
214
 
215
  if ( ! function_exists( 'wpdesk_tracker_enabled' ) ) {
34
  * Hooks.
35
  */
36
  public function hooks() {
37
+ add_filter( 'wpdesk_tracker_data', [ $this, 'wpdesk_tracker_data_flexible_shipping' ], self::TRACKER_DATA_FILTER_PRIORITY );
 
 
 
38
  }
39
 
40
  /**
50
  $flexible_shipping = $all_shipping_methods['flexible_shipping'];
51
 
52
  $flexible_shipping_rates = $flexible_shipping->get_all_rates();
53
+ $data['flexible_shipping'] = [];
54
  $data['flexible_shipping']['total_shipping_methods'] = 0;
55
  $data['flexible_shipping']['group_shipping_methods'] = 0;
56
  $data['flexible_shipping']['single_shipping_methods'] = 0;
57
  $data['flexible_shipping']['avg_rules'] = 0;
58
  $data['flexible_shipping']['max_rules'] = 0;
59
+ $data['flexible_shipping']['integrations'] = [];
60
+ $data['flexible_shipping']['free_shipping_requires'] = [];
61
+ $data['flexible_shipping']['calculation_methods'] = [];
62
+ $data['flexible_shipping']['based_on'] = [];
63
+ $data['flexible_shipping']['shipping_class_option'] = [];
64
  $data['flexible_shipping']['method_description_count'] = 0;
65
  $data['flexible_shipping']['free_shipping_label_count'] = 0;
66
  $data['flexible_shipping']['free_shipping_cart_notice_count'] = 0;
159
  return $data;
160
  }
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  }
163
 
164
  if ( ! function_exists( 'wpdesk_tracker_enabled' ) ) {
flexible-shipping.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Flexible Shipping
4
  * Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  * Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
- * Version: 4.15.0
7
  * Author: Octolize
8
  * Author URI: https://octol.io/fs-author
9
  * Text Domain: flexible-shipping
@@ -11,7 +11,7 @@
11
  * Requires at least: 5.7
12
  * Tested up to: 6.1
13
  * WC requires at least: 6.7
14
- * WC tested up to: 7.0
15
  * Requires PHP: 7.0
16
  *
17
  * Copyright 2017 WP Desk Ltd.
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
- $plugin_version = '4.15.0';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
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: 4.16.0
7
  * Author: Octolize
8
  * Author URI: https://octol.io/fs-author
9
  * Text Domain: flexible-shipping
11
  * Requires at least: 5.7
12
  * Tested up to: 6.1
13
  * WC requires at least: 6.7
14
+ * WC tested up to: 7.1
15
  * Requires PHP: 7.0
16
  *
17
  * Copyright 2017 WP Desk Ltd.
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
+ $plugin_version = '4.16.0';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
lang/flexible-shipping.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Flexible Shipping plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Flexible Shipping 4.15.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-shipping\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-18T16:26:25+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-shipping\n"
@@ -25,7 +25,6 @@ msgstr ""
25
  #: src/WPDesk/FS/TableRate/ShippingMethod/Duplicate/DuplicateAction.php:76
26
  #: src/WPDesk/FS/TableRate/ShippingMethod/Duplicate/DuplicateScript.php:67
27
  #: src/WPDesk/FS/TableRate/ShippingMethodSingle.php:63
28
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/PluginCompatibilityChecker.php:94
29
  msgid "Flexible Shipping"
30
  msgstr ""
31
 
@@ -46,23 +45,23 @@ msgid "https://octol.io/fs-author"
46
  msgstr ""
47
 
48
  #. Translators: link.
49
- #: classes/class-flexible-shipping-plugin.php:713
50
  msgid "How can We make Flexible Shipping better for you? %1$sJust write to us.%2$s"
51
  msgstr ""
52
 
53
- #: classes/class-flexible-shipping-plugin.php:798
54
  msgid "Settings"
55
  msgstr ""
56
 
57
- #: classes/class-flexible-shipping-plugin.php:802
58
  msgid "Docs"
59
  msgstr ""
60
 
61
- #: classes/class-flexible-shipping-plugin.php:803
62
  msgid "Support"
63
  msgstr ""
64
 
65
- #: classes/class-flexible-shipping-plugin.php:808
66
  msgid "Upgrade"
67
  msgstr ""
68
 
@@ -161,13 +160,11 @@ msgstr ""
161
 
162
  #: classes/table-rate/settings/flexible-shipping.php:40
163
  #: src/WPDesk/FS/TableRate/ShippingMethod/SingleMethodSettings.php:59
164
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/MethodSettingsImplementation.php:279
165
  msgid "Taxable"
166
  msgstr ""
167
 
168
  #: classes/table-rate/settings/flexible-shipping.php:41
169
  #: src/WPDesk/FS/TableRate/ShippingMethod/SingleMethodSettings.php:60
170
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/MethodSettingsImplementation.php:279
171
  msgctxt "Tax status"
172
  msgid "None"
173
  msgstr ""
@@ -334,8 +331,6 @@ msgstr ""
334
  #: classes/table-rate/views/html-shipping-method-settings.php:17
335
  #: src/WPDesk/FS/Shipment/views/html-orders-filter-form.php:13
336
  #: src/WPDesk/FS/TableRate/ShippingMethod/CommonMethodSettings.php:189
337
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:95
338
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/filter-form.php:14
339
  msgid "Integration"
340
  msgstr ""
341
 
@@ -354,7 +349,6 @@ msgstr ""
354
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:252
355
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:258
356
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:269
357
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/CheckboxValue.php:23
358
  msgid "yes"
359
  msgstr ""
360
 
@@ -450,37 +444,20 @@ msgstr ""
450
  msgid "Enable integration with Flexible Shipping Connect"
451
  msgstr ""
452
 
453
- #: classes/tracker/tracker.php:204
454
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/PluginActionLinks.php:50
455
- msgid "Opt-in"
456
- msgstr ""
457
-
458
- #: classes/tracker/tracker.php:207
459
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/PluginActionLinks.php:53
460
- msgid "Opt-out"
461
- msgstr ""
462
-
463
  #. Translators: plugin name.
464
  #: classes/views/deactivation_thickbox.php:25
465
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:20
466
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:11
467
  msgid "You are deactivating %s plugin."
468
  msgstr ""
469
 
470
  #: classes/views/deactivation_thickbox.php:36
471
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:29
472
  msgid "If you have a moment, please let us know why you are deactivating the plugin (anonymous feedback):"
473
  msgstr ""
474
 
475
  #: classes/views/deactivation_thickbox.php:44
476
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:38
477
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:28
478
  msgid "The plugin suddenly stopped working"
479
  msgstr ""
480
 
481
  #: classes/views/deactivation_thickbox.php:52
482
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:48
483
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:38
484
  msgid "The plugin broke my site"
485
  msgstr ""
486
 
@@ -493,88 +470,64 @@ msgid "Please let us know how we can improve it"
493
  msgstr ""
494
 
495
  #: classes/views/deactivation_thickbox.php:71
496
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:58
497
  msgid "I have found a better plugin"
498
  msgstr ""
499
 
500
  #: classes/views/deactivation_thickbox.php:74
501
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:63
502
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:53
503
  msgid "What's the plugin's name?"
504
  msgstr ""
505
 
506
  #: classes/views/deactivation_thickbox.php:82
507
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:73
508
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:63
509
  msgid "I only needed the plugin for a short period"
510
  msgstr ""
511
 
512
  #: classes/views/deactivation_thickbox.php:90
513
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:83
514
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:73
515
  msgid "I no longer need the plugin"
516
  msgstr ""
517
 
518
  #: classes/views/deactivation_thickbox.php:98
519
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:93
520
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:83
521
  msgid "It's a temporary deactivation. I'm just debugging an issue."
522
  msgstr ""
523
 
524
  #: classes/views/deactivation_thickbox.php:106
525
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:103
526
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:93
527
  msgid "Other"
528
  msgstr ""
529
 
530
  #: classes/views/deactivation_thickbox.php:109
531
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:108
532
  msgid "Please let us know how we can improve our plugin"
533
  msgstr ""
534
 
535
  #: classes/views/deactivation_thickbox.php:116
536
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/column-actions.php:16
537
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:117
538
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-user-feedback/src/WPDesk/Tracker/UserFeedback/views/thickbox.php:98
539
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:107
540
  msgid "Cancel"
541
  msgstr ""
542
 
543
  #: classes/views/deactivation_thickbox.php:117
544
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/thickbox.php:120
545
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:110
546
  msgid "Skip &amp; Deactivate"
547
  msgstr ""
548
 
549
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:22
550
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:15
551
  msgid "Unknown error!"
552
  msgstr ""
553
 
554
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:25
555
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:18
556
  msgid "Nonce verification error! Invalid request."
557
  msgstr ""
558
 
559
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:29
560
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:22
561
  msgid "No shipment id!"
562
  msgstr ""
563
 
564
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:33
565
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:26
566
  msgid "No data!"
567
  msgstr ""
568
 
569
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:52
570
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:43
571
  msgid "Saved"
572
  msgstr ""
573
 
574
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:55
575
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:164
576
  #: src/WPDesk/FS/Shipment/ModifyStatuses.php:31
577
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Metabox/Ajax.php:46
578
  msgid "Created"
579
  msgstr ""
580
 
@@ -669,7 +622,6 @@ msgstr ""
669
 
670
  #. translators: open tag, close tag.
671
  #: src/WPDesk/FS/Nps/NpsHooks.php:107
672
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:129
673
  msgid "By using the 'Send feedback' button I hereby agree and consent to the terms of %1$sPrivacy Policy%2$s."
674
  msgstr ""
675
 
@@ -871,7 +823,6 @@ msgstr ""
871
 
872
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:100
873
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:162
874
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
875
  msgid "Error"
876
  msgstr ""
877
 
@@ -1108,7 +1059,6 @@ msgstr ""
1108
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:252
1109
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:258
1110
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:269
1111
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/CheckboxValue.php:23
1112
  msgid "no"
1113
  msgstr ""
1114
 
@@ -1122,7 +1072,6 @@ msgstr ""
1122
 
1123
  #: src/WPDesk/FS/TableRate/Rule/Condition/Price.php:31
1124
  #: src/WPDesk/FS/TableRate/Rule/PreconfiguredScenarios/PreconfiguredScenariosFactory.php:55
1125
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/BasedOnOptions.php:20
1126
  msgid "Price"
1127
  msgstr ""
1128
 
@@ -1289,7 +1238,6 @@ msgstr ""
1289
 
1290
  #: src/WPDesk/FS/TableRate/Rule/Condition/Weight.php:31
1291
  #: src/WPDesk/FS/TableRate/Rule/PreconfiguredScenarios/PreconfiguredScenariosFactory.php:36
1292
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/BasedOnOptions.php:20
1293
  msgid "Weight"
1294
  msgstr ""
1295
 
@@ -1396,7 +1344,6 @@ msgstr ""
1396
  msgid " Matched items weight: %1$s"
1397
  msgstr ""
1398
 
1399
- #. Translators: items weight.
1400
  #: src/WPDesk/FS/TableRate/Rule/Rule.php:159
1401
  msgid "Rule costs:"
1402
  msgstr ""
@@ -1408,8 +1355,6 @@ msgstr ""
1408
 
1409
  #: src/WPDesk/FS/TableRate/Rule/SpecialAction/None.php:19
1410
  #: src/WPDesk/FS/TableRate/ShippingMethod/CommonMethodSettings.php:181
1411
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/BasedOnOptions.php:20
1412
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/IntegrationSettingsImplementation.php:40
1413
  msgid "None"
1414
  msgstr ""
1415
 
@@ -1684,9 +1629,6 @@ msgstr ""
1684
 
1685
  #. Translators: username.
1686
  #: src/WPDesk/FS/Tracker/TrackerNotices.php:42
1687
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:23
1688
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:15
1689
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php:19
1690
  msgid "Hey %s,"
1691
  msgstr ""
1692
 
@@ -1705,9 +1647,6 @@ msgstr ""
1705
 
1706
  #: templates/email/after_order_table.php:12
1707
  #: templates/myaccount/after_order_table.php:15
1708
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1709
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/manifest-metabox.php:15
1710
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/manifest-metabox.php:74
1711
  msgid "Shipment"
1712
  msgstr ""
1713
 
@@ -1716,508 +1655,6 @@ msgstr ""
1716
  msgid "Track shipment: "
1717
  msgstr ""
1718
 
1719
- #: vendor_prefixed/wpdesk/wp-forms/templates/input-image.php:46
1720
- msgid "Set image"
1721
- msgstr ""
1722
-
1723
- #: vendor_prefixed/wpdesk/wp-forms/templates/input-image.php:57
1724
- msgid "Remove image"
1725
- msgstr ""
1726
-
1727
- #: vendor_prefixed/wpdesk/wp-forms/templates/input-image.php:82
1728
- msgid "Select or Upload Media"
1729
- msgstr ""
1730
-
1731
- #: vendor_prefixed/wpdesk/wp-forms/templates/input-image.php:86
1732
- msgid "Use this media"
1733
- msgstr ""
1734
-
1735
- #: vendor_prefixed/wpdesk/wp-forms/templates/product-select.php:22
1736
- msgid "Search for a product&hellip;"
1737
- msgstr ""
1738
-
1739
- #: vendor_prefixed/wpdesk/wp-helpscout-beacon/src/Beacon/Beacon.php:51
1740
- #: vendor_prefixed/wpdesk/wp-helpscout-beacon/src/Beacon/Beacon.php:92
1741
- msgid "When you click OK we will open our HelpScout beacon where you can find answers to your questions. This beacon will load our help articles and also potentially set cookies."
1742
- msgstr ""
1743
-
1744
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1745
- msgid "Disabled"
1746
- msgstr ""
1747
-
1748
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1749
- msgid "Emergency"
1750
- msgstr ""
1751
-
1752
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1753
- msgid "Alert"
1754
- msgstr ""
1755
-
1756
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1757
- msgid "Critical"
1758
- msgstr ""
1759
-
1760
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1761
- msgid "Warning"
1762
- msgstr ""
1763
-
1764
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1765
- msgid "Notice"
1766
- msgstr ""
1767
-
1768
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1769
- msgid "Info"
1770
- msgstr ""
1771
-
1772
- #: vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php:59
1773
- msgid "Debug"
1774
- msgstr ""
1775
-
1776
- #. Translators: directory.
1777
- #: vendor_prefixed/wpdesk/wp-logs/src/WP/WPCapture.php:23
1778
- msgid "Can not enable WP Desk Debug log! Cannot create directory %s or this directory is not writeable!"
1779
- msgstr ""
1780
-
1781
- #. Translators: directory.
1782
- #: vendor_prefixed/wpdesk/wp-logs/src/WP/WPCapture.php:36
1783
- msgid "Can not enable WP Desk Debug log! Cannot create file %s!"
1784
- msgstr ""
1785
-
1786
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:125
1787
- msgid "Not likely at all"
1788
- msgstr ""
1789
-
1790
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:126
1791
- msgid "Extremely likely"
1792
- msgstr ""
1793
-
1794
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:127
1795
- msgid "How likely are you to recommend our plugin to your friends?"
1796
- msgstr ""
1797
-
1798
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:128
1799
- msgid "What could we do to improve it?"
1800
- msgstr ""
1801
-
1802
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:130
1803
- msgid "Send feedback"
1804
- msgstr ""
1805
-
1806
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:131
1807
- msgid "Sending feedback"
1808
- msgstr ""
1809
-
1810
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:132
1811
- msgid "Thank you!"
1812
- msgstr ""
1813
-
1814
- #: vendor_prefixed/wpdesk/wp-nps/src/Nps.php:133
1815
- msgid "This field is required"
1816
- msgstr ""
1817
-
1818
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/BlockSettings.php:100
1819
- msgid "In order to prevent any further issues with the plugin configuration or its proper functioning, before saving the changes please update the following: %s."
1820
- msgstr ""
1821
-
1822
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/BlockSettings.php:107
1823
- msgid "Go to the plugins list &rarr;"
1824
- msgstr ""
1825
-
1826
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:46
1827
- msgid "If the WordPress updater hasn't informed you about the newer versions available, please %sfollow these instructions &rarr;%s"
1828
- msgstr ""
1829
-
1830
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:46
1831
- msgid "https://octol.io/fs-2-docs"
1832
- msgstr ""
1833
-
1834
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:49
1835
- msgid "%sFlexible Shipping%s plugin you are currently using is not compatible with the installed version of Flexible Shipping PRO and Flexible Shipping Locations. Please update the %sFlexible Shipping%s plugin to %s version or newer."
1836
- msgstr ""
1837
-
1838
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:51
1839
- msgid "%sFlexible Shipping%s plugin you are currently using is not compatible with the installed version of Flexible Shipping PRO. Please update the %sFlexible Shipping%s plugin to %s version or newer."
1840
- msgstr ""
1841
-
1842
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:53
1843
- msgid "%sFlexible Shipping%s plugin you are currently using is not compatible with the installed version of Flexible Shipping Locations. Please update the %sFlexible Shipping%s plugin to %s version or newer."
1844
- msgstr ""
1845
-
1846
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:57
1847
- msgid "%sFlexible Shipping PRO%s plugin you are currently using is not compatible with the installed version of Flexible Shipping free. Please update the %sFlexible Shipping PRO%s plugin to %s version or newer."
1848
- msgstr ""
1849
-
1850
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/Notice.php:60
1851
- msgid "%sFlexible Shipping Locations%s plugin you are currently using is not compatible with the installed version of Flexible Shipping free. Please update the %sFlexible Shipping Locations%s plugin to %s version or newer."
1852
- msgstr ""
1853
-
1854
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/PluginCompatibilityChecker.php:97
1855
- msgid "Flexible Shipping PRO"
1856
- msgstr ""
1857
-
1858
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-compatibility/src/PluginCompatibilityChecker.php:100
1859
- msgid "Flexible Shipping Locations"
1860
- msgstr ""
1861
-
1862
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1863
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:55
1864
- msgid "Shipments"
1865
- msgstr ""
1866
-
1867
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1868
- msgid "View Shipments"
1869
- msgstr ""
1870
-
1871
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1872
- msgid "Add new Shipment"
1873
- msgstr ""
1874
-
1875
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1876
- msgid "Edit Shipment"
1877
- msgstr ""
1878
-
1879
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1880
- msgid "Save Shipment"
1881
- msgstr ""
1882
-
1883
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1884
- msgid "Search Shipments"
1885
- msgstr ""
1886
-
1887
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1888
- msgid "Shipment not found"
1889
- msgstr ""
1890
-
1891
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1892
- msgid "Shipment not found in trash"
1893
- msgstr ""
1894
-
1895
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:44
1896
- msgid "Shipments."
1897
- msgstr ""
1898
-
1899
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1900
- msgctxt "Shipment status"
1901
- msgid "New"
1902
- msgstr ""
1903
-
1904
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1905
- msgid "New <span class=\"count\">(%s)</span>"
1906
- msgid_plural "New <span class=\"count\">(%s)</span>"
1907
- msgstr[0] ""
1908
- msgstr[1] ""
1909
-
1910
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1911
- msgctxt "Shipment status"
1912
- msgid "Created"
1913
- msgstr ""
1914
-
1915
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1916
- msgid "Created <span class=\"count\">(%s)</span>"
1917
- msgid_plural "Created <span class=\"count\">(%s)</span>"
1918
- msgstr[0] ""
1919
- msgstr[1] ""
1920
-
1921
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1922
- msgctxt "Shipment status"
1923
- msgid "Confirmed"
1924
- msgstr ""
1925
-
1926
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1927
- msgid "Confirmed <span class=\"count\">(%s)</span>"
1928
- msgid_plural "Confirmed <span class=\"count\">(%s)</span>"
1929
- msgstr[0] ""
1930
- msgstr[1] ""
1931
-
1932
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1933
- msgctxt "Shipment status"
1934
- msgid "Manifest created"
1935
- msgstr ""
1936
-
1937
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1938
- msgctxt "Shipment status"
1939
- msgid "Failed"
1940
- msgstr ""
1941
-
1942
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:45
1943
- msgid "Failed <span class=\"count\">(%s)</span>"
1944
- msgid_plural "Failed <span class=\"count\">(%s)</span>"
1945
- msgstr[0] ""
1946
- msgstr[1] ""
1947
-
1948
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/CustomPostType.php:68
1949
- msgid "Shipment data"
1950
- msgstr ""
1951
-
1952
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Label/SingleLabelFileDispatcher.php:86
1953
- msgid "Integration doesn't exists."
1954
- msgstr ""
1955
-
1956
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Label/SingleLabelFileDispatcher.php:92
1957
- msgid "Label error"
1958
- msgstr ""
1959
-
1960
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1961
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:39
1962
- msgid "Shipping Manifests"
1963
- msgstr ""
1964
-
1965
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1966
- msgid "Shipping Manifest"
1967
- msgstr ""
1968
-
1969
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1970
- msgid "View Shipping Manifests"
1971
- msgstr ""
1972
-
1973
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1974
- msgid "Add new Shipping Manifest"
1975
- msgstr ""
1976
-
1977
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1978
- msgid "Add new Shipping Manifests"
1979
- msgstr ""
1980
-
1981
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1982
- msgid "Edit Shipping Manifest"
1983
- msgstr ""
1984
-
1985
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1986
- msgid "Save Shipping Manifest"
1987
- msgstr ""
1988
-
1989
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1990
- msgid "Search Shipping Manifests"
1991
- msgstr ""
1992
-
1993
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1994
- msgid "Shipping Manifests not found"
1995
- msgstr ""
1996
-
1997
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
1998
- msgid "Shipping Manifests not found in trash"
1999
- msgstr ""
2000
-
2001
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:33
2002
- msgid "Shipping Manifests."
2003
- msgstr ""
2004
-
2005
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:94
2006
- msgid "Date"
2007
- msgstr ""
2008
-
2009
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:96
2010
- msgid "Number"
2011
- msgstr ""
2012
-
2013
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:97
2014
- msgid "Shipments count"
2015
- msgstr ""
2016
-
2017
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:98
2018
- msgid "Actions"
2019
- msgstr ""
2020
-
2021
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:153
2022
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/CustomPostType.php:175
2023
- msgid "Invalid nonce!"
2024
- msgstr ""
2025
-
2026
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/column-actions.php:11
2027
- msgid "Download"
2028
- msgstr ""
2029
-
2030
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/filter-form.php:11
2031
- msgid "All manifests"
2032
- msgstr ""
2033
-
2034
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/manifest-metabox.php:20
2035
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Manifest/views/manifest-metabox.php:79
2036
- msgid "Order"
2037
- msgstr ""
2038
-
2039
- #. Translators: order id and integration.
2040
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Order/AddShippingMetabox.php:45
2041
- msgid "Shipment for order %1$s, %2$s"
2042
- msgstr ""
2043
-
2044
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Order/AddShippingMetabox.php:83
2045
- msgid "Select integration"
2046
- msgstr ""
2047
-
2048
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Order/AddShippingMetabox.php:85
2049
- msgid "Add shipping"
2050
- msgstr ""
2051
-
2052
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-shipment/src/WPDesk/FS/Shipment/Order/views/html-order-add_shipping-metabox.php:18
2053
- msgid "Add"
2054
- msgstr ""
2055
-
2056
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/CalculationMethodOptions.php:20
2057
- msgid "Sum"
2058
- msgstr ""
2059
-
2060
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:71
2061
- msgid "shipping method configuration"
2062
- msgstr ""
2063
-
2064
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:78
2065
- msgid "input data"
2066
- msgstr ""
2067
-
2068
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:85
2069
- msgid "rules (%1$s)"
2070
- msgstr ""
2071
-
2072
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:85
2073
- msgid "triggered"
2074
- msgstr ""
2075
-
2076
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:85
2077
- msgid "not triggered"
2078
- msgstr ""
2079
-
2080
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/ShippingMethodLogger.php:92
2081
- msgid "the result of shipping method's usage"
2082
- msgstr ""
2083
-
2084
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/view/display-notice-content-single-value.php:12
2085
- msgid "Show %1$s"
2086
- msgstr ""
2087
-
2088
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/view/display-notice-content-single-value.php:15
2089
- msgid "Hide %1$s"
2090
- msgstr ""
2091
-
2092
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/view/display-notice-content-single-value.php:18
2093
- msgid "Copy %1$s"
2094
- msgstr ""
2095
-
2096
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/view/display-notice-footer.php:9
2097
- msgid "Copy all data"
2098
- msgstr ""
2099
-
2100
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Logger/view/display-notice-header.php:9
2101
- msgid "FS Debug mode for %1$s%2$s%3$s shipping method."
2102
- msgstr ""
2103
-
2104
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/CartCalculationOptions.php:23
2105
- msgid "Cart value"
2106
- msgstr ""
2107
-
2108
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/CartCalculationOptions.php:23
2109
- msgid "Package value"
2110
- msgstr ""
2111
-
2112
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/IntegrationSettingsImplementation.php:41
2113
- msgid "Integration: %1$s"
2114
- msgstr ""
2115
-
2116
- #: vendor_prefixed/wpdesk/wp-wpdesk-fs-table-rate/src/Settings/MethodSettingsImplementation.php:272
2117
- msgid "Method settings:%1$s Enabled: %2$s Method Title: %3$s Method Description: %4$s Tax status: %5$s Costs includes tax: %6$s Free Shipping: %7$s Free Shipping Label: %8$s 'Left to free shipping' notice: %9$s Rules Calculation: %10$s Cart Calculation: %11$s Visibility (Show only for logged in users): %12$s Default: %13$s Debug mode: %14$s"
2118
- msgstr ""
2119
-
2120
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/scripts.php:44
2121
- msgid "Plugin deactivation"
2122
- msgstr ""
2123
-
2124
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/scripts.php:115
2125
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:126
2126
- msgid "Submit &amp; Deactivate"
2127
- msgstr ""
2128
-
2129
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-user-feedback/src/WPDesk/Tracker/UserFeedback/UserFeedbackContent.php:31
2130
- msgid "Proceed"
2131
- msgstr ""
2132
-
2133
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker-user-feedback/src/WPDesk/Tracker/UserFeedback/views/thickbox.php:103
2134
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:40
2135
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:32
2136
- msgid "Skip"
2137
- msgstr ""
2138
-
2139
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/OptOut.php:41
2140
- msgid "You successfully opted out of collecting usage data by %1$s. If you change your mind, you can always opt in later in the plugin's quick links."
2141
- msgstr ""
2142
-
2143
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:26
2144
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:18
2145
- msgid "Please help us improve our plugins! If you opt-in, we will collect some non-sensitive data and usage information anonymously. If you skip this, that's okay! All plugins will work just fine."
2146
- msgstr ""
2147
-
2148
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:35
2149
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:27
2150
- msgid "Allow & Continue &rarr;"
2151
- msgstr ""
2152
-
2153
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:47
2154
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:39
2155
- msgid "What permissions are being granted?"
2156
- msgstr ""
2157
-
2158
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:56
2159
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:48
2160
- msgid "Your Site Overview"
2161
- msgstr ""
2162
-
2163
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:59
2164
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:51
2165
- msgid "WP version, PHP info"
2166
- msgstr ""
2167
-
2168
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:67
2169
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:59
2170
- msgid "Plugin Usage"
2171
- msgstr ""
2172
-
2173
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:70
2174
- msgid "Current settings and usage information of %1$s plugins"
2175
- msgstr ""
2176
-
2177
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:78
2178
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:70
2179
- msgid "Your Store Overview"
2180
- msgstr ""
2181
-
2182
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:81
2183
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:73
2184
- msgid "Anonymized and non-sensitive store usage information"
2185
- msgstr ""
2186
-
2187
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/views/tracker-connect.php:91
2188
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:83
2189
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php:27
2190
- msgid "Find out more &raquo;"
2191
- msgstr ""
2192
-
2193
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php:62
2194
- msgid "Current settings and usage information of WP Desk plugins"
2195
- msgstr ""
2196
-
2197
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:19
2198
- msgid " If you have a moment, please let us know why you are deactivating plugin (anonymous feedback):"
2199
- msgstr ""
2200
-
2201
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:48
2202
- msgid "I found a better plugin"
2203
- msgstr ""
2204
-
2205
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php:98
2206
- msgid "Kindly tell us the reason so we can improve"
2207
- msgstr ""
2208
-
2209
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php:22
2210
- msgid "We need your help to improve <strong>WP Desk plugins</strong>, so they are more useful for you and the rest of <strong>30,000+ users</strong>. By collecting data on how you use our plugins, you will help us a lot. We will not collect any sensitive data, so you can feel safe."
2211
- msgstr ""
2212
-
2213
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php:41
2214
- msgid "Allow"
2215
- msgstr ""
2216
-
2217
- #: vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-opt-out-notice.php:11
2218
- msgid "You successfully opted out of collecting usage data by WP Desk. If you change your mind, you can always opt in later in the plugin's quick links."
2219
- msgstr ""
2220
-
2221
  #: assets-src/rules-settings/js/components/html-woo-select.js:37
2222
  #: assets-src/rules-settings/js/components/html-woo-select.js:233
2223
  msgid "Enter 3 or more characters"
2
  # This file is distributed under the same license as the Flexible Shipping plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Flexible Shipping 4.16.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-shipping\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-20T10:19:41+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-shipping\n"
25
  #: src/WPDesk/FS/TableRate/ShippingMethod/Duplicate/DuplicateAction.php:76
26
  #: src/WPDesk/FS/TableRate/ShippingMethod/Duplicate/DuplicateScript.php:67
27
  #: src/WPDesk/FS/TableRate/ShippingMethodSingle.php:63
 
28
  msgid "Flexible Shipping"
29
  msgstr ""
30
 
45
  msgstr ""
46
 
47
  #. Translators: link.
48
+ #: classes/class-flexible-shipping-plugin.php:710
49
  msgid "How can We make Flexible Shipping better for you? %1$sJust write to us.%2$s"
50
  msgstr ""
51
 
52
+ #: classes/class-flexible-shipping-plugin.php:795
53
  msgid "Settings"
54
  msgstr ""
55
 
56
+ #: classes/class-flexible-shipping-plugin.php:799
57
  msgid "Docs"
58
  msgstr ""
59
 
60
+ #: classes/class-flexible-shipping-plugin.php:800
61
  msgid "Support"
62
  msgstr ""
63
 
64
+ #: classes/class-flexible-shipping-plugin.php:805
65
  msgid "Upgrade"
66
  msgstr ""
67
 
160
 
161
  #: classes/table-rate/settings/flexible-shipping.php:40
162
  #: src/WPDesk/FS/TableRate/ShippingMethod/SingleMethodSettings.php:59
 
163
  msgid "Taxable"
164
  msgstr ""
165
 
166
  #: classes/table-rate/settings/flexible-shipping.php:41
167
  #: src/WPDesk/FS/TableRate/ShippingMethod/SingleMethodSettings.php:60
 
168
  msgctxt "Tax status"
169
  msgid "None"
170
  msgstr ""
331
  #: classes/table-rate/views/html-shipping-method-settings.php:17
332
  #: src/WPDesk/FS/Shipment/views/html-orders-filter-form.php:13
333
  #: src/WPDesk/FS/TableRate/ShippingMethod/CommonMethodSettings.php:189
 
 
334
  msgid "Integration"
335
  msgstr ""
336
 
349
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:252
350
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:258
351
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:269
 
352
  msgid "yes"
353
  msgstr ""
354
 
444
  msgid "Enable integration with Flexible Shipping Connect"
445
  msgstr ""
446
 
 
 
 
 
 
 
 
 
 
 
447
  #. Translators: plugin name.
448
  #: classes/views/deactivation_thickbox.php:25
 
 
449
  msgid "You are deactivating %s plugin."
450
  msgstr ""
451
 
452
  #: classes/views/deactivation_thickbox.php:36
 
453
  msgid "If you have a moment, please let us know why you are deactivating the plugin (anonymous feedback):"
454
  msgstr ""
455
 
456
  #: classes/views/deactivation_thickbox.php:44
 
 
457
  msgid "The plugin suddenly stopped working"
458
  msgstr ""
459
 
460
  #: classes/views/deactivation_thickbox.php:52
 
 
461
  msgid "The plugin broke my site"
462
  msgstr ""
463
 
470
  msgstr ""
471
 
472
  #: classes/views/deactivation_thickbox.php:71
 
473
  msgid "I have found a better plugin"
474
  msgstr ""
475
 
476
  #: classes/views/deactivation_thickbox.php:74
 
 
477
  msgid "What's the plugin's name?"
478
  msgstr ""
479
 
480
  #: classes/views/deactivation_thickbox.php:82
 
 
481
  msgid "I only needed the plugin for a short period"
482
  msgstr ""
483
 
484
  #: classes/views/deactivation_thickbox.php:90
 
 
485
  msgid "I no longer need the plugin"
486
  msgstr ""
487
 
488
  #: classes/views/deactivation_thickbox.php:98
 
 
489
  msgid "It's a temporary deactivation. I'm just debugging an issue."
490
  msgstr ""
491
 
492
  #: classes/views/deactivation_thickbox.php:106
 
 
493
  msgid "Other"
494
  msgstr ""
495
 
496
  #: classes/views/deactivation_thickbox.php:109
 
497
  msgid "Please let us know how we can improve our plugin"
498
  msgstr ""
499
 
500
  #: classes/views/deactivation_thickbox.php:116
 
 
 
 
501
  msgid "Cancel"
502
  msgstr ""
503
 
504
  #: classes/views/deactivation_thickbox.php:117
 
 
505
  msgid "Skip &amp; Deactivate"
506
  msgstr ""
507
 
508
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:22
 
509
  msgid "Unknown error!"
510
  msgstr ""
511
 
512
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:25
 
513
  msgid "Nonce verification error! Invalid request."
514
  msgstr ""
515
 
516
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:29
 
517
  msgid "No shipment id!"
518
  msgstr ""
519
 
520
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:33
 
521
  msgid "No data!"
522
  msgstr ""
523
 
524
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:52
 
525
  msgid "Saved"
526
  msgstr ""
527
 
528
  #: classes/wp-wpdesk-fs-shipment/metabox/ajax.php:55
529
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:164
530
  #: src/WPDesk/FS/Shipment/ModifyStatuses.php:31
 
531
  msgid "Created"
532
  msgstr ""
533
 
622
 
623
  #. translators: open tag, close tag.
624
  #: src/WPDesk/FS/Nps/NpsHooks.php:107
 
625
  msgid "By using the 'Send feedback' button I hereby agree and consent to the terms of %1$sPrivacy Policy%2$s."
626
  msgstr ""
627
 
823
 
824
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:100
825
  #: src/WPDesk/FS/Shipment/ModifyOrderTable.php:162
 
826
  msgid "Error"
827
  msgstr ""
828
 
1059
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:252
1060
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:258
1061
  #: src/WPDesk/FS/TableRate/ShippingMethod/RateCalculator.php:269
 
1062
  msgid "no"
1063
  msgstr ""
1064
 
1072
 
1073
  #: src/WPDesk/FS/TableRate/Rule/Condition/Price.php:31
1074
  #: src/WPDesk/FS/TableRate/Rule/PreconfiguredScenarios/PreconfiguredScenariosFactory.php:55
 
1075
  msgid "Price"
1076
  msgstr ""
1077
 
1238
 
1239
  #: src/WPDesk/FS/TableRate/Rule/Condition/Weight.php:31
1240
  #: src/WPDesk/FS/TableRate/Rule/PreconfiguredScenarios/PreconfiguredScenariosFactory.php:36
 
1241
  msgid "Weight"
1242
  msgstr ""
1243
 
1344
  msgid " Matched items weight: %1$s"
1345
  msgstr ""
1346
 
 
1347
  #: src/WPDesk/FS/TableRate/Rule/Rule.php:159
1348
  msgid "Rule costs:"
1349
  msgstr ""
1355
 
1356
  #: src/WPDesk/FS/TableRate/Rule/SpecialAction/None.php:19
1357
  #: src/WPDesk/FS/TableRate/ShippingMethod/CommonMethodSettings.php:181
 
 
1358
  msgid "None"
1359
  msgstr ""
1360
 
1629
 
1630
  #. Translators: username.
1631
  #: src/WPDesk/FS/Tracker/TrackerNotices.php:42
 
 
 
1632
  msgid "Hey %s,"
1633
  msgstr ""
1634
 
1647
 
1648
  #: templates/email/after_order_table.php:12
1649
  #: templates/myaccount/after_order_table.php:15
 
 
 
1650
  msgid "Shipment"
1651
  msgstr ""
1652
 
1655
  msgid "Track shipment: "
1656
  msgstr ""
1657
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1658
  #: assets-src/rules-settings/js/components/html-woo-select.js:37
1659
  #: assets-src/rules-settings/js/components/html-woo-select.js:233
1660
  msgid "Enter 3 or more characters"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://octol.io/fs-repo-up
4
  Tags: table rate, table rate shipping, conditional shipping, free shipping, woocommerce shipping, woocommerce table rate shipping, cart based shipping, weight based shipping, totals based shipping, order based shipping, advanced shipping
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
- Stable tag: 4.15.0
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -222,6 +222,11 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
222
 
223
  == Changelog ==
224
 
 
 
 
 
 
225
  = 4.15.0 - 2022-10-18 =
226
  * Added compatibility with WooCommerce High-Performance Order Storage (HPOS)
227
  * Added support for WordPress 6.1
4
  Tags: table rate, table rate shipping, conditional shipping, free shipping, woocommerce shipping, woocommerce table rate shipping, cart based shipping, weight based shipping, totals based shipping, order based shipping, advanced shipping
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
+ Stable tag: 4.16.0
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
222
 
223
  == Changelog ==
224
 
225
+ = 4.16.0 - 2022-10-20 =
226
+ * Added support for WooCommerce 7.1
227
+ * Updated Octolize tracker
228
+ * Fixed fatal error when handle bulk action
229
+
230
  = 4.15.0 - 2022-10-18 =
231
  * Added compatibility with WooCommerce High-Performance Order Storage (HPOS)
232
  * Added support for WordPress 6.1
src/WPDesk/FS/Shipment/BulkAction.php CHANGED
@@ -84,13 +84,15 @@ class BulkAction implements Hookable {
84
 
85
  /**
86
  * @param string $redirect_to .
87
- * @param string $do_action .
88
  * @param array $post_ids .
89
  *
90
  * @return string
91
  */
92
- public function handle_bulk_action( $redirect_to, $do_action, $post_ids ): string {
93
- return $this->handle_action( $redirect_to, $do_action, $post_ids );
 
 
94
  }
95
 
96
  /**
84
 
85
  /**
86
  * @param string $redirect_to .
87
+ * @param string $action .
88
  * @param array $post_ids .
89
  *
90
  * @return string
91
  */
92
+ public function handle_bulk_action( $redirect_to, $action, $post_ids ): string {
93
+ $redirect_to = is_string( $redirect_to ) ? $redirect_to : add_query_arg( 'post_type', 'shop_order', admin_url( 'edit.php' ) );
94
+
95
+ return $this->handle_action( $redirect_to, $action, $post_ids );
96
  }
97
 
98
  /**
vendor/composer/autoload_classmap.php CHANGED
@@ -103,6 +103,18 @@ return array(
103
  'FSVendor\\Monolog\\ResettableInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
104
  'FSVendor\\Monolog\\SignalHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
105
  'FSVendor\\Monolog\\Utils' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
 
 
 
 
 
 
 
 
 
 
 
 
106
  'FSVendor\\WPDesk\\ABTesting\\ABTest' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest.php',
107
  'FSVendor\\WPDesk\\ABTesting\\ABTest\\EqualGroupsRandomABTest' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest/EqualGroupsRandomABTest.php',
108
  'FSVendor\\WPDesk\\ABTesting\\ABVariant' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABVariant.php',
@@ -561,7 +573,7 @@ return array(
561
  'WPDesk_Flexible_Shipping_Shipment_Ajax' => $baseDir . '/classes/wp-wpdesk-fs-shipment/metabox/ajax.php',
562
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => $baseDir . '/classes/table-rate/class-shortcode-unit-dimension.php',
563
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => $baseDir . '/classes/table-rate/class-shortcode-unit-weight.php',
564
- 'WPDesk_Flexible_Shipping_Tracker' => $baseDir . '/classes/tracker/tracker.php',
565
  'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => $baseDir . '/classes/table-rate/logger/class-woocommerce-context-logger.php',
566
  'WPDesk_Tracker_Data_Provider' => $vendorDir . '/wpdesk/wp-wpdesk-helper-override/src/Interop/Tracker/class-wpdesk-tracker-data-provider.php',
567
  'WPDesk_Tracker_Factory' => $vendorDir . '/wpdesk/wp-wpdesk-helper-override/src/Helper/TrackerFactory.php',
103
  'FSVendor\\Monolog\\ResettableInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
104
  'FSVendor\\Monolog\\SignalHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
105
  'FSVendor\\Monolog\\Utils' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
106
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\OptInNotice' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/OptInNotice.php',
107
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplay' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplay.php',
108
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayAlways' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAlways.php',
109
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayAndConditions' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAndConditions.php',
110
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayGetParameterPresent' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php',
111
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayGetParameterValue' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterValue.php',
112
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayNever' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayNever.php',
113
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayOrConditions' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayOrConditions.php',
114
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayShippingMethodInstanceSettings' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayShippingMethodInstanceSettings.php',
115
+ 'FSVendor\\Octolize\\Tracker\\SenderRegistrator' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/SenderRegistrator.php',
116
+ 'FSVendor\\Octolize\\Tracker\\SenderToOctolize' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/SenderToOctolize.php',
117
+ 'FSVendor\\Octolize\\Tracker\\TrackerInitializer' => $baseDir . '/vendor_prefixed/octolize/wp-octolize-tracker/src/TrackerInitializer.php',
118
  'FSVendor\\WPDesk\\ABTesting\\ABTest' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest.php',
119
  'FSVendor\\WPDesk\\ABTesting\\ABTest\\EqualGroupsRandomABTest' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest/EqualGroupsRandomABTest.php',
120
  'FSVendor\\WPDesk\\ABTesting\\ABVariant' => $baseDir . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABVariant.php',
573
  'WPDesk_Flexible_Shipping_Shipment_Ajax' => $baseDir . '/classes/wp-wpdesk-fs-shipment/metabox/ajax.php',
574
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => $baseDir . '/classes/table-rate/class-shortcode-unit-dimension.php',
575
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => $baseDir . '/classes/table-rate/class-shortcode-unit-weight.php',
576
+ 'WPDesk_Flexible_Shipping_Tracker' => $baseDir . '/classes/tracker/class-wpdesk-flexible-shipping-tracker.php',
577
  'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => $baseDir . '/classes/table-rate/logger/class-woocommerce-context-logger.php',
578
  'WPDesk_Tracker_Data_Provider' => $vendorDir . '/wpdesk/wp-wpdesk-helper-override/src/Interop/Tracker/class-wpdesk-tracker-data-provider.php',
579
  'WPDesk_Tracker_Factory' => $vendorDir . '/wpdesk/wp-wpdesk-helper-override/src/Helper/TrackerFactory.php',
vendor/composer/autoload_static.php CHANGED
@@ -126,6 +126,18 @@ class ComposerStaticInitFlexibleShipping
126
  'FSVendor\\Monolog\\ResettableInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
127
  'FSVendor\\Monolog\\SignalHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
128
  'FSVendor\\Monolog\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
 
 
 
 
 
 
 
 
 
 
 
 
129
  'FSVendor\\WPDesk\\ABTesting\\ABTest' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest.php',
130
  'FSVendor\\WPDesk\\ABTesting\\ABTest\\EqualGroupsRandomABTest' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest/EqualGroupsRandomABTest.php',
131
  'FSVendor\\WPDesk\\ABTesting\\ABVariant' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABVariant.php',
@@ -584,7 +596,7 @@ class ComposerStaticInitFlexibleShipping
584
  'WPDesk_Flexible_Shipping_Shipment_Ajax' => __DIR__ . '/../..' . '/classes/wp-wpdesk-fs-shipment/metabox/ajax.php',
585
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => __DIR__ . '/../..' . '/classes/table-rate/class-shortcode-unit-dimension.php',
586
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => __DIR__ . '/../..' . '/classes/table-rate/class-shortcode-unit-weight.php',
587
- 'WPDesk_Flexible_Shipping_Tracker' => __DIR__ . '/../..' . '/classes/tracker/tracker.php',
588
  'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => __DIR__ . '/../..' . '/classes/table-rate/logger/class-woocommerce-context-logger.php',
589
  'WPDesk_Tracker_Data_Provider' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-helper-override/src/Interop/Tracker/class-wpdesk-tracker-data-provider.php',
590
  'WPDesk_Tracker_Factory' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-helper-override/src/Helper/TrackerFactory.php',
126
  'FSVendor\\Monolog\\ResettableInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
127
  'FSVendor\\Monolog\\SignalHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
128
  'FSVendor\\Monolog\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
129
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\OptInNotice' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/OptInNotice.php',
130
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplay' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplay.php',
131
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayAlways' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAlways.php',
132
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayAndConditions' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAndConditions.php',
133
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayGetParameterPresent' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php',
134
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayGetParameterValue' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterValue.php',
135
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayNever' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayNever.php',
136
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayOrConditions' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayOrConditions.php',
137
+ 'FSVendor\\Octolize\\Tracker\\OptInNotice\\ShouldDisplayShippingMethodInstanceSettings' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayShippingMethodInstanceSettings.php',
138
+ 'FSVendor\\Octolize\\Tracker\\SenderRegistrator' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/SenderRegistrator.php',
139
+ 'FSVendor\\Octolize\\Tracker\\SenderToOctolize' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/SenderToOctolize.php',
140
+ 'FSVendor\\Octolize\\Tracker\\TrackerInitializer' => __DIR__ . '/../..' . '/vendor_prefixed/octolize/wp-octolize-tracker/src/TrackerInitializer.php',
141
  'FSVendor\\WPDesk\\ABTesting\\ABTest' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest.php',
142
  'FSVendor\\WPDesk\\ABTesting\\ABTest\\EqualGroupsRandomABTest' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABTest/EqualGroupsRandomABTest.php',
143
  'FSVendor\\WPDesk\\ABTesting\\ABVariant' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-abtesting/src/ABVariant.php',
596
  'WPDesk_Flexible_Shipping_Shipment_Ajax' => __DIR__ . '/../..' . '/classes/wp-wpdesk-fs-shipment/metabox/ajax.php',
597
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Dimension' => __DIR__ . '/../..' . '/classes/table-rate/class-shortcode-unit-dimension.php',
598
  'WPDesk_Flexible_Shipping_Shorcode_Unit_Weight' => __DIR__ . '/../..' . '/classes/table-rate/class-shortcode-unit-weight.php',
599
+ 'WPDesk_Flexible_Shipping_Tracker' => __DIR__ . '/../..' . '/classes/tracker/class-wpdesk-flexible-shipping-tracker.php',
600
  'WPDesk_Flexible_Shipping_WooCommerce_Context_Logger' => __DIR__ . '/../..' . '/classes/table-rate/logger/class-woocommerce-context-logger.php',
601
  'WPDesk_Tracker_Data_Provider' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-helper-override/src/Interop/Tracker/class-wpdesk-tracker-data-provider.php',
602
  'WPDesk_Tracker_Factory' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-helper-override/src/Helper/TrackerFactory.php',
vendor_prefixed/octolize/wp-octolize-tracker/composer.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "octolize\/wp-octolize-tracker",
3
+ "license": "MIT",
4
+ "authors": [
5
+ {
6
+ "name": "Grzegorz",
7
+ "email": "grzegorz@octolize.com"
8
+ }
9
+ ],
10
+ "require": {
11
+ "ext-json": "*",
12
+ "php": ">=7.0",
13
+ "wpdesk\/wp-wpdesk-tracker": "^3.1",
14
+ "wpdesk\/wp-logs": "^1.7",
15
+ "wpdesk\/wp-wpdesk-tracker-deactivation": "^1.1"
16
+ },
17
+ "require-dev": {
18
+ "phpunit\/phpunit": "<7",
19
+ "wp-coding-standards\/wpcs": "^0.14.1",
20
+ "squizlabs\/php_codesniffer": "^3.0.2",
21
+ "mockery\/mockery": "*",
22
+ "10up\/wp_mock": "*",
23
+ "wimg\/php-compatibility": "^8",
24
+ "johnpbloch\/wordpress": "^6.0"
25
+ },
26
+ "autoload": {
27
+ "psr-4": {
28
+ "FSVendor\\Octolize\\Tracker\\": "src\/"
29
+ }
30
+ },
31
+ "autoload-dev": {},
32
+ "scripts": {
33
+ "phpcs": "phpcs",
34
+ "phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
35
+ "phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
36
+ "phpunit-integration": "phpunit --configuration phpunit-integration.xml --coverage-text --colors=never",
37
+ "phpunit-integration-fast": "phpunit --configuration phpunit-integration.xml --no-coverage"
38
+ },
39
+ "config": {
40
+ "allow-plugins": {
41
+ "johnpbloch\/wordpress-core-installer": false
42
+ },
43
+ "platform": {
44
+ "php": "7.0"
45
+ }
46
+ },
47
+ "extra": {
48
+ "text-domain": "wp-octolize-tracker",
49
+ "translations-folder": "lang",
50
+ "po-files": {
51
+ "pl_PL": "pl_PL.po",
52
+ "es_ES": "es_ES.po",
53
+ "en_AU": "en_AU.po",
54
+ "en_CA": "en_CA.po",
55
+ "en_GB": "en_GB.po",
56
+ "de_DE": "de_DE.po"
57
+ }
58
+ }
59
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/OptInNotice.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ use FSVendor\WPDesk\Notice\Notice;
6
+ use FSVendor\WPDesk\Notice\PermanentDismissibleNotice;
7
+ use FSVendor\WPDesk\PluginBuilder\Plugin\Hookable;
8
+ /**
9
+ * Can display Opt In notice.
10
+ */
11
+ class OptInNotice implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
12
+ {
13
+ /**
14
+ * @var string
15
+ */
16
+ private $plugin_slug;
17
+ /**
18
+ * @var ShouldDisplay
19
+ */
20
+ private $should_display;
21
+ /**
22
+ * @var string
23
+ */
24
+ private $shop_url;
25
+ /**
26
+ * @param string $plugin_slug
27
+ * @param string $shop_url
28
+ * @param ShouldDisplay $should_display
29
+ */
30
+ public function __construct(string $plugin_slug, string $shop_url, \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay $should_display)
31
+ {
32
+ $this->plugin_slug = $plugin_slug;
33
+ $this->should_display = $should_display;
34
+ $this->shop_url = $shop_url;
35
+ }
36
+ /**
37
+ * @return void
38
+ */
39
+ public function hooks()
40
+ {
41
+ \add_action('admin_notices', [$this, 'display_notice_if_should']);
42
+ }
43
+ /**
44
+ * @return void
45
+ */
46
+ public function display_notice_if_should()
47
+ {
48
+ if ($this->should_display->should_display()) {
49
+ $this->create_notice();
50
+ }
51
+ }
52
+ /**
53
+ * @return PermanentDismissibleNotice
54
+ */
55
+ protected function create_notice()
56
+ {
57
+ $notice_name = 'octolize_opt_in_' . $this->plugin_slug;
58
+ new \FSVendor\WPDesk\Notice\PermanentDismissibleNotice($this->prepare_notice_content(), $notice_name, \FSVendor\WPDesk\Notice\Notice::NOTICE_TYPE_SUCCESS);
59
+ }
60
+ /**
61
+ * @return string
62
+ */
63
+ private function prepare_notice_content()
64
+ {
65
+ $user = \wp_get_current_user();
66
+ $username = $user->first_name ? $user->first_name : $user->user_login;
67
+ $terms_url = \sprintf('%1$s/usage-tracking/', \untrailingslashit($this->shop_url));
68
+ $plugin_slug = $this->plugin_slug;
69
+ \ob_start();
70
+ include __DIR__ . '/views/html-notice.php';
71
+ return \ob_get_clean();
72
+ }
73
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplay.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display notice.
7
+ */
8
+ interface ShouldDisplay
9
+ {
10
+ /**
11
+ * Notice should be displayed?
12
+ *
13
+ * @return bool
14
+ */
15
+ public function should_display();
16
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAlways.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display always.
7
+ */
8
+ class ShouldDisplayAlways implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ public function should_display()
14
+ {
15
+ return \true;
16
+ }
17
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayAndConditions.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display AND conditions.
7
+ */
8
+ class ShouldDisplayAndConditions implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @var ShouldDisplay[]
12
+ */
13
+ private $conditions = [];
14
+ /**
15
+ * @param ShouldDisplay $should_display
16
+ *
17
+ * @return void
18
+ */
19
+ public function add_should_diaplay_condition(\FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay $should_display)
20
+ {
21
+ $this->conditions[] = $should_display;
22
+ }
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ public function should_display()
27
+ {
28
+ foreach ($this->conditions as $condition) {
29
+ if (!$condition->should_display()) {
30
+ return \false;
31
+ }
32
+ }
33
+ return \true;
34
+ }
35
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display $_GET parameter present.
7
+ */
8
+ class ShouldDisplayGetParameterPresent implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @var string
12
+ */
13
+ private $parameter;
14
+ /**
15
+ * @param string $parameter
16
+ */
17
+ public function __construct(string $parameter)
18
+ {
19
+ $this->parameter = $parameter;
20
+ }
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function should_display()
25
+ {
26
+ return isset($_GET[$this->parameter]);
27
+ }
28
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterValue.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display $_GET parameter value.
7
+ */
8
+ class ShouldDisplayGetParameterValue implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @var string
12
+ */
13
+ private $parameter;
14
+ /**
15
+ * @var string
16
+ */
17
+ private $value;
18
+ /**
19
+ * @param string $parameter
20
+ * @param string $value
21
+ */
22
+ public function __construct(string $parameter, string $value)
23
+ {
24
+ $this->parameter = $parameter;
25
+ $this->value = $value;
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ public function should_display()
31
+ {
32
+ return isset($_GET[$this->parameter]) && $_GET[$this->parameter] === $this->value;
33
+ }
34
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayNever.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display never.
7
+ */
8
+ class ShouldDisplayNever implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ public function should_display()
14
+ {
15
+ return \false;
16
+ }
17
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayOrConditions.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display OR conditions.
7
+ */
8
+ class ShouldDisplayOrConditions implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @var ShouldDisplay[]
12
+ */
13
+ private $conditions = [];
14
+ /**
15
+ * @param ShouldDisplay $should_display
16
+ *
17
+ * @return void
18
+ */
19
+ public function add_should_diaplay_condition(\FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay $should_display)
20
+ {
21
+ $this->conditions[] = $should_display;
22
+ }
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ public function should_display()
27
+ {
28
+ foreach ($this->conditions as $condition) {
29
+ if ($condition->should_display()) {
30
+ return \true;
31
+ }
32
+ }
33
+ return \false;
34
+ }
35
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayShippingMethodInstanceSettings.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker\OptInNotice;
4
+
5
+ /**
6
+ * Should display shipping method settings page.
7
+ */
8
+ class ShouldDisplayShippingMethodInstanceSettings implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
9
+ {
10
+ /**
11
+ * @var string
12
+ */
13
+ private $shipping_method_id;
14
+ /**
15
+ * @param string $shipping_method_id
16
+ */
17
+ public function __construct(string $shipping_method_id)
18
+ {
19
+ $this->shipping_method_id = $shipping_method_id;
20
+ }
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function should_display()
25
+ {
26
+ $shipping_method = \WC_Shipping_Zones::get_shipping_method($_GET['instance_id'] ?? 0);
27
+ return $shipping_method && $shipping_method instanceof \WC_Shipping_Method && $shipping_method->id === $this->shipping_method_id;
28
+ }
29
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/views/html-notice.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor;
4
+
5
+ /**
6
+ * @var string $username
7
+ * @var string $terms_url
8
+ * @var string $plugin_slug
9
+ */
10
+ ?>
11
+ <strong><?php
12
+ echo \esc_html(\__('Help us improve Octolize plugins\' experience', 'flexible-shipping'));
13
+ ?></strong><br/>
14
+ <?php
15
+ echo \wp_kses_post(\sprintf(\__('Hi %1$s, with your helping hand we can build effective solutions, launch the new features and shape better plugins experience. By agreeing to anonymously share non-sensitive %2$susage data%3$s of our plugins, you will help us develop them in the right direction. No personal data is tracked or stored and you can opt-out any time. Will you give the thumbs up to our efforts?', 'flexible-shipping'), $username, '<a href="' . \esc_url($terms_url) . '" target="_blank">', '</a>'));
16
+ ?><br/>
17
+ </p>
18
+ <p>
19
+ <button id="wpdesk_tracker_allow_button_notice-<?php
20
+ echo \esc_attr($plugin_slug);
21
+ ?>" class="button button-primary"><?php
22
+ \esc_html_e('Allow', 'flexible-shipping');
23
+ ?></button>
24
+
25
+ <script type="text/javascript">
26
+ jQuery(document).on('click', '#wpdesk_tracker_allow_button_notice-<?php
27
+ echo \esc_attr($plugin_slug);
28
+ ?>',function(e){
29
+ e.preventDefault();
30
+ jQuery.ajax( '<?php
31
+ echo \admin_url('admin-ajax.php');
32
+ ?>',
33
+ {
34
+ type: 'POST',
35
+ data: {
36
+ action: 'wpdesk_tracker_notice_handler',
37
+ type: 'allow',
38
+ }
39
+ }
40
+ );
41
+ jQuery('#wpdesk-notice-octolize_opt_in_<?php
42
+ echo \esc_attr($plugin_slug);
43
+ ?>').toggle( false );
44
+ });
45
+ </script>
46
+ <?php
vendor_prefixed/octolize/wp-octolize-tracker/src/SenderRegistrator.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker;
4
+
5
+ use FSVendor\WPDesk\PluginBuilder\Plugin\Hookable;
6
+ /**
7
+ * Can create and register sender in filter.
8
+ */
9
+ class SenderRegistrator implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
10
+ {
11
+ /**
12
+ * @var string
13
+ */
14
+ private $plugin_slug;
15
+ /**
16
+ * @param string $plugin_slug
17
+ */
18
+ public function __construct(string $plugin_slug)
19
+ {
20
+ $this->plugin_slug = $plugin_slug;
21
+ }
22
+ /**
23
+ * @return void
24
+ */
25
+ public function hooks()
26
+ {
27
+ \add_filter('wpdesk/tracker/sender/' . $this->plugin_slug, [$this, 'create_sender']);
28
+ }
29
+ /**
30
+ * @return SenderToOctolize
31
+ */
32
+ public function create_sender()
33
+ {
34
+ return new \FSVendor\Octolize\Tracker\SenderToOctolize();
35
+ }
36
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/SenderToOctolize.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker;
4
+
5
+ /**
6
+ * Can send tracked data to Octolize.
7
+ */
8
+ class SenderToOctolize implements \WPDesk_Tracker_Sender
9
+ {
10
+ /**
11
+ * URL to the WP Desk Tracker API endpoint.
12
+ * @var string
13
+ */
14
+ private $api_url = 'https://data.octolize.org/?track=1';
15
+ private $test_api_url = 'https://testdata.octolize.org/?track=1';
16
+ /**
17
+ * Sends payload to predefined receiver.
18
+ *
19
+ * @param array $payload Payload to send.
20
+ *
21
+ * @return array If succeeded. Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
22
+ * @throws \WPDesk_Tracker_Sender_Exception_WpError Error if send failed.
23
+ *
24
+ */
25
+ public function send_payload(array $payload)
26
+ {
27
+ \FSVendor\WPDesk_Logger_Factory::log_message("Target URL: " . $this->get_api_url(), 'octolize-sender', \FSVendor\WPDesk_Logger::DEBUG);
28
+ $response = \wp_remote_post($this->get_api_url(), array('method' => 'POST', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => \false, 'headers' => array('user-agent' => 'OctolizeSender'), 'body' => \json_encode($payload), 'cookies' => array()));
29
+ if ($response instanceof \WP_Error) {
30
+ throw new \FSVendor\WPDesk_Tracker_Sender_Exception_WpError('Payload send error', $response);
31
+ } else {
32
+ return $response;
33
+ }
34
+ }
35
+ /**
36
+ * @return string
37
+ */
38
+ private function get_api_url()
39
+ {
40
+ $api_url = $this->api_url;
41
+ if (\apply_filters('wpdesk_tracker_use_testdata', \false)) {
42
+ $api_url = $this->test_api_url;
43
+ }
44
+ return $api_url;
45
+ }
46
+ }
vendor_prefixed/octolize/wp-octolize-tracker/src/TrackerInitializer.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\Octolize\Tracker;
4
+
5
+ use FSVendor\Octolize\Tracker\OptInNotice\OptInNotice;
6
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay;
7
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAlways;
8
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAndConditions;
9
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterPresent;
10
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue;
11
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayOrConditions;
12
+ use FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayShippingMethodInstanceSettings;
13
+ use FSVendor\WPDesk\PluginBuilder\Plugin\HookableCollection;
14
+ use FSVendor\WPDesk\PluginBuilder\Plugin\HookableParent;
15
+ use FSVendor\WPDesk\Tracker\Deactivation\TrackerFactory;
16
+ use FSVendor\WPDesk\Tracker\OptInOptOut;
17
+ /**
18
+ * Can create complete tracker.
19
+ */
20
+ class TrackerInitializer implements \FSVendor\WPDesk\PluginBuilder\Plugin\HookableCollection
21
+ {
22
+ use HookableParent;
23
+ /**
24
+ * @var string
25
+ */
26
+ private $plugin_file;
27
+ /**
28
+ * @var string
29
+ */
30
+ private $plugin_slug;
31
+ /**
32
+ * @var string
33
+ */
34
+ private $plugin_name;
35
+ /**
36
+ * @var string
37
+ */
38
+ private $shop_url;
39
+ /**
40
+ * @var ShouldDisplay
41
+ */
42
+ private $should_display;
43
+ /**
44
+ * @param string $plugin_file Plugin file.
45
+ * @param string $plugin_slug Plugin slug.
46
+ * @param string $plugin_name Plugin name.
47
+ * @param string $shop_url Shop URL.
48
+ */
49
+ public function __construct(string $plugin_file, string $plugin_slug, string $plugin_name, string $shop_url, \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay $should_display)
50
+ {
51
+ $this->plugin_file = $plugin_file;
52
+ $this->plugin_slug = $plugin_slug;
53
+ $this->plugin_name = $plugin_name;
54
+ $this->shop_url = $shop_url;
55
+ $this->should_display = $should_display;
56
+ }
57
+ /**
58
+ * Hooks.
59
+ *
60
+ * @return void
61
+ */
62
+ public function hooks()
63
+ {
64
+ $this->add_hookable(new \FSVendor\Octolize\Tracker\SenderRegistrator($this->plugin_slug));
65
+ $opt_in_opt_out = new \FSVendor\WPDesk\Tracker\OptInOptOut($this->plugin_file, $this->plugin_slug, $this->shop_url, $this->plugin_name);
66
+ $opt_in_opt_out->create_objects();
67
+ $this->add_hookable($opt_in_opt_out);
68
+ $this->add_hookable(\FSVendor\WPDesk\Tracker\Deactivation\TrackerFactory::createDefaultTracker($this->plugin_slug, $this->plugin_file, $this->plugin_name));
69
+ $tracker_consent = new \FSVendor\WPDesk_Tracker_Persistence_Consent();
70
+ if (!$tracker_consent->is_active()) {
71
+ $this->add_hookable(new \FSVendor\Octolize\Tracker\OptInNotice\OptInNotice($this->plugin_slug, $this->shop_url, $this->should_display));
72
+ }
73
+ $this->hooks_on_hookable_objects();
74
+ \add_action('plugins_loaded', [$this, 'init_tracker']);
75
+ }
76
+ /**
77
+ * Creates Tracker.
78
+ * All data will be sent to https://data.octolize.org
79
+ *
80
+ * @return void
81
+ */
82
+ public function init_tracker()
83
+ {
84
+ $tracker = \apply_filters('wpdesk_tracker_instance', null);
85
+ }
86
+ /**
87
+ * Creates tracker initializer from plugin info.
88
+ *
89
+ * @param \WPDesk_Plugin_Info $plugin_info .
90
+ * @param ShouldDisplay $should_display .
91
+ *
92
+ * @return TrackerInitializer
93
+ */
94
+ public static function create_from_plugin_info(\FSVendor\WPDesk_Plugin_Info $plugin_info, $should_display)
95
+ {
96
+ $shops = $plugin_info->get_plugin_shops();
97
+ $shop_url = $shops[\get_locale()] ?? $shops['default'] ?? 'https://octolize.com';
98
+ return new self($plugin_info->get_plugin_file_name(), $plugin_info->get_plugin_slug(), $plugin_info->get_plugin_name(), $shop_url, $should_display ?? new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAlways());
99
+ }
100
+ /**
101
+ * Creates tracker initializer from plugin info for shipping method.
102
+ *
103
+ * @param \WPDesk_Plugin_Info $plugin_info .
104
+ * @param string $shipping_method_id .
105
+ *
106
+ * @return TrackerInitializer
107
+ */
108
+ public static function create_from_plugin_info_for_shipping_method(\FSVendor\WPDesk_Plugin_Info $plugin_info, string $shipping_method_id)
109
+ {
110
+ $shops = $plugin_info->get_plugin_shops();
111
+ $shop_url = $shops[\get_locale()] ?? $shops['default'] ?? 'https://octolize.com';
112
+ $should_display = new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayOrConditions();
113
+ $should_display_and_conditions = new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAndConditions();
114
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue('page', 'wc-settings'));
115
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue('tab', 'shipping'));
116
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue('section', $shipping_method_id));
117
+ $should_display->add_should_diaplay_condition($should_display_and_conditions);
118
+ $should_display_and_conditions = new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayAndConditions();
119
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue('page', 'wc-settings'));
120
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterValue('tab', 'shipping'));
121
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayGetParameterPresent('instance_id'));
122
+ $should_display_and_conditions->add_should_diaplay_condition(new \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplayShippingMethodInstanceSettings($shipping_method_id));
123
+ $should_display->add_should_diaplay_condition($should_display_and_conditions);
124
+ return new self($plugin_info->get_plugin_file_name(), $plugin_info->get_plugin_slug(), $plugin_info->get_plugin_name(), $shop_url, $should_display);
125
+ }
126
+ }
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/PSR/WPDesk/Tracker/OptInPage.php CHANGED
@@ -58,10 +58,12 @@ class OptInPage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
58
  {
59
  if (isset($_GET['wpdesk_tracker']) && $_GET['wpdesk_tracker'] === $this->plugin_slug) {
60
  if (isset($_GET['allow']) && isset($_GET['security']) && \wp_verify_nonce($_GET['security'], $this->plugin_slug)) {
61
- $persistence = new \FSVendor\WPDesk_Tracker_Persistence_Consent();
62
- $persistence->set_active(\true);
63
- \delete_option('wpdesk_tracker_notice');
64
- \update_option('wpdesk_tracker_agree', '1');
 
 
65
  if (\wp_safe_redirect(\admin_url('plugins.php'))) {
66
  exit;
67
  }
58
  {
59
  if (isset($_GET['wpdesk_tracker']) && $_GET['wpdesk_tracker'] === $this->plugin_slug) {
60
  if (isset($_GET['allow']) && isset($_GET['security']) && \wp_verify_nonce($_GET['security'], $this->plugin_slug)) {
61
+ if ($_GET['allow'] === '1') {
62
+ $persistence = new \FSVendor\WPDesk_Tracker_Persistence_Consent();
63
+ $persistence->set_active(\true);
64
+ \delete_option('wpdesk_tracker_notice');
65
+ \update_option('wpdesk_tracker_agree', '1');
66
+ }
67
  if (\wp_safe_redirect(\admin_url('plugins.php'))) {
68
  exit;
69
  }