Version Notes
- Corrections with some kind of Products
Download this release
Release Info
Developer | Intelipost |
Extension | Intelipost |
Version | 1.1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.0.1
app/code/local/Intelipost/Shipping/Model/Carrier/Intelipost.php
CHANGED
@@ -38,7 +38,8 @@ class Intelipost_Shipping_Model_Carrier_Intelipost
|
|
38 |
$destinationZipCode = preg_replace('/[^0-9]/', '', $destinationZipCode);
|
39 |
|
40 |
$weight = $request->getPackageWeight();
|
41 |
-
|
|
|
42 |
if ($weight <= 0) {
|
43 |
$this->_throwError('weightzeroerror', 'Weight zero', __LINE__);
|
44 |
}
|
@@ -88,22 +89,24 @@ class Intelipost_Shipping_Model_Carrier_Intelipost
|
|
88 |
if (!$this->isDimensionSet($product)) {
|
89 |
//Mage::log('Product does not have dimensions set', null, 'intelipost.log', true);
|
90 |
|
91 |
-
|
92 |
$volume->height = $this->getConfigData('altura_padrao'); // putting default config values here if product height is empty
|
93 |
$volume->length = $this->getConfigData('comprimento_padrao'); // putting default config values here if product length is empty
|
94 |
|
95 |
-
|
96 |
-
|
97 |
//return false;
|
98 |
-
|
99 |
} else {
|
100 |
$volume->width = $product->getVolumeLargura();
|
101 |
$volume->height = $product->getVolumeAltura();
|
102 |
$volume->length = $product->getVolumeComprimento();
|
103 |
}
|
104 |
|
105 |
-
|
106 |
-
|
|
|
|
|
107 |
$volume->cost_of_goods = number_format(floatval($item->getPrice()), 2, ',', '') * $item->getQty();
|
108 |
|
109 |
array_push($quote->volumes, $volume);
|
@@ -325,6 +328,8 @@ class Intelipost_Shipping_Model_Carrier_Intelipost
|
|
325 |
|
326 |
curl_close($s);
|
327 |
|
|
|
|
|
328 |
return $response;
|
329 |
}
|
330 |
|
38 |
$destinationZipCode = preg_replace('/[^0-9]/', '', $destinationZipCode);
|
39 |
|
40 |
$weight = $request->getPackageWeight();
|
41 |
+
|
42 |
+
Mage::log('WEIGHT: '.$weight, null, 'intelipost.log', true);
|
43 |
if ($weight <= 0) {
|
44 |
$this->_throwError('weightzeroerror', 'Weight zero', __LINE__);
|
45 |
}
|
89 |
if (!$this->isDimensionSet($product)) {
|
90 |
//Mage::log('Product does not have dimensions set', null, 'intelipost.log', true);
|
91 |
|
92 |
+
$volume->width = $this->getConfigData('largura_padrao'); // putting default config values here if product width is empty
|
93 |
$volume->height = $this->getConfigData('altura_padrao'); // putting default config values here if product height is empty
|
94 |
$volume->length = $this->getConfigData('comprimento_padrao'); // putting default config values here if product length is empty
|
95 |
|
96 |
+
// if ($dimension_check) {
|
97 |
+
// $this->notifyProductsDimension($item_list);
|
98 |
//return false;
|
99 |
+
// }
|
100 |
} else {
|
101 |
$volume->width = $product->getVolumeLargura();
|
102 |
$volume->height = $product->getVolumeAltura();
|
103 |
$volume->length = $product->getVolumeComprimento();
|
104 |
}
|
105 |
|
106 |
+
//$volume->weight = number_format(floatval($item->getWeight()), 2, ',', '') * $item->getQty();
|
107 |
+
//$total_weight += number_format(floatval($item->getWeight()), 2, ',', '') * $item->getQty();
|
108 |
+
|
109 |
+
$volume->weight = $weight;
|
110 |
$volume->cost_of_goods = number_format(floatval($item->getPrice()), 2, ',', '') * $item->getQty();
|
111 |
|
112 |
array_push($quote->volumes, $volume);
|
328 |
|
329 |
curl_close($s);
|
330 |
|
331 |
+
// Mage::log('Request: '.$request, null, 'intelipost.log', true);
|
332 |
+
// Mage::log('Response: '.$response, null, 'intelipost.log', true);
|
333 |
return $response;
|
334 |
}
|
335 |
|
app/code/local/Intelipost/Shipping/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Intelipost_Shipping>
|
6 |
-
<version>
|
7 |
</Intelipost_Shipping>
|
8 |
</modules>
|
9 |
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Intelipost_Shipping>
|
6 |
+
<version>1.1.0.1</version>
|
7 |
</Intelipost_Shipping>
|
8 |
</modules>
|
9 |
|
package.xml
CHANGED
@@ -1,22 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelipost</name>
|
4 |
-
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License Version 2 (GPLv2)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Intelipost</summary>
|
10 |
<description>Extensão para utilizar o serviço de cotação da intelipost.com.br</description>
|
11 |
-
<notes>-
|
12 |
-
|
13 |
-
-
|
14 |
-
|
15 |
-
|
16 |
-
<authors><author><name>Intelipost</name><user>intelipost</user><email>it@intelipost.com.br</email></author></authors>
|
17 |
-
<date>2014-06-23</date>
|
18 |
-
<time>22:10:54</time>
|
19 |
-
<contents><target name="magelocal"><dir name="Intelipost"><dir name="Shipping"><dir name="Block"><file name="Import.php" hash="e0d0f1df8063c8e29e81c6ad7838f049"/></dir><dir name="Helper"><file name="Data.php" hash="7523e254d75d8ec6413164bdfc9484ce"/></dir><dir name="Model"><dir name="Carrier"><file name="Category.php" hash="9e3f8a5013f819dc65c9b84848182c8a"/><file name="Intelipost.php" hash="875efdb4ae79d128fd9a8a4dc5af4396"/></dir><dir name="Config"><file name="Apikey.php" hash="dc718c613cae83f0a7fc7f7d3a9ee4fa"/><file name="Apiurl.php" hash="4517960e32a1f0a92a84ce96ff40c6dd"/><file name="Password.php" hash="a3b0f867850520e637ed6d1561047093"/><file name="Token.php" hash="ae2ef4b4527f06c17061d6c984fa0a28"/><file name="Useraccount.php" hash="89a67edacda5169a4f58590e6ac24006"/></dir><dir name="Resource"><file name="EndCustomer.php" hash="a2109babc9b4fc994ccc8bbc3890efe5"/><file name="Invoice.php" hash="f1f792ed019964038769f4950f8c49e3"/><file name="Quote.php" hash="74f2826810d61c8d584ad02a8c12e82d"/><file name="Setup.php" hash="8f10c3277be3454dbf61abb1fb0b06f4"/><file name="ShipmentOrder.php" hash="83c0a94ecd8c9f913a89b3c81798f653"/><file name="Volume.php" hash="0fc8222182fde7557ac85166855a0c4d"/></dir></dir><dir name="etc"><file name="config.xml" hash="68df33ea9de1659f5b2ffea89ea27bc3"/><file name="system.xml" hash="7a06e44375bac2a21bfc6efa9eb617c5"/></dir><dir name="sql"><dir name="intelipost_setup"><file name="mysql4-install-0.0.1.php" hash="7cbddb7bad3e35cba43d14d8e2308900"/></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="pt_BR"><file name="Intelipost_Shipping.csv" hash="686737bb3f684fc434bceeeb88ebaee9"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Intelipost_Shipping.xml" hash="285e60144ae15077910cb9200038adb9"/></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.3.0</min><max>5.5.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Intelipost</name>
|
4 |
+
<version>1.1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License Version 2 (GPLv2)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Intelipost</summary>
|
10 |
<description>Extensão para utilizar o serviço de cotação da intelipost.com.br</description>
|
11 |
+
<notes>- Corrections with some kind of Products</notes>
|
12 |
+
<authors><author><name>Intelipost</name><user>intelipost</user><email>ti@intelipost.com.br</email></author></authors>
|
13 |
+
<date>2014-08-06</date>
|
14 |
+
<time>18:55:24</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Intelipost"><dir name="Shipping"><dir name="Block"><file name="Import.php" hash="e0d0f1df8063c8e29e81c6ad7838f049"/></dir><dir name="Helper"><file name="Data.php" hash="7523e254d75d8ec6413164bdfc9484ce"/></dir><dir name="Model"><dir name="Carrier"><file name="Category.php" hash="9e3f8a5013f819dc65c9b84848182c8a"/><file name="Intelipost.php" hash="0c5420405956778fc4c83d513fb2f2df"/></dir><dir name="Config"><file name="Apikey.php" hash="dc718c613cae83f0a7fc7f7d3a9ee4fa"/><file name="Apiurl.php" hash="4517960e32a1f0a92a84ce96ff40c6dd"/><file name="Password.php" hash="a3b0f867850520e637ed6d1561047093"/><file name="Token.php" hash="ae2ef4b4527f06c17061d6c984fa0a28"/><file name="Useraccount.php" hash="89a67edacda5169a4f58590e6ac24006"/></dir><dir name="Resource"><file name="EndCustomer.php" hash="a2109babc9b4fc994ccc8bbc3890efe5"/><file name="Invoice.php" hash="f1f792ed019964038769f4950f8c49e3"/><file name="Quote.php" hash="74f2826810d61c8d584ad02a8c12e82d"/><file name="Setup.php" hash="8f10c3277be3454dbf61abb1fb0b06f4"/><file name="ShipmentOrder.php" hash="83c0a94ecd8c9f913a89b3c81798f653"/><file name="Volume.php" hash="0fc8222182fde7557ac85166855a0c4d"/></dir></dir><dir name="etc"><file name="config.xml" hash="79e179f281f5a0347e34b944784725d2"/><file name="system.xml" hash="7a06e44375bac2a21bfc6efa9eb617c5"/></dir><dir name="sql"><dir name="intelipost_setup"><file name="mysql4-install-0.0.1.php" hash="7cbddb7bad3e35cba43d14d8e2308900"/></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="pt_BR"><file name="Intelipost_Shipping.csv" hash="686737bb3f684fc434bceeeb88ebaee9"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Intelipost_Shipping.xml" hash="285e60144ae15077910cb9200038adb9"/></dir></target></contents>
|
|
|
|
|
|
|
|
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>5.5.0</max></php></required></dependencies>
|
18 |
</package>
|