Changeset 3427532
- Timestamp:
- 12/26/2025 04:54:21 AM (8 weeks ago)
- Location:
- wc-ship-est/tags/2.1.8
- Files:
-
- 3 copied
-
. (copied) (copied from wc-ship-est/trunk)
-
readme.txt (copied) (copied from wc-ship-est/trunk/readme.txt) (2 diffs)
-
wse_functions.php (copied) (copied from wc-ship-est/trunk/wse_functions.php) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-ship-est/tags/2.1.8/readme.txt
r3424879 r3427532 6 6 Requires at least: 6.6 7 7 Tested up to: 6.9 8 Stable tag: 2.1. 78 Stable tag: 2.1.8 9 9 10 10 Add a Delivery Estimate or Shipping Method Description to the WooCommerce Cart with a simple, fast and lightweight plugin. … … 46 46 47 47 == Changelog == 48 = 2.1.8 = * Minor bug fixes to variation level estimates. 48 49 = 2.1.7 = * Fix to unsupported email types. 49 50 = 2.1.6 = * Fix to null params in wse_add_email_ship_var -
wc-ship-est/tags/2.1.8/wse_functions.php
r3424879 r3427532 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html 14 14 WC requires at least: 9.0 15 WC tested up to: 10. 315 WC tested up to: 10.4 16 16 */ 17 17 18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1. 7';18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.8'; 19 19 $wse_version_type='GPL'; 20 20 $wse_pro_version=get_option('wse_pro_version'); … … 1186 1186 1187 1187 if($has_vars) { 1188 $vc_base=array(); 1189 $vc_bk=array(); 1188 $vc_days=array(); 1190 1189 foreach($vars as $vid) { 1191 1190 $i=0; … … 1193 1192 if($prds[$i]==$vid) { 1194 1193 $d=intval($prd_days[$i]??0); 1195 if($d>0) { 1196 $vc_base[]=$d; 1194 if(wse_backordered($prd_id,$vid,1)>0) { 1197 1195 $bk=intval($prd_bk_days[$i]??0); 1198 if($bk>0) $ vc_bk[]=$bk;1196 if($bk>0) $d+=$bk; 1199 1197 } 1198 if($d>0) $vc_days[]=$d; 1200 1199 } 1201 1200 $i++; 1202 1201 } 1203 1202 } 1204 if(!empty($vc_base)) { 1205 if($type=='min') { 1206 $ship_days[]=min($vc_base); 1207 } else { 1208 $max_base=max($vc_base); 1209 $max_bk=!empty($vc_bk)?max($vc_bk):0; 1210 $ship_days[]=$max_base+$max_bk; 1203 if(!empty($vc_days)) { 1204 if($type=='min') $ship_days[]=min($vc_days); 1205 else $ship_days[]=max($vc_days); 1206 } else { 1207 $i=0; 1208 if($p_ct>0) { 1209 while($i<$p_ct) { 1210 if($prds[$i]>0) { 1211 if($prd_id==$prds[$i]) { 1212 if(empty($prd_days[$i])) $prd_days[$i]=0; 1213 if(wse_backordered($prd_id,$prd_id,1)>0) if($prd_bk_days[$i]>0) {$prd_days[$i]+=$prd_bk_days[$i]; $apply_ct++;} 1214 if($prd_days[$i]>0) array_push($ship_days,$prd_days[$i]); 1215 } 1216 } 1217 $i++; 1218 } 1219 } 1220 if($apply_ct<1 && wse_backordered($prd_id,$prd_id,1)>0) { 1221 if(!empty($def_bk_days)) array_push($ship_days,$def_bk_days); 1222 elseif(!empty($def_bk_desc)) $bko_prd++; 1211 1223 } 1212 1224 }
Note: See TracChangeset
for help on using the changeset viewer.