Plugin Directory

Changeset 3434828


Ignore:
Timestamp:
01/08/2026 03:27:48 AM (6 weeks ago)
Author:
rermis
Message:

v2.1.9 = * Minor bug fixes to shipping method name retrieval

Location:
wc-ship-est/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-ship-est/trunk/readme.txt

    r3427533 r3434828  
    66Requires at least: 6.6
    77Tested up to: 6.9
    8 Stable tag: 2.1.8
     8Stable tag: 2.1.9
    99
    1010Add a Delivery Estimate or Shipping Method Description to the WooCommerce Cart with a simple, fast and lightweight plugin.
     
    4646
    4747== Changelog ==
     48= 2.1.9 = * Minor bug fixes to shipping method name retrieval
    4849= 2.1.8 = * Minor bug fixes to variation level estimates.
    4950= 2.1.7 = * Fix to unsupported email types.
  • wc-ship-est/trunk/wse_functions.php

    r3427533 r3434828  
    77Author URI: https://richardlerma.com/contact/
    88Requires Plugins: woocommerce
    9 Version: 2.1.7
     9Version: 2.1.9
    1010Text Domain: wc-ship-est
    1111Copyright: (c) 2019-2025 rldd.net - All Rights Reserved
     
    1616*/
    1717
    18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.8';
     18global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.9';
    1919$wse_version_type='GPL';
    2020$wse_pro_version=get_option('wse_pro_version');
     
    309309          $method="$method_id:{$m->instance_id}";
    310310          $method_title=unserialize($m->meta)['title'];
     311          if(class_exists('WC_Shipping_Zones')&&method_exists('WC_Shipping_Zones','get_shipping_method')){
     312            $sm=WC_Shipping_Zones::get_shipping_method($m->instance_id);
     313            if($sm&&method_exists($sm,'get_title')){
     314              $t=$sm->get_title();
     315              if(!empty($t))$method_title=$t;
     316            }
     317          }
     318
    311319          update_option("wse:$method",$method_title);
    312320          if($sel_method==$method) $sel='selected'; else $sel='';
Note: See TracChangeset for help on using the changeset viewer.