Shipping_Nacex - Version 1.0.6

Version Notes

* Agrega la posibilidad de tomar un envio de ida y vuelta cobrando los dos.

CHANGES:
->A app/code/community/Nacex/Shipping/Model/Methods.php
->U app/code/community/Nacex/Shipping/etc/config.xml
->U app/code/community/Nacex/Shipping/etc/system.xml
->U app/code/community/Nacex/Shipping/Helper/Data.php
->U app/code/community/Nacex/Shipping/Model/Carrier/Spainpost.php
->U app/code/community/Nacex/Shipping/Model/Weightunits.php

Download this release

Release Info

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


Code changes from version 1.0.5 to 1.0.6

app/code/community/Nacex/Shipping/Helper/Data.php CHANGED
@@ -1,29 +1,4 @@
1
  <?php
2
- /**
3
- * Magento Nacex Shipping
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Nacex
16
- * @package Nacex_Shipping
17
- * @copyright
18
- * @author
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
-
22
- /**
23
- * Catalog data helper
24
- *
25
- */
26
- class Nacex_Shipping_Helper_Data extends Mage_Core_Helper_Abstract
27
- {
28
 
29
  }
1
  <?php
2
+ class Nacex_Shipping_Helper_Data extends Mage_Core_Helper_Abstract {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  }
app/code/community/Nacex/Shipping/Model/Carrier/Spainpost.php CHANGED
@@ -43,13 +43,23 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
43
  // Check if this method is active
44
  if (!$this->getConfigFlag('active')) {
45
  return false;
46
- }
47
 
48
  // Check if this method is even applicable (must ship from Spain)
49
  $origCountry = Mage::getStoreConfig('shipping/origin/country_id', $this->getStore());
 
50
 
51
  if ($origCountry != "ES") {
52
- return false;
 
 
 
 
 
 
 
 
 
53
  }
54
 
55
  //check if cart order value falls between the minimum and maximum order amounts required
@@ -57,11 +67,24 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
57
  $minorderval = (int)$this->getConfigData('min_order_value');
58
  $maxorderval = (int)$this->getConfigData('max_order_value');
59
  if($packagevalue <= $minorderval || (($maxorderval != '0') && $packagevalue >= $maxorderval)){
60
- return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  }
62
 
63
- $result = Mage::getModel('shipping/rate_result');
64
-
65
  // CODIGO POSTAL DE LA TIENDA
66
  $this->_frompcode = Mage::getStoreConfig('shipping/origin/postcode', $this->getStore());
67
  // CODIGO POSTAL DEL COMPRADOR
@@ -79,54 +102,47 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
79
  // en caso contrario no
80
  if($destCountry == "ES") {
81
  $this->setServicio();
82
-
83
- $old_price =$this->getPrecio();
84
- $price=($old_price * 1.16) + 1;
85
 
86
- $method = Mage::getModel('shipping/rate_result_method');
87
-
88
- $type = $this->getConfigData('type');
89
- $qty = $request->getPackageQty();
 
 
 
 
 
 
 
 
90
 
91
- $tot = ($qty * $price);
92
-
93
- if ($this->getConfigData('type') == 'O') { // by order
94
- $shippingPrice = $price;
95
- } elseif ($type == 'I') { // by item
96
- $shippingPrice = ($qty * $price);
97
- } else {
98
- $shippingPrice = false;
99
- }
100
 
101
- // set the handling fee type....
102
- $calculateHandlingFee = $this->getConfigData('handling_type');
103
- $handlingFee = $this->getConfigData('handling_fee');
104
- if ($this->getConfigData('handling_type') == 'F') {
105
- $shippingPrice += $this->getConfigData('handling_fee');
106
- } else {
107
- $handlingFee = ($shippingPrice * $this->getConfigData('handling_fee'))/100;
108
- $shippingPrice += $handlingFee;
 
109
  }
110
-
111
- /*
112
- $this->_comment .= "TIENDA: {$this->_frompcode}\n";
113
- $this->_comment .= "CLIENTE: {$this->_topcode}\n";
114
- $this->_comment .= "SERVICIO: {$this->_servicio}\n";
115
- $this->_comment .= "METODO: {$this->_shipping_method}\n";
116
- $this->_comment .= "PRECIO: {$old_price}\n";
117
- $this->_comment .= "UNIDAD DE PESO: {$sweightunit}\n";
118
- $this->_comment .= "PESO: {$this->_sweight}\n";
119
- */
120
-
121
- $method->setCarrier('spainpost');
122
- $method->setCarrierTitle($this->getConfigData('title'));
123
- $method->setMethod($this->_shipping_method);
124
- $method->setMethodTitle($this->getConfigData('title') . ": {$this->_shipping_method} <!--{$this->_comment}-->");
125
- $method->setPrice($shippingPrice);
126
- $method->setCost($shippingPrice);
127
- $result->append($method);
128
  } else {
129
- return false;
 
 
 
 
130
  }
