Premius_Simpleshipping - Version 1.2.0

Version Notes

First stable release

Download this release

Release Info

Developer Artem Moroz
Extension Premius_Simpleshipping
Version 1.2.0
Comparing to
See all releases


Version 1.2.0

app/code/community/Premius/Simpleshipping/Block/Adminhtml/System/Config/Fieldset/Banner.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Premius_Simpleshipping_Block_Adminhtml_System_Config_Fieldset_Banner extends Mage_Adminhtml_Block_System_Config_Form_Field
3
+ {
4
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
5
+ {
6
+ $this->setElement($element);
7
+ $html = "<a target=\"_blank\" href=\"http://premius.net\"><img src=\"".$this->getSkinUrl('images/premius/logo.png')."\" /><br/>Need Magento installation, configuration or templating? Hire us!</a>";
8
+ return $html;
9
+ }
10
+ }
11
+ ?>
app/code/community/Premius/Simpleshipping/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Premius_Simpleshipping_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
app/code/community/Premius/Simpleshipping/Model/Shipping/Carrier/Simplecarrier.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Premius_Simpleshipping_Model_Shipping_Carrier_Simplecarrier
3
+ extends Mage_Shipping_Model_Carrier_Abstract
4
+ implements Mage_Shipping_Model_Carrier_Interface
5
+ {
6
+ protected $_code = 'simplecarrier';
7
+
8
+ public function collectRates(Mage_Shipping_Model_Rate_Request $request)
9
+ {
10
+ if (!$this->getConfigFlag('active')) {
11
+ return false;
12
+ }
13
+
14
+ $freeBoxes = 0;
15
+ if ($request->getAllItems()) {
16
+ foreach ($request->getAllItems() as $item) {
17
+
18
+ if ($item->getProduct()->isVirtual() || $item->getParentItem()) {
19
+ continue;
20
+ }
21
+
22
+ if ($item->getHasChildren() && $item->isShipSeparately()) {
23
+ foreach ($item->getChildren() as $child) {
24
+ if ($child->getFreeShipping() && !$child->getProduct()->isVirtual()) {
25
+ $freeBoxes += $item->getQty() * $child->getQty();
26
+ }
27
+ }
28
+ } elseif ($item->getFreeShipping()) {
29
+ $freeBoxes += $item->getQty();
30
+ }
31
+ }
32
+ }
33
+ $this->setFreeBoxes($freeBoxes);
34
+
35
+ $result = Mage::getModel('shipping/rate_result');
36
+
37
+ $packageValue = $request->getPackageValueWithDiscount();
38
+ $minimalValue = $this->getConfigData('free_shipping_subtotal');
39
+
40
+ $methodlist = array('A','B','C','D','E','F','G','H','I','J');
41
+ foreach ($methodlist as $mtl)
42
+ {
43
+ if ($this->getConfigFlag('active'.$mtl))
44
+ {
45
+ if (($packageValue >= $minimalValue) && ($minimalValue > 0) && !$this->getConfigFlag('forcepaid'.$mtl))
46
+ {
47
+ $shippingPrice = '0.00';
48
+ }
49
+ else
50
+ {
51
+ $shippingPrice = $this->getConfigData('price'.$mtl);
52
+ }
53
+ $shippingPrice = $this->getFinalPriceWithHandlingFee($shippingPrice);
54
+
55
+ $method = Mage::getModel('shipping/rate_result_method');
56
+ $method->setCarrier($this->_code);
57
+ $method->setCarrierTitle($this->getConfigData('title'));
58
+ $method->setMethod('simplecarrier'.$mtl);
59
+ $method->setMethodTitle($this->getConfigData('name'.$mtl));
60
+ $method->setPrice($shippingPrice);
61
+ $method->setCost($shippingPrice);
62
+ $result->append($method);
63
+ }
64
+ }
65
+
66
+ return $result;
67
+
68
+
69
+ }
70
+
71
+ public function getAllowedMethods()
72
+ {
73
+ return array($this->_code => $this->getConfigData('nameA'));
74
+ }
75
+ }
app/code/community/Premius/Simpleshipping/etc/config.xml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Premius_Simpleshipping>
5
+ <version>1.2.0</version>
6
+ </Premius_Simpleshipping>
7
+ </modules>
8
+
9
+ <global>
10
+ <resources>
11
+ <simpleshipping_setup>
12
+ <setup>
13
+ <module>Premius_Simpleshipping</module>
14
+ </setup>
15
+ <connection>
16
+ <use>core_setup</use>
17
+ </connection>
18
+ </simpleshipping_setup>
19
+ <simpleshipping_read>
20
+ <connection>
21
+ <use>core_read</use>
22
+ </connection>
23
+ </simpleshipping_read>
24
+ <simpleshipping_write>
25
+ <connection>
26
+ <use>core_write</use>
27
+ </connection>
28
+ </simpleshipping_write>
29
+ </resources>
30
+
31
+ <models>
32
+ <simpleshipping>
33
+ <class>Premius_Simpleshipping_Model</class>
34
+ </simpleshipping>
35
+ </models>
36
+
37
+ <blocks>
38
+ <simpleshipping>
39
+ <class>Premius_Simpleshipping_Block</class>
40
+ </simpleshipping>
41
+ </blocks>
42
+
43
+ <sales>
44
+ <shipping>
45
+ <carriers>
46
+ <simplecarrier>
47
+ <class>Premius_Simpleshipping_Model_Shipping_Carrier_Simplecarrier</class>
48
+ </simplecarrier>
49
+ </carriers>
50
+ </shipping>
51
+ </sales>
52
+
53
+ <helpers>
54
+ <simpleshipping>
55
+ <class>Premius_Simpleshipping_Helper</class>
56
+ </simpleshipping>
57
+ </helpers>
58
+
59
+ </global>
60
+
61
+ <default>
62
+ <carriers>
63
+ <simplecarrier>
64
+ <active>0</active>
65
+ <sallowspecific>0</sallowspecific>
66
+ <model>simpleshipping/shipping_carrier_simplecarrier</model>
67
+ <name>Fixed</name>
68
+ <price>5.00</price>
69
+ <title>Flat Rate</title>
70
+ <type>I</type>
71
+ <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
72
+ <handling_type>F</handling_type>
73
+ </simplecarrier>
74
+ </carriers>
75
+ </default>
76
+ </config>
app/code/community/Premius/Simpleshipping/etc/system.xml ADDED
@@ -0,0 +1,732 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <carriers>
5
+ <groups>
6
+ <simplecarrier translate="label">
7
+ <label>Simple Shipping Methods</label>
8
+ <frontend_type>text</frontend_type>
9
+ <sort_order>2</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
+ <title translate="label">
15
+ <label>Title</label>
16
+ <frontend_type>text</frontend_type>
17
+ <sort_order>1</sort_order>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>1</show_in_store>
21
+ </title>
22
+ <type translate="label">
23
+ <label>Type</label>
24
+ <frontend_type>select</frontend_type>
25
+ <source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
26
+ <sort_order>2</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
+ </type>
31
+ <sort_order translate="label">
32
+ <label>Sort order</label>
33
+ <frontend_type>text</frontend_type>
34
+ <sort_order>3</sort_order>
35
+ <show_in_default>1</show_in_default>
36
+ <show_in_website>1</show_in_website>
37
+ <show_in_store>1</show_in_store>
38
+ </sort_order>
39
+
40
+
41
+
42
+ <headingA translate="label">
43
+ <label>Shipping Method A</label>
44
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
45
+ <sort_order>10</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ </headingA>
50
+ <activeA translate="label">
51
+ <label>Method A enabled</label>
52
+ <frontend_type>select</frontend_type>
53
+ <source_model>adminhtml/system_config_source_yesno</source_model>
54
+ <sort_order>11</sort_order>
55
+ <show_in_default>1</show_in_default>
56
+ <show_in_website>1</show_in_website>
57
+ <show_in_store>1</show_in_store>
58
+ </activeA>
59
+ <nameA translate="label">
60
+ <label>Method name A</label>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>12</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ <depends>
67
+ <activeA>1</activeA>
68
+ </depends>
69
+ </nameA>
70
+ <priceA translate="label">
71
+ <label>Price A</label>
72
+ <frontend_type>text</frontend_type>
73
+ <sort_order>13</sort_order>
74
+ <show_in_default>1</show_in_default>
75
+ <show_in_website>1</show_in_website>
76
+ <show_in_store>1</show_in_store>
77
+ <depends>
78
+ <activeA>1</activeA>
79
+ </depends>
80
+ </priceA>
81
+ <allowfreeA translate="label">
82
+ <label>Allow free shipping for A</label>
83
+ <frontend_type>select</frontend_type>
84
+ <source_model>adminhtml/system_config_source_yesno</source_model>
85
+ <sort_order>14</sort_order>
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
+ <depends>
90
+ <activeA>1</activeA>
91
+ </depends>
92
+ </allowfreeA>
93
+ <free_shipping_subtotalA translate="label">
94
+ <label>Minimum order amount for free shipping A</label>
95
+ <frontend_type>text</frontend_type>
96
+ <sort_order>15</sort_order>
97
+ <show_in_default>1</show_in_default>
98
+ <show_in_website>1</show_in_website>
99
+ <show_in_store>1</show_in_store>
100
+ <depends>
101
+ <activeA>1</activeA>
102
+ </depends>
103
+ </free_shipping_subtotalA>
104
+
105
+ <headingB translate="label">
106
+ <label>Shipping Method B</label>
107
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
108
+ <sort_order>20</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ </headingB>
113
+ <activeB translate="label">
114
+ <label>Method B enabled</label>
115
+ <frontend_type>select</frontend_type>
116
+ <source_model>adminhtml/system_config_source_yesno</source_model>
117
+ <sort_order>21</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ </activeB>
122
+ <nameB translate="label">
123
+ <label>Method name B</label>
124
+ <frontend_type>text</frontend_type>
125
+ <sort_order>22</sort_order>
126
+ <show_in_default>1</show_in_default>
127
+ <show_in_website>1</show_in_website>
128
+ <show_in_store>1</show_in_store>
129
+ <depends>
130
+ <activeB>1</activeB>
131
+ </depends>
132
+ </nameB>
133
+ <priceB translate="label">
134
+ <label>Price B</label>
135
+ <frontend_type>text</frontend_type>
136
+ <sort_order>23</sort_order>
137
+ <show_in_default>1</show_in_default>
138
+ <show_in_website>1</show_in_website>
139
+ <show_in_store>1</show_in_store>
140
+ <depends>
141
+ <activeB>1</activeB>
142
+ </depends>
143
+ </priceB>
144
+ <allowfreeB translate="label">
145
+ <label>Allow free shipping for B</label>
146
+ <frontend_type>select</frontend_type>
147
+ <source_model>adminhtml/system_config_source_yesno</source_model>
148
+ <sort_order>24</sort_order>
149
+ <show_in_default>1</show_in_default>
150
+ <show_in_website>1</show_in_website>
151
+ <show_in_store>1</show_in_store>
152
+ <depends>
153
+ <activeB>1</activeB>
154
+ </depends>
155
+ </allowfreeB>
156
+ <free_shipping_subtotalB translate="label">
157
+ <label>Minimum order amount for free shipping B</label>
158
+ <frontend_type>text</frontend_type>
159
+ <sort_order>25</sort_order>
160
+ <show_in_default>1</show_in_default>
161
+ <show_in_website>1</show_in_website>
162
+ <show_in_store>1</show_in_store>
163
+ <depends>
164
+ <activeB>1</activeB>
165
+ </depends>
166
+ </free_shipping_subtotalB>
167
+
168
+ <headingC translate="label">
169
+ <label>Shipping Method C</label>
170
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
171
+ <sort_order>30</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>1</show_in_website>
174
+ <show_in_store>1</show_in_store>
175
+ </headingC>
176
+ <activeC translate="label">
177
+ <label>Method C enabled</label>
178
+ <frontend_type>select</frontend_type>
179
+ <source_model>adminhtml/system_config_source_yesno</source_model>
180
+ <sort_order>31</sort_order>
181
+ <show_in_default>1</show_in_default>
182
+ <show_in_website>1</show_in_website>
183
+ <show_in_store>1</show_in_store>
184
+ </activeC>
185
+ <nameC translate="label">
186
+ <label>Method name C</label>
187
+ <frontend_type>text</frontend_type>
188
+ <sort_order>32</sort_order>
189
+ <show_in_default>1</show_in_default>
190
+ <show_in_website>1</show_in_website>
191
+ <show_in_store>1</show_in_store>
192
+ <depends>
193
+ <activeC>1</activeC>
194
+ </depends>
195
+ </nameC>
196
+ <priceC translate="label">
197
+ <label>Price C</label>
198
+ <frontend_type>text</frontend_type>
199
+ <sort_order>33</sort_order>
200
+ <show_in_default>1</show_in_default>
201
+ <show_in_website>1</show_in_website>
202
+ <show_in_store>1</show_in_store>
203
+ <depends>
204
+ <activeC>1</activeC>
205
+ </depends>
206
+ </priceC>
207
+ <allowfreeC translate="label">
208
+ <label>Allow free shipping for C</label>
209
+ <frontend_type>select</frontend_type>
210
+ <source_model>adminhtml/system_config_source_yesno</source_model>
211
+ <sort_order>34</sort_order>
212
+ <show_in_default>1</show_in_default>
213
+ <show_in_website>1</show_in_website>
214
+ <show_in_store>1</show_in_store>
215
+ <depends>
216
+ <activeC>1</activeC>
217
+ </depends>
218
+ </allowfreeC>
219
+ <free_shipping_subtotalC translate="label">
220
+ <label>Minimum order amount for free shipping C</label>
221
+ <frontend_type>text</frontend_type>
222
+ <sort_order>35</sort_order>
223
+ <show_in_default>1</show_in_default>
224
+ <show_in_website>1</show_in_website>
225
+ <show_in_store>1</show_in_store>
226
+ <depends>
227
+ <activeC>1</activeC>
228
+ </depends>
229
+ </free_shipping_subtotalC>
230
+
231
+ <headingD translate="label">
232
+ <label>Shipping Method D</label>
233
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
234
+ <sort_order>40</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>1</show_in_website>
237
+ <show_in_store>1</show_in_store>
238
+ </headingD>
239
+ <activeD translate="label">
240
+ <label>Method D enabled</label>
241
+ <frontend_type>select</frontend_type>
242
+ <source_model>adminhtml/system_config_source_yesno</source_model>
243
+ <sort_order>41</sort_order>
244
+ <show_in_default>1</show_in_default>
245
+ <show_in_website>1</show_in_website>
246
+ <show_in_store>1</show_in_store>
247
+ </activeD>
248
+ <nameD translate="label">
249
+ <label>Method name D</label>
250
+ <frontend_type>text</frontend_type>
251
+ <sort_order>42</sort_order>
252
+ <show_in_default>1</show_in_default>
253
+ <show_in_website>1</show_in_website>
254
+ <show_in_store>1</show_in_store>
255
+ <depends>
256
+ <activeD>1</activeD>
257
+ </depends>
258
+ </nameD>
259
+ <priceD translate="label">
260
+ <label>Price D</label>
261
+ <frontend_type>text</frontend_type>
262
+ <sort_order>43</sort_order>
263
+ <show_in_default>1</show_in_default>
264
+ <show_in_website>1</show_in_website>
265
+ <show_in_store>1</show_in_store>
266
+ <depends>
267
+ <activeD>1</activeD>
268
+ </depends>
269
+ </priceD>
270
+ <allowfreeD translate="label">
271
+ <label>Allow free shipping for D</label>
272
+ <frontend_type>select</frontend_type>
273
+ <source_model>adminhtml/system_config_source_yesno</source_model>
274
+ <sort_order>44</sort_order>
275
+ <show_in_default>1</show_in_default>
276
+ <show_in_website>1</show_in_website>
277
+ <show_in_store>1</show_in_store>
278
+ <depends>
279
+ <activeD>1</activeD>
280
+ </depends>
281
+ </allowfreeD>
282
+ <free_shipping_subtotalD translate="label">
283
+ <label>Minimum order amount for free shipping D</label>
284
+ <frontend_type>text</frontend_type>
285
+ <sort_order>45</sort_order>
286
+ <show_in_default>1</show_in_default>
287
+ <show_in_website>1</show_in_website>
288
+ <show_in_store>1</show_in_store>
289
+ <depends>
290
+ <activeD>1</activeD>
291
+ </depends>
292
+ </free_shipping_subtotalD>
293
+
294
+ <headingE translate="label">
295
+ <label>Shipping Method E</label>
296
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
297
+ <sort_order>50</sort_order>
298
+ <show_in_default>1</show_in_default>
299
+ <show_in_website>1</show_in_website>
300
+ <show_in_store>1</show_in_store>
301
+ </headingE>
302
+ <activeE translate="label">
303
+ <label>Method E enabled</label>
304
+ <frontend_type>select</frontend_type>
305
+ <source_model>adminhtml/system_config_source_yesno</source_model>
306
+ <sort_order>51</sort_order>
307
+ <show_in_default>1</show_in_default>
308
+ <show_in_website>1</show_in_website>
309
+ <show_in_store>1</show_in_store>
310
+ </activeE>
311
+ <nameE translate="label">
312
+ <label>Method name E</label>
313
+ <frontend_type>text</frontend_type>
314
+ <sort_order>52</sort_order>
315
+ <show_in_default>1</show_in_default>
316
+ <show_in_website>1</show_in_website>
317
+ <show_in_store>1</show_in_store>
318
+ <depends>
319
+ <activeE>1</activeE>
320
+ </depends>
321
+ </nameE>
322
+ <priceE translate="label">
323
+ <label>Price E</label>
324
+ <frontend_type>text</frontend_type>
325
+ <sort_order>53</sort_order>
326
+ <show_in_default>1</show_in_default>
327
+ <show_in_website>1</show_in_website>
328
+ <show_in_store>1</show_in_store>
329
+ <depends>
330
+ <activeE>1</activeE>
331
+ </depends>
332
+ </priceE>
333
+ <allowfreeE translate="label">
334
+ <label>Allow free shipping for E</label>
335
+ <frontend_type>select</frontend_type>
336
+ <source_model>adminhtml/system_config_source_yesno</source_model>
337
+ <sort_order>54</sort_order>
338
+ <show_in_default>1</show_in_default>
339
+ <show_in_website>1</show_in_website>
340
+ <show_in_store>1</show_in_store>
341
+ <depends>
342
+ <activeE>1</activeE>
343
+ </depends>
344
+ </allowfreeE>
345
+ <free_shipping_subtotalE translate="label">
346
+ <label>Minimum order amount for free shipping E</label>
347
+ <frontend_type>text</frontend_type>
348
+ <sort_order>55</sort_order>
349
+ <show_in_default>1</show_in_default>
350
+ <show_in_website>1</show_in_website>
351
+ <show_in_store>1</show_in_store>
352
+ <depends>
353
+ <activeE>1</activeE>
354
+ </depends>
355
+ </free_shipping_subtotalE>
356
+
357
+ <headingF translate="label">
358
+ <label>Shipping Method F</label>
359
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
360
+ <sort_order>60</sort_order>
361
+ <show_in_default>1</show_in_default>
362
+ <show_in_website>1</show_in_website>
363
+ <show_in_store>1</show_in_store>
364
+ </headingF>
365
+ <activeF translate="label">
366
+ <label>Method F enabled</label>
367
+ <frontend_type>select</frontend_type>
368
+ <source_model>adminhtml/system_config_source_yesno</source_model>
369
+ <sort_order>61</sort_order>
370
+ <show_in_default>1</show_in_default>
371
+ <show_in_website>1</show_in_website>
372
+ <show_in_store>1</show_in_store>
373
+ </activeF>
374
+ <nameF translate="label">
375
+ <label>Method name F</label>
376
+ <frontend_type>text</frontend_type>
377
+ <sort_order>62</sort_order>
378
+ <show_in_default>1</show_in_default>
379
+ <show_in_website>1</show_in_website>
380
+ <show_in_store>1</show_in_store>
381
+ <depends>
382
+ <activeF>1</activeF>
383
+ </depends>
384
+ </nameF>
385
+ <priceF translate="label">
386
+ <label>Price F</label>
387
+ <frontend_type>text</frontend_type>
388
+ <sort_order>63</sort_order>
389
+ <show_in_default>1</show_in_default>
390
+ <show_in_website>1</show_in_website>
391
+ <show_in_store>1</show_in_store>
392
+ <depends>
393
+ <activeF>1</activeF>
394
+ </depends>
395
+ </priceF>
396
+ <allowfreeF translate="label">
397
+ <label>Allow free shipping for F</label>
398
+ <frontend_type>select</frontend_type>
399
+ <source_model>adminhtml/system_config_source_yesno</source_model>
400
+ <sort_order>64</sort_order>
401
+ <show_in_default>1</show_in_default>
402
+ <show_in_website>1</show_in_website>
403
+ <show_in_store>1</show_in_store>
404
+ <depends>
405
+ <activeF>1</activeF>
406
+ </depends>
407
+ </allowfreeF>
408
+ <free_shipping_subtotalF translate="label">
409
+ <label>Minimum order amount for free shipping F</label>
410
+ <frontend_type>text</frontend_type>
411
+ <sort_order>65</sort_order>
412
+ <show_in_default>1</show_in_default>
413
+ <show_in_website>1</show_in_website>
414
+ <show_in_store>1</show_in_store>
415
+ <depends>
416
+ <activeF>1</activeF>
417
+ </depends>
418
+ </free_shipping_subtotalF>
419
+
420
+ <headingG translate="label">
421
+ <label>Shipping Method G</label>
422
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
423
+ <sort_order>70</sort_order>
424
+ <show_in_default>1</show_in_default>
425
+ <show_in_website>1</show_in_website>
426
+ <show_in_store>1</show_in_store>
427
+ </headingG>
428
+ <activeG translate="label">
429
+ <label>Method G enabled</label>
430
+ <frontend_type>select</frontend_type>
431
+ <source_model>adminhtml/system_config_source_yesno</source_model>
432
+ <sort_order>71</sort_order>
433
+ <show_in_default>1</show_in_default>
434
+ <show_in_website>1</show_in_website>
435
+ <show_in_store>1</show_in_store>
436
+ </activeG>
437
+ <nameG translate="label">
438
+ <label>Method name G</label>
439
+ <frontend_type>text</frontend_type>
440
+ <sort_order>72</sort_order>
441
+ <show_in_default>1</show_in_default>
442
+ <show_in_website>1</show_in_website>
443
+ <show_in_store>1</show_in_store>
444
+ <depends>
445
+ <activeG>1</activeG>
446
+ </depends>
447
+ </nameG>
448
+ <priceG translate="label">
449
+ <label>Price G</label>
450
+ <frontend_type>text</frontend_type>
451
+ <sort_order>73</sort_order>
452
+ <show_in_default>1</show_in_default>
453
+ <show_in_website>1</show_in_website>
454
+ <show_in_store>1</show_in_store>
455
+ <depends>
456
+ <activeG>1</activeG>
457
+ </depends>
458
+ </priceG>
459
+ <allowfreeG translate="label">
460
+ <label>Allow free shipping for G</label>
461
+ <frontend_type>select</frontend_type>
462
+ <source_model>adminhtml/system_config_source_yesno</source_model>
463
+ <sort_order>74</sort_order>
464
+ <show_in_default>1</show_in_default>
465
+ <show_in_website>1</show_in_website>
466
+ <show_in_store>1</show_in_store>
467
+ <depends>
468
+ <activeG>1</activeG>
469
+ </depends>
470
+ </allowfreeG>
471
+ <free_shipping_subtotalG translate="label">
472
+ <label>Minimum order amount for free shipping G</label>
473
+ <frontend_type>text</frontend_type>
474
+ <sort_order>75</sort_order>
475
+ <show_in_default>1</show_in_default>
476
+ <show_in_website>1</show_in_website>
477
+ <show_in_store>1</show_in_store>
478
+ <depends>
479
+ <activeG>1</activeG>
480
+ </depends>
481
+ </free_shipping_subtotalG>
482
+
483
+ <headingH translate="label">
484
+ <label>Shipping Method H</label>
485
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
486
+ <sort_order>80</sort_order>
487
+ <show_in_default>1</show_in_default>
488
+ <show_in_website>1</show_in_website>
489
+ <show_in_store>1</show_in_store>
490
+ </headingH>
491
+ <activeH translate="label">
492
+ <label>Method H enabled</label>
493
+ <frontend_type>select</frontend_type>
494
+ <source_model>adminhtml/system_config_source_yesno</source_model>
495
+ <sort_order>81</sort_order>
496
+ <show_in_default>1</show_in_default>
497
+ <show_in_website>1</show_in_website>
498
+ <show_in_store>1</show_in_store>
499
+ </activeH>
500
+ <nameH translate="label">
501
+ <label>Method name H</label>
502
+ <frontend_type>text</frontend_type>
503
+ <sort_order>82</sort_order>
504
+ <show_in_default>1</show_in_default>
505
+ <show_in_website>1</show_in_website>
506
+ <show_in_store>1</show_in_store>
507
+ <depends>
508
+ <activeH>1</activeH>
509
+ </depends>
510
+ </nameH>
511
+ <priceH translate="label">
512
+ <label>Price H</label>
513
+ <frontend_type>text</frontend_type>
514
+ <sort_order>83</sort_order>
515
+ <show_in_default>1</show_in_default>
516
+ <show_in_website>1</show_in_website>
517
+ <show_in_store>1</show_in_store>
518
+ <depends>
519
+ <activeH>1</activeH>
520
+ </depends>
521
+ </priceH>
522
+ <allowfreeH translate="label">
523
+ <label>Allow free shipping for H</label>
524
+ <frontend_type>select</frontend_type>
525
+ <source_model>adminhtml/system_config_source_yesno</source_model>
526
+ <sort_order>84</sort_order>
527
+ <show_in_default>1</show_in_default>
528
+ <show_in_website>1</show_in_website>
529
+ <show_in_store>1</show_in_store>
530
+ <depends>
531
+ <activeH>1</activeH>
532
+ </depends>
533
+ </allowfreeH>
534
+ <free_shipping_subtotalH translate="label">
535
+ <label>Minimum order amount for free shipping H</label>
536
+ <frontend_type>text</frontend_type>
537
+ <sort_order>85</sort_order>
538
+ <show_in_default>1</show_in_default>
539
+ <show_in_website>1</show_in_website>
540
+ <show_in_store>1</show_in_store>
541
+ <depends>
542
+ <activeH>1</activeH>
543
+ </depends>
544
+ </free_shipping_subtotalH>
545
+
546
+ <headingI translate="label">
547
+ <label>Shipping Method I</label>
548
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
549
+ <sort_order>90</sort_order>
550
+ <show_in_default>1</show_in_default>
551
+ <show_in_website>1</show_in_website>
552
+ <show_in_store>1</show_in_store>
553
+ </headingI>
554
+ <activeI translate="label">
555
+ <label>Method I enabled</label>
556
+ <frontend_type>select</frontend_type>
557
+ <source_model>adminhtml/system_config_source_yesno</source_model>
558
+ <sort_order>91</sort_order>
559
+ <show_in_default>1</show_in_default>
560
+ <show_in_website>1</show_in_website>
561
+ <show_in_store>1</show_in_store>
562
+ </activeI>
563
+ <nameI translate="label">
564
+ <label>Method name I</label>
565
+ <frontend_type>text</frontend_type>
566
+ <sort_order>92</sort_order>
567
+ <show_in_default>1</show_in_default>
568
+ <show_in_website>1</show_in_website>
569
+ <show_in_store>1</show_in_store>
570
+ <depends>
571
+ <activeI>1</activeI>
572
+ </depends>
573
+ </nameI>
574
+ <priceI translate="label">
575
+ <label>Price I</label>
576
+ <frontend_type>text</frontend_type>
577
+ <sort_order>93</sort_order>
578
+ <show_in_default>1</show_in_default>
579
+ <show_in_website>1</show_in_website>
580
+ <show_in_store>1</show_in_store>
581
+ <depends>
582
+ <activeI>1</activeI>
583
+ </depends>
584
+ </priceI>
585
+ <allowfreeI translate="label">
586
+ <label>Allow free shipping for I</label>
587
+ <frontend_type>select</frontend_type>
588
+ <source_model>adminhtml/system_config_source_yesno</source_model>
589
+ <sort_order>94</sort_order>
590
+ <show_in_default>1</show_in_default>
591
+ <show_in_website>1</show_in_website>
592
+ <show_in_store>1</show_in_store>
593
+ <depends>
594
+ <activeI>1</activeI>
595
+ </depends>
596
+ </allowfreeI>
597
+ <free_shipping_subtotalI translate="label">
598
+ <label>Minimum order amount for free shipping I</label>
599
+ <frontend_type>text</frontend_type>
600
+ <sort_order>95</sort_order>
601
+ <show_in_default>1</show_in_default>
602
+ <show_in_website>1</show_in_website>
603
+ <show_in_store>1</show_in_store>
604
+ <depends>
605
+ <activeI>1</activeI>
606
+ </depends>
607
+ </free_shipping_subtotalI>
608
+
609
+ <headingJ translate="label">
610
+ <label>Shipping Method J</label>
611
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
612
+ <sort_order>100</sort_order>
613
+ <show_in_default>1</show_in_default>
614
+ <show_in_website>1</show_in_website>
615
+ <show_in_store>1</show_in_store>
616
+ </headingJ>
617
+ <activeJ translate="label">
618
+ <label>Method J enabled</label>
619
+ <frontend_type>select</frontend_type>
620
+ <source_model>adminhtml/system_config_source_yesno</source_model>
621
+ <sort_order>101</sort_order>
622
+ <show_in_default>1</show_in_default>
623
+ <show_in_website>1</show_in_website>
624
+ <show_in_store>1</show_in_store>
625
+ </activeJ>
626
+ <nameJ translate="label">
627
+ <label>Method name J</label>
628
+ <frontend_type>text</frontend_type>
629
+ <sort_order>102</sort_order>
630
+ <show_in_default>1</show_in_default>
631
+ <show_in_website>1</show_in_website>
632
+ <show_in_store>1</show_in_store>
633
+ <depends>
634
+ <activeJ>1</activeJ>
635
+ </depends>
636
+ </nameJ>
637
+ <priceJ translate="label">
638
+ <label>Price J</label>
639
+ <frontend_type>text</frontend_type>
640
+ <sort_order>103</sort_order>
641
+ <show_in_default>1</show_in_default>
642
+ <show_in_website>1</show_in_website>
643
+ <show_in_store>1</show_in_store>
644
+ <depends>
645
+ <activeJ>1</activeJ>
646
+ </depends>
647
+ </priceJ>
648
+ <allowfreeJ translate="label">
649
+ <label>Allow free shipping for J</label>
650
+ <frontend_type>select</frontend_type>
651
+ <source_model>adminhtml/system_config_source_yesno</source_model>
652
+ <sort_order>104</sort_order>
653
+ <show_in_default>1</show_in_default>
654
+ <show_in_website>1</show_in_website>
655
+ <show_in_store>1</show_in_store>
656
+ <depends>
657
+ <activeJ>1</activeJ>
658
+ </depends>
659
+ </allowfreeJ>
660
+ <free_shipping_subtotalJ translate="label">
661
+ <label>Minimum order amount for free shipping J</label>
662
+ <frontend_type>text</frontend_type>
663
+ <sort_order>105</sort_order>
664
+ <show_in_default>1</show_in_default>
665
+ <show_in_website>1</show_in_website>
666
+ <show_in_store>1</show_in_store>
667
+ <depends>
668
+ <activeJ>1</activeJ>
669
+ </depends>
670
+ </free_shipping_subtotalJ>
671
+
672
+ <heading_other translate="label">
673
+ <label>Other options</label>
674
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
675
+ <sort_order>200</sort_order>
676
+ <show_in_default>1</show_in_default>
677
+ <show_in_website>1</show_in_website>
678
+ <show_in_store>1</show_in_store>
679
+ </heading_other>
680
+ <sallowspecific translate="label">
681
+ <label>Ship to applicable countries</label>
682
+ <frontend_type>select</frontend_type>
683
+ <sort_order>201</sort_order>
684
+ <frontend_class>shipping-applicable-country</frontend_class>
685
+ <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
686
+ <show_in_default>1</show_in_default>
687
+ <show_in_website>1</show_in_website>
688
+ <show_in_store>1</show_in_store>
689
+ </sallowspecific>
690
+ <specificcountry translate="label">
691
+ <label>Ship to Specific countries</label>
692
+ <frontend_type>multiselect</frontend_type>
693
+ <sort_order>202</sort_order>
694
+ <source_model>adminhtml/system_config_source_country</source_model>
695
+ <show_in_default>1</show_in_default>
696
+ <show_in_website>1</show_in_website>
697
+ <show_in_store>1</show_in_store>
698
+ </specificcountry>
699
+ <showmethod translate="label">
700
+ <label>Show method if not applicable</label>
701
+ <frontend_type>select</frontend_type>
702
+ <sort_order>203</sort_order>
703
+ <source_model>adminhtml/system_config_source_yesno</source_model>
704
+ <show_in_default>1</show_in_default>
705
+ <show_in_website>1</show_in_website>
706
+ <show_in_store>1</show_in_store>
707
+ </showmethod>
708
+ <specificerrmsg translate="label">
709
+ <label>Displayed Error Message</label>
710
+ <frontend_type>textarea</frontend_type>
711
+ <sort_order>204</sort_order>
712
+ <show_in_default>1</show_in_default>
713
+ <show_in_website>1</show_in_website>
714
+ <show_in_store>1</show_in_store>
715
+ </specificerrmsg>
716
+
717
+ <image_premius translate="label">
718
+ <frontend_type>label</frontend_type>
719
+ <label>Banner</label>
720
+ <frontend_model>simpleshipping/adminhtml_system_config_fieldset_banner</frontend_model>
721
+ <sort_order>205</sort_order>
722
+ <show_in_default>1</show_in_default>
723
+ <show_in_website>1</show_in_website>
724
+ <show_in_store>1</show_in_store>
725
+ </image_premius>
726
+
727
+ </fields>
728
+ </simplecarrier>
729
+ </groups>
730
+ </carriers>
731
+ </sections>
732
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Premius_Simpleshipping</name>
4
+ <version>1.2.0</version>
5
+ <stability>stable</stability>
6
+ <license>OSL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Add up to 10 simple fixed price shipping methods.</summary>
10
+ <description>Premius Simpleshipping extension allows you to add up to 10 fixed price shipping methods to your Magento shopping cart. Easy to use and self-explanatory.</description>
11
+ <notes>First stable release</notes>
12
+ <authors><author><name>Artem Moroz</name><user>mavstuff</user><email>artem.moroz@gmail.com</email></author></authors>
13
+ <date>2013-06-28</date>
14
+ <time>22:20:45</time>
15
+ <contents><target name="magecommunity"><dir name="Premius"><dir name="Simpleshipping"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Banner.php" hash="aa5bf162c6a79d2d584af35ff43b55ec"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="960cafcbc18f3dc98ec19e299bb88576"/></dir><dir name="Model"><dir name="Shipping"><dir name="Carrier"><file name="Simplecarrier.php" hash="0c5a088a26ee10ee6ff5ab9790b18114"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="02058c4370f1cf5da91aaf2ecb234c10"/><file name="system.xml" hash="9ffb977230aa029f95ab0c009a0146ba"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Premius_Simpleshipping.xml" hash=""/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="premius"><file name="logo.png" hash="c960b09caed6af158c99e03400a97477"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>
skin/adminhtml/default/default/images/premius/logo.png ADDED
Binary file