PluginProbe
Route ‑ Shipping Protection / 2.4.19
Route ‑ Shipping Protection v2.4.19
2.4.19 2.4.18 2.4.17 2.4.16 2.4.15 2.4.14 2.4.13 2.4.12 2.4.11 2.4.10 2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.2.4 2.2.5 2.2.6 2.2.8 2.2.9 2.3.0 2.3.1 All 153 releases
← All changes | admin/class-wc-settings-routeapp.php +19 -2 2.2.4 → 2.4.19 View file →
@@ -69,8 +69,9 @@
69 69
70 70 $routeapp_public = self::get_route_public_instance();
71 71 $checkout_hooks = $routeapp_public->routeapp_get_checkout_hook_options();
72 72
73 + $ownership_login = Route_Setup::get_dashboard_ownership_login_url();
73 74 $settings = apply_filters( 'routeapp_settings', array(
74 75 array(
75 76 'name' => __( 'Route', 'routeapp' ),
76 77 'type' => 'title',
@@ -79,9 +80,13 @@
79 80 ),
80 81 array(
81 82 'name' => __( 'Public Token', 'routeapp' ),
82 83 'type' => 'text',
83 - 'desc' => "<p class='description'>Haven’t received your Tokens? <a href='https://dashboard.route.com/create-account' target='_blank'>Click here</a> to create your Route Partner Account.</p>",
84 + 'desc' => '<p class="description">' . sprintf(
85 + /* translators: %s: Route Dashboard login URL with platformUrl (OTP callback). */
86 + esc_html__( 'Missing tokens? %s to sign in at Route and link this store.', 'routeapp' ),
87 + '<a href="' . esc_url( $ownership_login ) . '" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Click here', 'routeapp' ) . '</a>'
88 + ) . '</p>',
84 89 'id' => 'routeapp_public_token',
85 90 'class' => 'route-environment',
86 91 ),
87 92 array(
@@ -131,8 +136,20 @@
131 136 'id' => 'routeapp_cancel_order_statuses',
132 137 'class' => 'route-environment',
133 138 'options' => wc_get_order_statuses()
134 139 ),
140 + array(
141 + 'name' => __( 'External Tracking Provider', 'routeapp' ),
142 + 'type' => 'select',
143 + 'id' => 'routeapp_external_tracking_providers',
144 + 'class' => 'route-environment',
145 + 'desc' => __( 'Select a tracking provider used without a dedicated WooCommerce plugin', 'routeapp' ),
146 + 'default' => '',
147 + 'options' => array(
148 + '' => __( 'None', 'routeapp' ),
149 + 'pirate_ship' => __( 'Pirate Ship', 'routeapp' ),
150 + )
151 + ),
135 152 array(
136 153 'name' => __( 'Include order updates widget', 'routeapp' ),
137 154 'type' => 'checkbox',
138 155 'desc' => __( 'When enabled, Route\'s default order updates widget will be included', 'routeapp'),
@@ -139,9 +156,9 @@
139 156 'id' => 'routeapp_route_show_order_updates',
140 157 'default' => 'yes'
141 158 ),
142 159 array(
143 - 'name' => __( 'Choose the place where Route Widget will appear on checkout page', 'routeapp' ),
160 + 'name' => __( 'Choose the place where Route Widget will appear on classic checkout page', 'routeapp' ),
144 161 'type' => 'select',
145 162 'desc' => "<p class='description'>You can edit the place where the route widget will appear. You can check <a href='https://docs.woocommerce.com/wc-apidocs/hook-docs.html' target='_blank'>here</a> for further explanation about how hooks works.</p>",
146 163 'id' => 'routeapp_checkout_hook',
147 164 'class' => 'route-environment',