131
  return $result;
132
  }
@@ -156,10 +172,19 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
156
  * @return array
157
  */
158
  public function getAllowedMethods() {
159
- return array('spainpost' => $this->getConfigData('name'));
 
 
 
 
 
 
 
 
160
  }
161
 
162
- public function getPrecio(){
 
163
  switch($this->_servicio){
164
  case 'PROVINCIAL':
165
  $this->_shipping_method = 'PACK';
@@ -236,6 +261,14 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
236
  break;
237
 
238
  }
 
 
 
 
 
 
 
 
239
  return $price;
240
  }
241
 
@@ -275,4 +308,26 @@ class Nacex_Shipping_Model_Carrier_Spainpost extends Mage_Shipping_Model_Carrier
275
  break;
276
  }
277
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  }
43
  // Check if this method is active
44
  if (!$this->getConfigFlag('active')) {
45
  return false;
46
+ }
47
 
48
  // Check if this method is even applicable (must ship from Spain)
49
  $origCountry = Mage::getStoreConfig('shipping/origin/country_id', $this->getStore());
50
+ $result = Mage::getModel('shipping/rate_result');
51
 
52
  if ($origCountry != "ES") {
53
+ if($this->getConfigData('showmethod')){
54
+ $error = Mage::getModel('shipping/rate_result_error');
55
+ $error->setCarrier('spainpost');
56
+ $error->setCarrierTitle($this->getConfigData('title'));
57
+ $error->setErrorMessage($this->getConfigData('specificerrmsg'));
58
+ $result->append($error);
59
+ return $result;
60
+ } else {
61
+ return false;
62
+ }
63
  }
64
 
65
  //check if cart order value falls between the minimum and maximum order amounts required
67
  $minorderval = (int)$this->getConfigData('min_order_value');
68
  $maxorderval = (int)$this->getConfigData('max_order_value');
69
  if($packagevalue <= $minorderval || (($maxorderval != '0') && $packagevalue >= $maxorderval)){
70
+ if($this->getConfigData('showmethod')){
71
+ $error = Mage::getModel('shipping/rate_result_error');
72
+ $error->setCarrier('spainpost');
73
+ $error->setCarrierTitle($this->getConfigData('title'));
74
+ $currency = Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);
75
+ $error->setErrorMessage(
76
+ Mage::helper('nacex')->__('Package value should be between %s and %s',
77
+ Mage::app()->getStore()->formatPrice($minorderval),
78
+ Mage::app()->getStore()->formatPrice($maxorderval)
79
+ )
80
+ );
81
+ $result->append($error);
82
+ return $result;
83
+ } else {
84
+ return false;
85
+ }
86
  }
87
 
 
 
88
  // CODIGO POSTAL DE LA TIENDA
89
  $this->_frompcode = Mage::getStoreConfig('shipping/origin/postcode', $this->getStore());
90
  // CODIGO POSTAL DEL COMPRADOR
102
  // en caso contrario no
