Plugin Directory

Changeset 3494374


Ignore:
Timestamp:
03/30/2026 09:41:08 AM (41 hours ago)
Author:
enituretechnology
Message:

5.2.4 - 2026-03-30

  • Update: Added product-level offset days functionality.
  • Update: Updated carrier list to reflect Con-Way rebranding to XPO Logistics.
  • Update: Added a notice on the carriers page when no carriers are installed.

Ticket# 23708293437

Location:
ltl-freight-quotes-worldwide-express-edition
Files:
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/carrier_list.php

    r3215844 r3494374  
    113113                $table_name, array(
    114114                'speed_freight_carrierSCAC' => 'CNWY',
    115                 'speed_freight_carrierName' => 'Con-Way',
     115                'speed_freight_carrierName' => 'XPO Logistics',
    116116                'carrier_logo' => 'cnwy.png',
    117117                'carrier_status' => '1'
     
    544544            );
    545545        }
     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        }
    546552    }
    547553
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/carrier_service.php

    r3390870 r3494374  
    9595        if ($wwe_lfq_delivery_estimates == 'delivery_days' || $wwe_lfq_delivery_estimates == 'delivery_date') {
    9696            $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
    98105            $modify_shipment_date_time = ($order_cut_off_time != '' || $shipment_off_set_days != '' || (is_array($shipment_week_days) && count($shipment_week_days) > 0)) ? 1 : 0;
    99106            $store_date_time = $today = date('Y-m-d H:i:s', current_time('timestamp'));
     
    11101117        $cachable_data['doNesting'] = $request_data['doNesting'];
    11111118        $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'];
    11121122        $cachable_data['suspend_residential'] = $request_data['suspend_residential'];
    11131123        $cachable_data['residential_detecion_flag'] = $request_data['residential_detecion_flag'];
     
    11221132        $cachable_data['liftGateAsAnOption'] = isset($request_data['liftGateAsAnOption']) ? $request_data['liftGateAsAnOption'] : '';
    11231133        $cachable_data['liftgateExcludeLimit'] = isset($request_data['liftgateExcludeLimit']) ? $request_data['liftgateExcludeLimit'] : '';
     1134        $cachable_data['holdAtTerminal'] = isset($request_data['holdAtTerminal']) ? $request_data['holdAtTerminal'] : '';
    11241135
    11251136        $cachable_data['InstorPickupLocalDelivery'] = isset($request_data['InstorPickupLocalDelivery']) ? $request_data['InstorPickupLocalDelivery'] : '';
     
    11311142            $cachable_data['addressLine2'] = (isset($request_data['addressLine2'])) ? $request_data['addressLine2'] : '';
    11321143            $cachable_data['defaultRADAddressType'] = $request_data['defaultRADAddressType'];
     1144            $cachable_data['defaultRADWithoutStreetAddress'] = isset($request_data['defaultRADWithoutStreetAddress']) ? $request_data['defaultRADWithoutStreetAddress'] : '';
    11331145            $cachable_data['poboxAddressValidation'] = $request_data['poboxAddressValidation'];
    11341146        }
  • 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 
    61.quote_section_class_ltl table.form-table tbody {
    72    width: 100%;
     
    243238    height: 20px;
    244239    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;
    255240}
    256241
     
    444429}
    445430
     431tr.wwe_lfq_freight_cutt_off_time_ship_date_offset th,
     432tr.wwe_lfq_freight_shipment_offset_days_tr th,
    446433tr.all_shipment_days_wwe_lfq_tr th {
    447434    padding-left: 15px;
     
    596583.woocommerce_variable_attributes.wc-metabox-content [class^="_nmfc_number"],
    597584.woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"],
     585.woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"],
    598586.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"],
    599587.woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"],
     
    619607.woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"],
    620608.woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"],
     609.woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"],
    621610.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"],
    622611.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedDimension"],
     
    628617.woocommerce_variable_attributes.wc-metabox-content .data p[class*="en_flat_rate_price"] span.woocommerce-help-tip,
    629618.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,
    630620.woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedPercentage"] span.woocommerce-help-tip,
    631621.woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedDimension"] span.woocommerce-help-tip,
     
    688678
    689679/* 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 }
    694680div.quote_section_class_ltl > p.submit {
    695681    padding-left: 15px !important;
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/group_ltl_shipments.php

    r3374885 r3494374  
    214214
    215215            $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']);
    216217
    217218            // get product class
     
    259260                if (!$_product->is_virtual() && !in_array($en_ship_class, $en_get_current_classes_arr)) {
    260261
    261                     $product_title = str_replace(array("'", '"'), '', $_product->get_title());
     262                    $product_title = str_replace(array("'", '"'), '', $_product->get_name());
    262263
    263264                    // Shippable handling units
     
    311312                        'vertical_rotation_for_pallet' => $vertical_rotation_for_pallet,
    312313
    313                         'markup' => $product_level_markup
     314                        'markup' => $product_level_markup,
     315                        'fulfillment_offset_days' => $product_level_fulfillment_offset
    314316                    );
    315317
     
    353355                    if (!isset($ltl_package[$locationId]['truckload_enable']) || $ltl_package[$locationId]['truckload_enable'] === false) {
    354356                        $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                        }
    355364                    }
    356365
     
    9911000    }
    9921001
     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
    9931034}
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/js/speedfreight.js

    r3390870 r3494374  
    680680    jQuery('#wc_settings_wwe_label_as').attr('title', 'Label As');
    681681    jQuery('#wc_settings_wwe_label_as').attr('maxlength', '50');
     682    jQuery('#wwe_lfq_freight_shipment_offset_days').attr('maxlength', '2');
    682683
    683684    jQuery('.quote_section_class_ltl .button-primary, .quote_section_class_ltl .is-primary').on('click', function () {
    684685
     686        jQuery(':checkbox:disabled').prop('disabled', false);
     687
    685688        var Error = true;
    686689
    687690        if (!speedfreight_label_validation()) {
     691            return false;
     692        } else if (!wwe_ltl_validate_fullfillment_offset_days()) {
    688693            return false;
    689694        } else if (!speedfreight_pallet_weight_validation()) {
     
    13311336    }
    13321337}
     1338
     1339if (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  
    11881188                    && $this->quote_settings['delivery_estimates'] != 'dont_show_estimates' && $shipment_type != 'multi_shipment') {
    11891189                    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'])) . ')' : '';
    11911191                    } 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'] . ')' : '';
    11931193                    }
    11941194                }
     
    12201220                            if (isset($rate['meta_data'])) {
    12211221                                $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'];
    12221226                            }
    12231227
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/ltl_tab_class_woocommrece.php

    r3492328 r3494374  
    183183                        <br> <br> <br>
    184184                    </p>
    185                     <table>
     185                    <table style="min-width: 100%;">
    186186                        <tbody>
    187187                        <thead>
     
    198198                        $count_carrier = 1;
    199199                        $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
    200211                        foreach ($ltl_freight_all as $ltl_freight_value):
    201212                            ?>
     
    358369                    ),
    359370                    'shipmentOffsetDays_wwe_lfq_freight' => array(
    360                         'name' => __('Fullfillment 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' => 'Fullfillment 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',
    364375                        'id' => 'wwe_lfq_freight_shipment_offset_days',
    365376                        '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  
    141141                    $custom_field = (isset($custom_field['id'])) ? $custom_field['id'] : '';
    142142                    $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                   
    145152                    update_post_meta($postId, $custom_field, $en_updated_product);
    146153                }
    147154            }
     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);
    148167        }
    149168
     
    266285                    '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."
    267286                ],
     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                ],
    268304                [
    269305                    'type' => 'checkbox',
     
    393429            }
    394430
     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
    395441            woocommerce_wp_text_input($custom_input_field);
    396442        }
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/readme.txt

    r3492328 r3494374  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.2.3
     6Stable tag: 5.2.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169== Changelog ==
    170170
     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
    171176= 5.2.3 - 2026-03-27 =
    172177* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
    173178
    174 = 5.2.2 - 2026-03-03 =
     1795.2.2 - 2026-03-03 =
    175180* Fix: Resolved Broken Access Control vulnerability to improve overall plugin security.
    176 
    177 = 5.2.1 - 2026-03-02 =
     181   
     1825.2.1 - 2026-03-02 =
    178183* Fix: Resolved JS files minification conflict with the WP Rocket plugin to ensure compatibility with asset optimization.
    179184
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/assets/js/shipping_rules.js

    r3320451 r3494374  
    344344                    jQuery('.wwe_ltl_sr_updated').show('slow').delay(3000).hide('slow');
    345345                } 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');
    347347                    jQuery('.content').delay(200).animate({ scrollTop: 0 }, 300);
    348348                    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);
    351351                }
    352352            },
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/shipping-rules-save.php

    r3390870 r3494374  
    5151
    5252            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            }
    5360
    5461            $insert_qry = $update_qry = '';
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/shipping-rules/shipping-rules-template.php

    r3320451 r3494374  
    128128                <strong>Error!</strong> Shipping rule with this name already exists.
    129129              </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>
    130133                <!-- Wordpress Form closed -->
    131134                </form>
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/warehouse-dropship/wild/assets/css/warehouse_section.css

    r3374885 r3494374  
    188188}
    189189
    190 .already_exist {
     190.already_exist, .create_table_error {
    191191    background: #f1f1f1 none repeat scroll 0 0;
    192192    border-left: 4px solid #dc3232;
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/warehouse-dropship/wwe-ltl-wild-delivery.php

    r3390870 r3494374  
    2828            ));
    2929
    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');
    3131            wp_enqueue_style('en_wwe_ltl_warehouse_section_style');
    3232        }
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.4/woocommercefrieght.php

    r3492328 r3494374  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.2.3
     8  Version: 5.2.4
    99  Text Domain: eniture-technology
    1010  License: GPLv2 or later
     
    8383
    8484        // 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');
    8686        wp_localize_script('en_wwe_ltl_sr_script', 'en_wwe_ltl_sr_script', array(
    8787            'pluginsUrl' => plugins_url(),
     
    194194function wwe_ltl_admin_script()
    195195{
    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');
    197197    wp_enqueue_style('ltl_style');
    198198}
     
    360360
    361361    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');
    363363    wp_localize_script('en_speedfreight_script', 'en_speedfreight_admin_script', array(
    364364        'plugins_url' => plugins_url(),
  • ltl-freight-quotes-worldwide-express-edition/trunk/carrier_list.php

    r3215844 r3494374  
    113113                $table_name, array(
    114114                'speed_freight_carrierSCAC' => 'CNWY',
    115                 'speed_freight_carrierName' => 'Con-Way',
     115                'speed_freight_carrierName' => 'XPO Logistics',
    116116                'carrier_logo' => 'cnwy.png',
    117117                'carrier_status' => '1'
     
    544544            );
    545545        }
     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        }
    546552    }
    547553
  • ltl-freight-quotes-worldwide-express-edition/trunk/carrier_service.php

    r3390870 r3494374  
    9595        if ($wwe_lfq_delivery_estimates == 'delivery_days' || $wwe_lfq_delivery_estimates == 'delivery_date') {
    9696            $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
    98105            $modify_shipment_date_time = ($order_cut_off_time != '' || $shipment_off_set_days != '' || (is_array($shipment_week_days) && count($shipment_week_days) > 0)) ? 1 : 0;
    99106            $store_date_time = $today = date('Y-m-d H:i:s', current_time('timestamp'));
     
    11101117        $cachable_data['doNesting'] = $request_data['doNesting'];
    11111118        $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'];
    11121122        $cachable_data['suspend_residential'] = $request_data['suspend_residential'];
    11131123        $cachable_data['residential_detecion_flag'] = $request_data['residential_detecion_flag'];
     
    11221132        $cachable_data['liftGateAsAnOption'] = isset($request_data['liftGateAsAnOption']) ? $request_data['liftGateAsAnOption'] : '';
    11231133        $cachable_data['liftgateExcludeLimit'] = isset($request_data['liftgateExcludeLimit']) ? $request_data['liftgateExcludeLimit'] : '';
     1134        $cachable_data['holdAtTerminal'] = isset($request_data['holdAtTerminal']) ? $request_data['holdAtTerminal'] : '';
    11241135
    11251136        $cachable_data['InstorPickupLocalDelivery'] = isset($request_data['InstorPickupLocalDelivery']) ? $request_data['InstorPickupLocalDelivery'] : '';
     
    11311142            $cachable_data['addressLine2'] = (isset($request_data['addressLine2'])) ? $request_data['addressLine2'] : '';
    11321143            $cachable_data['defaultRADAddressType'] = $request_data['defaultRADAddressType'];
     1144            $cachable_data['defaultRADWithoutStreetAddress'] = isset($request_data['defaultRADWithoutStreetAddress']) ? $request_data['defaultRADWithoutStreetAddress'] : '';
    11331145            $cachable_data['poboxAddressValidation'] = $request_data['poboxAddressValidation'];
    11341146        }
  • 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 
    61.quote_section_class_ltl table.form-table tbody {
    72    width: 100%;
     
    243238    height: 20px;
    244239    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;
    255240}
    256241
     
    444429}
    445430
     431tr.wwe_lfq_freight_cutt_off_time_ship_date_offset th,
     432tr.wwe_lfq_freight_shipment_offset_days_tr th,
    446433tr.all_shipment_days_wwe_lfq_tr th {
    447434    padding-left: 15px;
     
    596583.woocommerce_variable_attributes.wc-metabox-content [class^="_nmfc_number"],
    597584.woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"],
     585.woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"],
    598586.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"],
    599587.woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"],
     
    619607.woocommerce_variable_attributes.wc-metabox-content [class^="en_flat_rate_price"],
    620608.woocommerce_variable_attributes.wc-metabox-content [class^="_en_product_markup"],
     609.woocommerce_variable_attributes.wc-metabox-content [class^="_eniture_product_level_fulfillment_offset_days"],
    621610.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedPercentage"],
    622611.woocommerce_variable_attributes.wc-metabox-content [class^="_nestedDimension"],
     
    628617.woocommerce_variable_attributes.wc-metabox-content .data p[class*="en_flat_rate_price"] span.woocommerce-help-tip,
    629618.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,
    630620.woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedPercentage"] span.woocommerce-help-tip,
    631621.woocommerce_variable_attributes.wc-metabox-content .data p[class*="_nestedDimension"] span.woocommerce-help-tip,
     
    688678
    689679/* 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 }
    694680div.quote_section_class_ltl > p.submit {
    695681    padding-left: 15px !important;
  • ltl-freight-quotes-worldwide-express-edition/trunk/group_ltl_shipments.php

    r3374885 r3494374  
    214214
    215215            $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']);
    216217
    217218            // get product class
     
    259260                if (!$_product->is_virtual() && !in_array($en_ship_class, $en_get_current_classes_arr)) {
    260261
    261                     $product_title = str_replace(array("'", '"'), '', $_product->get_title());
     262                    $product_title = str_replace(array("'", '"'), '', $_product->get_name());
    262263
    263264                    // Shippable handling units
     
    311312                        'vertical_rotation_for_pallet' => $vertical_rotation_for_pallet,
    312313
    313                         'markup' => $product_level_markup
     314                        'markup' => $product_level_markup,
     315                        'fulfillment_offset_days' => $product_level_fulfillment_offset
    314316                    );
    315317
     
    353355                    if (!isset($ltl_package[$locationId]['truckload_enable']) || $ltl_package[$locationId]['truckload_enable'] === false) {
    354356                        $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                        }
    355364                    }
    356365
     
    9911000    }
    9921001
     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
    9931034}
  • ltl-freight-quotes-worldwide-express-edition/trunk/js/speedfreight.js

    r3390870 r3494374  
    680680    jQuery('#wc_settings_wwe_label_as').attr('title', 'Label As');
    681681    jQuery('#wc_settings_wwe_label_as').attr('maxlength', '50');
     682    jQuery('#wwe_lfq_freight_shipment_offset_days').attr('maxlength', '2');
    682683
    683684    jQuery('.quote_section_class_ltl .button-primary, .quote_section_class_ltl .is-primary').on('click', function () {
    684685
     686        jQuery(':checkbox:disabled').prop('disabled', false);
     687
    685688        var Error = true;
    686689
    687690        if (!speedfreight_label_validation()) {
     691            return false;
     692        } else if (!wwe_ltl_validate_fullfillment_offset_days()) {
    688693            return false;
    689694        } else if (!speedfreight_pallet_weight_validation()) {
     
    13311336    }
    13321337}
     1338
     1339if (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  
    11881188                    && $this->quote_settings['delivery_estimates'] != 'dont_show_estimates' && $shipment_type != 'multi_shipment') {
    11891189                    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'])) . ')' : '';
    11911191                    } 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'] . ')' : '';
    11931193                    }
    11941194                }
     
    12201220                            if (isset($rate['meta_data'])) {
    12211221                                $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'];
    12221226                            }
    12231227
  • ltl-freight-quotes-worldwide-express-edition/trunk/ltl_tab_class_woocommrece.php

    r3492328 r3494374  
    183183                        <br> <br> <br>
    184184                    </p>
    185                     <table>
     185                    <table style="min-width: 100%;">
    186186                        <tbody>
    187187                        <thead>
     
    198198                        $count_carrier = 1;
    199199                        $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
    200211                        foreach ($ltl_freight_all as $ltl_freight_value):
    201212                            ?>
     
    358369                    ),
    359370                    'shipmentOffsetDays_wwe_lfq_freight' => array(
    360                         'name' => __('Fullfillment 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' => 'Fullfillment 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',
    364375                        'id' => 'wwe_lfq_freight_shipment_offset_days',
    365376                        'class' => $wwe_lfq_disable_cutt_off_time_ship_date_offset,
  • ltl-freight-quotes-worldwide-express-edition/trunk/product/en-product-detail.php

    r3157359 r3494374  
    141141                    $custom_field = (isset($custom_field['id'])) ? $custom_field['id'] : '';
    142142                    $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                   
    145152                    update_post_meta($postId, $custom_field, $en_updated_product);
    146153                }
    147154            }
     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);
    148167        }
    149168
     
    266285                    '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."
    267286                ],
     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                ],
    268304                [
    269305                    'type' => 'checkbox',
     
    393429            }
    394430
     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
    395441            woocommerce_wp_text_input($custom_input_field);
    396442        }
  • ltl-freight-quotes-worldwide-express-edition/trunk/readme.txt

    r3492328 r3494374  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.2.3
     6Stable tag: 5.2.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169== Changelog ==
    170170
     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
    171176= 5.2.3 - 2026-03-27 =
    172177* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
    173178
    174 = 5.2.2 - 2026-03-03 =
     1795.2.2 - 2026-03-03 =
    175180* Fix: Resolved Broken Access Control vulnerability to improve overall plugin security.
    176 
    177 = 5.2.1 - 2026-03-02 =
     181   
     1825.2.1 - 2026-03-02 =
    178183* Fix: Resolved JS files minification conflict with the WP Rocket plugin to ensure compatibility with asset optimization.
    179184
  • ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/assets/js/shipping_rules.js

    r3320451 r3494374  
    344344                    jQuery('.wwe_ltl_sr_updated').show('slow').delay(3000).hide('slow');
    345345                } 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');
    347347                    jQuery('.content').delay(200).animate({ scrollTop: 0 }, 300);
    348348                    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);
    351351                }
    352352            },
  • ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/shipping-rules-save.php

    r3390870 r3494374  
    5151
    5252            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            }
    5360
    5461            $insert_qry = $update_qry = '';
  • ltl-freight-quotes-worldwide-express-edition/trunk/shipping-rules/shipping-rules-template.php

    r3320451 r3494374  
    128128                <strong>Error!</strong> Shipping rule with this name already exists.
    129129              </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>
    130133                <!-- Wordpress Form closed -->
    131134                </form>
  • ltl-freight-quotes-worldwide-express-edition/trunk/warehouse-dropship/wild/assets/css/warehouse_section.css

    r3374885 r3494374  
    188188}
    189189
    190 .already_exist {
     190.already_exist, .create_table_error {
    191191    background: #f1f1f1 none repeat scroll 0 0;
    192192    border-left: 4px solid #dc3232;
  • ltl-freight-quotes-worldwide-express-edition/trunk/warehouse-dropship/wwe-ltl-wild-delivery.php

    r3390870 r3494374  
    2828            ));
    2929
    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');
    3131            wp_enqueue_style('en_wwe_ltl_warehouse_section_style');
    3232        }
  • ltl-freight-quotes-worldwide-express-edition/trunk/woocommercefrieght.php

    r3492328 r3494374  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.2.3
     8  Version: 5.2.4
    99  Text Domain: eniture-technology
    1010  License: GPLv2 or later
     
    8383
    8484        // 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');
    8686        wp_localize_script('en_wwe_ltl_sr_script', 'en_wwe_ltl_sr_script', array(
    8787            'pluginsUrl' => plugins_url(),
     
    194194function wwe_ltl_admin_script()
    195195{
    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');
    197197    wp_enqueue_style('ltl_style');
    198198}
     
    360360
    361361    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');
    363363    wp_localize_script('en_speedfreight_script', 'en_speedfreight_admin_script', array(
    364364        'plugins_url' => plugins_url(),
Note: See TracChangeset for help on using the changeset viewer.