Plugin Directory

Changeset 3492326


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

5.3.9 - 2026-03-27

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

Ticket 43297616567

Location:
small-package-quotes-wwe-edition
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • small-package-quotes-wwe-edition/tags/5.3.9/readme.txt

    r3479759 r3492326  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.3.8
     6Stable tag: 5.3.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141
    142142== Changelog ==
     143
     144= 5.3.9 - 2026-03-27 =
     145* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
    143146
    144147= 5.3.8 - 2026-03-11 =
  • small-package-quotes-wwe-edition/tags/5.3.9/small_packages_shipping_class.php

    r3479759 r3492326  
    256256                }
    257257
     258                $coupon = WC()->cart->get_coupons();
     259                // Suppress plugin rates when a free shipping coupon code is applied
     260                if (get_option('suppress_plugin_rates_free_shipping_coupon_wwe_small') == 'yes' && !empty($coupon) && $this->wwe_small_free_shipping_coupon($coupon)) {
     261                    return [];
     262                }
     263
    258264                $this->package_plugin = get_option('wwe_small_packages_quotes_package');
    259265                $selected_quotes_service_options_array = $this->wwe_smpkg_get_active_services();
     
    10061012                return $updated_rates;
    10071013            }
     1014
     1015            /**
     1016             * Check is free shipping or not
     1017             * @param $coupon
     1018             * @return bool
     1019             */
     1020            function wwe_small_free_shipping_coupon($coupon)
     1021            {
     1022                foreach ($coupon as $value) {
     1023                    if ($value->get_free_shipping() == 1) return true;
     1024                }
     1025               
     1026                return false;
     1027            }
    10081028        }
    10091029
  • small-package-quotes-wwe-edition/tags/5.3.9/small_packages_tab_class_woocommrece.php

    r3479759 r3492326  
    682682                        'id' => 'en_ignore_items_through_freight_classification'
    683683                    ),
     684                    'suppress_plugin_rates_free_shipping_coupon_wwe_small' => array(
     685                        'name' => __('Suppress plugin rates when a free shipping coupon code is applied', 'ltl-freight-quotes-worldwide-express-edition'),
     686                        'type' => 'checkbox',
     687                        'desc' => '',
     688                        'id' => 'suppress_plugin_rates_free_shipping_coupon_wwe_small'
     689                    ),
    684690                    'allow_other_plugins_wwe_small_packages' => array(
    685691                        'name' => __('Allow other plugins to show quotes ', 'small-package-quotes-wwe-edition'),
  • small-package-quotes-wwe-edition/tags/5.3.9/woocommerceShip.php

    r3479759 r3492326  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.3.8
     8  Version: 5.3.9
    99  Text Domain: small-package-quotes-wwe-edition
    10   License: GPL-2.0-or-later
     10  License: GPLv2 or later
     11  Requires Plugins: woocommerce
    1112 */
    1213/*
  • small-package-quotes-wwe-edition/trunk/readme.txt

    r3479759 r3492326  
    44Requires at least: 6.4
    55Tested up to: 6.9
    6 Stable tag: 5.3.8
     6Stable tag: 5.3.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    141141
    142142== Changelog ==
     143
     144= 5.3.9 - 2026-03-27 =
     145* Update: Added settings to suppress plugin rates when a valid free shipping coupon code is applied.
    143146
    144147= 5.3.8 - 2026-03-11 =
  • small-package-quotes-wwe-edition/trunk/small_packages_shipping_class.php

    r3479759 r3492326  
    256256                }
    257257
     258                $coupon = WC()->cart->get_coupons();
     259                // Suppress plugin rates when a free shipping coupon code is applied
     260                if (get_option('suppress_plugin_rates_free_shipping_coupon_wwe_small') == 'yes' && !empty($coupon) && $this->wwe_small_free_shipping_coupon($coupon)) {
     261                    return [];
     262                }
     263
    258264                $this->package_plugin = get_option('wwe_small_packages_quotes_package');
    259265                $selected_quotes_service_options_array = $this->wwe_smpkg_get_active_services();
     
    10061012                return $updated_rates;
    10071013            }
     1014
     1015            /**
     1016             * Check is free shipping or not
     1017             * @param $coupon
     1018             * @return bool
     1019             */
     1020            function wwe_small_free_shipping_coupon($coupon)
     1021            {
     1022                foreach ($coupon as $value) {
     1023                    if ($value->get_free_shipping() == 1) return true;
     1024                }
     1025               
     1026                return false;
     1027            }
    10081028        }
    10091029
  • small-package-quotes-wwe-edition/trunk/small_packages_tab_class_woocommrece.php

    r3479759 r3492326  
    682682                        'id' => 'en_ignore_items_through_freight_classification'
    683683                    ),
     684                    'suppress_plugin_rates_free_shipping_coupon_wwe_small' => array(
     685                        'name' => __('Suppress plugin rates when a free shipping coupon code is applied', 'ltl-freight-quotes-worldwide-express-edition'),
     686                        'type' => 'checkbox',
     687                        'desc' => '',
     688                        'id' => 'suppress_plugin_rates_free_shipping_coupon_wwe_small'
     689                    ),
    684690                    'allow_other_plugins_wwe_small_packages' => array(
    685691                        'name' => __('Allow other plugins to show quotes ', 'small-package-quotes-wwe-edition'),
  • small-package-quotes-wwe-edition/trunk/woocommerceShip.php

    r3479759 r3492326  
    66  Author: Eniture Technology
    77  Author URI: https://eniture.com/
    8   Version: 5.3.8
     8  Version: 5.3.9
    99  Text Domain: small-package-quotes-wwe-edition
    10   License: GPL-2.0-or-later
     10  License: GPLv2 or later
     11  Requires Plugins: woocommerce
    1112 */
    1213/*
Note: See TracChangeset for help on using the changeset viewer.