LithiumSoftware_Akhilleus - Version 1.0.3

Version Notes

Bugfix:
- Weight - weightType == 'gr'

Download this release

Release Info

Developer Frenet
Extension LithiumSoftware_Akhilleus
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/LithiumSoftware/Akhilleus/Model/Carrier/Akhilleus.php CHANGED
@@ -57,7 +57,7 @@ class LithiumSoftware_Akhilleus_Model_Carrier_Akhilleus
57
  // Call Webservices
58
  $wsReturn = $this->_getWebServicesQuoteReturn($request);
59
 
60
- if ($wsReturn !== false) {
61
 
62
  $this->_log("Qtd serviços: " . count($wsReturn->GetShippingQuoteResult->ShippingSevicesArray->ShippingSevices));
63
 
@@ -154,7 +154,7 @@ class LithiumSoftware_Akhilleus_Model_Carrier_Akhilleus
154
  $productObj = Mage::getModel('catalog/product')->load($product_id);
155
 
156
  $shippingItem = new stdClass();
157
- $shippingItem->Weight = $productObj->getWeight() * $item->getQty();
158
  if ($this->getConfigFlag('use_default'))
159
  {
160
  $shippingItem->Length = $this->getConfigData('default_length'); //16
57
  // Call Webservices
58
  $wsReturn = $this->_getWebServicesQuoteReturn($request);
59
 
60
+ if ($wsReturn !== false && isset($wsReturn->GetShippingQuoteResult) && isset($wsReturn->GetShippingQuoteResult->ShippingSevicesArray)) {
61
 
62
  $this->_log("Qtd serviços: " . count($wsReturn->GetShippingQuoteResult->ShippingSevicesArray->ShippingSevices));
63
 
154
  $productObj = Mage::getModel('catalog/product')->load($product_id);
155
 
156
  $shippingItem = new stdClass();
157
+ $shippingItem->Weight = $this->_fixWeight($productObj->getWeight()) * $item->getQty();
158
  if ($this->getConfigFlag('use_default'))
159
  {
160
  $shippingItem->Length = $this->getConfigData('default_length'); //16
app/code/community/LithiumSoftware/Akhilleus/etc/config.xml CHANGED
@@ -14,7 +14,7 @@
14
  <config>
15
  <modules>
16
  <LithiumSoftware_Akhilleus>
17
- <version>1.0.2</version>
18
  <depends>
19
  <Mage_Shipping/>
20
  </depends>
14
  <config>
15
  <modules>
16
  <LithiumSoftware_Akhilleus>
17
+ <version>1.0.3</version>
18
  <depends>
19
  <Mage_Shipping/>
20
  </depends>
package.xml CHANGED
@@ -1,23 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LithiumSoftware_Akhilleus</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Frenet allows merchants to display freight options from multiple carriers, including brazilian Correios.</summary>
10
  <description>The Frenet freight gateway is able to integrate and process tables of freight carriers and brazilian Correios. The freight calculation for the brazilian Correios services is done on-line (via Correios webservice) or in case of unavailability, uses database in the cloud highly available and regularly updated automatically, with the values of quotations. &#xD;
11
- It provides to the store owners, major carriers in Brazil to transport large volumes as well as JadLog, ASAP Log, TNT, Direct, Total Express, JAMEF among others.</description>
12
- <notes>Bug Fix:&#xD;
13
- - Multiple volumes&#xD;
14
- &#xD;
15
- Features:&#xD;
16
- - Tracking</notes>
17
  <authors><author><name>Frenet</name><user>MAG002970201</user><email>contato@frenet.com.br</email></author></authors>
18
- <date>2016-03-11</date>
19
- <time>19:30:43</time>
20
- <contents><target name="magecommunity"><dir name="LithiumSoftware"><dir name="Akhilleus"><dir name="Helper"><file name="Data.php" hash="fae99f78422836771d71873f253e8471"/></dir><dir name="Model"><dir name="Carrier"><file name="Akhilleus.php" hash="6ec067e8919777395a6b2f5634f01649"/></dir><file name="Observer.php" hash="927d49b0b02ecfe36aa708a7f186422a"/><dir name="Source"><file name="WeightType.php" hash="90bd2253381d2c2094aa0183e3129eb7"/></dir></dir><dir name="etc"><file name="config.xml" hash="ab30a6169d9c8adbc8c9581d122745d9"/><file name="system.xml" hash="162638242c34a75a65091ec10b971741"/></dir><dir name="sql"><dir name="akhilleus_setup"><file name="install-1.0.0.php" hash="17104e4cf30a39bd0980837310ae940a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LithiumSoftware_Akhilleus.xml" hash="ad180127bc24251a43a18818f2a30c21"/></dir></target></contents>
21
  <compatible/>
22
- <dependencies><required><php><min>5.2.1</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LithiumSoftware_Akhilleus</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Frenet allows merchants to display freight options from multiple carriers, including brazilian Correios.</summary>
10
  <description>The Frenet freight gateway is able to integrate and process tables of freight carriers and brazilian Correios. The freight calculation for the brazilian Correios services is done on-line (via Correios webservice) or in case of unavailability, uses database in the cloud highly available and regularly updated automatically, with the values of quotations. &#xD;
11
+ It provides to the store owners, major carriers in Brazil to transport large volumes as well as JadLog, TNT, Direct, Total Express, JAMEF among others.</description>
12
+ <notes>Bugfix:&#xD;
13
+ - Weight - weightType == 'gr'&#xD;
14
+ </notes>
 
 
15
  <authors><author><name>Frenet</name><user>MAG002970201</user><email>contato@frenet.com.br</email></author></authors>
16
+ <date>2016-04-04</date>
17
+ <time>22:04:51</time>
18
+ <contents><target name="magecommunity"><dir name="LithiumSoftware"><dir name="Akhilleus"><dir name="Helper"><file name="Data.php" hash="fae99f78422836771d71873f253e8471"/></dir><dir name="Model"><dir name="Carrier"><file name="Akhilleus.php" hash="8aaf63e0c2dd7a9b458bfc053bd5e75a"/></dir><file name="Observer.php" hash="927d49b0b02ecfe36aa708a7f186422a"/><dir name="Source"><file name="WeightType.php" hash="90bd2253381d2c2094aa0183e3129eb7"/></dir></dir><dir name="etc"><file name="config.xml" hash="2dab27db22137030872ac99b7d79f8a7"/><file name="system.xml" hash="162638242c34a75a65091ec10b971741"/></dir><dir name="sql"><dir name="akhilleus_setup"><file name="install-1.0.0.php" hash="17104e4cf30a39bd0980837310ae940a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LithiumSoftware_Akhilleus.xml" hash="ad180127bc24251a43a18818f2a30c21"/></dir></target></contents>
19
  <compatible/>
20
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>