Plugin Directory

Changeset 2773641


Ignore:
Timestamp:
08/22/2022 06:36:43 PM (4 years ago)
Author:
shiptimizeplugins
Message:

some shops will use weight units smaller than grams

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

Legend:

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

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

    r2772699 r2773641  
    193193          'Type' => 4, // 1 - Gift, 2 - Documents, 3 - Sample , 4 - Other
    194194          'Value' => $item->get_subtotal(),
    195           'Weight' => $item_weight
     195          'Weight' => floor($item_weight)
    196196        );
    197197
     
    202202
    203203    if( $weight > 0 ) {
    204       $this->Weight  = $weight;  // The api receives grams
     204      $this->Weight  = floor($weight);  // The api receives grams
    205205    }
    206206
  • shiptimize-for-woocommerce/trunk/readme.txt

    r2772699 r2773641  
    5858
    5959== Changelog ==
     60= 3.1.51 - 2022-08-19 =
     61* enhancement - Always round weights down, some shops will define weights with decimals even in grams. The smaller unit of weight which the API accepts is grams.
     62
     63= 3.1.50 - 2022-08-19 =
     64* enhancement -  Store tracking id that comes with the label response, that way if the shop update from app fails because of a broken route, it's already there.
    6065
    6166= 3.1.49 - 2022-07-16 =
  • shiptimize-for-woocommerce/trunk/shiptimize.php

    r2772699 r2773641  
    33 * Plugin Name: Shiptimize for WooCommerce
    44 * Description: Shiptimize for WooCommerce 
    5  * Version: 3.1.50
     5 * Version: 3.1.51
    66 * Author: Shiptimize
    77 * Author URI: https://shiptimize.me
Note: See TracChangeset for help on using the changeset viewer.