103
  if($destCountry == "ES") {
104
  $this->setServicio();
105
+ $precioArr = $this->getAllowedMethods();
 
 
106
 
107
+ foreach ($precioArr as $key=>$method) {
108
+ /*
109
+ $this->_comment .= "TIENDA: {$this->_frompcode}\n";
110
+ $this->_comment .= "CLIENTE: {$this->_topcode}\n";
111
+ $this->_comment .= "SERVICIO: {$this->_servicio}\n";
112
+ $this->_comment .= "METODO: {$this->_shipping_method}\n";
113
+ $this->_comment .= "PRECIO: {$old_price}\n";
114
+ $this->_comment .= "UNIDAD DE PESO: {$sweightunit}\n";
115
+ $this->_comment .= "PESO: {$this->_sweight}\n";
116
+ <!--{$this->_comment}-->
117
+ */
118
+ $shippingPrice = $method['precio'];
119
 
120
+ // set the handling fee type....
121
+ $calculateHandlingFee = $this->getConfigData('handling_type');
122
+ $handlingFee = $this->getConfigData('handling_fee');
123
+ if ($this->getConfigData('handling_type') == 'F') {
124
+ $shippingPrice += $this->getConfigData('handling_fee');
125
+ } else {
126
+ $handlingFee = ($shippingPrice * $this->getConfigData('handling_fee'))/100;
127
+ $shippingPrice += $handlingFee;
128
+ }
129
 
130
+ $rate = Mage::getModel('shipping/rate_result_method');
131
+ $rate->setCarrier('spainpost');
132
+ $rate->setCarrierTitle($this->getConfigData('title'));
133
+ $rate->setMethod($key);
134
+ $method_arr = $method['titulo'];
135
+ $rate->setMethodTitle(Mage::helper('nacex')->__($method_arr));
136
+ $rate->setCost($method['precio']);
137
+ $rate->setPrice($shippingPrice);
138
+ $result->append($rate);
139
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  } else {
141
+ $error = Mage::getModel('shipping/rate_result_error');
142
+ $error->setCarrier('spainpost');
143
+ $error->setCarrierTitle($this->getConfigData('title'));
144
+ $error->setErrorMessage($this->getConfigData('specificerrmsg'));
145
+ $result->append($error);
146
  }
147
  return $result;
148
  }
172
  * @return array
173
  */
174
  public function getAllowedMethods() {
175
+ $allowed = explode(',', $this->getConfigData('allowed_methods'));
176
+ $arr = array();
177
+ foreach ($allowed as $k) {
178
+ $arr[$k] = array(
179
+ 'precio'=>$this->getPrecio($k),
180
+ 'titulo'=>"{$this->_shipping_method} - " . $this->getCode('method', $k)
181
+ );
182
+ }
183
+ return $arr;
184
  }
185
 
186
+ public function getPrecio($cod = null){
187
+ $price=0;
188
  switch($this->_servicio){
189
  case 'PROVINCIAL':
190
  $this->_shipping_method = 'PACK';
261
  break;
262
 
263
  }
264
+ // Agrega el iva mas un Euro
265
+ $price = ($price * 1.16) + 1;
266
+ switch($cod){
267
+ case 'NAXGAB':
268
+ // En caso de ida y vuelta duplica el valor
269
+ $price *= 2;
270
+ break;
271
+ }
272
  return $price;
273
  }
274
 
308
  break;
309
  }
310
  }
311
+
312
+ public function getCode($type, $code='') {
313
+ $codes = array(
314
+ 'method'=>array(
315
+ 'NAXJOW' => Mage::helper('nacex')->__('Nacex: Solo Ida'),
316
+ 'NAXGAB' => Mage::helper('nacex')->__('Nacex: Ida y Vuelta')
317
+ ),
318
+ );
319
+
320
+ if (!isset($codes[$type])) {
321
+ return false;
322
+ } elseif (''===$code) {
323
+ return $codes[$type];
324
+ }
325
+
326
+ if (!isset($codes[$type][$code])) {
327
+ return false;
328
+ } else {
329
+ return $codes[$type][$code];
330
+ }
331
+ }
332
+
333
  }
