Changeset 3358433
- Timestamp:
- 09/09/2025 08:46:37 AM (4 months ago)
- Location:
- ltl-freight-quotes-rl-edition/trunk
- Files:
-
- 6 edited
-
js/en-rnl.js (modified) (5 diffs)
-
ltl-freight-quotes-rnl-edition.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
rnl-carrier-service.php (modified) (4 diffs)
-
rnl-shipping-class.php (modified) (4 diffs)
-
template/quote-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ltl-freight-quotes-rl-edition/trunk/js/en-rnl.js
r3241903 r3358433 293 293 jQuery("#rnl_quotes_liftgate_delivery_as_option").prop({checked: false}); 294 294 jQuery("#en_woo_addons_liftgate_with_auto_residential").prop({checked: false}); 295 jQuery("#rnl_quotes_always_quote_liftgate_when_limited_access").prop({checked: false}); 295 296 296 297 } else if (id == "rnl_quotes_liftgate_delivery_as_option" || 297 id == "en_woo_addons_liftgate_with_auto_residential" ) {298 id == "en_woo_addons_liftgate_with_auto_residential" || id == "rnl_quotes_always_quote_liftgate_when_limited_access") { 298 299 jQuery("#wc_settings_rnl_liftgate").prop({checked: false}); 299 300 } … … 565 566 // limited access delivery 566 567 jQuery("#rnl_limited_access_delivery").closest('tr').addClass("rnl_limited_access_delivery"); 567 jQuery("#rnl_limited_access_delivery_as_option ").closest('tr').addClass("rnl_limited_access_delivery_as_option");568 jQuery("#rnl_limited_access_delivery_as_option, #rnl_quotes_always_quote_liftgate_when_limited_access").closest('tr').addClass("rnl_limited_access_delivery_as_option"); 568 569 jQuery("#rnl_limited_access_delivery_fee").closest('tr').addClass("rnl_limited_access_delivery_fee"); 569 570 … … 573 574 const id = jQuery(this).attr('id'); 574 575 id == 'rnl_limited_access_delivery' 575 ? jQuery('#rnl_limited_access_delivery_as_option ').prop({ checked: false })576 ? jQuery('#rnl_limited_access_delivery_as_option, #rnl_quotes_always_quote_liftgate_when_limited_access').prop({ checked: false }) 576 577 : jQuery('#rnl_limited_access_delivery').prop({ checked: false }); 577 578 … … 579 580 580 581 if (jQuery('#rnl_limited_access_delivery_as_option').prop('checked') == false && 581 jQuery('#rnl_limited_access_delivery').prop('checked') == false ) {582 jQuery('#rnl_limited_access_delivery').prop('checked') == false && jQuery('#rnl_quotes_always_quote_liftgate_when_limited_access').prop('checked') == false) { 582 583 jQuery('.rnl_limited_access_delivery_fee').css('display', 'none'); 583 584 } … … 585 586 586 587 if (jQuery("#rnl_limited_access_delivery_as_option").prop("checked") == false && 587 jQuery("#rnl_limited_access_delivery").prop("checked") == false ) {588 jQuery("#rnl_limited_access_delivery").prop("checked") == false && jQuery("#rnl_quotes_always_quote_liftgate_when_limited_access") == false) { 588 589 jQuery('.rnl_limited_access_delivery_fee').css('display', 'none'); 589 590 } -
ltl-freight-quotes-rl-edition/trunk/ltl-freight-quotes-rnl-edition.php
r3314366 r3358433 4 4 * Plugin URI: https://eniture.com/products/ 5 5 * Description: Dynamically retrieves your negotiated shipping rates from R+L Freight and displays the results in the WooCommerce shopping cart. 6 * Version: 3.3. 66 * Version: 3.3.7 7 7 * Author: Eniture Technology 8 8 * Author URI: http://eniture.com/ … … 10 10 * License: GPL version 2 or later - http://www.eniture.com/ 11 11 * WC requires at least: 6.4 12 * WC tested up to: 9.9.412 * WC tested up to: 10.1.2 13 13 */ 14 14 if (!defined('ABSPATH')) { … … 222 222 { 223 223 wp_enqueue_script('jquery'); 224 wp_enqueue_script('en_rnl_script', plugin_dir_url(__FILE__) . 'js/en-rnl.js', array(), '1.1. 3');224 wp_enqueue_script('en_rnl_script', plugin_dir_url(__FILE__) . 'js/en-rnl.js', array(), '1.1.4'); 225 225 wp_localize_script('en_rnl_script', 'en_rnl_admin_script', array( 226 226 'plugins_url' => plugins_url(), -
ltl-freight-quotes-rl-edition/trunk/readme.txt
r3314366 r3358433 3 3 Tags: eniture,R+L,,LTL freight rates,LTL freight quotes, shipping estimates 4 4 Requires at least: 6.4 5 Tested up to: 6.8 .16 Stable tag: 3.3. 65 Tested up to: 6.8 6 Stable tag: 3.3.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 152 152 == Changelog == 153 153 154 = 3.3.7 = 155 * Update: Introduced a new setting in Quote Settings to always include Lift Gate Delivery for Limited Access deliveries. 156 154 157 = 3.3.6 = 155 158 * Update: Addressed a customer-specific issue involving dynamically created variants where the underlying products were being changed. -
ltl-freight-quotes-rl-edition/trunk/rnl-carrier-service.php
r3314366 r3358433 182 182 $post_data = apply_filters('en_request_handler', $post_data, 'rnl'); 183 183 184 if ($this->quote_settings['liftgate_delivery_option'] == "yes" ) {184 if ($this->quote_settings['liftgate_delivery_option'] == "yes" || $this->quote_settings['liftgate_limited_access_delivery'] == "yes") { 185 185 $post_data['liftgateDelivery'] = 'Y'; 186 186 } … … 575 575 576 576 // Add limited access delivery fee in quote price and surcharge in rates surcharges array 577 if ($this->quote_settings['limited_access_delivery_option'] == 'yes' || ($this->quote_settings['limited_access_delivery'] == 'yes' && !in_array('R', $label_sufex_arr))) {577 if ($this->quote_settings['limited_access_delivery_option'] == 'yes' || $this->quote_settings['liftgate_limited_access_delivery'] == 'yes' || ($this->quote_settings['limited_access_delivery'] == 'yes' && !in_array('R', $label_sufex_arr))) { 578 578 $price = $this->addLimitedAccessDelFee($price); 579 579 $surcharges = isset($surcharges) ? $surcharges : []; … … 681 681 } 682 682 683 // When Limited Access As An Option Enabled 683 // When Limited Access As An Option Enabled 684 684 $limited_access_quotes = []; 685 if ($this->quote_settings['limited_access_delivery_option'] == 'yes' ) {685 if ($this->quote_settings['limited_access_delivery_option'] == 'yes' || $this->quote_settings['liftgate_limited_access_delivery'] == 'yes') { 686 686 687 687 $limited_access_quotes = $quotes; … … 872 872 } 873 873 874 function addLimitedAccessDelFee($charges) 875 { 876 $is_limited_access_active = get_option('rnl_limited_access_delivery') == 'yes' || get_option('rnl_limited_access_delivery_as_option') == 'yes' ;874 function addLimitedAccessDelFee($charges) 875 { 876 $is_limited_access_active = get_option('rnl_limited_access_delivery') == 'yes' || get_option('rnl_limited_access_delivery_as_option') == 'yes' || get_option('rnl_quotes_always_quote_liftgate_when_limited_access') == 'yes'; 877 877 $limited_access_fee = !empty(get_option('rnl_limited_access_delivery_fee')) ? get_option('rnl_limited_access_delivery_fee') : 0; 878 878 -
ltl-freight-quotes-rl-edition/trunk/rnl-shipping-class.php
r3241903 r3358433 79 79 $this->web_service_inst->quote_settings['residential_delivery'] = get_option('wc_settings_rnl_residential'); 80 80 $this->web_service_inst->quote_settings['liftgate_resid_delivery'] = get_option('en_woo_addons_liftgate_with_auto_residential'); 81 $this->web_service_inst->quote_settings['liftgate_limited_access_delivery'] = get_option('rnl_quotes_always_quote_liftgate_when_limited_access'); 81 82 $this->web_service_inst->quote_settings['limited_access_delivery'] = get_option('rnl_limited_access_delivery'); 82 83 $this->web_service_inst->quote_settings['transit_time'] = get_option('wc_settings_rnl_delivey_estimate'); … … 829 830 $rates = []; 830 831 831 foreach ($combined_quotes as $ quote) {832 foreach ($combined_quotes as $key => $quote) { 832 833 if (isset($quote['hold_at_terminal_quotes'])) { 833 834 $rates[] = $quote['hold_at_terminal_quotes']; … … 839 840 unset($quote['limited_access_quotes']); 840 841 $lfg_quotes = $this->remove_array($quote, 'simple_quotes'); 842 843 if ($this->quote_settings['liftgate_limited_access_delivery'] == 'yes' && empty($simple_quotes)) { 844 $lfg_fee = isset($lfg_quotes['surcharges']['LIFT']) ? $lfg_quotes['surcharges']['LIFT'] : 0; 845 $lfg_quotes['cost'] -= floatval($lfg_fee) ; 846 847 $simple_quotes = $lfg_quotes; 848 } 849 841 850 $rates[] = $lfg_quotes; 842 if (!empty($limited_access_quotes) ) $rates[] = $limited_access_quotes;851 if (!empty($limited_access_quotes) && $this->quote_settings['liftgate_limited_access_delivery'] != 'yes') $rates[] = $limited_access_quotes; 843 852 844 853 $en_accessorial_excluded = apply_filters('en_rnl_ltl_accessorial_excluded', []); … … 875 884 } 876 885 877 $rates[] = $lfg_and_limited_quotes; 886 $rates[] = $lfg_and_limited_quotes; 878 887 } 879 888 -
ltl-freight-quotes-rl-edition/trunk/template/quote-settings.php
r3241903 r3358433 335 335 'id' => 'rnl_limited_access_delivery_as_option', 336 336 'class' => "limited_access_add ", 337 ), 338 'rnl_quotes_always_quote_liftgate_when_limited_access' => array( 339 'name' => __('Always include lift gate delivery for limited access deliveries', 'rnl_freight_wc_settings'), 340 'type' => 'checkbox', 341 'desc' => '', 342 'class' => 'limited_access_add', 343 'id' => 'rnl_quotes_always_quote_liftgate_when_limited_access' 337 344 ), 338 345 'rnl_limited_access_delivery_fee' => array(
Note: See TracChangeset
for help on using the changeset viewer.