Plugin Directory

Changeset 2633437


Ignore:
Timestamp:
11/22/2021 10:44:52 AM (4 years ago)
Author:
oife
Message:

Updated Get rates

Location:
shiip/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shiip/trunk/README.txt

    r2594925 r2633437  
    55Requires at least: 4.7
    66Tested up to: 5.8
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    1515The only shipping app you will ever need for your business. You can “Shiip” with top logistics companies at half their standard rates
    1616
    17 A few notes about the sections above:
    18 
    19 *   "Contributors" is a comma separated list of wp.org/wp-plugins.org usernames
    20 *   "Tags" is a comma separated list of tags that apply to the plugin
    21 *   "Requires at least" is the lowest version that the plugin will work on
    22 *   "Tested up to" is the highest version that you've *successfully used to test the plugin*. Note that it might work on
    23 higher versions... this is just the highest one you've verified.
    24 *   Stable tag should indicate the Subversion "tag" of the latest stable version, or "trunk," if you use `/trunk/` for
    25 stable.
    26 
    27     Note that the `readme.txt` of the stable tag is the one that is considered the defining one for the plugin, so
    28 if the `/trunk/readme.txt` file says that the stable tag is `4.3`, then it is `/tags/4.3/readme.txt` that'll be used
    29 for displaying information about the plugin.  In this situation, the only thing considered from the trunk `readme.txt`
    30 is the stable tag pointer.  Thus, if you develop in trunk, you can update the trunk `readme.txt` to reflect changes in
    31 your in-development version, without having that information incorrectly disclosed about the current stable version
    32 that lacks those changes -- as long as the trunk's `readme.txt` points to the correct stable tag.
    33 
    34     If no stable tag is provided, it is assumed that trunk is stable, but you should specify "trunk" if that's where
    35 you put the stable version, in order to eliminate any doubt.
    3617
    3718== Installation ==
     
    6445* First Release
    6546
     47= 1.0.1 =
     48* Updated get rates function
     49
     50
    6651== Upgrade Notice ==
    6752
  • shiip/trunk/includes/shiipFunctions.php

    r2594925 r2633437  
    7575    $item_name = "";
    7676    foreach ( WC()->cart->get_cart() as $cart_item ) {
     77
    7778        $item_name = $cart_item['data']->get_title();
    7879        $quantity = $cart_item['quantity'];
    7980        $price = $cart_item['data']->get_price();
     81
     82       
    8083       
    8184    }
     85
     86    //i need to get the weight of all the items then add them together
     87    $floatWeight = WC()->cart->get_cart_contents_weight();
    8288   
    8389   
     
    143149    parcels[date]='.date("Y-m-d", strtotime("+1 day")).' 09:00&
    144150    parcels[height]=1&
    145     parcels[weight]=1&
     151    parcels[weight]='.$floatWeight.'&
    146152    parcels[distance_unit]=cm&
    147153    parcels[mass_unit]=kg&
     
    149155    items[0][name]='.$item_name.'&
    150156    items[0][quantity]=1&
    151     items[0][weight]=1&
     157    items[0][weight]='.$floatWeight.'&
    152158    items[0][description]='.$item_name.'&
    153159    items[0][category]=other-categories&
     
    155161    items[0][amount]='.$itemCost.'&
    156162    items[0][image]=undefined&
    157     weight=1';
     163    weight='.$floatWeight;
    158164   
    159165   
     
    163169    $url = str_replace(array("\r", "\n"), '', $url);
    164170   
    165     error_log($url);
     171    // error_log($url);
    166172   
    167173   
     
    170176    $body = wp_remote_retrieve_body( $response );
    171177   
    172     error_log("resp22.".$body);
     178    // error_log("resp22.".$body);
    173179
    174180    if ( is_wp_error( $response ) ) {
  • shiip/trunk/shiip.php

    r2594925 r2633437  
    1717* Plugin URI:        https://app.goshiip.com/
    1818* Description:       The only shipping app you will ever need for your business. You can “Shiip” with top logistics companies at half their standard rates
    19 * Version:           1.0.0
    20 * Author:            IderaOs
     19* Version:           1.0.1
     20* Author:            Shiip LLC
    2121* Author URI:        https://goshiip.com/
    2222* License:           GPL-2.0+
     
    4040* Rename this for your plugin and update it as you release new versions.
    4141*/
    42 define( 'SHIIP_VERSION', '1.0.0' );
     42define( 'SHIIP_VERSION', '1.0.1' );
    4343
    4444
     
    171171   
    172172}
     173
     174
    173175
    174176function shiip_bookshipment($order_id){
     
    825827                            $methods['shiipDHL'] = 'WC_ShiipMethod_DHL';
    826828                            $methods['shiipFEDEX'] = 'WC_ShiipMethod_FEDEX';
    827                             $methods['shiipGOKADA'] = 'WC_ShiipMethod_GOKADA';
     829                            //  remove gokada for now $methods['shiipGOKADA'] = 'WC_ShiipMethod_GOKADA';
    828830                   
    829831                           
Note: See TracChangeset for help on using the changeset viewer.