Changeset 2633437
- Timestamp:
- 11/22/2021 10:44:52 AM (4 years ago)
- Location:
- shiip/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
includes/shiipFunctions.php (modified) (6 diffs)
-
shiip.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shiip/trunk/README.txt
r2594925 r2633437 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 15 15 The only shipping app you will ever need for your business. You can “Shiip” with top logistics companies at half their standard rates 16 16 17 A few notes about the sections above:18 19 * "Contributors" is a comma separated list of wp.org/wp-plugins.org usernames20 * "Tags" is a comma separated list of tags that apply to the plugin21 * "Requires at least" is the lowest version that the plugin will work on22 * "Tested up to" is the highest version that you've *successfully used to test the plugin*. Note that it might work on23 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/` for25 stable.26 27 Note that the `readme.txt` of the stable tag is the one that is considered the defining one for the plugin, so28 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 used29 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 in31 your in-development version, without having that information incorrectly disclosed about the current stable version32 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 where35 you put the stable version, in order to eliminate any doubt.36 17 37 18 == Installation == … … 64 45 * First Release 65 46 47 = 1.0.1 = 48 * Updated get rates function 49 50 66 51 == Upgrade Notice == 67 52 -
shiip/trunk/includes/shiipFunctions.php
r2594925 r2633437 75 75 $item_name = ""; 76 76 foreach ( WC()->cart->get_cart() as $cart_item ) { 77 77 78 $item_name = $cart_item['data']->get_title(); 78 79 $quantity = $cart_item['quantity']; 79 80 $price = $cart_item['data']->get_price(); 81 82 80 83 81 84 } 85 86 //i need to get the weight of all the items then add them together 87 $floatWeight = WC()->cart->get_cart_contents_weight(); 82 88 83 89 … … 143 149 parcels[date]='.date("Y-m-d", strtotime("+1 day")).' 09:00& 144 150 parcels[height]=1& 145 parcels[weight]= 1&151 parcels[weight]='.$floatWeight.'& 146 152 parcels[distance_unit]=cm& 147 153 parcels[mass_unit]=kg& … … 149 155 items[0][name]='.$item_name.'& 150 156 items[0][quantity]=1& 151 items[0][weight]= 1&157 items[0][weight]='.$floatWeight.'& 152 158 items[0][description]='.$item_name.'& 153 159 items[0][category]=other-categories& … … 155 161 items[0][amount]='.$itemCost.'& 156 162 items[0][image]=undefined& 157 weight= 1';163 weight='.$floatWeight; 158 164 159 165 … … 163 169 $url = str_replace(array("\r", "\n"), '', $url); 164 170 165 error_log($url);171 // error_log($url); 166 172 167 173 … … 170 176 $body = wp_remote_retrieve_body( $response ); 171 177 172 error_log("resp22.".$body);178 // error_log("resp22.".$body); 173 179 174 180 if ( is_wp_error( $response ) ) { -
shiip/trunk/shiip.php
r2594925 r2633437 17 17 * Plugin URI: https://app.goshiip.com/ 18 18 * 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. 020 * Author: IderaOs19 * Version: 1.0.1 20 * Author: Shiip LLC 21 21 * Author URI: https://goshiip.com/ 22 22 * License: GPL-2.0+ … … 40 40 * Rename this for your plugin and update it as you release new versions. 41 41 */ 42 define( 'SHIIP_VERSION', '1.0. 0' );42 define( 'SHIIP_VERSION', '1.0.1' ); 43 43 44 44 … … 171 171 172 172 } 173 174 173 175 174 176 function shiip_bookshipment($order_id){ … … 825 827 $methods['shiipDHL'] = 'WC_ShiipMethod_DHL'; 826 828 $methods['shiipFEDEX'] = 'WC_ShiipMethod_FEDEX'; 827 $methods['shiipGOKADA'] = 'WC_ShiipMethod_GOKADA';829 // remove gokada for now $methods['shiipGOKADA'] = 'WC_ShiipMethod_GOKADA'; 828 830 829 831
Note: See TracChangeset
for help on using the changeset viewer.