Changeset 3494374
- Timestamp:
- 03/30/2026 09:41:08 AM (41 hours ago)
- Location:
- ltl-freight-quotes-worldwide-express-edition
- Files:
-
- 30 edited
- 1 copied
-
tags/5.2.4 (copied) (copied from ltl-freight-quotes-worldwide-express-edition/trunk)
-
tags/5.2.4/carrier_list.php (modified) (2 diffs)
-
tags/5.2.4/carrier_service.php (modified) (4 diffs)
-
tags/5.2.4/css/ltl-style.css (modified) (7 diffs)
-
tags/5.2.4/group_ltl_shipments.php (modified) (5 diffs)
-
tags/5.2.4/js/speedfreight.js (modified) (2 diffs)
-
tags/5.2.4/ltl_shipping_class.php (modified) (2 diffs)
-
tags/5.2.4/ltl_tab_class_woocommrece.php (modified) (3 diffs)
-
tags/5.2.4/product/en-product-detail.php (modified) (3 diffs)
-
tags/5.2.4/readme.txt (modified) (2 diffs)
-
tags/5.2.4/shipping-rules/assets/js/shipping_rules.js (modified) (1 diff)
-
tags/5.2.4/shipping-rules/shipping-rules-save.php (modified) (1 diff)
-
tags/5.2.4/shipping-rules/shipping-rules-template.php (modified) (1 diff)
-
tags/5.2.4/warehouse-dropship/wild/assets/css/warehouse_section.css (modified) (1 diff)
-
tags/5.2.4/warehouse-dropship/wwe-ltl-wild-delivery.php (modified) (1 diff)
-
tags/5.2.4/woocommercefrieght.php (modified) (4 diffs)
-
trunk/carrier_list.php (modified) (2 diffs)
-
trunk/carrier_service.php (modified) (4 diffs)
-
trunk/css/ltl-style.css (modified) (7 diffs)
-
trunk/group_ltl_shipments.php (modified) (5 diffs)
-
trunk/js/speedfreight.js (modified) (2 diffs)
-
trunk/ltl_shipping_class.php (modified) (2 diffs)
-
trunk/ltl_tab_class_woocommrece.php (modified) (3 diffs)
-
trunk/product/en-product-detail.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shipping-rules/assets/js/shipping_rules.js (modified) (1 diff)
-
trunk/shipping-rules/shipping-rules-save.php (modified) (1 diff)
-
trunk/shipping-rules/shipping-rules-template.php (modified) (1 diff)
-
trunk/warehouse-dropship/wild/assets/css/warehouse_section.css (modified) (1 diff)
-
trunk/warehouse-dropship/wwe-ltl-wild-delivery.php (modified) (1 diff)
-
trunk/woocommercefrieght.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/carrier_list.php
r3215844 r3494374 113 113 $table_name, array( 114 114 'speed_freight_carrierSCAC' => 'CNWY', 115 'speed_freight_carrierName' => ' Con-Way',115 'speed_freight_carrierName' => 'XPO Logistics', 116 116 'carrier_logo' => 'cnwy.png', 117 117 'carrier_status' => '1' … … 544 544 ); 545 545 } 546 547 // Change CNWY to XPO 548 $cnwy_carrier = $wpdb->get_results("SELECT COUNT(*) AS carrier FROM " . WWE_CARRIERS . " where speed_freight_carrierSCAC = 'CNWY'"); 549 if ($cnwy_carrier[0]->carrier > 0) { 550 $wpdb->query($wpdb->prepare("UPDATE " . WWE_CARRIERS . " SET speed_freight_carrierName = 'XPO Logistics' WHERE speed_freight_carrierSCAC = 'CNWY'")); 551 } 546 552 } 547 553 -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/carrier_service.php
r3390870 r3494374 95 95 if ($wwe_lfq_delivery_estimates == 'delivery_days' || $wwe_lfq_delivery_estimates == 'delivery_date') { 96 96 $order_cut_off_time = $this->quote_settings['orderCutoffTime']; 97 $shipment_off_set_days = $this->quote_settings['shipmentOffsetDays']; 97 98 // Use product-level fulfillment offset days if available, otherwise use global setting 99 if (isset($packages['max_fulfillment_offset_days']) && is_numeric($packages['max_fulfillment_offset_days']) && $packages['max_fulfillment_offset_days'] > 0) { 100 $shipment_off_set_days = $packages['max_fulfillment_offset_days']; 101 } else { 102 $shipment_off_set_days = $this->quote_settings['shipmentOffsetDays']; 103 } 104 98 105 $modify_shipment_date_time = ($order_cut_off_time != '' || $shipment_off_set_days != '' || (is_array($shipment_week_days) && count($shipment_week_days) > 0)) ? 1 : 0; 99 106 $store_date_time = $today = date('Y-m-d H:i:s', current_time('timestamp')); … … 1110 1117 $cachable_data['doNesting'] = $request_data['doNesting']; 1111 1118 $cachable_data['modifyShipmentDateTime'] = $request_data['modifyShipmentDateTime']; 1119 $cachable_data['OrderCutoffTime'] = $request_data['OrderCutoffTime']; 1120 $cachable_data['shipmentOffsetDays'] = $request_data['shipmentOffsetDays']; 1121 $cachable_data['shipmentWeekDays'] = $request_data['shipmentWeekDays']; 1112 1122 $cachable_data['suspend_residential'] = $request_data['suspend_residential']; 1113 1123 $cachable_data['residential_detecion_flag'] = $request_data['residential_detecion_flag']; … … 1122 1132 $cachable_data['liftGateAsAnOption'] = isset($request_data['liftGateAsAnOption']) ? $request_data['liftGateAsAnOption'] : ''; 1123 1133 $cachable_data['liftgateExcludeLimit'] = isset($request_data['liftgateExcludeLimit']) ? $request_data['liftgateExcludeLimit'] : ''; 1134 $cachable_data['holdAtTerminal'] = isset($request_data['holdAtTerminal']) ? $request_data['holdAtTerminal'] : ''; 1124 1135 1125 1136 $cachable_data['InstorPickupLocalDelivery'] = isset($request_data['InstorPickupLocalDelivery']) ? $request_data['InstorPickupLocalDelivery'] : ''; … … 1131 1142 $cachable_data['addressLine2'] = (isset($request_data['addressLine2'])) ? $request_data['addressLine2'] : ''; 1132 1143 $cachable_data['defaultRADAddressType'] = $request_data['defaultRADAddressType']; 1144 $cachable_data['defaultRADWithoutStreetAddress'] = isset($request_data['defaultRADWithoutStreetAddress']) ? $request_data['defaultRADWithoutStreetAddress'] : ''; 1133 1145 $cachable_data['poboxAddressValidation'] = $request_data['poboxAddressValidation']; 1134 1146 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/css/ltl-style.css
r3390870 r3494374 1 .quote_section_class_ltl input[type=checkbox]:checked:before {2 width: 25px;3 padding-top: 2px;4 }5 6 1 .quote_section_class_ltl table.form-table tbody { 7 2 width: 100%; … … 243 238 height: 20px; 244 239 width: 20px; 245 }246 247 .quote_section_class_ltl input[type="checkbox"] {248 cursor: default;249 height: 24px;250 width: 22px;251 }252 253 .quote_section_class_ltl input[type=checkbox]:checked:before {254 margin: -1px 0 0 -3px !important;255 240 } 256 241 … … 444 429 } 445 430 431 tr.wwe_lfq_freight_cutt_off_time_ship_date_offset th, 432 tr.wwe_lfq_freight_shipment_offset_days_tr th, 446 433 tr.all_shipment_days_wwe_lfq_tr th { 447 434 padding-left: 15px; … … 596 583 .woocommerce_variable_attributes.wc-metabox-content [class^="_nmfc_number"], 597 584 .woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"], 585 .woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"], 598 586 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"], 599 587 .woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"], … … 619 607 .woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"], 620 608 .woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"], 609 .woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"], 621 610 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"], 622 611 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedDimension"], … … 628 617 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="en_flat_rate_price"] span.woocommerce-help-tip, 629 618 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_en_product_markup"] span.woocommerce-help-tip, 619 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_eniture_product_level_fulfillment_offset_days"] span.woocommerce-help-tip, 630 620 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedPercentage"] span.woocommerce-help-tip, 631 621 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedDimension"] span.woocommerce-help-tip, … … 688 678 689 679 /* quote settings ui */ 690 div.quote_section_class_ltl > table:nth-child(1) > tbody tr:nth-child(-n+9) td,691 div.quote_section_class_ltl > table:last-of-type > tbody tr td {692 padding-left: 25px !important;693 }694 680 div.quote_section_class_ltl > p.submit { 695 681 padding-left: 15px !important; -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/group_ltl_shipments.php
r3374885 r3494374 214 214 215 215 $product_level_markup = $this->wwe_ltl_get_product_level_markup($_product, $values['variation_id'], $values['product_id'], $values['quantity']); 216 $product_level_fulfillment_offset = $this->wwe_ltl_get_product_level_fulfillment_offset_days($_product, $values['variation_id'], $values['product_id']); 216 217 217 218 // get product class … … 259 260 if (!$_product->is_virtual() && !in_array($en_ship_class, $en_get_current_classes_arr)) { 260 261 261 $product_title = str_replace(array("'", '"'), '', $_product->get_ title());262 $product_title = str_replace(array("'", '"'), '', $_product->get_name()); 262 263 263 264 // Shippable handling units … … 311 312 'vertical_rotation_for_pallet' => $vertical_rotation_for_pallet, 312 313 313 'markup' => $product_level_markup 314 'markup' => $product_level_markup, 315 'fulfillment_offset_days' => $product_level_fulfillment_offset 314 316 ); 315 317 … … 353 355 if (!isset($ltl_package[$locationId]['truckload_enable']) || $ltl_package[$locationId]['truckload_enable'] === false) { 354 356 $ltl_package[$ship_type][$locationId]['truckload_enable'] = $this->wwe_ltl_enable_shipping_class($_product, true); 357 } 358 359 // Track maximum fulfillment offset days 360 if (is_numeric($product_level_fulfillment_offset) && $product_level_fulfillment_offset > 0) { 361 if (!isset($ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days']) || $product_level_fulfillment_offset > $ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days']) { 362 $ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days'] = $product_level_fulfillment_offset; 363 } 355 364 } 356 365 … … 991 1000 } 992 1001 1002 function wwe_ltl_get_product_level_fulfillment_offset_days($_product, $variation_id, $product_id) 1003 { 1004 $fulfillment_offset_days = ''; 1005 $field_name = '_eniture_product_level_fulfillment_offset_days'; 1006 1007 if ($_product->get_type() == 'variation' && $variation_id > 0) { 1008 $fulfillment_offset_days = get_post_meta($variation_id, $field_name, true); 1009 1010 if (empty($fulfillment_offset_days) || !is_numeric($fulfillment_offset_days)) { 1011 $parent_id = $_product->get_parent_id(); 1012 if ($parent_id > 0) { 1013 $fulfillment_offset_days = get_post_meta($parent_id, $field_name, true); 1014 } 1015 } 1016 } else { 1017 $fulfillment_offset_days = get_post_meta($_product->get_id(), $field_name, true); 1018 } 1019 1020 if (empty($fulfillment_offset_days) || !is_numeric($fulfillment_offset_days)) { 1021 $fulfillment_offset_days = get_post_meta($product_id, $field_name, true); 1022 } 1023 1024 // Validate and sanitize the value before returning 1025 if (is_numeric($fulfillment_offset_days)) { 1026 $value = intval($fulfillment_offset_days); 1027 return $value; 1028 } 1029 1030 // Return empty string if invalid 1031 return ''; 1032 } 1033 993 1034 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/js/speedfreight.js
r3390870 r3494374 680 680 jQuery('#wc_settings_wwe_label_as').attr('title', 'Label As'); 681 681 jQuery('#wc_settings_wwe_label_as').attr('maxlength', '50'); 682 jQuery('#wwe_lfq_freight_shipment_offset_days').attr('maxlength', '2'); 682 683 683 684 jQuery('.quote_section_class_ltl .button-primary, .quote_section_class_ltl .is-primary').on('click', function () { 684 685 686 jQuery(':checkbox:disabled').prop('disabled', false); 687 685 688 var Error = true; 686 689 687 690 if (!speedfreight_label_validation()) { 691 return false; 692 } else if (!wwe_ltl_validate_fullfillment_offset_days()) { 688 693 return false; 689 694 } else if (!speedfreight_pallet_weight_validation()) { … … 1331 1336 } 1332 1337 } 1338 1339 if (typeof wwe_ltl_validate_fullfillment_offset_days !== 'function') { 1340 function wwe_ltl_validate_fullfillment_offset_days() { 1341 const offset_days = jQuery("#wwe_lfq_freight_shipment_offset_days").val(); 1342 const number_regex = /^[0-9]+$/; 1343 let error_msg = ''; 1344 1345 if (offset_days != "" && offset_days < 1) error_msg = 'Fulfillment Offset Days must be greater than or equal to 1.'; 1346 if (!error_msg && offset_days != "" && offset_days > 20) error_msg = 'Fulfillment Offset Days must be less than or equal to 20.'; 1347 if (!error_msg && offset_days != "" && !number_regex.test(offset_days)) error_msg = 'Fulfillment Offset Days must be a number.'; 1348 1349 if (error_msg) { 1350 jQuery('#mainform .quote_section_class_ltl').prepend('<div id="message" class="error inline handlng_fee_error"><p><strong>Error! </strong>' + error_msg + '</p></div>'); 1351 jQuery('html, body').animate({ 1352 'scrollTop': jQuery('.handlng_fee_error').position().top 1353 }, 100); 1354 return false; 1355 } 1356 1357 return true; 1358 } 1359 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/ltl_shipping_class.php
r3492328 r3494374 1188 1188 && $this->quote_settings['delivery_estimates'] != 'dont_show_estimates' && $shipment_type != 'multi_shipment') { 1189 1189 if ($this->quote_settings['delivery_estimates'] == 'delivery_date') { 1190 isset($rate['delivery_time_stamp']) && is_string($rate['delivery_time_stamp']) && strlen($rate['delivery_time_stamp']) > 0 ? $rate_label .= ' ( Expected delivery by ' . date('m-d-Y', strtotime($rate['delivery_time_stamp'])) . ')' : '';1190 isset($rate['delivery_time_stamp']) && is_string($rate['delivery_time_stamp']) && strlen($rate['delivery_time_stamp']) > 0 ? $rate_label .= ' (Expected delivery by ' . date('m-d-Y', strtotime($rate['delivery_time_stamp'])) . ')' : ''; 1191 1191 } else if ($this->quote_settings['delivery_estimates'] == 'delivery_days') { 1192 isset($rate['delivery_estimates']) && is_string($rate['delivery_estimates']) && strlen($rate['delivery_estimates']) > 0 ? $rate_label .= ' ( Intransit days: ' . $rate['delivery_estimates'] . ')' : '';1192 isset($rate['delivery_estimates']) && is_string($rate['delivery_estimates']) && strlen($rate['delivery_estimates']) > 0 ? $rate_label .= ' (Intransit days: ' . $rate['delivery_estimates'] . ')' : ''; 1193 1193 } 1194 1194 } … … 1220 1220 if (isset($rate['meta_data'])) { 1221 1221 $rate['meta_data']['label_sufex'] = (isset($rate['label_sufex'])) ? json_encode($rate['label_sufex']) : []; 1222 } 1223 1224 if (isset($rate['meta_data']['en_fdo_meta_data']['rate']['label'])) { 1225 $rate['meta_data']['en_fdo_meta_data']['rate']['label'] = $rate['label']; 1222 1226 } 1223 1227 -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/ltl_tab_class_woocommrece.php
r3492328 r3494374 183 183 <br> <br> <br> 184 184 </p> 185 <table >185 <table style="min-width: 100%;"> 186 186 <tbody> 187 187 <thead> … … 198 198 $count_carrier = 1; 199 199 $ltl_freight_all = $wpdb->get_results('SELECT * FROM ' . WWE_CARRIERS . ' group by speed_freight_carrierSCAC order by speed_freight_carrierName ASC'); 200 201 if (empty($ltl_freight_all)) { 202 ?> 203 <tr> 204 <td colspan="3"> 205 <h4><b>Carriers were not installed during plugin installation. Kindly deactivate and reactivate your plugin to see the carriers list.</b></h4> 206 </td> 207 </tr> 208 <?php 209 } 210 200 211 foreach ($ltl_freight_all as $ltl_freight_value): 201 212 ?> … … 358 369 ), 359 370 'shipmentOffsetDays_wwe_lfq_freight' => array( 360 'name' => __('Ful lfillment Offset Days ', 'woocommerce-settings-wwe_lfq_freight_shipment_offset_days'),361 'type' => 'text', 362 'desc' => 'The number of days the ship date needs to be moved to allow the processing of the order.',363 'placeholder' => 'Ful lfillment Offset Days, e.g. 2',371 'name' => __('Fulfillment Offset Days ', 'woocommerce-settings-wwe_lfq_freight_shipment_offset_days'), 372 'type' => 'text', 373 'desc' => 'The number of days the ship date needs to be moved to allow for the processing of the order.', 374 'placeholder' => 'Fulfillment Offset Days, e.g. 2', 364 375 'id' => 'wwe_lfq_freight_shipment_offset_days', 365 376 'class' => $wwe_lfq_disable_cutt_off_time_ship_date_offset, -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/product/en-product-detail.php
r3157359 r3494374 141 141 $custom_field = (isset($custom_field['id'])) ? $custom_field['id'] : ''; 142 142 $en_updated_product = (isset($_POST[$custom_field][$postId])) ? sanitize_text_field($_POST[$custom_field][$postId]) : ''; 143 $en_updated_product = $custom_field == '_dropship_location' ? 144 (maybe_serialize(is_array($en_updated_product) ? array_map('intval', $en_updated_product) : $en_updated_product)) : esc_attr($en_updated_product); 143 144 if ($custom_field == '_dropship_location') { 145 $en_updated_product = maybe_serialize(is_array($en_updated_product) ? array_map('intval', $en_updated_product) : $en_updated_product); 146 } elseif ($custom_field == '_eniture_product_level_fulfillment_offset_days') { 147 $en_updated_product = $this->sanitize_fulfillment_offset_days($en_updated_product); 148 } else { 149 $en_updated_product = esc_attr($en_updated_product); 150 } 151 145 152 update_post_meta($postId, $custom_field, $en_updated_product); 146 153 } 147 154 } 155 } 156 157 private function sanitize_fulfillment_offset_days($value) 158 { 159 $value = trim($value); 160 if ($value === '' || $value === null) return ''; 161 162 $value = preg_replace('/[^0-9.-]/', '', $value); 163 if (!is_numeric($value)) return ''; 164 165 $value = intval(floor(floatval($value))); 166 return $value < 0 ? '' : strval($value); 148 167 } 149 168 … … 266 285 'description' => "Increases the amount of the returned quote by a specified amount prior to displaying it in the shopping cart. The number entered will be interpreted as dollars and cents unless it is followed by a % sign. For example, entering 5.00 will cause $5.00 to be added to the quotes. Entering 5% will cause 5 percent of the item's price to be added to the shipping quotes." 267 286 ], 287 [ 288 'type' => 'input_field', 289 'input_type' => 'number', 290 'id' => '_eniture_product_level_fulfillment_offset_days', 291 'class' => '_eniture_product_level_fulfillment_offset_days short', 292 'label' => __( 'Fulfillment Offset Days', 'woocommerce' ), 293 'placeholder' => 'Fulfillment offset days, e.g. 2', 294 'description' => "The number of days the ship date needs to be moved to allow for the processing of the order. If set, this will override the global Fulfillment Offset Days setting for this product.", 295 'custom_attributes' => [ 296 'min' => '1', 297 'max' => '20', 298 'step' => '1', 299 'title' => 'Value must be greater than or equal to 1 and less than or equal to 20', 300 'oninvalid' => "this.setCustomValidity(this.validity.rangeUnderflow ? 'Value must be greater than or equal to 1' : this.validity.rangeOverflow ? 'Value must be less than or equal to 20' : '')", 301 'oninput' => "this.setCustomValidity('')" 302 ] 303 ], 268 304 [ 269 305 'type' => 'checkbox', … … 393 429 } 394 430 431 // Add input type if specified (e.g., 'number') 432 if (isset($custom_field['input_type'])) { 433 $custom_input_field['type'] = $custom_field['input_type']; 434 } 435 436 // Add custom attributes if specified (e.g., min, max, step) 437 if (isset($custom_field['custom_attributes'])) { 438 $custom_input_field['custom_attributes'] = $custom_field['custom_attributes']; 439 } 440 395 441 woocommerce_wp_text_input($custom_input_field); 396 442 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/readme.txt
r3492328 r3494374 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 5.2. 36 Stable tag: 5.2.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 == Changelog == 170 170 171 = 5.2.4 - 2026-03-30 = 172 * Update: Added product-level offset days functionality. 173 * Update: Updated carrier list to reflect Con-Way rebranding to XPO Logistics. 174 * Update: Added a notice on the carriers page when no carriers are installed. 175 171 176 = 5.2.3 - 2026-03-27 = 172 177 * Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied. 173 178 174 =5.2.2 - 2026-03-03 =179 5.2.2 - 2026-03-03 = 175 180 * Fix: Resolved Broken Access Control vulnerability to improve overall plugin security. 176 177 =5.2.1 - 2026-03-02 =181 182 5.2.1 - 2026-03-02 = 178 183 * Fix: Resolved JS files minification conflict with the WP Rocket plugin to ensure compatibility with asset optimization. 179 184 -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/assets/js/shipping_rules.js
r3320451 r3494374 344 344 jQuery('.wwe_ltl_sr_updated').show('slow').delay(3000).hide('slow'); 345 345 } else if (data.error) { 346 jQuery('.wwe_ltl_sr_already_exist').show('slow');346 data.no_table ? jQuery('.wwe_ltl_sr_create_table_error').show('slow') : jQuery('.wwe_ltl_sr_already_exist').show('slow'); 347 347 jQuery('.content').delay(200).animate({ scrollTop: 0 }, 300); 348 348 setTimeout(function () { 349 jQuery('.wwe_ltl_sr_already_exist ').hide('slow');350 }, 3000);349 jQuery('.wwe_ltl_sr_already_exist, .wwe_ltl_sr_create_table_error').hide('slow'); 350 }, 5000); 351 351 } 352 352 }, -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/shipping-rules-save.php
r3390870 r3494374 51 51 52 52 global $wpdb; 53 $table_exists = $wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "eniture_wwe_ltl_shipping_rules'") == $wpdb->prefix . "eniture_wwe_ltl_shipping_rules"; 54 55 // Check if table exists 56 if (!$table_exists) { 57 echo wp_json_encode(['error' => true,'no_table' => true]); 58 exit; 59 } 53 60 54 61 $insert_qry = $update_qry = ''; -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/shipping-rules-template.php
r3320451 r3494374 128 128 <strong>Error!</strong> Shipping rule with this name already exists. 129 129 </div> 130 <div class="create_table_error wwe_ltl_sr_create_table_error"> 131 <strong>Error!</strong> There were some issue while creating the shipping rules table upon plugin installation. Kindly deactivate and reactivate the plugin. 132 </div> 130 133 <!-- Wordpress Form closed --> 131 134 </form> -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/warehouse-dropship/wild/assets/css/warehouse_section.css
r3374885 r3494374 188 188 } 189 189 190 .already_exist {190 .already_exist, .create_table_error { 191 191 background: #f1f1f1 none repeat scroll 0 0; 192 192 border-left: 4px solid #dc3232; -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/warehouse-dropship/wwe-ltl-wild-delivery.php
r3390870 r3494374 28 28 )); 29 29 30 wp_register_style('en_wwe_ltl_warehouse_section_style', plugin_dir_url(__FILE__) . '/wild/assets/css/warehouse_section.css', false, '1. 0.9');30 wp_register_style('en_wwe_ltl_warehouse_section_style', plugin_dir_url(__FILE__) . '/wild/assets/css/warehouse_section.css', false, '1.1.0'); 31 31 wp_enqueue_style('en_wwe_ltl_warehouse_section_style'); 32 32 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/woocommercefrieght.php
r3492328 r3494374 6 6 Author: Eniture Technology 7 7 Author URI: https://eniture.com/ 8 Version: 5.2. 38 Version: 5.2.4 9 9 Text Domain: eniture-technology 10 10 License: GPLv2 or later … … 83 83 84 84 // Shipping rules script and styles 85 wp_enqueue_script('en_wwe_ltl_sr_script', plugin_dir_url(__FILE__) . '/shipping-rules/assets/js/shipping_rules.js', array(), '1.0. 4');85 wp_enqueue_script('en_wwe_ltl_sr_script', plugin_dir_url(__FILE__) . '/shipping-rules/assets/js/shipping_rules.js', array(), '1.0.5'); 86 86 wp_localize_script('en_wwe_ltl_sr_script', 'en_wwe_ltl_sr_script', array( 87 87 'pluginsUrl' => plugins_url(), … … 194 194 function wwe_ltl_admin_script() 195 195 { 196 wp_register_style('ltl_style', plugin_dir_url(__FILE__) . '/css/ltl-style.css', [], '1.2. 5', 'screen');196 wp_register_style('ltl_style', plugin_dir_url(__FILE__) . '/css/ltl-style.css', [], '1.2.6', 'screen'); 197 197 wp_enqueue_style('ltl_style'); 198 198 } … … 360 360 361 361 wp_enqueue_script('jquery'); 362 wp_enqueue_script('en_speedfreight_script', plugin_dir_url(__FILE__) . 'js/speedfreight.js', [], '1.0. 4');362 wp_enqueue_script('en_speedfreight_script', plugin_dir_url(__FILE__) . 'js/speedfreight.js', [], '1.0.5'); 363 363 wp_localize_script('en_speedfreight_script', 'en_speedfreight_admin_script', array( 364 364 'plugins_url' => plugins_url(), -
ltl-freight-quotes-worldwide-express-edition/trunk/carrier_list.php
r3215844 r3494374 113 113 $table_name, array( 114 114 'speed_freight_carrierSCAC' => 'CNWY', 115 'speed_freight_carrierName' => ' Con-Way',115 'speed_freight_carrierName' => 'XPO Logistics', 116 116 'carrier_logo' => 'cnwy.png', 117 117 'carrier_status' => '1' … … 544 544 ); 545 545 } 546 547 // Change CNWY to XPO 548 $cnwy_carrier = $wpdb->get_results("SELECT COUNT(*) AS carrier FROM " . WWE_CARRIERS . " where speed_freight_carrierSCAC = 'CNWY'"); 549 if ($cnwy_carrier[0]->carrier > 0) { 550 $wpdb->query($wpdb->prepare("UPDATE " . WWE_CARRIERS . " SET speed_freight_carrierName = 'XPO Logistics' WHERE speed_freight_carrierSCAC = 'CNWY'")); 551 } 546 552 } 547 553 -
ltl-freight-quotes-worldwide-express-edition/trunk/carrier_service.php
r3390870 r3494374 95 95 if ($wwe_lfq_delivery_estimates == 'delivery_days' || $wwe_lfq_delivery_estimates == 'delivery_date') { 96 96 $order_cut_off_time = $this->quote_settings['orderCutoffTime']; 97 $shipment_off_set_days = $this->quote_settings['shipmentOffsetDays']; 97 98 // Use product-level fulfillment offset days if available, otherwise use global setting 99 if (isset($packages['max_fulfillment_offset_days']) && is_numeric($packages['max_fulfillment_offset_days']) && $packages['max_fulfillment_offset_days'] > 0) { 100 $shipment_off_set_days = $packages['max_fulfillment_offset_days']; 101 } else { 102 $shipment_off_set_days = $this->quote_settings['shipmentOffsetDays']; 103 } 104 98 105 $modify_shipment_date_time = ($order_cut_off_time != '' || $shipment_off_set_days != '' || (is_array($shipment_week_days) && count($shipment_week_days) > 0)) ? 1 : 0; 99 106 $store_date_time = $today = date('Y-m-d H:i:s', current_time('timestamp')); … … 1110 1117 $cachable_data['doNesting'] = $request_data['doNesting']; 1111 1118 $cachable_data['modifyShipmentDateTime'] = $request_data['modifyShipmentDateTime']; 1119 $cachable_data['OrderCutoffTime'] = $request_data['OrderCutoffTime']; 1120 $cachable_data['shipmentOffsetDays'] = $request_data['shipmentOffsetDays']; 1121 $cachable_data['shipmentWeekDays'] = $request_data['shipmentWeekDays']; 1112 1122 $cachable_data['suspend_residential'] = $request_data['suspend_residential']; 1113 1123 $cachable_data['residential_detecion_flag'] = $request_data['residential_detecion_flag']; … … 1122 1132 $cachable_data['liftGateAsAnOption'] = isset($request_data['liftGateAsAnOption']) ? $request_data['liftGateAsAnOption'] : ''; 1123 1133 $cachable_data['liftgateExcludeLimit'] = isset($request_data['liftgateExcludeLimit']) ? $request_data['liftgateExcludeLimit'] : ''; 1134 $cachable_data['holdAtTerminal'] = isset($request_data['holdAtTerminal']) ? $request_data['holdAtTerminal'] : ''; 1124 1135 1125 1136 $cachable_data['InstorPickupLocalDelivery'] = isset($request_data['InstorPickupLocalDelivery']) ? $request_data['InstorPickupLocalDelivery'] : ''; … … 1131 1142 $cachable_data['addressLine2'] = (isset($request_data['addressLine2'])) ? $request_data['addressLine2'] : ''; 1132 1143 $cachable_data['defaultRADAddressType'] = $request_data['defaultRADAddressType']; 1144 $cachable_data['defaultRADWithoutStreetAddress'] = isset($request_data['defaultRADWithoutStreetAddress']) ? $request_data['defaultRADWithoutStreetAddress'] : ''; 1133 1145 $cachable_data['poboxAddressValidation'] = $request_data['poboxAddressValidation']; 1134 1146 } -
ltl-freight-quotes-worldwide-express-edition/trunk/css/ltl-style.css
r3390870 r3494374 1 .quote_section_class_ltl input[type=checkbox]:checked:before {2 width: 25px;3 padding-top: 2px;4 }5 6 1 .quote_section_class_ltl table.form-table tbody { 7 2 width: 100%; … … 243 238 height: 20px; 244 239 width: 20px; 245 }246 247 .quote_section_class_ltl input[type="checkbox"] {248 cursor: default;249 height: 24px;250 width: 22px;251 }252 253 .quote_section_class_ltl input[type=checkbox]:checked:before {254 margin: -1px 0 0 -3px !important;255 240 } 256 241 … … 444 429 } 445 430 431 tr.wwe_lfq_freight_cutt_off_time_ship_date_offset th, 432 tr.wwe_lfq_freight_shipment_offset_days_tr th, 446 433 tr.all_shipment_days_wwe_lfq_tr th { 447 434 padding-left: 15px; … … 596 583 .woocommerce_variable_attributes.wc-metabox-content [class^="_nmfc_number"], 597 584 .woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"], 585 .woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"], 598 586 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"], 599 587 .woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"], … … 619 607 .woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"], 620 608 .woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"], 609 .woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"], 621 610 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"], 622 611 .woocommerce_variable_attributes.wc-metabox-content [class^="_nestedDimension"], … … 628 617 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="en_flat_rate_price"] span.woocommerce-help-tip, 629 618 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_en_product_markup"] span.woocommerce-help-tip, 619 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_eniture_product_level_fulfillment_offset_days"] span.woocommerce-help-tip, 630 620 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedPercentage"] span.woocommerce-help-tip, 631 621 .woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedDimension"] span.woocommerce-help-tip, … … 688 678 689 679 /* quote settings ui */ 690 div.quote_section_class_ltl > table:nth-child(1) > tbody tr:nth-child(-n+9) td,691 div.quote_section_class_ltl > table:last-of-type > tbody tr td {692 padding-left: 25px !important;693 }694 680 div.quote_section_class_ltl > p.submit { 695 681 padding-left: 15px !important; -
ltl-freight-quotes-worldwide-express-edition/trunk/group_ltl_shipments.php
r3374885 r3494374 214 214 215 215 $product_level_markup = $this->wwe_ltl_get_product_level_markup($_product, $values['variation_id'], $values['product_id'], $values['quantity']); 216 $product_level_fulfillment_offset = $this->wwe_ltl_get_product_level_fulfillment_offset_days($_product, $values['variation_id'], $values['product_id']); 216 217 217 218 // get product class … … 259 260 if (!$_product->is_virtual() && !in_array($en_ship_class, $en_get_current_classes_arr)) { 260 261 261 $product_title = str_replace(array("'", '"'), '', $_product->get_ title());262 $product_title = str_replace(array("'", '"'), '', $_product->get_name()); 262 263 263 264 // Shippable handling units … … 311 312 'vertical_rotation_for_pallet' => $vertical_rotation_for_pallet, 312 313 313 'markup' => $product_level_markup 314 'markup' => $product_level_markup, 315 'fulfillment_offset_days' => $product_level_fulfillment_offset 314 316 ); 315 317 … … 353 355 if (!isset($ltl_package[$locationId]['truckload_enable']) || $ltl_package[$locationId]['truckload_enable'] === false) { 354 356 $ltl_package[$ship_type][$locationId]['truckload_enable'] = $this->wwe_ltl_enable_shipping_class($_product, true); 357 } 358 359 // Track maximum fulfillment offset days 360 if (is_numeric($product_level_fulfillment_offset) && $product_level_fulfillment_offset > 0) { 361 if (!isset($ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days']) || $product_level_fulfillment_offset > $ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days']) { 362 $ltl_package[$ship_type][$locationId]['max_fulfillment_offset_days'] = $product_level_fulfillment_offset; 363 } 355 364 } 356 365 … … 991 1000 } 992 1001 1002 function wwe_ltl_get_product_level_fulfillment_offset_days($_product, $variation_id, $product_id) 1003 { 1004 $fulfillment_offset_days = ''; 1005 $field_name = '_eniture_product_level_fulfillment_offset_days'; 1006 1007 if ($_product->get_type() == 'variation' && $variation_id > 0) { 1008 $fulfillment_offset_days = get_post_meta($variation_id, $field_name, true); 1009 1010 if (empty($fulfillment_offset_days) || !is_numeric($fulfillment_offset_days)) { 1011 $parent_id = $_product->get_parent_id(); 1012 if ($parent_id > 0) { 1013 $fulfillment_offset_days = get_post_meta($parent_id, $field_name, true); 1014 } 1015 } 1016 } else { 1017 $fulfillment_offset_days = get_post_meta($_product->get_id(), $field_name, true); 1018 } 1019 1020 if (empty($fulfillment_offset_days) || !is_numeric($fulfillment_offset_days)) { 1021 $fulfillment_offset_days = get_post_meta($product_id, $field_name, true); 1022 } 1023 1024 // Validate and sanitize the value before returning 1025 if (is_numeric($fulfillment_offset_days)) { 1026 $value = intval($fulfillment_offset_days); 1027 return $value; 1028 } 1029 1030 // Return empty string if invalid 1031 return ''; 1032 } 1033 993 1034 } -
ltl-freight-quotes-worldwide-express-edition/trunk/js/speedfreight.js
r3390870 r3494374 680 680 jQuery('#wc_settings_wwe_label_as').attr('title', 'Label As'); 681 681 jQuery('#wc_settings_wwe_label_as').attr('maxlength', '50'); 682 jQuery('#wwe_lfq_freight_shipment_offset_days').attr('maxlength', '2'); 682 683 683 684 jQuery('.quote_section_class_ltl .button-primary, .quote_section_class_ltl .is-primary').on('click', function () { 684 685 686 jQuery(':checkbox:disabled').prop('disabled', false); 687 685 688 var Error = true; 686 689 687 690 if (!speedfreight_label_validation()) { 691 return false; 692 } else if (!wwe_ltl_validate_fullfillment_offset_days()) { 688 693 return false; 689 694 } else if (!speedfreight_pallet_weight_validation()) { … … 1331 1336 } 1332 1337 } 1338 1339 if (typeof wwe_ltl_validate_fullfillment_offset_days !== 'function') { 1340 function wwe_ltl_validate_fullfillment_offset_days() { 1341 const offset_days = jQuery("#wwe_lfq_freight_shipment_offset_days").val(); 1342 const number_regex = /^[0-9]+$/; 1343 let error_msg = ''; 1344 1345 if (offset_days != "" && offset_days < 1) error_msg = 'Fulfillment Offset Days must be greater than or equal to 1.'; 1346 if (!error_msg && offset_days != "" && offset_days > 20) error_msg = 'Fulfillment Offset Days must be less than or equal to 20.'; 1347 if (!error_msg && offset_days != "" && !number_regex.test(offset_days)) error_msg = 'Fulfillment Offset Days must be a number.'; 1348 1349 if (error_msg) { 1350 jQuery('#mainform .quote_section_class_ltl').prepend('<div id="message" class="error inline handlng_fee_error"><p><strong>Error! </strong>' + error_msg + '</p></div>'); 1351 jQuery('html, body').animate({ 1352 'scrollTop': jQuery('.handlng_fee_error').position().top 1353 }, 100); 1354 return false; 1355 } 1356 1357 return true; 1358 } 1359 } -
ltl-freight-quotes-worldwide-express-edition/trunk/ltl_shipping_class.php
r3492328 r3494374 1188 1188 && $this->quote_settings['delivery_estimates'] != 'dont_show_estimates' && $shipment_type != 'multi_shipment') { 1189 1189 if ($this->quote_settings['delivery_estimates'] == 'delivery_date') { 1190 isset($rate['delivery_time_stamp']) && is_string($rate['delivery_time_stamp']) && strlen($rate['delivery_time_stamp']) > 0 ? $rate_label .= ' ( Expected delivery by ' . date('m-d-Y', strtotime($rate['delivery_time_stamp'])) . ')' : '';1190 isset($rate['delivery_time_stamp']) && is_string($rate['delivery_time_stamp']) && strlen($rate['delivery_time_stamp']) > 0 ? $rate_label .= ' (Expected delivery by ' . date('m-d-Y', strtotime($rate['delivery_time_stamp'])) . ')' : ''; 1191 1191 } else if ($this->quote_settings['delivery_estimates'] == 'delivery_days') { 1192 isset($rate['delivery_estimates']) && is_string($rate['delivery_estimates']) && strlen($rate['delivery_estimates']) > 0 ? $rate_label .= ' ( Intransit days: ' . $rate['delivery_estimates'] . ')' : '';1192 isset($rate['delivery_estimates']) && is_string($rate['delivery_estimates']) && strlen($rate['delivery_estimates']) > 0 ? $rate_label .= ' (Intransit days: ' . $rate['delivery_estimates'] . ')' : ''; 1193 1193 } 1194 1194 } … … 1220 1220 if (isset($rate['meta_data'])) { 1221 1221 $rate['meta_data']['label_sufex'] = (isset($rate['label_sufex'])) ? json_encode($rate['label_sufex']) : []; 1222 } 1223 1224 if (isset($rate['meta_data']['en_fdo_meta_data']['rate']['label'])) { 1225 $rate['meta_data']['en_fdo_meta_data']['rate']['label'] = $rate['label']; 1222 1226 } 1223 1227 -
ltl-freight-quotes-worldwide-express-edition/trunk/ltl_tab_class_woocommrece.php
r3492328 r3494374 183 183 <br> <br> <br> 184 184 </p> 185 <table >185 <table style="min-width: 100%;"> 186 186 <tbody> 187 187 <thead> … … 198 198 $count_carrier = 1; 199 199 $ltl_freight_all = $wpdb->get_results('SELECT * FROM ' . WWE_CARRIERS . ' group by speed_freight_carrierSCAC order by speed_freight_carrierName ASC'); 200 201 if (empty($ltl_freight_all)) { 202 ?> 203 <tr> 204 <td colspan="3"> 205 <h4><b>Carriers were not installed during plugin installation. Kindly deactivate and reactivate your plugin to see the carriers list.</b></h4> 206 </td> 207 </tr> 208 <?php 209 } 210 200 211 foreach ($ltl_freight_all as $ltl_freight_value): 201 212 ?> … … 358 369 ), 359 370 'shipmentOffsetDays_wwe_lfq_freight' => array( 360 'name' => __('Ful lfillment Offset Days ', 'woocommerce-settings-wwe_lfq_freight_shipment_offset_days'),361 'type' => 'text', 362 'desc' => 'The number of days the ship date needs to be moved to allow the processing of the order.',363 'placeholder' => 'Ful lfillment Offset Days, e.g. 2',371 'name' => __('Fulfillment Offset Days ', 'woocommerce-settings-wwe_lfq_freight_shipment_offset_days'), 372 'type' => 'text', 373 'desc' => 'The number of days the ship date needs to be moved to allow for the processing of the order.', 374 'placeholder' => 'Fulfillment Offset Days, e.g. 2', 364 375 'id' => 'wwe_lfq_freight_shipment_offset_days', 365 376 'class' => $wwe_lfq_disable_cutt_off_time_ship_date_offset, -
ltl-freight-quotes-worldwide-express-edition/trunk/product/en-product-detail.php
r3157359 r3494374 141 141 $custom_field = (isset($custom_field['id'])) ? $custom_field['id'] : ''; 142 142 $en_updated_product = (isset($_POST[$custom_field][$postId])) ? sanitize_text_field($_POST[$custom_field][$postId]) : ''; 143 $en_updated_product = $custom_field == '_dropship_location' ? 144 (maybe_serialize(is_array($en_updated_product) ? array_map('intval', $en_updated_product) : $en_updated_product)) : esc_attr($en_updated_product); 143 144 if ($custom_field == '_dropship_location') { 145 $en_updated_product = maybe_serialize(is_array($en_updated_product) ? array_map('intval', $en_updated_product) : $en_updated_product); 146 } elseif ($custom_field == '_eniture_product_level_fulfillment_offset_days') { 147 $en_updated_product = $this->sanitize_fulfillment_offset_days($en_updated_product); 148 } else { 149 $en_updated_product = esc_attr($en_updated_product); 150 } 151 145 152 update_post_meta($postId, $custom_field, $en_updated_product); 146 153 } 147 154 } 155 } 156 157 private function sanitize_fulfillment_offset_days($value) 158 { 159 $value = trim($value); 160 if ($value === '' || $value === null) return ''; 161 162 $value = preg_replace('/[^0-9.-]/', '', $value); 163 if (!is_numeric($value)) return ''; 164 165 $value = intval(floor(floatval($value))); 166 return $value < 0 ? '' : strval($value); 148 167 } 149 168 … … 266 285 'description' => "Increases the amount of the returned quote by a specified amount prior to displaying it in the shopping cart. The number entered will be interpreted as dollars and cents unless it is followed by a % sign. For example, entering 5.00 will cause $5.00 to be added to the quotes. Entering 5% will cause 5 percent of the item's price to be added to the shipping quotes." 267 286 ], 287 [ 288 'type' => 'input_field', 289 'input_type' => 'number', 290 'id' => '_eniture_product_level_fulfillment_offset_days', 291 'class' => '_eniture_product_level_fulfillment_offset_days short', 292 'label' => __( 'Fulfillment Offset Days', 'woocommerce' ), 293 'placeholder' => 'Fulfillment offset days, e.g. 2', 294 'description' => "The number of days the ship date needs to be moved to allow for the processing of the order. If set, this will override the global Fulfillment Offset Days setting for this product.", 295 'custom_attributes' => [ 296 'min' => '1', 297 'max' => '20', 298 'step' => '1', 299 'title' => 'Value must be greater than or equal to 1 and less than or equal to 20', 300 'oninvalid' => "this.setCustomValidity(this.validity.rangeUnderflow ? 'Value must be greater than or equal to 1' : this.validity.rangeOverflow ? 'Value must be less than or equal to 20' : '')", 301 'oninput' => "this.setCustomValidity('')" 302 ] 303 ], 268 304 [ 269 305 'type' => 'checkbox', … … 393 429 } 394 430 431 // Add input type if specified (e.g., 'number') 432 if (isset($custom_field['input_type'])) { 433 $custom_input_field['type'] = $custom_field['input_type']; 434 } 435 436 // Add custom attributes if specified (e.g., min, max, step) 437 if (isset($custom_field['custom_attributes'])) { 438 $custom_input_field['custom_attributes'] = $custom_field['custom_attributes']; 439 } 440 395 441 woocommerce_wp_text_input($custom_input_field); 396 442 } -
ltl-freight-quotes-worldwide-express-edition/trunk/readme.txt
r3492328 r3494374 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 5.2. 36 Stable tag: 5.2.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 == Changelog == 170 170 171 = 5.2.4 - 2026-03-30 = 172 * Update: Added product-level offset days functionality. 173 * Update: Updated carrier list to reflect Con-Way rebranding to XPO Logistics. 174 * Update: Added a notice on the carriers page when no carriers are installed. 175 171 176 = 5.2.3 - 2026-03-27 = 172 177 * Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied. 173 178 174 =5.2.2 - 2026-03-03 =179 5.2.2 - 2026-03-03 = 175 180 * Fix: Resolved Broken Access Control vulnerability to improve overall plugin security. 176 177 =5.2.1 - 2026-03-02 =181 182 5.2.1 - 2026-03-02 = 178 183 * Fix: Resolved JS files minification conflict with the WP Rocket plugin to ensure compatibility with asset optimization. 179 184 -
ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/assets/js/shipping_rules.js
r3320451 r3494374 344 344 jQuery('.wwe_ltl_sr_updated').show('slow').delay(3000).hide('slow'); 345 345 } else if (data.error) { 346 jQuery('.wwe_ltl_sr_already_exist').show('slow');346 data.no_table ? jQuery('.wwe_ltl_sr_create_table_error').show('slow') : jQuery('.wwe_ltl_sr_already_exist').show('slow'); 347 347 jQuery('.content').delay(200).animate({ scrollTop: 0 }, 300); 348 348 setTimeout(function () { 349 jQuery('.wwe_ltl_sr_already_exist ').hide('slow');350 }, 3000);349 jQuery('.wwe_ltl_sr_already_exist, .wwe_ltl_sr_create_table_error').hide('slow'); 350 }, 5000); 351 351 } 352 352 }, -
ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/shipping-rules-save.php
r3390870 r3494374 51 51 52 52 global $wpdb; 53 $table_exists = $wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "eniture_wwe_ltl_shipping_rules'") == $wpdb->prefix . "eniture_wwe_ltl_shipping_rules"; 54 55 // Check if table exists 56 if (!$table_exists) { 57 echo wp_json_encode(['error' => true,'no_table' => true]); 58 exit; 59 } 53 60 54 61 $insert_qry = $update_qry = ''; -
ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/shipping-rules-template.php
r3320451 r3494374 128 128 <strong>Error!</strong> Shipping rule with this name already exists. 129 129 </div> 130 <div class="create_table_error wwe_ltl_sr_create_table_error"> 131 <strong>Error!</strong> There were some issue while creating the shipping rules table upon plugin installation. Kindly deactivate and reactivate the plugin. 132 </div> 130 133 <!-- Wordpress Form closed --> 131 134 </form> -
ltl-freight-quotes-worldwide-express-edition/trunk/warehouse-dropship/wild/assets/css/warehouse_section.css
r3374885 r3494374 188 188 } 189 189 190 .already_exist {190 .already_exist, .create_table_error { 191 191 background: #f1f1f1 none repeat scroll 0 0; 192 192 border-left: 4px solid #dc3232; -
ltl-freight-quotes-worldwide-express-edition/trunk/warehouse-dropship/wwe-ltl-wild-delivery.php
r3390870 r3494374 28 28 )); 29 29 30 wp_register_style('en_wwe_ltl_warehouse_section_style', plugin_dir_url(__FILE__) . '/wild/assets/css/warehouse_section.css', false, '1. 0.9');30 wp_register_style('en_wwe_ltl_warehouse_section_style', plugin_dir_url(__FILE__) . '/wild/assets/css/warehouse_section.css', false, '1.1.0'); 31 31 wp_enqueue_style('en_wwe_ltl_warehouse_section_style'); 32 32 } -
ltl-freight-quotes-worldwide-express-edition/trunk/woocommercefrieght.php
r3492328 r3494374 6 6 Author: Eniture Technology 7 7 Author URI: https://eniture.com/ 8 Version: 5.2. 38 Version: 5.2.4 9 9 Text Domain: eniture-technology 10 10 License: GPLv2 or later … … 83 83 84 84 // Shipping rules script and styles 85 wp_enqueue_script('en_wwe_ltl_sr_script', plugin_dir_url(__FILE__) . '/shipping-rules/assets/js/shipping_rules.js', array(), '1.0. 4');85 wp_enqueue_script('en_wwe_ltl_sr_script', plugin_dir_url(__FILE__) . '/shipping-rules/assets/js/shipping_rules.js', array(), '1.0.5'); 86 86 wp_localize_script('en_wwe_ltl_sr_script', 'en_wwe_ltl_sr_script', array( 87 87 'pluginsUrl' => plugins_url(), … … 194 194 function wwe_ltl_admin_script() 195 195 { 196 wp_register_style('ltl_style', plugin_dir_url(__FILE__) . '/css/ltl-style.css', [], '1.2. 5', 'screen');196 wp_register_style('ltl_style', plugin_dir_url(__FILE__) . '/css/ltl-style.css', [], '1.2.6', 'screen'); 197 197 wp_enqueue_style('ltl_style'); 198 198 } … … 360 360 361 361 wp_enqueue_script('jquery'); 362 wp_enqueue_script('en_speedfreight_script', plugin_dir_url(__FILE__) . 'js/speedfreight.js', [], '1.0. 4');362 wp_enqueue_script('en_speedfreight_script', plugin_dir_url(__FILE__) . 'js/speedfreight.js', [], '1.0.5'); 363 363 wp_localize_script('en_speedfreight_script', 'en_speedfreight_admin_script', array( 364 364 'plugins_url' => plugins_url(),
Note: See TracChangeset
for help on using the changeset viewer.