Changeset 2434376
- Timestamp:
- 12/08/2020 03:55:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sinalite-for-woocommerce/trunk/includes/sinalite-shipping-method.php
r2427447 r2434376 104 104 { 105 105 106 if ( ! in_the_loop() ) { 107 return $packages; 108 } 109 110 if ( ! is_singular() ) { 111 return $packages; 112 } 113 114 if ( ! is_main_query() ) { 115 return $packages; 116 } 117 118 106 119 if ($this->shipping_enabled !== self::WOO_TRUE) { 107 120 return $packages; … … 278 291 } 279 292 293 remove_filter('woocommerce_cart_shipping_packages', [$this, 'calculate_shipping_rates']); 294 280 295 return $splittedPackages; 281 296 }
Note: See TracChangeset
for help on using the changeset viewer.