PluginProbe ʕ •ᴥ•ʔ
Weight Based Shipping Table Rate for WooCommerce – Flexible Shipping / trunk
Weight Based Shipping Table Rate for WooCommerce – Flexible Shipping vtrunk
6.8.1 6.8.0 6.7.4 6.7.3 6.7.2 6.7.0 4.21.7 4.22.0 4.22.1 4.23.0 4.23.1 4.23.2 4.23.3 4.24.0 4.24.1 4.24.10 4.24.11 4.24.12 4.24.13 4.24.14 4.24.15 4.24.16 4.24.17 4.24.18 4.24.19 4.24.2 4.24.4 4.24.6 4.24.7 4.24.8 4.24.9 4.25.0 4.25.1 4.25.2 4.25.4 4.25.5 4.25.6 4.25.7 4.25.8 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 4.8.0 4.8.1 4.8.3 4.8.4 4.8.5 4.9.0 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 5.1.0 5.1.1 5.1.2 5.1.3 5.2.0 5.3.0 5.3.1 5.3.3 5.3.4 5.3.5 6.0.0 6.1.0 6.1.1 6.1.2 6.2.0 6.2.1 6.2.2 6.2.3 6.2.4 6.3.0 trunk 6.4.0 1.4 6.4.1 1.4.1 6.4.2 1.5 6.4.3 1.6 6.4.5 1.6.1 6.5.0 1.6.2 6.5.1 1.7 6.5.2 1.8 6.5.3 1.9 6.5.4 1.9.1 6.5.5 1.9.10 6.5.6 1.9.11 6.5.7 1.9.12 6.5.8 1.9.2 6.6.0 1.9.3 6.6.1 1.9.4 6.6.2 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0 2.0.1 2.1 2.1.1 2.1.10 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.6 3.0.7 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 3.11.4 3.12.0 3.13.0 3.14.0 3.14.1 3.14.2 3.14.3 3.14.4 3.15.0 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.2.0 3.3.1 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.7.0 3.8.0 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.9 4.0.0 4.0.1 4.0.10 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10.0 4.10.1 4.11.0 4.11.1 4.11.2 4.11.3 4.11.4 4.11.5 4.11.6 4.11.7 4.11.8 4.11.9 4.12.0 4.13.0 4.13.1 4.13.2 4.13.3 4.14.0 4.14.1 4.14.2 4.15.0 4.16.0 4.16.1 4.16.2 4.17.0 4.18.0 4.18.1 4.18.2 4.18.3 4.18.4 4.18.5 4.18.6 4.19.0 4.19.1 4.2.0 4.20.0 4.20.1 4.20.2 4.20.3 4.21.0 4.21.1 4.21.2 4.21.3 4.21.4 4.21.5
flexible-shipping / classes / table-rate / views / html-shipping-method-settings.php
flexible-shipping / classes / table-rate / views Last commit date
html-column-shipping-message.php 1 week ago html-custom-services.php 1 week ago html-menu-icon.php 1 week ago html-shipping-method-scripts.php 1 week ago html-shipping-method-settings.php 1 week ago html-shipping-settings-advanced.php 1 week ago html-shipping-settings-info-description.php 1 week ago
html-shipping-method-settings.php
231 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) {
2 exit;
3 } ?>
4 <tr valign="top">
5 <td class="forminp" style="padding-left:0;padding-right:0;">
6 <fieldset>
7 <legend class="screen-reader-text"><span><?php echo wp_kses_post( $data['title'] ); ?></span></legend>
8
9 <table class="flexible_shipping_methods wc_shipping widefat wp-list-table" cellspacing="0">
10 <thead>
11 <tr>
12 <th class="sort">&nbsp;</th>
13 <th class="title"><?php esc_html_e( 'Title', 'flexible-shipping' ); ?></th>
14 <th class="status"><?php esc_html_e( 'Enabled', 'flexible-shipping' ); ?></th>
15 <th class="visibility"><?php esc_html_e( 'Visibility', 'flexible-shipping' ); ?></th>
16 <th class="default"><?php esc_html_e( 'Default', 'flexible-shipping' ); ?></th>
17 <th class="integration"><?php esc_html_e( 'Integration', 'flexible-shipping' ); ?></th>
18 <th class="select check-column"><input type="checkbox" class="tips checkbox-select-all"
19 value="1"
20 data-tip="<?php esc_attr_e( 'Select all', 'flexible-shipping' ); ?>"/>
21 </th>
22 </tr>
23 </thead>
24 <tbody>
25 <?php if ( isset( $shipping_method_order ) && is_array( $shipping_method_order ) ) : ?>
26 <?php foreach ( $shipping_method_order as $shipping_method_id ) : ?>
27 <?php $shipping_method = $shipping_methods[ $shipping_method_id ]; ?>
28 <?php $tr_class = ''; ?>
29 <?php
30 if ( isset( $_GET['added'] ) && sanitize_key( $_GET['added'] ) == $shipping_method_id ) {
31 $tr_class = 'highlight';
32 }
33 if ( isset( $_GET['updated'] ) && sanitize_key( $_GET['updated'] ) == $shipping_method_id ) {
34 $tr_class = 'highlight';
35 }
36 ?>
37 <tr id="method_<?php echo esc_attr( $shipping_method_id ); ?>" class="<?php echo esc_attr( $tr_class ); ?>">
38 <td width="1%" class="sort">
39 <input type="hidden"
40 name="method_order[<?php echo esc_attr( $shipping_method['id'] ); ?>]"
41 value="<?php echo esc_attr( $shipping_method['id'] ); ?>"/>
42 </td>
43 <td class="title">
44 <a data-qa-id="shipping-method-<?php echo esc_attr( $shipping_method['method_title'] ); ?>"
45 href="<?php echo esc_url( add_query_arg( 'method_id', $shipping_method_id, add_query_arg( 'action', 'edit' ) ) ); ?>">
46 <strong><?php echo esc_html( $shipping_method['method_title'] ); ?></strong>
47 </a>
48 <?php if ( isset( $shipping_method['method_description'] ) && $shipping_method['method_description'] != '' ) : ?>
49 (<?php echo esc_html( $shipping_method['method_description'] ); ?>)
50 <?php endif; ?>
51 </td>
52 <td width="1%" class="status">
53 <?php if ( isset( $shipping_method['method_enabled'] ) && 'yes' === $shipping_method['method_enabled'] ) : ?>
54 <span class="status-enabled tips"
55 data-tip="<?php esc_attr_e( 'yes', 'flexible-shipping' ); ?>"><?php esc_html_e( 'yes', 'flexible-shipping' ); ?></span>
56 <?php else : ?>
57 <span class="na">-</span>
58 <?php endif; ?>
59 </td>
60 <td width="1%" class="default visibility">
61 <?php if ( isset( $shipping_method['method_visibility'] ) && 'yes' === $shipping_method['method_visibility'] ) : ?>
62 <span class="status-enabled tips"
63 data-tip="<?php esc_attr_e( 'Show only for logged in users', 'flexible-shipping' ); ?>"><?php esc_html_e( 'yes', 'flexible-shipping' ); ?></span>
64 <?php else : ?>
65 <span class="na tips"
66 data-tip="<?php esc_attr_e( 'Show for all users', 'flexible-shipping' ); ?>">-</span>
67 <?php endif; ?>
68 </td>
69 <td width="1%" class="default">
70 <?php if ( 'yes' === $shipping_method['method_default'] ) : ?>
71 <span class="status-enabled tips"
72 data-tip="<?php esc_attr_e( 'yes', 'flexible-shipping' ); ?>"><?php esc_html_e( 'yes', 'flexible-shipping' ); ?></span>
73 <?php else : ?>
74 <span class="na">-</span>
75 <?php endif; ?>
76 </td>
77 <?php echo wp_kses_post( apply_filters( 'flexible_shipping_method_integration_col', '<td width="1%" class="integration default">-</td>', $shipping_method ) ); ?>
78 <td width="1%" class="select check-column" nowrap>
79 <input type="checkbox" class="tips checkbox-select"
80 value="<?php echo esc_attr( $shipping_method['id'] ); ?>"
81 data-tip="<?php echo esc_html( $shipping_method['method_title'] ); ?>"/>
82 </td>
83 </tr>
84 <?php endforeach; ?>
85 <?php endif; ?>
86 </tbody>
87 <tfoot>
88 <tr>
89 <th>&nbsp;</th>
90 <th colspan="8"><span
91 class="description"><?php esc_html_e( 'Drag and drop the above shipment methods to control their display order. Confirm by clicking Save changes button below.', 'flexible-shipping' ); ?></span>
92 </th>
93 </tr>
94 <tr>
95 <th>&nbsp;</th>
96 <th colspan="8">
97 <button id="flexible_shipping_remove_selected" class="button"
98 disabled><?php esc_html_e( 'Remove selected', 'flexible-shipping' ); ?></button>
99 <div class="flexilble_shipping_export_import">
100 <input id="flexible_shipping_import_file" type="file" name="import_file"
101 style="display:none;" accept=".csv,.json"/>
102 <input id="flexible_shipping_import_action" type="hidden" name="import_action"
103 value="0"/>
104 <button id="flexible_shipping_import_cancel" class="button"
105 style="display:none;"><?php esc_html_e( 'Cancel import', 'flexible-shipping' ); ?></button>
106 <input id="flexible_shipping_do_import" style="display:none;"
107 class="button button-primary"
108 data-instance-id="<?php echo esc_attr( isset( $_GET['instance_id'] ) ? sanitize_key( $_GET['instance_id'] ) : '1' ); ?>"
109 data-nonce="<?php echo esc_attr( wp_create_nonce( 'flexible_shipping' ) ); ?>" type="submit"
110 value="<?php esc_attr_e( 'Import', 'flexible-shipping' ); ?>"/>
111 <button id="flexible_shipping_import" class="button"
112 data-instance-id="<?php isset( $_GET['instance_id'] ) ? sanitize_key( $_GET['instance_id'] ) : '1'; ?>"
113 data-nonce="<?php echo esc_attr( wp_create_nonce( 'flexible_shipping' ) ); ?>"><?php esc_html_e( 'Import', 'flexible-shipping' ); ?></button>
114 <?php do_action( 'flexible_shipping_actions_row' ); ?>
115 </div>
116 <div style="clear:both;"></div>
117 </th>
118 </tr>
119 </tfoot>
120 </table>
121
122 <?php echo wp_kses_post( $this->get_description_html( $data ) ); ?>
123 </fieldset>
124 </td>
125 </tr>
126 <script type="text/javascript">
127 <?php
128 if ( version_compare( WC()->version, '2.6.0', '>=' ) ) :
129 $zone = WC_Shipping_Zones::get_zone_by( 'instance_id', sanitize_key( $_GET['instance_id'] ) );
130 $shipping_method_woo = WC_Shipping_Zones::get_shipping_method( sanitize_key( $_GET['instance_id'] ) );
131 $content = '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=shipping' ) . '">' . __( 'Shipping Zones', 'flexible-shipping' ) . '</a> > ';
132 $content .= '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=shipping&zone_id=' . absint( $zone->get_id() ) ) . '">' . esc_html( $zone->get_zone_name() ) . '</a> >';
133 $content .= esc_html( $shipping_method_woo->get_title() );
134 ?>
135 jQuery('#mainform h2').first().replaceWith('<h2>' + '<?php echo wp_kses_post( $content ); ?>' + '</h2>');
136
137 <?php
138 global $wp;
139 $current_url = 'admin.php?page=wc-settings&tab=shipping&instance_id=' . sanitize_key( $_GET['instance_id'] );
140 ?>
141
142 jQuery('#mainform').attr('action', '<?php echo esc_url( $current_url ); ?>');
143 <?php
144 endif;
145 ?>
146
147 jQuery("input.checkbox-select-all").click(function () {
148 if (jQuery(this).is(':checked')) {
149 jQuery('input.checkbox-select').prop('checked', true);
150 } else {
151 jQuery('input.checkbox-select').prop('checked', false);
152 }
153 })
154
155 /**
156 * Enable Bulk Action Buttons when at least one Shipping Method is selected
157 *
158 */
159 jQuery('.flexible_shipping_methods input[type="checkbox"]').click(function () {
160 jQuery('#flexible_shipping_export_selected, #flexible_shipping_remove_selected').attr('disabled', !jQuery('.flexible_shipping_methods td input[type="checkbox"]').is(':checked'));
161 });
162
163 jQuery('#flexible_shipping_remove_selected').click(function () {
164 var empty_url = '<?php echo add_query_arg( 'methods_id', '', add_query_arg( 'action', 'delete', admin_url( 'admin.php?page=wc-settings&tab=shipping&instance_id=' . sanitize_key( $_GET['instance_id'] ) ) ) ); // phpcs:ignore ?>';
165 var url = empty_url;
166 var first = true;
167 jQuery('input.checkbox-select').each(function () {
168 if (jQuery(this).is(':checked')) {
169 if (!first) {
170 url = url + ',';
171 } else {
172 url = url + '=';
173 }
174 url = url + jQuery(this).val();
175 first = false;
176 }
177 })
178 if (first) {
179 alert('<?php esc_attr_e( 'Please select shipment methods to remove', 'flexible-shipping' ); ?>');
180 return false;
181 }
182 if (url !== empty_url) {
183 jQuery('#flexible_shipping_remove_selected').prop('disabled', true);
184 jQuery('.woocommerce-save-button').prop('disabled', true);
185
186 window.location.href = url;
187 }
188 return false;
189 })
190
191 jQuery('#flexible_shipping_import').click(function () {
192 jQuery(this).hide();
193 jQuery('#flexible_shipping_do_import').show();
194 jQuery('#flexible_shipping_import_file').show();
195 jQuery('#flexible_shipping_import_cancel').show();
196 jQuery('input[name=save]').prop('disabled', true);
197 return false;
198 })
199
200 jQuery('#flexible_shipping_import_cancel').click(function () {
201 jQuery(this).hide();
202 jQuery('#flexible_shipping_do_import').hide();
203 jQuery('#flexible_shipping_import_file').hide();
204 jQuery('#flexible_shipping_import_cancel').hide();
205 jQuery('#flexible_shipping_import').show();
206 jQuery('input[name=save]').prop('disabled', false);
207 return false;
208 })
209
210 jQuery('#flexible_shipping_do_import').click(function () {
211 if (jQuery('#flexible_shipping_import_file').val() == '') {
212 alert('<?php esc_attr_e( 'Select file to import', 'flexible-shipping' ); ?>');
213 return false;
214 }
215 jQuery('#flexible_shipping_import_action').val('1');
216 jQuery('input[name=save]').prop('disabled', false);
217 jQuery('.woocommerce-save-button').click();
218 return false;
219 })
220
221 <?php
222 if ( isset( $_POST['import_action'] ) && sanitize_key( $_POST['import_action'] ) == '1' ) { // phpcs:ignore
223 ?>
224 jQuery('.updated.inline:lt(1)').hide();
225 jQuery('.updated.inline:lt(2)').hide();
226 <?php
227 }
228 ?>
229 </script>
230 <?php
231