Plugin Directory

Changeset 2800906


Ignore:
Timestamp:
10/18/2022 10:01:21 PM (3 years ago)
Author:
shiptimizeplugins
Message:

invalid return type on rates filter makes shipping costs not added to total

Location:
shiptimize-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • shiptimize-for-woocommerce/trunk/constants.php

    r2800481 r2800906  
    44define( 'SHIPTIMIZE_API_URL', 'https://api.pakketmail.nl/v3' );
    55define( 'SHIPTIMIZE_BRAND', 'Shiptimize' );
    6 define( 'SHIPTIMIZE_VERSION', '3.1.56' );
     6define( 'SHIPTIMIZE_VERSION', '3.1.57' );
    77define( 'SHIPTIMIZE_CREATE_ACCOUNT', 'https://www.shiptimize.me/quote/' );
    88define( 'SHIPTIMIZE_CHECKOUT', 0);
  • shiptimize-for-woocommerce/trunk/includes/class-woo-shiptimize.php

    r2800481 r2800906  
    337337   **/
    338338  public function rates_filter ( $rates, $package ) {
    339 
     339 
    340340    // Check if hide not free enabled
    341341    if ( get_option('shiptimize_hide_not_free') ) {
     
    343343      foreach ( $rates as $id => $r) {
    344344        if ( $r->cost == 0 && $this->is_rate_valid( $r, $package ) ) {
    345           array_push($free, $r);
     345          $free[$rid] = $r;
    346346        }
    347347      }
     
    356356    foreach ( $rates as $id => $r) {
    357357      if( $this->is_rate_valid($r, $package) ) {
    358         array_push( $newrates,$r );
     358        $newrates[$id] = $r ;
    359359      }
    360360    }
  • shiptimize-for-woocommerce/trunk/readme.txt

    r2800481 r2800906  
    5959== Changelog ==
    6060
     61= 3.1.57 - 2022-10-18 =
     62* fix - When selecting the shipping method the value of shipping was not added to total.
     63
    6164= 3.1.56 - 2022-10-18 =
    6265* fix - If hide shipping methods was enabled and only rates that can't display because of class constraints match, then no rates would not display.
  • shiptimize-for-woocommerce/trunk/shiptimize.php

    r2800481 r2800906  
    33 * Plugin Name: Shiptimize for WooCommerce
    44 * Description: Shiptimize for WooCommerce 
    5  * Version: 3.1.56
     5 * Version: 3.1.57
    66 * Author: Shiptimize
    77 * Author URI: https://shiptimize.me
Note: See TracChangeset for help on using the changeset viewer.