Plugin Directory

Changeset 3492328


Ignore:
Timestamp:
03/27/2026 06:08:25 AM (5 days ago)
Author:
enituretechnology
Message:

5.2.3 - 2026-03-27

  • Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.

Ticket 43297616567

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

Legend:

Unmodified
Added
Removed
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/ltl_shipping_class.php

    r3381860 r3492328  
    194194                }
    195195
     196                $coupon = WC()->cart->get_coupons();
     197                // Suppress plugin rates when a free shipping coupon code is applied
     198                if (get_option('suppress_plugin_rates_free_shipping_coupon_wwe') == 'yes' && !empty($coupon) && $this->wwe_ltl_free_shipping_coupon($coupon)) {
     199                    return [];
     200                }
     201
    196202                $this->package_plugin = get_option('wwe_ltl_packages_quotes_package');
    197203
     
    14071413                }
    14081414            }
     1415
     1416            /**
     1417             * Check is free shipping or not
     1418             * @param $coupon
     1419             * @return bool
     1420             */
     1421            function wwe_ltl_free_shipping_coupon($coupon)
     1422            {
     1423                foreach ($coupon as $value) {
     1424                    if ($value->get_free_shipping() == 1) return true;
     1425                }
     1426               
     1427                return false;
     1428            }
    14091429        }
    14101430    }
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/ltl_tab_class_woocommrece.php

    r3390870 r3492328  
    595595                        'id' => 'en_ignore_items_through_freight_classification'
    596596                    ),
     597                    'suppress_plugin_rates_free_shipping_coupon_wwe' => array(
     598                        'name' => __('Suppress plugin rates when a free shipping coupon code is applied', 'ltl-freight-quotes-worldwide-express-edition'),
     599                        'type' => 'checkbox',
     600                        'desc' => '',
     601                        'id' => 'suppress_plugin_rates_free_shipping_coupon_wwe'
     602                    ),
    597603                    'allow_for_own_arrangment_wwe' => array(
    598604                        'name' => __('Allow For Own Arrangement ', 'woocommerce-settings-wwe_quetes'),
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/readme.txt

    r3473579 r3492328  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.2.2
     6Stable tag: 5.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169== Changelog ==
    170170
     171= 5.2.3 - 2026-03-27 =
     172* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
     173
    171174= 5.2.2 - 2026-03-03 =
    172175* Fix: Resolved Broken Access Control vulnerability to improve overall plugin security.
  • ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/woocommercefrieght.php

    r3473579 r3492328  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.2.2
     8  Version: 5.2.3
    99  Text Domain: eniture-technology
    1010  License: GPLv2 or later
  • ltl-freight-quotes-worldwide-express-edition/trunk/ltl_shipping_class.php

    r3381860 r3492328  
    194194                }
    195195
     196                $coupon = WC()->cart->get_coupons();
     197                // Suppress plugin rates when a free shipping coupon code is applied
     198                if (get_option('suppress_plugin_rates_free_shipping_coupon_wwe') == 'yes' && !empty($coupon) && $this->wwe_ltl_free_shipping_coupon($coupon)) {
     199                    return [];
     200                }
     201
    196202                $this->package_plugin = get_option('wwe_ltl_packages_quotes_package');
    197203
     
    14071413                }
    14081414            }
     1415
     1416            /**
     1417             * Check is free shipping or not
     1418             * @param $coupon
     1419             * @return bool
     1420             */
     1421            function wwe_ltl_free_shipping_coupon($coupon)
     1422            {
     1423                foreach ($coupon as $value) {
     1424                    if ($value->get_free_shipping() == 1) return true;
     1425                }
     1426               
     1427                return false;
     1428            }
    14091429        }
    14101430    }
  • ltl-freight-quotes-worldwide-express-edition/trunk/ltl_tab_class_woocommrece.php

    r3390870 r3492328  
    595595                        'id' => 'en_ignore_items_through_freight_classification'
    596596                    ),
     597                    'suppress_plugin_rates_free_shipping_coupon_wwe' => array(
     598                        'name' => __('Suppress plugin rates when a free shipping coupon code is applied', 'ltl-freight-quotes-worldwide-express-edition'),
     599                        'type' => 'checkbox',
     600                        'desc' => '',
     601                        'id' => 'suppress_plugin_rates_free_shipping_coupon_wwe'
     602                    ),
    597603                    'allow_for_own_arrangment_wwe' => array(
    598604                        'name' => __('Allow For Own Arrangement ', 'woocommerce-settings-wwe_quetes'),
  • ltl-freight-quotes-worldwide-express-edition/trunk/readme.txt

    r3473579 r3492328  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.2.2
     6Stable tag: 5.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169== Changelog ==
    170170
     171= 5.2.3 - 2026-03-27 =
     172* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
     173
    171174= 5.2.2 - 2026-03-03 =
    172175* Fix: Resolved Broken Access Control vulnerability to improve overall plugin security.
  • ltl-freight-quotes-worldwide-express-edition/trunk/woocommercefrieght.php

    r3473579 r3492328  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.2.2
     8  Version: 5.2.3
    99  Text Domain: eniture-technology
    1010  License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.