Version Notes
Added ability to specify charge as "per item" or "per order" for each shipping option.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Minerva_Shipping |
| Version | 1.3.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.1 to 1.3.0
app/code/community/Minerva/Shipping/Model/Carrier/Multiflat.php
CHANGED
|
@@ -21,12 +21,6 @@
|
|
| 21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 22 |
*/
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
class Minerva_Shipping_Model_Carrier_Multiflat extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface
|
| 31 |
{
|
| 32 |
protected $_code = 'msmultiflat';
|
|
@@ -49,7 +43,14 @@ class Minerva_Shipping_Model_Carrier_Multiflat extends Mage_Shipping_Model_Carri
|
|
| 49 |
|| ($packageValue >= $this->getConfigData('free_shipping_subtotal'));
|
| 50 |
for($i = 0; $i <= 10; $i++)
|
| 51 |
{
|
|
|
|
| 52 |
$shippingPrice = $this->getConfigData('price'.$i);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
$shippingName = $this->getConfigData('name'.$i);
|
| 54 |
if($shippingName != "")
|
| 55 |
{
|
|
@@ -79,4 +80,4 @@ class Minerva_Shipping_Model_Carrier_Multiflat extends Mage_Shipping_Model_Carri
|
|
| 79 |
return array('msmultiflat'=>$this->getConfigData('name'));
|
| 80 |
}
|
| 81 |
}
|
| 82 |
-
?>
|
| 21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 22 |
*/
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
class Minerva_Shipping_Model_Carrier_Multiflat extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface
|
| 25 |
{
|
| 26 |
protected $_code = 'msmultiflat';
|
| 43 |
|| ($packageValue >= $this->getConfigData('free_shipping_subtotal'));
|
| 44 |
for($i = 0; $i <= 10; $i++)
|
| 45 |
{
|
| 46 |
+
if ($this->getConfigData('type'.$i) == 'O') { // per order
|
| 47 |
$shippingPrice = $this->getConfigData('price'.$i);
|
| 48 |
+
} elseif ($this->getConfigData('type'.$i) == 'I') { // per item
|
| 49 |
+
$shippingPrice = ($request->getPackageQty() * $this->getConfigData('price'.$i)) - ($this->getFreeBoxes() * $this->getConfigData('price'.$i));
|
| 50 |
+
} else {
|
| 51 |
+
$shippingPrice = $this->getConfigData('price'.$i);
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
$shippingName = $this->getConfigData('name'.$i);
|
| 55 |
if($shippingName != "")
|
| 56 |
{
|
| 80 |
return array('msmultiflat'=>$this->getConfigData('name'));
|
| 81 |
}
|
| 82 |
}
|
| 83 |
+
?>
|
app/code/community/Minerva/Shipping/etc/config.xml
CHANGED
|
@@ -8,6 +8,7 @@
|
|
| 8 |
<model>Minerva_Shipping_Model_Carrier_Multiflat</model>
|
| 9 |
<name>Pickup at Event</name>
|
| 10 |
<title>No Charge</title>
|
|
|
|
| 11 |
<details>Enter pickup instructions here.</details>
|
| 12 |
<specificerrmsg>This shipping method is currently unavailable.
|
| 13 |
If you would like to ship using this shipping
|
| 8 |
<model>Minerva_Shipping_Model_Carrier_Multiflat</model>
|
| 9 |
<name>Pickup at Event</name>
|
| 10 |
<title>No Charge</title>
|
| 11 |
+
<type>I</type>
|
| 12 |
<details>Enter pickup instructions here.</details>
|
| 13 |
<specificerrmsg>This shipping method is currently unavailable.
|
| 14 |
If you would like to ship using this shipping
|
app/code/community/Minerva/Shipping/etc/system.xml
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
-
|
| 3 |
<!--
|
| 4 |
/**
|
| 5 |
* Magento Minerva Shipping Module
|
|
@@ -58,17 +57,16 @@
|
|
| 58 |
<show_in_website>1</show_in_website>
|
| 59 |
<show_in_store>1</show_in_store>
|
| 60 |
</title>
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
<label>Event / Method 1 >> </label>
|
| 64 |
<frontend_type>text</frontend_type>
|
| 65 |
-
|
| 66 |
<show_in_default>1</show_in_default>
|
| 67 |
<show_in_website>1</show_in_website>
|
| 68 |
<show_in_store>1</show_in_store>
|
| 69 |
-
</name1>
|
| 70 |
-
|
| 71 |
-
<label
|
| 72 |
<frontend_type>text</frontend_type>
|
| 73 |
<sort_order>5</sort_order>
|
| 74 |
<show_in_default>1</show_in_default>
|
|
@@ -83,18 +81,27 @@
|
|
| 83 |
<show_in_website>1</show_in_website>
|
| 84 |
<show_in_store>1</show_in_store>
|
| 85 |
</details1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
<name2 translate="label">
|
| 87 |
<label>Event / Method 2 >></label>
|
| 88 |
<frontend_type>text</frontend_type>
|
| 89 |
-
<sort_order>
|
| 90 |
<show_in_default>1</show_in_default>
|
| 91 |
<show_in_website>1</show_in_website>
|
| 92 |
<show_in_store>1</show_in_store>
|
| 93 |
</name2>
|
| 94 |
<price2 translate="label">
|
| 95 |
-
<label
|
| 96 |
<frontend_type>text</frontend_type>
|
| 97 |
-
<sort_order>
|
| 98 |
<show_in_default>1</show_in_default>
|
| 99 |
<show_in_website>1</show_in_website>
|
| 100 |
<show_in_store>1</show_in_store>
|
|
@@ -102,23 +109,32 @@
|
|
| 102 |
<details2 translate="label">
|
| 103 |
<label>• Details</label>
|
| 104 |
<frontend_type>textarea</frontend_type>
|
| 105 |
-
<sort_order>
|
| 106 |
<show_in_default>1</show_in_default>
|
| 107 |
<show_in_website>1</show_in_website>
|
| 108 |
<show_in_store>1</show_in_store>
|
| 109 |
</details2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
<name3 translate="label">
|
| 111 |
<label>Event / Method 3 >></label>
|
| 112 |
<frontend_type>text</frontend_type>
|
| 113 |
-
<sort_order>
|
| 114 |
<show_in_default>1</show_in_default>
|
| 115 |
<show_in_website>1</show_in_website>
|
| 116 |
<show_in_store>1</show_in_store>
|
| 117 |
</name3>
|
| 118 |
<price3 translate="label">
|
| 119 |
-
<label
|
| 120 |
<frontend_type>text</frontend_type>
|
| 121 |
-
<sort_order>
|
| 122 |
<show_in_default>1</show_in_default>
|
| 123 |
<show_in_website>1</show_in_website>
|
| 124 |
<show_in_store>1</show_in_store>
|
|
@@ -126,23 +142,32 @@
|
|
| 126 |
<details3 translate="label">
|
| 127 |
<label>• Details</label>
|
| 128 |
<frontend_type>textarea</frontend_type>
|
| 129 |
-
<sort_order>
|
| 130 |
<show_in_default>1</show_in_default>
|
| 131 |
<show_in_website>1</show_in_website>
|
| 132 |
<show_in_store>1</show_in_store>
|
| 133 |
</details3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
<name4 translate="label">
|
| 135 |
<label>Event / Method 4 >></label>
|
| 136 |
<frontend_type>text</frontend_type>
|
| 137 |
-
<sort_order>
|
| 138 |
<show_in_default>1</show_in_default>
|
| 139 |
<show_in_website>1</show_in_website>
|
| 140 |
<show_in_store>1</show_in_store>
|
| 141 |
</name4>
|
| 142 |
<price4 translate="label">
|
| 143 |
-
<label
|
| 144 |
<frontend_type>text</frontend_type>
|
| 145 |
-
<sort_order>
|
| 146 |
<show_in_default>1</show_in_default>
|
| 147 |
<show_in_website>1</show_in_website>
|
| 148 |
<show_in_store>1</show_in_store>
|
|
@@ -150,23 +175,32 @@
|
|
| 150 |
<details4 translate="label">
|
| 151 |
<label>• Details</label>
|
| 152 |
<frontend_type>textarea</frontend_type>
|
| 153 |
-
<sort_order>
|
| 154 |
<show_in_default>1</show_in_default>
|
| 155 |
<show_in_website>1</show_in_website>
|
| 156 |
<show_in_store>1</show_in_store>
|
| 157 |
</details4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
<name5 translate="label">
|
| 159 |
<label>Event / Method 5 >></label>
|
| 160 |
<frontend_type>text</frontend_type>
|
| 161 |
-
<sort_order>
|
| 162 |
<show_in_default>1</show_in_default>
|
| 163 |
<show_in_website>1</show_in_website>
|
| 164 |
<show_in_store>1</show_in_store>
|
| 165 |
</name5>
|
| 166 |
<price5 translate="label">
|
| 167 |
-
<label
|
| 168 |
<frontend_type>text</frontend_type>
|
| 169 |
-
<sort_order>
|
| 170 |
<show_in_default>1</show_in_default>
|
| 171 |
<show_in_website>1</show_in_website>
|
| 172 |
<show_in_store>1</show_in_store>
|
|
@@ -174,23 +208,32 @@
|
|
| 174 |
<details5 translate="label">
|
| 175 |
<label>• Details</label>
|
| 176 |
<frontend_type>textarea</frontend_type>
|
| 177 |
-
<sort_order>
|
| 178 |
<show_in_default>1</show_in_default>
|
| 179 |
<show_in_website>1</show_in_website>
|
| 180 |
<show_in_store>1</show_in_store>
|
| 181 |
</details5>
|
| 182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
<label>Event / Method 6 >></label>
|
| 184 |
<frontend_type>text</frontend_type>
|
| 185 |
-
<sort_order>
|
| 186 |
<show_in_default>1</show_in_default>
|
| 187 |
<show_in_website>1</show_in_website>
|
| 188 |
<show_in_store>1</show_in_store>
|
| 189 |
</name6>
|
| 190 |
<price6 translate="label">
|
| 191 |
-
<label
|
| 192 |
<frontend_type>text</frontend_type>
|
| 193 |
-
<sort_order>
|
| 194 |
<show_in_default>1</show_in_default>
|
| 195 |
<show_in_website>1</show_in_website>
|
| 196 |
<show_in_store>1</show_in_store>
|
|
@@ -198,23 +241,32 @@
|
|
| 198 |
<details6 translate="label">
|
| 199 |
<label>• Details</label>
|
| 200 |
<frontend_type>textarea</frontend_type>
|
| 201 |
-
<sort_order>
|
| 202 |
<show_in_default>1</show_in_default>
|
| 203 |
<show_in_website>1</show_in_website>
|
| 204 |
<show_in_store>1</show_in_store>
|
| 205 |
</details6>
|
| 206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
<label>Event / Method 7 >></label>
|
| 208 |
<frontend_type>text</frontend_type>
|
| 209 |
-
<sort_order>
|
| 210 |
<show_in_default>1</show_in_default>
|
| 211 |
<show_in_website>1</show_in_website>
|
| 212 |
<show_in_store>1</show_in_store>
|
| 213 |
</name7>
|
| 214 |
<price7 translate="label">
|
| 215 |
-
<label
|
| 216 |
<frontend_type>text</frontend_type>
|
| 217 |
-
<sort_order>
|
| 218 |
<show_in_default>1</show_in_default>
|
| 219 |
<show_in_website>1</show_in_website>
|
| 220 |
<show_in_store>1</show_in_store>
|
|
@@ -222,23 +274,32 @@
|
|
| 222 |
<details7 translate="label">
|
| 223 |
<label>• Details</label>
|
| 224 |
<frontend_type>textarea</frontend_type>
|
| 225 |
-
<sort_order>
|
| 226 |
<show_in_default>1</show_in_default>
|
| 227 |
<show_in_website>1</show_in_website>
|
| 228 |
<show_in_store>1</show_in_store>
|
| 229 |
</details7>
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
<label>Event / Method 8 >></label>
|
| 232 |
<frontend_type>text</frontend_type>
|
| 233 |
-
<sort_order>
|
| 234 |
<show_in_default>1</show_in_default>
|
| 235 |
<show_in_website>1</show_in_website>
|
| 236 |
<show_in_store>1</show_in_store>
|
| 237 |
</name8>
|
| 238 |
<price8 translate="label">
|
| 239 |
-
<label
|
| 240 |
<frontend_type>text</frontend_type>
|
| 241 |
-
<sort_order>
|
| 242 |
<show_in_default>1</show_in_default>
|
| 243 |
<show_in_website>1</show_in_website>
|
| 244 |
<show_in_store>1</show_in_store>
|
|
@@ -246,23 +307,32 @@
|
|
| 246 |
<details8 translate="label">
|
| 247 |
<label>• Details</label>
|
| 248 |
<frontend_type>textarea</frontend_type>
|
| 249 |
-
<sort_order>
|
| 250 |
<show_in_default>1</show_in_default>
|
| 251 |
<show_in_website>1</show_in_website>
|
| 252 |
<show_in_store>1</show_in_store>
|
| 253 |
</details8>
|
| 254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
<label>Event / Method 9 >></label>
|
| 256 |
<frontend_type>text</frontend_type>
|
| 257 |
-
<sort_order>
|
| 258 |
<show_in_default>1</show_in_default>
|
| 259 |
<show_in_website>1</show_in_website>
|
| 260 |
<show_in_store>1</show_in_store>
|
| 261 |
</name9>
|
| 262 |
<price9 translate="label">
|
| 263 |
-
<label
|
| 264 |
<frontend_type>text</frontend_type>
|
| 265 |
-
<sort_order>
|
| 266 |
<show_in_default>1</show_in_default>
|
| 267 |
<show_in_website>1</show_in_website>
|
| 268 |
<show_in_store>1</show_in_store>
|
|
@@ -270,23 +340,32 @@
|
|
| 270 |
<details9 translate="label">
|
| 271 |
<label>• Details</label>
|
| 272 |
<frontend_type>textarea</frontend_type>
|
| 273 |
-
<sort_order>
|
| 274 |
<show_in_default>1</show_in_default>
|
| 275 |
<show_in_website>1</show_in_website>
|
| 276 |
<show_in_store>1</show_in_store>
|
| 277 |
</details9>
|
| 278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
<label>Event / Method 10 >></label>
|
| 280 |
<frontend_type>text</frontend_type>
|
| 281 |
-
<sort_order>
|
| 282 |
<show_in_default>1</show_in_default>
|
| 283 |
<show_in_website>1</show_in_website>
|
| 284 |
<show_in_store>1</show_in_store>
|
| 285 |
</name10>
|
| 286 |
<price10 translate="label">
|
| 287 |
-
<label
|
| 288 |
<frontend_type>text</frontend_type>
|
| 289 |
-
<sort_order>
|
| 290 |
<show_in_default>1</show_in_default>
|
| 291 |
<show_in_website>1</show_in_website>
|
| 292 |
<show_in_store>1</show_in_store>
|
|
@@ -294,15 +373,24 @@
|
|
| 294 |
<details10 translate="label">
|
| 295 |
<label>• Details</label>
|
| 296 |
<frontend_type>textarea</frontend_type>
|
| 297 |
-
<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 |
</details10>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
<sallowspecific translate="label">
|
| 303 |
<label>Ship to applicable countries</label>
|
| 304 |
<frontend_type>select</frontend_type>
|
| 305 |
-
<sort_order>
|
| 306 |
<frontend_class>shipping-applicable-country</frontend_class>
|
| 307 |
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
| 308 |
<show_in_default>1</show_in_default>
|
| 1 |
<?xml version="1.0"?>
|
|
|
|
| 2 |
<!--
|
| 3 |
/**
|
| 4 |
* Magento Minerva Shipping Module
|
| 57 |
<show_in_website>1</show_in_website>
|
| 58 |
<show_in_store>1</show_in_store>
|
| 59 |
</title>
|
| 60 |
+
<name1 translate="label">
|
| 61 |
+
<label>Event / Method 1 >></label>
|
|
|
|
| 62 |
<frontend_type>text</frontend_type>
|
| 63 |
+
<sort_order>3</sort_order>
|
| 64 |
<show_in_default>1</show_in_default>
|
| 65 |
<show_in_website>1</show_in_website>
|
| 66 |
<show_in_store>1</show_in_store>
|
| 67 |
+
</name1>
|
| 68 |
+
<price1 translate="label">
|
| 69 |
+
<label>• Price (0.00)</label>
|
| 70 |
<frontend_type>text</frontend_type>
|
| 71 |
<sort_order>5</sort_order>
|
| 72 |
<show_in_default>1</show_in_default>
|
| 81 |
<show_in_website>1</show_in_website>
|
| 82 |
<show_in_store>1</show_in_store>
|
| 83 |
</details1>
|
| 84 |
+
<type1 translate="label">
|
| 85 |
+
<label>• Type</label>
|
| 86 |
+
<frontend_type>select</frontend_type>
|
| 87 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 88 |
+
<sort_order>7</sort_order>
|
| 89 |
+
<show_in_default>1</show_in_default>
|
| 90 |
+
<show_in_website>1</show_in_website>
|
| 91 |
+
<show_in_store>0</show_in_store>
|
| 92 |
+
</type1>
|
| 93 |
<name2 translate="label">
|
| 94 |
<label>Event / Method 2 >></label>
|
| 95 |
<frontend_type>text</frontend_type>
|
| 96 |
+
<sort_order>8</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 |
</name2>
|
| 101 |
<price2 translate="label">
|
| 102 |
+
<label>• Price (0.00)</label>
|
| 103 |
<frontend_type>text</frontend_type>
|
| 104 |
+
<sort_order>9</sort_order>
|
| 105 |
<show_in_default>1</show_in_default>
|
| 106 |
<show_in_website>1</show_in_website>
|
| 107 |
<show_in_store>1</show_in_store>
|
| 109 |
<details2 translate="label">
|
| 110 |
<label>• Details</label>
|
| 111 |
<frontend_type>textarea</frontend_type>
|
| 112 |
+
<sort_order>10</sort_order>
|
| 113 |
<show_in_default>1</show_in_default>
|
| 114 |
<show_in_website>1</show_in_website>
|
| 115 |
<show_in_store>1</show_in_store>
|
| 116 |
</details2>
|
| 117 |
+
<type2 translate="label">
|
| 118 |
+
<label>• Type</label>
|
| 119 |
+
<frontend_type>select</frontend_type>
|
| 120 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 121 |
+
<sort_order>11</sort_order>
|
| 122 |
+
<show_in_default>1</show_in_default>
|
| 123 |
+
<show_in_website>1</show_in_website>
|
| 124 |
+
<show_in_store>0</show_in_store>
|
| 125 |
+
</type2>
|
| 126 |
<name3 translate="label">
|
| 127 |
<label>Event / Method 3 >></label>
|
| 128 |
<frontend_type>text</frontend_type>
|
| 129 |
+
<sort_order>12</sort_order>
|
| 130 |
<show_in_default>1</show_in_default>
|
| 131 |
<show_in_website>1</show_in_website>
|
| 132 |
<show_in_store>1</show_in_store>
|
| 133 |
</name3>
|
| 134 |
<price3 translate="label">
|
| 135 |
+
<label>• Price (0.00)</label>
|
| 136 |
<frontend_type>text</frontend_type>
|
| 137 |
+
<sort_order>13</sort_order>
|
| 138 |
<show_in_default>1</show_in_default>
|
| 139 |
<show_in_website>1</show_in_website>
|
| 140 |
<show_in_store>1</show_in_store>
|
| 142 |
<details3 translate="label">
|
| 143 |
<label>• Details</label>
|
| 144 |
<frontend_type>textarea</frontend_type>
|
| 145 |
+
<sort_order>14</sort_order>
|
| 146 |
<show_in_default>1</show_in_default>
|
| 147 |
<show_in_website>1</show_in_website>
|
| 148 |
<show_in_store>1</show_in_store>
|
| 149 |
</details3>
|
| 150 |
+
<type3 translate="label">
|
| 151 |
+
<label>• Type</label>
|
| 152 |
+
<frontend_type>select</frontend_type>
|
| 153 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 154 |
+
<sort_order>15</sort_order>
|
| 155 |
+
<show_in_default>1</show_in_default>
|
| 156 |
+
<show_in_website>1</show_in_website>
|
| 157 |
+
<show_in_store>0</show_in_store>
|
| 158 |
+
</type3>
|
| 159 |
<name4 translate="label">
|
| 160 |
<label>Event / Method 4 >></label>
|
| 161 |
<frontend_type>text</frontend_type>
|
| 162 |
+
<sort_order>16</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 |
</name4>
|
| 167 |
<price4 translate="label">
|
| 168 |
+
<label>• Price (0.00)</label>
|
| 169 |
<frontend_type>text</frontend_type>
|
| 170 |
+
<sort_order>17</sort_order>
|
| 171 |
<show_in_default>1</show_in_default>
|
| 172 |
<show_in_website>1</show_in_website>
|
| 173 |
<show_in_store>1</show_in_store>
|
| 175 |
<details4 translate="label">
|
| 176 |
<label>• Details</label>
|
| 177 |
<frontend_type>textarea</frontend_type>
|
| 178 |
+
<sort_order>18</sort_order>
|
| 179 |
<show_in_default>1</show_in_default>
|
| 180 |
<show_in_website>1</show_in_website>
|
| 181 |
<show_in_store>1</show_in_store>
|
| 182 |
</details4>
|
| 183 |
+
<type4 translate="label">
|
| 184 |
+
<label>• Type</label>
|
| 185 |
+
<frontend_type>select</frontend_type>
|
| 186 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 187 |
+
<sort_order>19</sort_order>
|
| 188 |
+
<show_in_default>1</show_in_default>
|
| 189 |
+
<show_in_website>1</show_in_website>
|
| 190 |
+
<show_in_store>0</show_in_store>
|
| 191 |
+
</type4>
|
| 192 |
<name5 translate="label">
|
| 193 |
<label>Event / Method 5 >></label>
|
| 194 |
<frontend_type>text</frontend_type>
|
| 195 |
+
<sort_order>20</sort_order>
|
| 196 |
<show_in_default>1</show_in_default>
|
| 197 |
<show_in_website>1</show_in_website>
|
| 198 |
<show_in_store>1</show_in_store>
|
| 199 |
</name5>
|
| 200 |
<price5 translate="label">
|
| 201 |
+
<label>• Price (0.00)</label>
|
| 202 |
<frontend_type>text</frontend_type>
|
| 203 |
+
<sort_order>21</sort_order>
|
| 204 |
<show_in_default>1</show_in_default>
|
| 205 |
<show_in_website>1</show_in_website>
|
| 206 |
<show_in_store>1</show_in_store>
|
| 208 |
<details5 translate="label">
|
| 209 |
<label>• Details</label>
|
| 210 |
<frontend_type>textarea</frontend_type>
|
| 211 |
+
<sort_order>22</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 |
</details5>
|
| 216 |
+
<type5 translate="label">
|
| 217 |
+
<label>• Type</label>
|
| 218 |
+
<frontend_type>select</frontend_type>
|
| 219 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 220 |
+
<sort_order>23</sort_order>
|
| 221 |
+
<show_in_default>1</show_in_default>
|
| 222 |
+
<show_in_website>1</show_in_website>
|
| 223 |
+
<show_in_store>0</show_in_store>
|
| 224 |
+
</type5>
|
| 225 |
+
<name6 translate="label">
|
| 226 |
<label>Event / Method 6 >></label>
|
| 227 |
<frontend_type>text</frontend_type>
|
| 228 |
+
<sort_order>24</sort_order>
|
| 229 |
<show_in_default>1</show_in_default>
|
| 230 |
<show_in_website>1</show_in_website>
|
| 231 |
<show_in_store>1</show_in_store>
|
| 232 |
</name6>
|
| 233 |
<price6 translate="label">
|
| 234 |
+
<label>• Price (0.00)</label>
|
| 235 |
<frontend_type>text</frontend_type>
|
| 236 |
+
<sort_order>25</sort_order>
|
| 237 |
<show_in_default>1</show_in_default>
|
| 238 |
<show_in_website>1</show_in_website>
|
| 239 |
<show_in_store>1</show_in_store>
|
| 241 |
<details6 translate="label">
|
| 242 |
<label>• Details</label>
|
| 243 |
<frontend_type>textarea</frontend_type>
|
| 244 |
+
<sort_order>26</sort_order>
|
| 245 |
<show_in_default>1</show_in_default>
|
| 246 |
<show_in_website>1</show_in_website>
|
| 247 |
<show_in_store>1</show_in_store>
|
| 248 |
</details6>
|
| 249 |
+
<type6 translate="label">
|
| 250 |
+
<label>• Type</label>
|
| 251 |
+
<frontend_type>select</frontend_type>
|
| 252 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 253 |
+
<sort_order>27</sort_order>
|
| 254 |
+
<show_in_default>1</show_in_default>
|
| 255 |
+
<show_in_website>1</show_in_website>
|
| 256 |
+
<show_in_store>0</show_in_store>
|
| 257 |
+
</type6>
|
| 258 |
+
<name7 translate="label">
|
| 259 |
<label>Event / Method 7 >></label>
|
| 260 |
<frontend_type>text</frontend_type>
|
| 261 |
+
<sort_order>28</sort_order>
|
| 262 |
<show_in_default>1</show_in_default>
|
| 263 |
<show_in_website>1</show_in_website>
|
| 264 |
<show_in_store>1</show_in_store>
|
| 265 |
</name7>
|
| 266 |
<price7 translate="label">
|
| 267 |
+
<label>• Price (0.00)</label>
|
| 268 |
<frontend_type>text</frontend_type>
|
| 269 |
+
<sort_order>29</sort_order>
|
| 270 |
<show_in_default>1</show_in_default>
|
| 271 |
<show_in_website>1</show_in_website>
|
| 272 |
<show_in_store>1</show_in_store>
|
| 274 |
<details7 translate="label">
|
| 275 |
<label>• Details</label>
|
| 276 |
<frontend_type>textarea</frontend_type>
|
| 277 |
+
<sort_order>30</sort_order>
|
| 278 |
<show_in_default>1</show_in_default>
|
| 279 |
<show_in_website>1</show_in_website>
|
| 280 |
<show_in_store>1</show_in_store>
|
| 281 |
</details7>
|
| 282 |
+
<type7 translate="label">
|
| 283 |
+
<label>• Type</label>
|
| 284 |
+
<frontend_type>select</frontend_type>
|
| 285 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 286 |
+
<sort_order>31</sort_order>
|
| 287 |
+
<show_in_default>1</show_in_default>
|
| 288 |
+
<show_in_website>1</show_in_website>
|
| 289 |
+
<show_in_store>0</show_in_store>
|
| 290 |
+
</type7>
|
| 291 |
+
<name8 translate="label">
|
| 292 |
<label>Event / Method 8 >></label>
|
| 293 |
<frontend_type>text</frontend_type>
|
| 294 |
+
<sort_order>32</sort_order>
|
| 295 |
<show_in_default>1</show_in_default>
|
| 296 |
<show_in_website>1</show_in_website>
|
| 297 |
<show_in_store>1</show_in_store>
|
| 298 |
</name8>
|
| 299 |
<price8 translate="label">
|
| 300 |
+
<label>• Price (0.00)</label>
|
| 301 |
<frontend_type>text</frontend_type>
|
| 302 |
+
<sort_order>33</sort_order>
|
| 303 |
<show_in_default>1</show_in_default>
|
| 304 |
<show_in_website>1</show_in_website>
|
| 305 |
<show_in_store>1</show_in_store>
|
| 307 |
<details8 translate="label">
|
| 308 |
<label>• Details</label>
|
| 309 |
<frontend_type>textarea</frontend_type>
|
| 310 |
+
<sort_order>34</sort_order>
|
| 311 |
<show_in_default>1</show_in_default>
|
| 312 |
<show_in_website>1</show_in_website>
|
| 313 |
<show_in_store>1</show_in_store>
|
| 314 |
</details8>
|
| 315 |
+
<type8 translate="label">
|
| 316 |
+
<label>• Type</label>
|
| 317 |
+
<frontend_type>select</frontend_type>
|
| 318 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 319 |
+
<sort_order>35</sort_order>
|
| 320 |
+
<show_in_default>1</show_in_default>
|
| 321 |
+
<show_in_website>1</show_in_website>
|
| 322 |
+
<show_in_store>0</show_in_store>
|
| 323 |
+
</type8>
|
| 324 |
+
<name9 translate="label">
|
| 325 |
<label>Event / Method 9 >></label>
|
| 326 |
<frontend_type>text</frontend_type>
|
| 327 |
+
<sort_order>36</sort_order>
|
| 328 |
<show_in_default>1</show_in_default>
|
| 329 |
<show_in_website>1</show_in_website>
|
| 330 |
<show_in_store>1</show_in_store>
|
| 331 |
</name9>
|
| 332 |
<price9 translate="label">
|
| 333 |
+
<label>• Price (0.00)</label>
|
| 334 |
<frontend_type>text</frontend_type>
|
| 335 |
+
<sort_order>37</sort_order>
|
| 336 |
<show_in_default>1</show_in_default>
|
| 337 |
<show_in_website>1</show_in_website>
|
| 338 |
<show_in_store>1</show_in_store>
|
| 340 |
<details9 translate="label">
|
| 341 |
<label>• Details</label>
|
| 342 |
<frontend_type>textarea</frontend_type>
|
| 343 |
+
<sort_order>38</sort_order>
|
| 344 |
<show_in_default>1</show_in_default>
|
| 345 |
<show_in_website>1</show_in_website>
|
| 346 |
<show_in_store>1</show_in_store>
|
| 347 |
</details9>
|
| 348 |
+
<type9 translate="label">
|
| 349 |
+
<label>• Type</label>
|
| 350 |
+
<frontend_type>select</frontend_type>
|
| 351 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 352 |
+
<sort_order>39</sort_order>
|
| 353 |
+
<show_in_default>1</show_in_default>
|
| 354 |
+
<show_in_website>1</show_in_website>
|
| 355 |
+
<show_in_store>0</show_in_store>
|
| 356 |
+
</type9>
|
| 357 |
+
<name10 translate="label">
|
| 358 |
<label>Event / Method 10 >></label>
|
| 359 |
<frontend_type>text</frontend_type>
|
| 360 |
+
<sort_order>40</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 |
</name10>
|
| 365 |
<price10 translate="label">
|
| 366 |
+
<label>• Price (0.00)</label>
|
| 367 |
<frontend_type>text</frontend_type>
|
| 368 |
+
<sort_order>41</sort_order>
|
| 369 |
<show_in_default>1</show_in_default>
|
| 370 |
<show_in_website>1</show_in_website>
|
| 371 |
<show_in_store>1</show_in_store>
|
| 373 |
<details10 translate="label">
|
| 374 |
<label>• Details</label>
|
| 375 |
<frontend_type>textarea</frontend_type>
|
| 376 |
+
<sort_order>42</sort_order>
|
| 377 |
<show_in_default>1</show_in_default>
|
| 378 |
<show_in_website>1</show_in_website>
|
| 379 |
<show_in_store>1</show_in_store>
|
| 380 |
</details10>
|
| 381 |
+
<type10 translate="label">
|
| 382 |
+
<label>• Type</label>
|
| 383 |
+
<frontend_type>select</frontend_type>
|
| 384 |
+
<source_model>adminhtml/system_config_source_shipping_flatrate</source_model>
|
| 385 |
+
<sort_order>43</sort_order>
|
| 386 |
+
<show_in_default>1</show_in_default>
|
| 387 |
+
<show_in_website>1</show_in_website>
|
| 388 |
+
<show_in_store>0</show_in_store>
|
| 389 |
+
</type10>
|
| 390 |
<sallowspecific translate="label">
|
| 391 |
<label>Ship to applicable countries</label>
|
| 392 |
<frontend_type>select</frontend_type>
|
| 393 |
+
<sort_order>44</sort_order>
|
| 394 |
<frontend_class>shipping-applicable-country</frontend_class>
|
| 395 |
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
| 396 |
<show_in_default>1</show_in_default>
|
package.xml
CHANGED
|
@@ -1,17 +1,13 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Minerva_Shipping</name>
|
| 4 |
-
<version>1.
|
| 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>Adds the ability to enter pickup locations or multiple flatrates and displays method details.</summary>
|
| 10 |
-
<description>PLEASE NOTE:
|
| 11 |
-
|
| 12 |
-
As I have time I will extend the classes to hopefully make it not as version dependent; however, it relies heavily on template files.
|
| 13 |
-
|
| 14 |
-
The issues with invoicing and shipping have been resolved thanks to help from Shane at Collins Harper.
|
| 15 |
|
| 16 |
This extension is free to the community but I do work on it in my spare time so any donations are greatly appreciated - thank you in advance!
|
| 17 |
|
|
@@ -20,15 +16,17 @@ This extension is free to the community but I do work on it in my spare time so
|
|
| 20 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Attention Please</span>
|
| 21 |
• I try to check the forum for this extension regularly, but if I do not respond please PM me.
|
| 22 |
• Feel free to post any feature requests and I will work on them as time allows (see below).
|
| 23 |
-
• I have been really busy lately so have not been able to modify in awhile, but hope to do so again soon.
|
| 24 |
|
| 25 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Release Notes</span>
|
|
|
|
|
|
|
|
|
|
| 26 |
1.2.1 - Changes
|
| 27 |
• Extension displays descriptions again
|
| 28 |
|
| 29 |
1.2.0 - Changes
|
| 30 |
• Extension is now compatible with Magento 1.2.x
|
| 31 |
-
•
|
| 32 |
|
| 33 |
1.0.0 - Changes
|
| 34 |
• Extension is now compatible with Magento 1.1.6; previous versions will no longer be supported.
|
|
@@ -63,14 +61,15 @@ The class shipDetails is built into these two template files. The standard css t
|
|
| 63 |
• Disable the display of the cost if price field is left blank.
|
| 64 |
• The ability to show/hide the # of options you wish to use.
|
| 65 |
• Set min/max purchase limits for each option.
|
|
|
|
| 66 |
|
| 67 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Known Bugs</span>
|
| 68 |
• If you enter quotation marks in the Event/Method field the checkout will display an error message.</description>
|
| 69 |
-
<notes>
|
| 70 |
<authors><author><name>Sherrie Rohde</name><user>auto-converted</user><email>sherrie@minervapromotions.com</email></author><author><name>Robert Chambers</name><user>auto-converted</user><email>admin@robertchambers.co.uk</email></author><author><name>Shane Harper</name><user>auto-converted</user><email>shane@collinsharper.com</email></author></authors>
|
| 71 |
-
<date>2009-
|
| 72 |
-
<time>
|
| 73 |
-
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="minerva_default"><dir name="template"><dir name="checkout"><dir name="cart"><file name="shipping.phtml" hash="d6a52d117c45c01e7588075562f3a3f3"/></dir><dir name="onepage"><dir name="shipping_method"><file name="available.phtml" hash="72d57e80da895cf962461843608f131d"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Sales"><dir name="Model"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="5bf0e572af50b5af6ec8d033ac3ae651"/></dir></dir></dir></dir></dir><dir name="Minerva"><dir name="Sales"><dir name="Model"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="55207952d3db3f461551abe507379ac4"/></dir></dir></dir></dir><dir name="Shipping"><dir name="etc"><file name="config.xml" hash="
|
| 74 |
<compatible/>
|
| 75 |
<dependencies/>
|
| 76 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Minerva_Shipping</name>
|
| 4 |
+
<version>1.3.0</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>Adds the ability to enter pickup locations or multiple flatrates and displays method details.</summary>
|
| 10 |
+
<description>PLEASE NOTE: YOU WILL NEED TO INSTALL THE TEMPLATE FILES INCLUDED OR MODIFY YOURS IN ORDER FOR THE DETAILS TO DISPLAY. SEE BELOW INSTRUCTIONS FOR FURTHER INFORMATION.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
This extension is free to the community but I do work on it in my spare time so any donations are greatly appreciated - thank you in advance!
|
| 13 |
|
| 16 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Attention Please</span>
|
| 17 |
• I try to check the forum for this extension regularly, but if I do not respond please PM me.
|
| 18 |
• Feel free to post any feature requests and I will work on them as time allows (see below).
|
|
|
|
| 19 |
|
| 20 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Release Notes</span>
|
| 21 |
+
1.3.0 - Changes
|
| 22 |
+
• Extension now allows you to specify charge as "per order" or "per item" for each option.
|
| 23 |
+
|
| 24 |
1.2.1 - Changes
|
| 25 |
• Extension displays descriptions again
|
| 26 |
|
| 27 |
1.2.0 - Changes
|
| 28 |
• Extension is now compatible with Magento 1.2.x
|
| 29 |
+
• The issues with invoicing and shipping caused by the 1.1 transition have been resolved thanks to help from Shane at Collins Harper.
|
| 30 |
|
| 31 |
1.0.0 - Changes
|
| 32 |
• Extension is now compatible with Magento 1.1.6; previous versions will no longer be supported.
|
| 61 |
• Disable the display of the cost if price field is left blank.
|
| 62 |
• The ability to show/hide the # of options you wish to use.
|
| 63 |
• Set min/max purchase limits for each option.
|
| 64 |
+
• Extend classes on remaining files to eliminate most version dependency.
|
| 65 |
|
| 66 |
<span style="display: block; background-color: #ccc; padding: 2px 6px; font-weight: bold;">Known Bugs</span>
|
| 67 |
• If you enter quotation marks in the Event/Method field the checkout will display an error message.</description>
|
| 68 |
+
<notes>Added ability to specify charge as "per item" or "per order" for each shipping option.</notes>
|
| 69 |
<authors><author><name>Sherrie Rohde</name><user>auto-converted</user><email>sherrie@minervapromotions.com</email></author><author><name>Robert Chambers</name><user>auto-converted</user><email>admin@robertchambers.co.uk</email></author><author><name>Shane Harper</name><user>auto-converted</user><email>shane@collinsharper.com</email></author></authors>
|
| 70 |
+
<date>2009-05-07</date>
|
| 71 |
+
<time>14:24:31</time>
|
| 72 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="minerva_default"><dir name="template"><dir name="checkout"><dir name="cart"><file name="shipping.phtml" hash="d6a52d117c45c01e7588075562f3a3f3"/></dir><dir name="onepage"><dir name="shipping_method"><file name="available.phtml" hash="72d57e80da895cf962461843608f131d"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mage"><dir name="Sales"><dir name="Model"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="5bf0e572af50b5af6ec8d033ac3ae651"/></dir></dir></dir></dir></dir><dir name="Minerva"><dir name="Sales"><dir name="Model"><dir name="Quote"><dir name="Address"><file name="Rate.php" hash="55207952d3db3f461551abe507379ac4"/></dir></dir></dir></dir><dir name="Shipping"><dir name="etc"><file name="config.xml" hash="9638bb72a1b81c667da58291617a0e55"/><file name="system.xml" hash="62278320ff3569f0a240e8098ec9e6b5"/></dir><dir name="Model"><dir name="Carrier"><file name="Multiflat.php" hash="1b966960b289c607277c8ce785347c8c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Minerva_Shipping.xml" hash="8d480a535a58a0035fe0c964077a1a97"/></dir></target></contents>
|
| 73 |
<compatible/>
|
| 74 |
<dependencies/>
|
| 75 |
</package>
|