app/code/community/Nacex/Shipping/Model/Methods.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Nacex_Shipping_Model_Methods {
3
+ public function toOptionArray() {
4
+ return array(
5
+ array('value'=>'NAXJOW', 'label'=>Mage::helper('nacex')->__('Nacex: Solo Ida')),
6
+ array('value'=>'NAXGAB', 'label'=>Mage::helper('nacex')->__('Nacex: Ida y Vuelta')),
7
+ );
8
+ }
9
+ }
app/code/community/Nacex/Shipping/Model/Weightunits.php CHANGED
@@ -21,8 +21,8 @@
21
  class Nacex_Shipping_Model_Weightunits {
22
  public function toOptionArray() {
23
  return array(
24
- array('value'=>1, 'label'=>Mage::helper('adminhtml')->__('Gramos')),
25
- array('value'=>1000, 'label'=>Mage::helper('adminhtml')->__('Kilogramos')),
26
  );
27
  }
28
  }
21
  class Nacex_Shipping_Model_Weightunits {
22
  public function toOptionArray() {
23
  return array(
24
+ array('value'=>1, 'label'=>Mage::helper('nacex')->__('Gramos')),
25
+ array('value'=>1000, 'label'=>Mage::helper('nacex')->__('Kilogramos')),
26
  );
27
  }
28
  }
app/code/community/Nacex/Shipping/etc/config.xml CHANGED
@@ -17,6 +17,11 @@
17
  <class>Nacex_Shipping_Model</class>
18
  </nacex>
19
  </models>
 
 
 
 
 
20
  <resources>
21
  <nxshipping_setup>
22
  <setup>
@@ -48,7 +53,6 @@
48
  <active>1</active>
49
  <model>nacex_shipping_model_carrier_spainpost</model>
50
  <name>Nacex</name>
51
- <type>O</type>
52
  <title>Nacex</title>
53
  <min_order_value>0</min_order_value>
54
  <max_order_value>0</max_order_value>
17
  <class>Nacex_Shipping_Model</class>
18
  </nacex>
19
  </models>
20
+ <helpers>
21
+ <nacex>
22
+ <class>Nacex_Shipping_Helper</class>
23
+ </nacex>
24
+ </helpers>
25
  <resources>
26
  <nxshipping_setup>
27
  <setup>
53
  <active>1</active>
54
  <model>nacex_shipping_model_carrier_spainpost</model>
55
  <name>Nacex</name>
 
56
  <title>Nacex</title>
57
  <min_order_value>0</min_order_value>
58
  <max_order_value>0</max_order_value>
