Plugin Directory

Changeset 2805627


Ignore:
Timestamp:
10/27/2022 09:13:42 AM (3 years ago)
Author:
shiptimizeplugins
Message:

3.1.58 do not consider local pickup for hide other than free shipping methods

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

Legend:

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

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

    r2800906 r2805627  
    339339 
    340340    // Check if hide not free enabled
     341     
     342    $free_not_local = false;
    341343    if ( get_option('shiptimize_hide_not_free') ) {
    342344      $free = array();
    343345      foreach ( $rates as $id => $r) {
    344346        if ( $r->cost == 0 && $this->is_rate_valid( $r, $package ) ) {
    345           $free[$rid] = $r;
     347          $free_not_local |= ($r->method_id != 'local_pickup');
     348          $free[$id] = $r;
    346349        }
    347350      }
    348351
    349       if ( !empty( $free ) ) {
     352      if ( !empty( $free ) && $free_not_local) {
    350353        $rates = $free;
    351354      } 
  • shiptimize-for-woocommerce/trunk/readme.txt

    r2800906 r2805627  
    5959== Changelog ==
    6060
     61= 3.1.58 - 2022-10-26 =
     62* Enhancement - When hiding all shipping methods not free, make sure only activate feature if the at least one free shipping is not "local pickup".
     63
    6164= 3.1.57 - 2022-10-18 =
    6265* fix - When selecting the shipping method the value of shipping was not added to total.
  • shiptimize-for-woocommerce/trunk/shiptimize.php

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