Version Notes
Enjoy it ;)
Download this release
Release Info
Developer | Riccardo Tempesta |
Extension | MSP_FlatShipping5 |
Version | 1.0.4 |
Comparing to | |
See all releases |
Version 1.0.4
- app/code/community/MSP/FlatShipping5/Block/Available.php +30 -0
- app/code/community/MSP/FlatShipping5/Helper/Data.php +23 -0
- app/code/community/MSP/FlatShipping5/LICENSE.txt +1 -0
- app/code/community/MSP/FlatShipping5/Model/Carrier/Abstract.php +106 -0
- app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate2.php +24 -0
- app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate3.php +24 -0
- app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate4.php +24 -0
- app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate5.php +24 -0
- app/code/community/MSP/FlatShipping5/etc/config.xml +117 -0
- app/code/community/MSP/FlatShipping5/etc/system.xml +538 -0
- app/design/frontend/base/default/layout/msp_flatshipping5.xml +26 -0
- app/design/frontend/base/default/template/msp_flatshipping5/available.phtml +58 -0
- app/etc/modules/MSP_FlatShipping5.xml +29 -0
- package.xml +18 -0
app/code/community/MSP/FlatShipping5/Block/Available.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class MSP_FlatShipping5_Block_Available extends Mage_Checkout_Block_Onepage_Shipping_Method_Available
|
22 |
+
{
|
23 |
+
protected function getInfoText($carrierCode)
|
24 |
+
{
|
25 |
+
if ($text = Mage::getStoreConfig('carriers/'.$carrierCode.'/infotext')) {
|
26 |
+
return $text;
|
27 |
+
}
|
28 |
+
return '';
|
29 |
+
}
|
30 |
+
}
|
app/code/community/MSP/FlatShipping5/Helper/Data.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
class MSP_FlatShipping5_Helper_Data extends Mage_Core_Helper_Abstract
|
21 |
+
{
|
22 |
+
|
23 |
+
}
|
app/code/community/MSP/FlatShipping5/LICENSE.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
http://www.opensource.org/licenses/osl-3.0.php
|
app/code/community/MSP/FlatShipping5/Model/Carrier/Abstract.php
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
abstract class MSP_FlatShipping5_Model_Carrier_Abstract extends Mage_Shipping_Model_Carrier_Flatrate
|
22 |
+
{
|
23 |
+
protected $_code = '';
|
24 |
+
|
25 |
+
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
26 |
+
{
|
27 |
+
if (!$this->getConfigFlag('active'))
|
28 |
+
{
|
29 |
+
return false;
|
30 |
+
}
|
31 |
+
|
32 |
+
$freeBoxes = 0;
|
33 |
+
if ($request->getAllItems())
|
34 |
+
{
|
35 |
+
foreach ($request->getAllItems() as $item)
|
36 |
+
{
|
37 |
+
|
38 |
+
if ($item->getProduct()->isVirtual() || $item->getParentItem())
|
39 |
+
{
|
40 |
+
continue;
|
41 |
+
}
|
42 |
+
|
43 |
+
if ($item->getHasChildren() && $item->isShipSeparately())
|
44 |
+
{
|
45 |
+
foreach ($item->getChildren() as $child)
|
46 |
+
{
|
47 |
+
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual())
|
48 |
+
{
|
49 |
+
$freeBoxes += $item->getQty() * $child->getQty();
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
53 |
+
elseif ($item->getFreeShipping())
|
54 |
+
{
|
55 |
+
$freeBoxes += $item->getQty();
|
56 |
+
}
|
57 |
+
}
|
58 |
+
}
|
59 |
+
$this->setFreeBoxes($freeBoxes);
|
60 |
+
|
61 |
+
$result = Mage::getModel('shipping/rate_result');
|
62 |
+
if ($this->getConfigData('type') == 'O')
|
63 |
+
{
|
64 |
+
$shippingPrice = $this->getConfigData('price');
|
65 |
+
}
|
66 |
+
elseif ($this->getConfigData('type') == 'I')
|
67 |
+
{
|
68 |
+
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price')) - ($this->getFreeBoxes() * $this->getConfigData('price'));
|
69 |
+
}
|
70 |
+
else
|
71 |
+
{
|
72 |
+
$shippingPrice = false;
|
73 |
+
}
|
74 |
+
|
75 |
+
$shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
|
76 |
+
|
77 |
+
if ($shippingPrice !== false)
|
78 |
+
{
|
79 |
+
$method = Mage::getModel('shipping/rate_result_method');
|
80 |
+
|
81 |
+
$method->setCarrier($this->_code);
|
82 |
+
$method->setCarrierTitle($this->getConfigData('title'));
|
83 |
+
|
84 |
+
$method->setMethod($this->_code);
|
85 |
+
$method->setMethodTitle($this->getConfigData('name'));
|
86 |
+
|
87 |
+
if ($request->getFreeShipping() === true || $request->getPackageQty() == $this->getFreeBoxes())
|
88 |
+
{
|
89 |
+
$shippingPrice = '0.00';
|
90 |
+
}
|
91 |
+
|
92 |
+
|
93 |
+
$method->setPrice($shippingPrice);
|
94 |
+
$method->setCost($shippingPrice);
|
95 |
+
|
96 |
+
$result->append($method);
|
97 |
+
}
|
98 |
+
|
99 |
+
return $result;
|
100 |
+
}
|
101 |
+
|
102 |
+
public function getAllowedMethods()
|
103 |
+
{
|
104 |
+
return array($this->_code=>$this->getConfigData('name'));
|
105 |
+
}
|
106 |
+
}
|
app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate2.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class MSP_FlatShipping5_Model_Carrier_Flatrate2 extends MSP_FlatShipping5_Model_Carrier_Abstract
|
22 |
+
{
|
23 |
+
protected $_code = 'flatrate2';
|
24 |
+
}
|
app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate3.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class MSP_FlatShipping5_Model_Carrier_Flatrate3 extends MSP_FlatShipping5_Model_Carrier_Abstract
|
22 |
+
{
|
23 |
+
protected $_code = 'flatrate3';
|
24 |
+
}
|
app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate4.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class MSP_FlatShipping5_Model_Carrier_Flatrate4 extends MSP_FlatShipping5_Model_Carrier_Abstract
|
22 |
+
{
|
23 |
+
protected $_code = 'flatrate4';
|
24 |
+
}
|
app/code/community/MSP/FlatShipping5/Model/Carrier/Flatrate5.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class MSP_FlatShipping5_Model_Carrier_Flatrate5 extends MSP_FlatShipping5_Model_Carrier_Abstract
|
22 |
+
{
|
23 |
+
protected $_code = 'flatrate5';
|
24 |
+
}
|
app/code/community/MSP/FlatShipping5/etc/config.xml
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* IDEALIAGroup srl
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@idealiagroup.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category MSP
|
17 |
+
* @package MSP_FlatShipping5
|
18 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<MSP_FlatShipping5>
|
25 |
+
<version>1.0.4</version>
|
26 |
+
</MSP_FlatShipping5>
|
27 |
+
</modules>
|
28 |
+
|
29 |
+
<global>
|
30 |
+
<helpers>
|
31 |
+
<msp_flatshipping5>
|
32 |
+
<class>MSP_FlatShipping5_Helper</class>
|
33 |
+
</msp_flatshipping5>
|
34 |
+
</helpers>
|
35 |
+
<models>
|
36 |
+
<msp_flatshipping5>
|
37 |
+
<class>MSP_FlatShipping5_Model</class>
|
38 |
+
</msp_flatshipping5>
|
39 |
+
</models>
|
40 |
+
<blocks>
|
41 |
+
<msp_flatshipping5>
|
42 |
+
<class>MSP_FlatShipping5_Block</class>
|
43 |
+
</msp_flatshipping5>
|
44 |
+
<checkout>
|
45 |
+
<rewrite>
|
46 |
+
<onepage_shipping_method_available>MSP_FlatShipping5_Block_Available</onepage_shipping_method_available>
|
47 |
+
</rewrite>
|
48 |
+
</checkout>
|
49 |
+
</blocks>
|
50 |
+
</global>
|
51 |
+
|
52 |
+
<frontend>
|
53 |
+
<layout>
|
54 |
+
<updates>
|
55 |
+
<msp_flatshipping5>
|
56 |
+
<file>msp_flatshipping5.xml</file>
|
57 |
+
</msp_flatshipping5>
|
58 |
+
</updates>
|
59 |
+
</layout>
|
60 |
+
</frontend>
|
61 |
+
|
62 |
+
<default>
|
63 |
+
<carriers>
|
64 |
+
<flatrate>
|
65 |
+
<infotext></infotext>
|
66 |
+
</flatrate>
|
67 |
+
<flatrate2>
|
68 |
+
<active>0</active>
|
69 |
+
<sallowspecific>0</sallowspecific>
|
70 |
+
<model>msp_flatshipping5/carrier_flatrate2</model>
|
71 |
+
<name>Fixed 2</name>
|
72 |
+
<price>5.00</price>
|
73 |
+
<title>Flat Rate</title>
|
74 |
+
<type>I</type>
|
75 |
+
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
|
76 |
+
<infotext></infotext>
|
77 |
+
<handling_type>F</handling_type>
|
78 |
+
</flatrate2>
|
79 |
+
<flatrate3>
|
80 |
+
<active>0</active>
|
81 |
+
<sallowspecific>0</sallowspecific>
|
82 |
+
<model>msp_flatshipping5/carrier_flatrate3</model>
|
83 |
+
<name>Fixed 3</name>
|
84 |
+
<price>5.00</price>
|
85 |
+
<title>Flat Rate</title>
|
86 |
+
<infotext></infotext>
|
87 |
+
<type>I</type>
|
88 |
+
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
|
89 |
+
<handling_type>F</handling_type>
|
90 |
+
</flatrate3>
|
91 |
+
<flatrate4>
|
92 |
+
<active>0</active>
|
93 |
+
<sallowspecific>0</sallowspecific>
|
94 |
+
<model>msp_flatshipping5/carrier_flatrate4</model>
|
95 |
+
<name>Fixed 4</name>
|
96 |
+
<price>5.00</price>
|
97 |
+
<infotext></infotext>
|
98 |
+
<title>Flat Rate</title>
|
99 |
+
<type>I</type>
|
100 |
+
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
|
101 |
+
<handling_type>F</handling_type>
|
102 |
+
</flatrate4>
|
103 |
+
<flatrate5>
|
104 |
+
<active>0</active>
|
105 |
+
<sallowspecific>0</sallowspecific>
|
106 |
+
<model>msp_flatshipping5/carrier_flatrate5</model>
|
107 |
+
<name>Fixed 5</name>
|
108 |
+
<price>5.00</price>
|
109 |
+
<infotext></infotext>
|
110 |
+
<title>Flat Rate</title>
|
111 |
+
<type>I</type>
|
112 |
+
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
|
113 |
+
<handling_type>F</handling_type>
|
114 |
+
</flatrate5>
|
115 |
+
</carriers>
|
116 |
+
</default>
|
117 |
+
</config>
|
app/code/community/MSP/FlatShipping5/etc/system.xml
ADDED
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* IDEALIAGroup srl
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@idealiagroup.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category MSP
|
17 |
+
* @package MSP_FlatShipping5
|
18 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<sections>
|
24 |
+
<carriers translate="label" model="shipping">
|
25 |
+
<label>Shipping Methods</label>
|
26 |
+
<tab>sales</tab>
|
27 |
+
<frontend_type>text</frontend_type>
|
28 |
+
<sort_order>330</sort_order>
|
29 |
+
<show_in_default>1</show_in_default>
|
30 |
+
<show_in_website>1</show_in_website>
|
31 |
+
<show_in_store>1</show_in_store>
|
32 |
+
<groups>
|
33 |
+
<flatrate translate="label">
|
34 |
+
<label>Flat Rate 1</label>
|
35 |
+
<sort_order>100</sort_order>
|
36 |
+
<fields>
|
37 |
+
<infotext translate="label">
|
38 |
+
<label>Info Text (supports HTML)</label>
|
39 |
+
<frontend_type>editor</frontend_type>
|
40 |
+
<sort_order>90</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</infotext>
|
45 |
+
</fields>
|
46 |
+
</flatrate>
|
47 |
+
|
48 |
+
<flatrate2 translate="label">
|
49 |
+
<label>Flat Rate 2</label>
|
50 |
+
<frontend_type>text</frontend_type>
|
51 |
+
<sort_order>101</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
<fields>
|
56 |
+
<active translate="label">
|
57 |
+
<label>Enabled</label>
|
58 |
+
<frontend_type>select</frontend_type>
|
59 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
60 |
+
<sort_order>1</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>0</show_in_store>
|
64 |
+
</active>
|
65 |
+
<name translate="label">
|
66 |
+
<label>Method name</label>
|
67 |
+
<frontend_type>text</frontend_type>
|
68 |
+
<sort_order>3</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 |
+
</name>
|
73 |
+
<price translate="label">
|
74 |
+
<label>Price</label>
|
75 |
+
<frontend_type>text</frontend_type>
|
76 |
+
<sort_order>5</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>0</show_in_store>
|
80 |
+
</price>
|
81 |
+
<handling_type translate="label">
|
82 |
+
<label>Calculate Handling Fee</label>
|
83 |
+
<frontend_type>select</frontend_type>
|
84 |
+
<source_model>shipping/source_handlingType</source_model>
|
85 |
+
<sort_order>7</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>0</show_in_store>
|
89 |
+
</handling_type>
|
90 |
+
<handling_fee translate="label">
|
91 |
+
<label>Handling Fee</label>
|
92 |
+
<frontend_type>text</frontend_type>
|
93 |
+
<sort_order>8</sort_order>
|
94 |
+
<show_in_default>1</show_in_default>
|
95 |
+
<show_in_website>1</show_in_website>
|
96 |
+
<show_in_store>0</show_in_store>
|
97 |
+
</handling_fee>
|
98 |
+
<sort_order translate="label">
|
99 |
+
<label>Sort order</label>
|
100 |
+
<frontend_type>text</frontend_type>
|
101 |
+
<sort_order>100</sort_order>
|
102 |
+
<show_in_default>1</show_in_default>
|
103 |
+
<show_in_website>1</show_in_website>
|
104 |
+
<show_in_store>0</show_in_store>
|
105 |
+
</sort_order>
|
106 |
+
<title translate="label">
|
107 |
+
<label>Title</label>
|
108 |
+
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>2</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
</title>
|
114 |
+
<type translate="label">
|
115 |
+
<label>Type</label>
|
116 |
+
<frontend_type>select</frontend_type>
|
117 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
118 |
+
<sort_order>4</sort_order>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>0</show_in_store>
|
122 |
+
</type>
|
123 |
+
<sallowspecific translate="label">
|
124 |
+
<label>Ship to applicable countries</label>
|
125 |
+
<frontend_type>select</frontend_type>
|
126 |
+
<sort_order>90</sort_order>
|
127 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
128 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
129 |
+
<show_in_default>1</show_in_default>
|
130 |
+
<show_in_website>1</show_in_website>
|
131 |
+
<show_in_store>0</show_in_store>
|
132 |
+
</sallowspecific>
|
133 |
+
<specificcountry translate="label">
|
134 |
+
<label>Ship to Specific countries</label>
|
135 |
+
<frontend_type>multiselect</frontend_type>
|
136 |
+
<sort_order>91</sort_order>
|
137 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
138 |
+
<show_in_default>1</show_in_default>
|
139 |
+
<show_in_website>1</show_in_website>
|
140 |
+
<show_in_store>0</show_in_store>
|
141 |
+
</specificcountry>
|
142 |
+
<showmethod translate="label">
|
143 |
+
<label>Show method if not applicable</label>
|
144 |
+
<frontend_type>select</frontend_type>
|
145 |
+
<sort_order>92</sort_order>
|
146 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
147 |
+
<show_in_default>1</show_in_default>
|
148 |
+
<show_in_website>1</show_in_website>
|
149 |
+
<show_in_store>0</show_in_store>
|
150 |
+
</showmethod>
|
151 |
+
<specificerrmsg translate="label">
|
152 |
+
<label>Displayed Error Message</label>
|
153 |
+
<frontend_type>textarea</frontend_type>
|
154 |
+
<sort_order>80</sort_order>
|
155 |
+
<show_in_default>1</show_in_default>
|
156 |
+
<show_in_website>1</show_in_website>
|
157 |
+
<show_in_store>1</show_in_store>
|
158 |
+
</specificerrmsg>
|
159 |
+
<infotext translate="label">
|
160 |
+
<label>Info Text (supports HTML)</label>
|
161 |
+
<frontend_type>editor</frontend_type>
|
162 |
+
<sort_order>90</sort_order>
|
163 |
+
<show_in_default>1</show_in_default>
|
164 |
+
<show_in_website>1</show_in_website>
|
165 |
+
<show_in_store>1</show_in_store>
|
166 |
+
</infotext>
|
167 |
+
</fields>
|
168 |
+
</flatrate2>
|
169 |
+
|
170 |
+
<flatrate3 translate="label">
|
171 |
+
<label>Flat Rate 3</label>
|
172 |
+
<frontend_type>text</frontend_type>
|
173 |
+
<sort_order>102</sort_order>
|
174 |
+
<show_in_default>1</show_in_default>
|
175 |
+
<show_in_website>1</show_in_website>
|
176 |
+
<show_in_store>1</show_in_store>
|
177 |
+
<fields>
|
178 |
+
<active translate="label">
|
179 |
+
<label>Enabled</label>
|
180 |
+
<frontend_type>select</frontend_type>
|
181 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
182 |
+
<sort_order>1</sort_order>
|
183 |
+
<show_in_default>1</show_in_default>
|
184 |
+
<show_in_website>1</show_in_website>
|
185 |
+
<show_in_store>0</show_in_store>
|
186 |
+
</active>
|
187 |
+
<name translate="label">
|
188 |
+
<label>Method name</label>
|
189 |
+
<frontend_type>text</frontend_type>
|
190 |
+
<sort_order>3</sort_order>
|
191 |
+
<show_in_default>1</show_in_default>
|
192 |
+
<show_in_website>1</show_in_website>
|
193 |
+
<show_in_store>1</show_in_store>
|
194 |
+
</name>
|
195 |
+
<price translate="label">
|
196 |
+
<label>Price</label>
|
197 |
+
<frontend_type>text</frontend_type>
|
198 |
+
<sort_order>5</sort_order>
|
199 |
+
<show_in_default>1</show_in_default>
|
200 |
+
<show_in_website>1</show_in_website>
|
201 |
+
<show_in_store>0</show_in_store>
|
202 |
+
</price>
|
203 |
+
<handling_type translate="label">
|
204 |
+
<label>Calculate Handling Fee</label>
|
205 |
+
<frontend_type>select</frontend_type>
|
206 |
+
<source_model>shipping/source_handlingType</source_model>
|
207 |
+
<sort_order>7</sort_order>
|
208 |
+
<show_in_default>1</show_in_default>
|
209 |
+
<show_in_website>1</show_in_website>
|
210 |
+
<show_in_store>0</show_in_store>
|
211 |
+
</handling_type>
|
212 |
+
<handling_fee translate="label">
|
213 |
+
<label>Handling Fee</label>
|
214 |
+
<frontend_type>text</frontend_type>
|
215 |
+
<sort_order>8</sort_order>
|
216 |
+
<show_in_default>1</show_in_default>
|
217 |
+
<show_in_website>1</show_in_website>
|
218 |
+
<show_in_store>0</show_in_store>
|
219 |
+
</handling_fee>
|
220 |
+
<sort_order translate="label">
|
221 |
+
<label>Sort order</label>
|
222 |
+
<frontend_type>text</frontend_type>
|
223 |
+
<sort_order>100</sort_order>
|
224 |
+
<show_in_default>1</show_in_default>
|
225 |
+
<show_in_website>1</show_in_website>
|
226 |
+
<show_in_store>0</show_in_store>
|
227 |
+
</sort_order>
|
228 |
+
<title translate="label">
|
229 |
+
<label>Title</label>
|
230 |
+
<frontend_type>text</frontend_type>
|
231 |
+
<sort_order>2</sort_order>
|
232 |
+
<show_in_default>1</show_in_default>
|
233 |
+
<show_in_website>1</show_in_website>
|
234 |
+
<show_in_store>1</show_in_store>
|
235 |
+
</title>
|
236 |
+
<type translate="label">
|
237 |
+
<label>Type</label>
|
238 |
+
<frontend_type>select</frontend_type>
|
239 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
240 |
+
<sort_order>4</sort_order>
|
241 |
+
<show_in_default>1</show_in_default>
|
242 |
+
<show_in_website>1</show_in_website>
|
243 |
+
<show_in_store>0</show_in_store>
|
244 |
+
</type>
|
245 |
+
<sallowspecific translate="label">
|
246 |
+
<label>Ship to applicable countries</label>
|
247 |
+
<frontend_type>select</frontend_type>
|
248 |
+
<sort_order>90</sort_order>
|
249 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
250 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
251 |
+
<show_in_default>1</show_in_default>
|
252 |
+
<show_in_website>1</show_in_website>
|
253 |
+
<show_in_store>0</show_in_store>
|
254 |
+
</sallowspecific>
|
255 |
+
<specificcountry translate="label">
|
256 |
+
<label>Ship to Specific countries</label>
|
257 |
+
<frontend_type>multiselect</frontend_type>
|
258 |
+
<sort_order>91</sort_order>
|
259 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
260 |
+
<show_in_default>1</show_in_default>
|
261 |
+
<show_in_website>1</show_in_website>
|
262 |
+
<show_in_store>0</show_in_store>
|
263 |
+
</specificcountry>
|
264 |
+
<showmethod translate="label">
|
265 |
+
<label>Show method if not applicable</label>
|
266 |
+
<frontend_type>select</frontend_type>
|
267 |
+
<sort_order>92</sort_order>
|
268 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
269 |
+
<show_in_default>1</show_in_default>
|
270 |
+
<show_in_website>1</show_in_website>
|
271 |
+
<show_in_store>0</show_in_store>
|
272 |
+
</showmethod>
|
273 |
+
<specificerrmsg translate="label">
|
274 |
+
<label>Displayed Error Message</label>
|
275 |
+
<frontend_type>textarea</frontend_type>
|
276 |
+
<sort_order>80</sort_order>
|
277 |
+
<show_in_default>1</show_in_default>
|
278 |
+
<show_in_website>1</show_in_website>
|
279 |
+
<show_in_store>1</show_in_store>
|
280 |
+
</specificerrmsg>
|
281 |
+
<infotext translate="label">
|
282 |
+
<label>Info Text (supports HTML)</label>
|
283 |
+
<frontend_type>editor</frontend_type>
|
284 |
+
<sort_order>90</sort_order>
|
285 |
+
<show_in_default>1</show_in_default>
|
286 |
+
<show_in_website>1</show_in_website>
|
287 |
+
<show_in_store>1</show_in_store>
|
288 |
+
</infotext>
|
289 |
+
</fields>
|
290 |
+
</flatrate3>
|
291 |
+
|
292 |
+
<flatrate4 translate="label">
|
293 |
+
<label>Flat Rate 4</label>
|
294 |
+
<frontend_type>text</frontend_type>
|
295 |
+
<sort_order>103</sort_order>
|
296 |
+
<show_in_default>1</show_in_default>
|
297 |
+
<show_in_website>1</show_in_website>
|
298 |
+
<show_in_store>1</show_in_store>
|
299 |
+
<fields>
|
300 |
+
<active translate="label">
|
301 |
+
<label>Enabled</label>
|
302 |
+
<frontend_type>select</frontend_type>
|
303 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
304 |
+
<sort_order>1</sort_order>
|
305 |
+
<show_in_default>1</show_in_default>
|
306 |
+
<show_in_website>1</show_in_website>
|
307 |
+
<show_in_store>0</show_in_store>
|
308 |
+
</active>
|
309 |
+
<name translate="label">
|
310 |
+
<label>Method name</label>
|
311 |
+
<frontend_type>text</frontend_type>
|
312 |
+
<sort_order>3</sort_order>
|
313 |
+
<show_in_default>1</show_in_default>
|
314 |
+
<show_in_website>1</show_in_website>
|
315 |
+
<show_in_store>1</show_in_store>
|
316 |
+
</name>
|
317 |
+
<price translate="label">
|
318 |
+
<label>Price</label>
|
319 |
+
<frontend_type>text</frontend_type>
|
320 |
+
<sort_order>5</sort_order>
|
321 |
+
<show_in_default>1</show_in_default>
|
322 |
+
<show_in_website>1</show_in_website>
|
323 |
+
<show_in_store>0</show_in_store>
|
324 |
+
</price>
|
325 |
+
<handling_type translate="label">
|
326 |
+
<label>Calculate Handling Fee</label>
|
327 |
+
<frontend_type>select</frontend_type>
|
328 |
+
<source_model>shipping/source_handlingType</source_model>
|
329 |
+
<sort_order>7</sort_order>
|
330 |
+
<show_in_default>1</show_in_default>
|
331 |
+
<show_in_website>1</show_in_website>
|
332 |
+
<show_in_store>0</show_in_store>
|
333 |
+
</handling_type>
|
334 |
+
<handling_fee translate="label">
|
335 |
+
<label>Handling Fee</label>
|
336 |
+
<frontend_type>text</frontend_type>
|
337 |
+
<sort_order>8</sort_order>
|
338 |
+
<show_in_default>1</show_in_default>
|
339 |
+
<show_in_website>1</show_in_website>
|
340 |
+
<show_in_store>0</show_in_store>
|
341 |
+
</handling_fee>
|
342 |
+
<sort_order translate="label">
|
343 |
+
<label>Sort order</label>
|
344 |
+
<frontend_type>text</frontend_type>
|
345 |
+
<sort_order>100</sort_order>
|
346 |
+
<show_in_default>1</show_in_default>
|
347 |
+
<show_in_website>1</show_in_website>
|
348 |
+
<show_in_store>0</show_in_store>
|
349 |
+
</sort_order>
|
350 |
+
<title translate="label">
|
351 |
+
<label>Title</label>
|
352 |
+
<frontend_type>text</frontend_type>
|
353 |
+
<sort_order>2</sort_order>
|
354 |
+
<show_in_default>1</show_in_default>
|
355 |
+
<show_in_website>1</show_in_website>
|
356 |
+
<show_in_store>1</show_in_store>
|
357 |
+
</title>
|
358 |
+
<type translate="label">
|
359 |
+
<label>Type</label>
|
360 |
+
<frontend_type>select</frontend_type>
|
361 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
362 |
+
<sort_order>4</sort_order>
|
363 |
+
<show_in_default>1</show_in_default>
|
364 |
+
<show_in_website>1</show_in_website>
|
365 |
+
<show_in_store>0</show_in_store>
|
366 |
+
</type>
|
367 |
+
<sallowspecific translate="label">
|
368 |
+
<label>Ship to applicable countries</label>
|
369 |
+
<frontend_type>select</frontend_type>
|
370 |
+
<sort_order>90</sort_order>
|
371 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
372 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
373 |
+
<show_in_default>1</show_in_default>
|
374 |
+
<show_in_website>1</show_in_website>
|
375 |
+
<show_in_store>0</show_in_store>
|
376 |
+
</sallowspecific>
|
377 |
+
<specificcountry translate="label">
|
378 |
+
<label>Ship to Specific countries</label>
|
379 |
+
<frontend_type>multiselect</frontend_type>
|
380 |
+
<sort_order>91</sort_order>
|
381 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
382 |
+
<show_in_default>1</show_in_default>
|
383 |
+
<show_in_website>1</show_in_website>
|
384 |
+
<show_in_store>0</show_in_store>
|
385 |
+
</specificcountry>
|
386 |
+
<showmethod translate="label">
|
387 |
+
<label>Show method if not applicable</label>
|
388 |
+
<frontend_type>select</frontend_type>
|
389 |
+
<sort_order>92</sort_order>
|
390 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
391 |
+
<show_in_default>1</show_in_default>
|
392 |
+
<show_in_website>1</show_in_website>
|
393 |
+
<show_in_store>0</show_in_store>
|
394 |
+
</showmethod>
|
395 |
+
<specificerrmsg translate="label">
|
396 |
+
<label>Displayed Error Message</label>
|
397 |
+
<frontend_type>textarea</frontend_type>
|
398 |
+
<sort_order>80</sort_order>
|
399 |
+
<show_in_default>1</show_in_default>
|
400 |
+
<show_in_website>1</show_in_website>
|
401 |
+
<show_in_store>1</show_in_store>
|
402 |
+
</specificerrmsg>
|
403 |
+
<infotext translate="label">
|
404 |
+
<label>Info Text (supports HTML)</label>
|
405 |
+
<frontend_type>editor</frontend_type>
|
406 |
+
<sort_order>90</sort_order>
|
407 |
+
<show_in_default>1</show_in_default>
|
408 |
+
<show_in_website>1</show_in_website>
|
409 |
+
<show_in_store>1</show_in_store>
|
410 |
+
</infotext>
|
411 |
+
</fields>
|
412 |
+
</flatrate4>
|
413 |
+
|
414 |
+
<flatrate5 translate="label">
|
415 |
+
<label>Flat Rate 5</label>
|
416 |
+
<frontend_type>text</frontend_type>
|
417 |
+
<sort_order>104</sort_order>
|
418 |
+
<show_in_default>1</show_in_default>
|
419 |
+
<show_in_website>1</show_in_website>
|
420 |
+
<show_in_store>1</show_in_store>
|
421 |
+
<fields>
|
422 |
+
<active translate="label">
|
423 |
+
<label>Enabled</label>
|
424 |
+
<frontend_type>select</frontend_type>
|
425 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
426 |
+
<sort_order>1</sort_order>
|
427 |
+
<show_in_default>1</show_in_default>
|
428 |
+
<show_in_website>1</show_in_website>
|
429 |
+
<show_in_store>0</show_in_store>
|
430 |
+
</active>
|
431 |
+
<name translate="label">
|
432 |
+
<label>Method name</label>
|
433 |
+
<frontend_type>text</frontend_type>
|
434 |
+
<sort_order>3</sort_order>
|
435 |
+
<show_in_default>1</show_in_default>
|
436 |
+
<show_in_website>1</show_in_website>
|
437 |
+
<show_in_store>1</show_in_store>
|
438 |
+
</name>
|
439 |
+
<price translate="label">
|
440 |
+
<label>Price</label>
|
441 |
+
<frontend_type>text</frontend_type>
|
442 |
+
<sort_order>5</sort_order>
|
443 |
+
<show_in_default>1</show_in_default>
|
444 |
+
<show_in_website>1</show_in_website>
|
445 |
+
<show_in_store>0</show_in_store>
|
446 |
+
</price>
|
447 |
+
<handling_type translate="label">
|
448 |
+
<label>Calculate Handling Fee</label>
|
449 |
+
<frontend_type>select</frontend_type>
|
450 |
+
<source_model>shipping/source_handlingType</source_model>
|
451 |
+
<sort_order>7</sort_order>
|
452 |
+
<show_in_default>1</show_in_default>
|
453 |
+
<show_in_website>1</show_in_website>
|
454 |
+
<show_in_store>0</show_in_store>
|
455 |
+
</handling_type>
|
456 |
+
<handling_fee translate="label">
|
457 |
+
<label>Handling Fee</label>
|
458 |
+
<frontend_type>text</frontend_type>
|
459 |
+
<sort_order>8</sort_order>
|
460 |
+
<show_in_default>1</show_in_default>
|
461 |
+
<show_in_website>1</show_in_website>
|
462 |
+
<show_in_store>0</show_in_store>
|
463 |
+
</handling_fee>
|
464 |
+
<sort_order translate="label">
|
465 |
+
<label>Sort order</label>
|
466 |
+
<frontend_type>text</frontend_type>
|
467 |
+
<sort_order>100</sort_order>
|
468 |
+
<show_in_default>1</show_in_default>
|
469 |
+
<show_in_website>1</show_in_website>
|
470 |
+
<show_in_store>0</show_in_store>
|
471 |
+
</sort_order>
|
472 |
+
<title translate="label">
|
473 |
+
<label>Title</label>
|
474 |
+
<frontend_type>text</frontend_type>
|
475 |
+
<sort_order>2</sort_order>
|
476 |
+
<show_in_default>1</show_in_default>
|
477 |
+
<show_in_website>1</show_in_website>
|
478 |
+
<show_in_store>1</show_in_store>
|
479 |
+
</title>
|
480 |
+
<type translate="label">
|
481 |
+
<label>Type</label>
|
482 |
+
<frontend_type>select</frontend_type>
|
483 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
484 |
+
<sort_order>4</sort_order>
|
485 |
+
<show_in_default>1</show_in_default>
|
486 |
+
<show_in_website>1</show_in_website>
|
487 |
+
<show_in_store>0</show_in_store>
|
488 |
+
</type>
|
489 |
+
<sallowspecific translate="label">
|
490 |
+
<label>Ship to applicable countries</label>
|
491 |
+
<frontend_type>select</frontend_type>
|
492 |
+
<sort_order>90</sort_order>
|
493 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
494 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
495 |
+
<show_in_default>1</show_in_default>
|
496 |
+
<show_in_website>1</show_in_website>
|
497 |
+
<show_in_store>0</show_in_store>
|
498 |
+
</sallowspecific>
|
499 |
+
<specificcountry translate="label">
|
500 |
+
<label>Ship to Specific countries</label>
|
501 |
+
<frontend_type>multiselect</frontend_type>
|
502 |
+
<sort_order>91</sort_order>
|
503 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
504 |
+
<show_in_default>1</show_in_default>
|
505 |
+
<show_in_website>1</show_in_website>
|
506 |
+
<show_in_store>0</show_in_store>
|
507 |
+
</specificcountry>
|
508 |
+
<showmethod translate="label">
|
509 |
+
<label>Show method if not applicable</label>
|
510 |
+
<frontend_type>select</frontend_type>
|
511 |
+
<sort_order>92</sort_order>
|
512 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
513 |
+
<show_in_default>1</show_in_default>
|
514 |
+
<show_in_website>1</show_in_website>
|
515 |
+
<show_in_store>0</show_in_store>
|
516 |
+
</showmethod>
|
517 |
+
<specificerrmsg translate="label">
|
518 |
+
<label>Displayed Error Message</label>
|
519 |
+
<frontend_type>textarea</frontend_type>
|
520 |
+
<sort_order>80</sort_order>
|
521 |
+
<show_in_default>1</show_in_default>
|
522 |
+
<show_in_website>1</show_in_website>
|
523 |
+
<show_in_store>1</show_in_store>
|
524 |
+
</specificerrmsg>
|
525 |
+
<infotext translate="label">
|
526 |
+
<label>Info Text (supports HTML)</label>
|
527 |
+
<frontend_type>editor</frontend_type>
|
528 |
+
<sort_order>90</sort_order>
|
529 |
+
<show_in_default>1</show_in_default>
|
530 |
+
<show_in_website>1</show_in_website>
|
531 |
+
<show_in_store>1</show_in_store>
|
532 |
+
</infotext>
|
533 |
+
</fields>
|
534 |
+
</flatrate5>
|
535 |
+
</groups>
|
536 |
+
</carriers>
|
537 |
+
</sections>
|
538 |
+
</config>
|
app/design/frontend/base/default/layout/msp_flatshipping5.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* IDEALIAGroup srl
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@idealiagroup.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category MSP
|
17 |
+
* @package MSP_FlatShipping5
|
18 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<layout version="0.1.0">
|
23 |
+
<checkout_onepage_shippingmethod>
|
24 |
+
<block type="checkout/onepage_shipping_method_available" name="root" output="toHtml" template="msp_flatshipping5/available.phtml"/>
|
25 |
+
</checkout_onepage_shippingmethod>
|
26 |
+
</layout>
|
app/design/frontend/base/default/template/msp_flatshipping5/available.phtml
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* IDEALIAGroup srl
|
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 info@idealiagroup.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category MSP
|
16 |
+
* @package MSP_FlatShipping5
|
17 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
22 |
+
<strong><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></strong>
|
23 |
+
<?php else: ?>
|
24 |
+
<dl class="shipment-methods">
|
25 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
26 |
+
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
27 |
+
<dd>
|
28 |
+
<ul>
|
29 |
+
<?php foreach ($_rates as $_rate): ?>
|
30 |
+
<li>
|
31 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
32 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
33 |
+
<?php else: ?>
|
34 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?>/>
|
35 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
36 |
+
<strong>
|
37 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
38 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
39 |
+
|
40 |
+
<?php echo $_excl; ?>
|
41 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
42 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
43 |
+
<?php endif; ?>
|
44 |
+
</strong>
|
45 |
+
</label>
|
46 |
+
<?php endif ?>
|
47 |
+
</li>
|
48 |
+
<?php endforeach; ?>
|
49 |
+
</ul>
|
50 |
+
<?php if ($infoText = $this->getInfoText($code)) { ?>
|
51 |
+
<div class="shipment-info">
|
52 |
+
<?php echo $infoText ?>
|
53 |
+
</div>
|
54 |
+
<?php } ?>
|
55 |
+
</dd>
|
56 |
+
<?php endforeach; ?>
|
57 |
+
</dl>
|
58 |
+
<?php endif; ?>
|
app/etc/modules/MSP_FlatShipping5.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* IDEALIAGroup srl
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@idealiagroup.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category MSP
|
17 |
+
* @package MSP_FlatShipping5
|
18 |
+
* @copyright Copyright (c) 2010-2014 IDEALIAGroup srl (http://www.idealiagroup.com)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<MSP_FlatShipping5>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
</MSP_FlatShipping5>
|
28 |
+
</modules>
|
29 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>MSP_FlatShipping5</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL3</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>MageSpecialist Multiple Flat Shipping Module with custom text configuration</summary>
|
10 |
+
<description>MageSpecialist Multiple Flat Shipping Module with custom text configuration</description>
|
11 |
+
<notes>Enjoy it ;)</notes>
|
12 |
+
<authors><author><name>Riccardo Tempesta</name><user>idealiagroup</user><email>tempesta@idealiagroup.com</email></author><author><name>Marco Giorgetti</name><user>idealiagroup</user><email>giorgetti@idealiagroup.com</email></author><author><name>Paolo Vecchiocattivi</name><user>idealiagroup</user><email>vecchiocattivi@idealiagroup.com</email></author></authors>
|
13 |
+
<date>2014-08-18</date>
|
14 |
+
<time>07:50:51</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="MSP"><dir name="FlatShipping5"><dir name="Block"><file name="Available.php" hash="2c90f4567a2c06db8607e1bdf18c22d1"/></dir><dir name="Helper"><file name="Data.php" hash="6735cd012a8160e2cc0de99fedc7ac3d"/></dir><file name="LICENSE.txt" hash="b7870fbc716085862b4cba9b4629a24e"/><dir name="Model"><dir name="Carrier"><file name="Abstract.php" hash="1afabbb0be739be3280d75339940584f"/><file name="Flatrate2.php" hash="fc85a78feaba2e15c35a0e07a5defada"/><file name="Flatrate3.php" hash="007590cbd5c3bd1374e73a51c92e42f5"/><file name="Flatrate4.php" hash="90e8ccd80accff68b3fd2f7c33e909c6"/><file name="Flatrate5.php" hash="edf4c3e96c2c7e14fb83fd4da0876b2d"/></dir></dir><dir name="etc"><file name="config.xml" hash="3f73e548debe47c23e79751e10d729cf"/><file name="system.xml" hash="9f2fcdd7963aba6ced019b7ba93eeb2a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MSP_FlatShipping5.xml" hash="08355534cd18416d473e5be1b1e606f3"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="msp_flatshipping5.xml" hash="29616a3a4583f8306eec9547bfb6ccd1"/></dir><dir name="template"><dir name="msp_flatshipping5"><file name="available.phtml" hash="c5a187d3a4621ffd3fa3ff69f614ea1f"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|