app/code/community/Nacex/Shipping/etc/system.xml CHANGED
@@ -1,100 +1,109 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <sections>
4
- <carriers>
5
- <groups>
6
- <spainpost translate="label" module="shipping">
7
- <label>Nacex</label>
8
- <frontend_type>text</frontend_type>
9
- <sort_order>1</sort_order>
10
- <show_in_default>1</show_in_default>
11
- <show_in_website>1</show_in_website>
12
- <show_in_store>1</show_in_store>
13
- <fields>
14
- <active translate="label">
15
- <label>Enabled</label>
16
- <frontend_type>select</frontend_type>
17
- <source_model>adminhtml/system_config_source_yesno</source_model>
18
- <sort_order>1</sort_order>
19
- <show_in_default>1</show_in_default>
20
- <show_in_website>1</show_in_website>
21
- <show_in_store>1</show_in_store>
22
- </active>
23
- <weight_units translate="label">
24
- <label>Unidad de peso</label>
25
- <frontend_type>select</frontend_type>
26
- <source_model>nacex/weightunits</source_model>
27
- <sort_order>3</sort_order>
28
- <show_in_default>1</show_in_default>
29
- <show_in_website>1</show_in_website>
30
- <show_in_store>1</show_in_store>
31
- </weight_units>
32
- <min_order_value translate="label">
33
- <label>Minimum Order Value</label>
34
- <frontend_type>text</frontend_type>
35
- <sort_order>6</sort_order>
36
- <show_in_default>1</show_in_default>
37
- <show_in_website>1</show_in_website>
38
- <show_in_store>1</show_in_store>
39
- </min_order_value>
40
- <max_order_value translate="label">
41
- <label>Maximum Order Value</label>
42
- <frontend_type>text</frontend_type>
43
- <sort_order>5</sort_order>
44
- <show_in_default>1</show_in_default>
45
- <show_in_website>1</show_in_website>
46
- <show_in_store>1</show_in_store>
47
- </max_order_value>
48
- <handling_type translate="label">
49
- <label>Calculate Handling Fee</label>
50
- <frontend_type>select</frontend_type>
51
- <source_model>shipping/source_handlingType</source_model>
52
- <sort_order>4</sort_order>
53
- <show_in_default>1</show_in_default>
54
- <show_in_website>1</show_in_website>
55
- <show_in_store>0</show_in_store>
56
- </handling_type>
57
- <handling_fee translate="label">
58
- <label>Handling Fee</label>
59
- <frontend_type>text</frontend_type>
60
- <sort_order>5</sort_order>
61
- <show_in_default>1</show_in_default>
62
- <show_in_website>1</show_in_website>
63
- <show_in_store>1</show_in_store>
64
- </handling_fee>
65
- <sort_order translate="label">
66
- <label>Sort order</label>
67
- <frontend_type>text</frontend_type>
68
- <sort_order>11</sort_order>
69
- <show_in_default>1</show_in_default>
70
- <show_in_website>1</show_in_website>
71
- <show_in_store>1</show_in_store>
72
- </sort_order>
73
- <title translate="label">
74
- <label>Title</label>
75
- <frontend_type>text</frontend_type>
76
- <sort_order>2</sort_order>
77
- <show_in_default>1</show_in_default>
78
- <show_in_website>1</show_in_website>
79
- <show_in_store>1</show_in_store>
80
- </title>
81
- <showmethod translate="label">
82
- <label>Show method if not applicable</label>
83
- <frontend_type>select</frontend_type>
84
- <sort_order>11</sort_order>
85
- <source_model>adminhtml/system_config_source_yesno</source_model>
86
- <show_in_default>1</show_in_default>
87
- <show_in_website>1</show_in_website>
88
- <show_in_store>1</show_in_store>
89
- </showmethod>
90
- <specificerrmsg translate="label">
91
- <label>Displayed Error Message</label>
92
- <frontend_type>textarea</frontend_type>
93
- <sort_order>12</sort_order>
94
- <show_in_default>1</show_in_default>
95
- <show_in_website>1</show_in_website>
96
- <show_in_store>1</show_in_store>
97
- </specificerrmsg>
 
 
 
 
 
 
 
 
 
98
  </fields>
99
  </spainpost>
100
  </groups>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <sections>
4
+ <carriers>
5
+ <groups>
6
+ <spainpost translate="label" module="shipping">
7
+ <label>Nacex</label>
8
+ <frontend_type>text</frontend_type>
9
+ <sort_order>1</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <fields>
14
+ <active translate="label">
15
+ <label>Enabled</label>
16
+ <frontend_type>select</frontend_type>
17
+ <source_model>adminhtml/system_config_source_yesno</source_model>
18
+ <sort_order>10</sort_order>
19
+ <show_in_default>1</show_in_default>
20
+ <show_in_website>1</show_in_website>
21
+ <show_in_store>1</show_in_store>
22
+ </active>
23
+ <title translate="label">
24
+ <label>Title</label>
25
+ <frontend_type>text</frontend_type>
26
+ <sort_order>20</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ </title>
31
+ <weight_units translate="label">
32
+ <label>Unidad de peso</label>
33
+ <frontend_type>select</frontend_type>
34
+ <source_model>nacex/weightunits</source_model>
35
+ <sort_order>33</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+ </weight_units>
40
+ <handling_type translate="label">
41
+ <label>Calculate Handling Fee</label>
42
+ <frontend_type>select</frontend_type>
43
+ <source_model>shipping/source_handlingType</source_model>
44
+ <sort_order>40</sort_order>
45
+ <show_in_default>1</show_in_default>
46
+ <show_in_website>1</show_in_website>
47
+ <show_in_store>0</show_in_store>
48
+ </handling_type>
49
+ <handling_fee translate="label">
50
+ <label>Handling Fee</label>
51
+ <frontend_type>text</frontend_type>
52
+ <sort_order>41</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </handling_fee>
57
+ <max_order_value translate="label">
58
+ <label>Maximum Order Value</label>
59
+ <frontend_type>text</frontend_type>
60
+ <sort_order>50</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ </max_order_value>
65
+ <min_order_value translate="label">
66
+ <label>Minimum Order Value</label>
67
+ <frontend_type>text</frontend_type>
68
+ <sort_order>60</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ </min_order_value>
73
+ <sort_order translate="label">
74
+ <label>Sort order</label>
75
+ <frontend_type>text</frontend_type>
76
+ <sort_order>80</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>1</show_in_store>
80
+ </sort_order>
81
+ <showmethod translate="label">
82
+ <label>Show method if not applicable</label>
83
+ <frontend_type>select</frontend_type>
84
+ <sort_order>90</sort_order>
85
+ <source_model>adminhtml/system_config_source_yesno</source_model>
86
+ <show_in_default>1</show_in_default>
87
+ <show_in_website>1</show_in_website>
88
+ <show_in_store>1</show_in_store>
89
+ </showmethod>
90
+ <specificerrmsg translate="label">
91
+ <label>Displayed Error Message</label>
92
+ <frontend_type>textarea</frontend_type>
93
+ <sort_order>91</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ </specificerrmsg>
98
+ <allowed_methods translate="label">
99
+ <label>Shipping Methods</label>
100
+ <frontend_type>multiselect</frontend_type>
101
+ <sort_order>100</sort_order>
102
+ <source_model>nacex/methods</source_model>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ </allowed_methods>
107
  </fields>
