Changeset 3492328
- Timestamp:
- 03/27/2026 06:08:25 AM (5 days ago)
- Location:
- ltl-freight-quotes-worldwide-express-edition
- Files:
-
- 8 edited
- 1 copied
-
tags/5.2.3 (copied) (copied from ltl-freight-quotes-worldwide-express-edition/trunk)
-
tags/5.2.3/ltl_shipping_class.php (modified) (2 diffs)
-
tags/5.2.3/ltl_tab_class_woocommrece.php (modified) (1 diff)
-
tags/5.2.3/readme.txt (modified) (2 diffs)
-
tags/5.2.3/woocommercefrieght.php (modified) (1 diff)
-
trunk/ltl_shipping_class.php (modified) (2 diffs)
-
trunk/ltl_tab_class_woocommrece.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommercefrieght.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/ltl_shipping_class.php
r3381860 r3492328 194 194 } 195 195 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 196 202 $this->package_plugin = get_option('wwe_ltl_packages_quotes_package'); 197 203 … … 1407 1413 } 1408 1414 } 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 } 1409 1429 } 1410 1430 } -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/ltl_tab_class_woocommrece.php
r3390870 r3492328 595 595 'id' => 'en_ignore_items_through_freight_classification' 596 596 ), 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 ), 597 603 'allow_for_own_arrangment_wwe' => array( 598 604 'name' => __('Allow For Own Arrangement ', 'woocommerce-settings-wwe_quetes'), -
ltl-freight-quotes-worldwide-express-edition/tags/5.2.3/readme.txt
r3473579 r3492328 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 5.2. 26 Stable tag: 5.2.3 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.3 - 2026-03-27 = 172 * Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied. 173 171 174 = 5.2.2 - 2026-03-03 = 172 175 * 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 6 6 Author: Eniture Technology 7 7 Author URI: https://eniture.com/ 8 Version: 5.2. 28 Version: 5.2.3 9 9 Text Domain: eniture-technology 10 10 License: GPLv2 or later -
ltl-freight-quotes-worldwide-express-edition/trunk/ltl_shipping_class.php
r3381860 r3492328 194 194 } 195 195 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 196 202 $this->package_plugin = get_option('wwe_ltl_packages_quotes_package'); 197 203 … … 1407 1413 } 1408 1414 } 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 } 1409 1429 } 1410 1430 } -
ltl-freight-quotes-worldwide-express-edition/trunk/ltl_tab_class_woocommrece.php
r3390870 r3492328 595 595 'id' => 'en_ignore_items_through_freight_classification' 596 596 ), 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 ), 597 603 'allow_for_own_arrangment_wwe' => array( 598 604 'name' => __('Allow For Own Arrangement ', 'woocommerce-settings-wwe_quetes'), -
ltl-freight-quotes-worldwide-express-edition/trunk/readme.txt
r3473579 r3492328 4 4 Requires at least: 6.4 5 5 Tested up to: 6.9 6 Stable tag: 5.2. 26 Stable tag: 5.2.3 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.3 - 2026-03-27 = 172 * Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied. 173 171 174 = 5.2.2 - 2026-03-03 = 172 175 * Fix: Resolved Broken Access Control vulnerability to improve overall plugin security. -
ltl-freight-quotes-worldwide-express-edition/trunk/woocommercefrieght.php
r3473579 r3492328 6 6 Author: Eniture Technology 7 7 Author URI: https://eniture.com/ 8 Version: 5.2. 28 Version: 5.2.3 9 9 Text Domain: eniture-technology 10 10 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.