Mage_Shipwire - Version 1.3.3

Version Notes

Shipwire Shipping Rating API integrated

1.2.4 Added multiple Intl support

1.2.2
- Fixed issue with encoding of rate request

1.2.1
- Fixed issue with ship-to postcode not passing

1.2.5
- Fixed PHP coding error

1.3.0
- Added multiple currency support
- Fixed problem some installs had with Invoicing

1.3.1
- Fixed serialization error on some server installs

1.3.2
- Removed Core dependency

1.3.3
- Performance tuning when missing key address into needed to rate orders, like no country

Download this release

Release Info

Developer Shipwire
Extension Mage_Shipwire
Version 1.3.3
Comparing to
See all releases


Code changes from version 1.3.2 to 1.3.3

app/code/local/Shipwire/Shipping/Model/Carrier/ShippingMethod.php CHANGED
@@ -3,13 +3,13 @@
3
  /**
4
  * Shipwire real-time rating method for Magento
5
  *
6
- * Copyright (C) 2012, Shipwire Inc.
7
  */
8
  class Shipwire_Shipping_Model_Carrier_ShippingMethod extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface
9
  {
10
  protected $_code = 'shipwire_shipping';
11
 
12
- protected $_version = 'Magento Rating Module 1.3.2';
13
 
14
  protected $_apiEndpoint = 'https://api.shipwire.com/exec/RateServices.php';
15
 
@@ -27,6 +27,18 @@ class Shipwire_Shipping_Model_Carrier_ShippingMethod extends Mage_Shipping_Model
27
  return FALSE;
28
  }
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  $response = $this->_submitRequest($request);
31
 
32
  if (empty($response)) {
@@ -270,4 +282,4 @@ XML;
270
 
271
  return $itemXml;
272
  }
273
- }
3
  /**
4
  * Shipwire real-time rating method for Magento
5
  *
6
+ * Copyright (C) 2013, Shipwire Inc.
7
  */
8
  class Shipwire_Shipping_Model_Carrier_ShippingMethod extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface
9
  {
10
  protected $_code = 'shipwire_shipping';
11
 
12
+ protected $_version = 'Magento Rating Module 1.3.3';
13
 
14
  protected $_apiEndpoint = 'https://api.shipwire.com/exec/RateServices.php';
15
 
27
  return FALSE;
28
  }
29
 
30
+ /*
31
+ * Ensure we have a meaningful amount of information to rate with
32
+ */
33
+ $shipToCountry = $request->getDestCountryId();
34
+ if (empty($shipToCountry)) {
35
+ return FALSE;
36
+ }
37
+ $requestItems = $request->getAllItems();
38
+ if (count($requestItems) == 0) {
39
+ return FALSE;
40
+ }
41
+
42
  $response = $this->_submitRequest($request);
43
 
44
  if (empty($response)) {
282
 
283
  return $itemXml;
284
  }
285
+ }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Shipwire</name>
4
- <version>1.3.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -29,11 +29,14 @@
29
  - Fixed serialization error on some server installs&#xD;
30
  &#xD;
31
  1.3.2&#xD;
32
- - Removed Core dependency</notes>
 
 
 
33
  <authors><author><name>Shipwire</name><user>Shipwire</user><email>magento-dev@shipwire.com</email></author></authors>
34
- <date>2013-01-04</date>
35
- <time>22:21:22</time>
36
- <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Shipwire_Shipping.xml" hash="22ed62daa00faeb3219b05484c5a02a4"/></dir></dir></dir></target><target name="magelocal"><dir name="Shipwire"><dir name="Shipping"><dir name="Model"><dir name="Carrier"><file name="Service.php" hash="1499ae366ebd44d49356230248fea53e"/><file name="ShippingMethod.php" hash="c0e8d5d1e72e13fa18074dda25965cb9"/></dir></dir><dir name="etc"><file name="config.xml" hash="05bd86d2b0d072417c0bcefdd2c08399"/><file name="system.xml" hash="4f787402d22f2d6330225f291f3bf8e2"/></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
39
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Shipwire</name>
4
+ <version>1.3.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
29
  - Fixed serialization error on some server installs&#xD;
30
  &#xD;
31
  1.3.2&#xD;
32
+ - Removed Core dependency&#xD;
33
+ &#xD;
34
+ 1.3.3&#xD;
35
+ - Performance tuning when missing key address into needed to rate orders, like no country</notes>
36
  <authors><author><name>Shipwire</name><user>Shipwire</user><email>magento-dev@shipwire.com</email></author></authors>
37
+ <date>2013-01-07</date>
38
+ <time>20:35:30</time>
39
+ <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Shipwire_Shipping.xml" hash="22ed62daa00faeb3219b05484c5a02a4"/></dir></dir></dir></target><target name="magelocal"><dir name="Shipwire"><dir name="Shipping"><dir name="Model"><dir name="Carrier"><file name="Service.php" hash="1499ae366ebd44d49356230248fea53e"/><file name="ShippingMethod.php" hash="cca2a70767bdfdca18be00aed5efe79b"/></dir></dir><dir name="etc"><file name="config.xml" hash="05bd86d2b0d072417c0bcefdd2c08399"/><file name="system.xml" hash="4f787402d22f2d6330225f291f3bf8e2"/></dir></dir></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
42
  </package>