108
  </spainpost>
109
  </groups>
package.xml CHANGED
@@ -1,21 +1,26 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shipping_Nacex</name>
4
- <version>1.0.5</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 "Undefined variable: region"
12
 
13
  &lt;b&gt;CHANGES:&lt;/b&gt;
14
- -&gt;U /var/www/e-svn/html/perfume11/app/code/community/Nacex/Shipping/Model/Carrier/Spainpost.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-03</date>
17
- <time>15:55:02</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="ea049f5d40de90455b7ae01ac8029ed5"/><file name="system.xml" hash="860524dafb1cb9ee911aa8dd9d05facf"/></dir><dir name="Helper"><file name="Data.php" hash="b5d80af85823935e1e91081f0b5989aa"/></dir><dir name="Model"><dir name="Carrier"><file name="Spainpost.php" hash="0cfae46c7e829467339bb982b6eee741"/></dir><file name="Weightunits.php" hash="77db09797e9828b7e107abbe2f282ee1"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shipping_Nacex</name>
4
+ <version>1.0.6</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>* Agrega la posibilidad de tomar un envio de ida y vuelta cobrando los dos.
12
 
13
  &lt;b&gt;CHANGES:&lt;/b&gt;
14
+ -&gt;A app/code/community/Nacex/Shipping/Model/Methods.php
15
+ -&gt;U app/code/community/Nacex/Shipping/etc/config.xml
16
+ -&gt;U app/code/community/Nacex/Shipping/etc/system.xml
17
+ -&gt;U app/code/community/Nacex/Shipping/Helper/Data.php
18
+ -&gt;U app/code/community/Nacex/Shipping/Model/Carrier/Spainpost.php
19
+ -&gt;U app/code/community/Nacex/Shipping/Model/Weightunits.php</notes>
20
  <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>
21
+ <date>2008-12-11</date>
22
+ <time>13:30:21</time>
23
+ <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="2589b183cb670e7d08251bc7a986f2e1"/><file name="system.xml" hash="aa15dac5d59e960906c275aac8ba9957"/></dir><dir name="Helper"><file name="Data.php" hash="8b06d6514b9924564f9078dd15cedc00"/></dir><dir name="Model"><dir name="Carrier"><file name="Spainpost.php" hash="a9d2f1c85f0ab949b5d8300589dc301d"/></dir><file name="Methods.php" hash="0f44afc2f0faa9e6f5a22be7ee3f69c8"/><file name="Weightunits.php" hash="9cecbb70f7db3e1fcd84ec39060f1581"/></dir><dir name="sql"><dir name="shipping_setup"><file name="mysql4-install-0.1.0.php" hash="d614fdc964125e1ff642933cc8014583"/></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>