Shipping_Nacex - Version 1.0.10

Version Notes

* Arregla el error de valor de envio 0 cuando los productos no tenian peso

CHANGES:
->U app/code/community/Nacex/Shipping/Model/Standard/Data.php

Download this release

Release Info

Developer Magento Core Team
Extension Shipping_Nacex
Version 1.0.10
Comparing to
See all releases


Code changes from version 1.0.9 to 1.0.10

app/code/community/Nacex/Shipping/Model/Standard/Data.php CHANGED
@@ -85,8 +85,9 @@ class Nacex_Shipping_Model_Standard_Data {
85
  $code = (isset($params['code'])) ? $params['code'] : '';
86
  $servicio = $params['servicio'];
87
  $sweight = $params['sweight'];
88
- if(!$servicio || !$sweight)
89
- return false;
 
90
  $params = array('price'=>0);
91
  switch($servicio){
92
  case 'PROVINCIAL':
@@ -162,7 +163,10 @@ class Nacex_Shipping_Model_Standard_Data {
162
  $params['price'] += (ceil($peso / 5000)) * 1.99;
163
  }
164
  break;
165
-
 
 
 
166
  }
167
  // Agrega el iva mas un Euro
168
  $params['price'] = ($params['price'] * 1.16) + 1;
85
  $code = (isset($params['code'])) ? $params['code'] : '';
86
  $servicio = $params['servicio'];
87
  $sweight = $params['sweight'];
88
+ if(!$servicio) Mage::log(Mage::helper('nacex')->__('Servicio no disponible, alerta en linea: #%s de "%s"',__LINE__,__FILE__),Zend_Log::ALERT);
89
+ if(!$sweight) Mage::log(Mage::helper('nacex')->__('Peso no disponible. Se tomara el importe minimo del servicio, para una mayor precision por favor cargue el peso de los productos'),Zend_Log::ALERT);
90
+
91
  $params = array('price'=>0);
92
  switch($servicio){
93
  case 'PROVINCIAL':
163
  $params['price'] += (ceil($peso / 5000)) * 1.99;
164
  }
165
  break;
166
+ default:
167
+ $params['shipping_method'] = 'BAG';
168
+ $params['price'] = 6.01;
169
+ break;
170
  }
171
  // Agrega el iva mas un Euro
172
  $params['price'] = ($params['price'] * 1.16) + 1;
app/code/community/Nacex/Shipping/etc/config.xml CHANGED
@@ -64,7 +64,7 @@
64
  <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
65
  </spainpost>
66
  <naxgab>
67
- <active>1</active>
68
  <model>nacex_shipping_model_carrier_naxgab</model>
69
  <title>Nacex ida y vuelta</title>
70
  <msg></msg>
64
  <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
65
  </spainpost>
66
  <naxgab>
67
+ <active>0</active>
68
  <model>nacex_shipping_model_carrier_naxgab</model>
69
  <title>Nacex ida y vuelta</title>
70
  <msg></msg>
package.xml CHANGED
@@ -1,24 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shipping_Nacex</name>
4
- <version>1.0.9</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>
8
  <extends/>
9
  <summary>Metodo de envio para nacex</summary>
10
  <description>Metodo de envio para nacex</description>
11
- <notes>* Repara errores de la version anterior
12
 
13
  &lt;b&gt;CHANGES:&lt;/b&gt;
14
- -&gt;A app/code/community/Nacex/Shipping/Model/Carrier/Naxjow.php
15
- -&gt;D app/code/community/Nacex/Shipping/sql/shipping_setup/mysql4-upgrade-1.0.8.php
16
- -&gt;U app/code/community/Nacex/Shipping/etc/system.xml
17
- -&gt;U app/code/community/Nacex/Shipping/etc/config.xml</notes>
18
  <authors><author><name>Manuel</name><user>auto-converted</user><email>manuelcanepa@gmail.com</email></author><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author></authors>
19
- <date>2008-12-17</date>
20
- <time>15:55:43</time>
21
- <contents><target name="mageetc"><dir name="modules"><file name="Nacex_Shipping.xml" hash="74bdf7f9847df2280af2666d8123d95b"/></dir></target><target name="magecommunity"><dir name="Nacex"><dir name="Shipping"><dir name="etc"><file name="config.xml" hash="f98f323bb97f5225e491d7e8957394d0"/><file name="system.xml" hash="3471e2c65a86e45f9ebad5cbf094777e"/></dir><dir name="Helper"><file name="Data.php" hash="8b06d6514b9924564f9078dd15cedc00"/></dir><dir name="Model"><dir name="Carrier"><file name="Naxgab.php" hash="6453eda945279aef44dc2ce120e64d1c"/><file name="Naxjow.php" hash="4237353036ecd090c6d31bc427280859"/></dir><dir name="Standard"><file name="Data.php" hash="8bd42f98a950fd104e9d24bce8fdef22"/><file name="Weightunits.php" hash="3222717edd1948d4a793f7136d5f1868"/></dir></dir><dir name="sql"><dir name="shipping_setup"><file name="mysql4-install-0.1.0.php" hash="d614fdc964125e1ff642933cc8014583"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shipping_Nacex</name>
4
+ <version>1.0.10</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>
8
  <extends/>
9
  <summary>Metodo de envio para nacex</summary>
10
  <description>Metodo de envio para nacex</description>
11
+ <notes>* Arregla el error de valor de envio 0 cuando los productos no tenian peso
12
 
13
  &lt;b&gt;CHANGES:&lt;/b&gt;
14
+ -&gt;U app/code/community/Nacex/Shipping/Model/Standard/Data.php</notes>
 
 
 
15
  <authors><author><name>Manuel</name><user>auto-converted</user><email>manuelcanepa@gmail.com</email></author><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author></authors>
16
+ <date>2008-12-18</date>
17
+ <time>08:59:37</time>
18
+ <contents><target name="mageetc"><dir name="modules"><file name="Nacex_Shipping.xml" hash="74bdf7f9847df2280af2666d8123d95b"/></dir></target><target name="magecommunity"><dir name="Nacex"><dir name="Shipping"><dir name="etc"><file name="config.xml" hash="2c1e78bb05b68f7fd8f2d249d6c5015b"/><file name="system.xml" hash="3471e2c65a86e45f9ebad5cbf094777e"/></dir><dir name="Helper"><file name="Data.php" hash="8b06d6514b9924564f9078dd15cedc00"/></dir><dir name="Model"><dir name="Carrier"><file name="Naxgab.php" hash="6453eda945279aef44dc2ce120e64d1c"/><file name="Naxjow.php" hash="4237353036ecd090c6d31bc427280859"/></dir><dir name="Standard"><file name="Data.php" hash="70da202f89cbd0f8ccb303bacbf38e43"/><file name="Weightunits.php" hash="3222717edd1948d4a793f7136d5f1868"/></dir></dir><dir name="sql"><dir name="shipping_setup"><file name="mysql4-install-0.1.0.php" hash="d614fdc964125e1ff642933cc8014583"/></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>