Version Notes
No Problems
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | HEM_Simpleshipping |
| Version | 1.0.0 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.1 to 1.0.0
app/code/community/HEM/Simpleshipping/Model/Simpleshipping.php
CHANGED
|
@@ -24,10 +24,9 @@
|
|
| 24 |
*/
|
| 25 |
class HEM_Simpleshipping_Model_Simpleshipping extends Mage_Core_Model_Abstract
|
| 26 |
{
|
| 27 |
-
const
|
| 28 |
-
const
|
| 29 |
-
const
|
| 30 |
-
const _field_DESCRIPTION = 3;
|
| 31 |
|
| 32 |
/**
|
| 33 |
* return simple shipping table rates
|
|
@@ -44,19 +43,13 @@ class HEM_Simpleshipping_Model_Simpleshipping extends Mage_Core_Model_Abstract
|
|
| 44 |
$method = trim($method);
|
| 45 |
$method = explode('|', $method);
|
| 46 |
|
| 47 |
-
$sortOrder = trim($method[self::_field_SORT_ORDER]);
|
| 48 |
$code = trim($method[self::_field_CODE]);
|
| 49 |
$price = trim($method[self::_field_PRICE]);
|
| 50 |
$title = trim($method[self::_field_DESCRIPTION]);
|
| 51 |
|
| 52 |
$title = str_replace(array('=>', '<='), array('<strong>', '</strong>'), $title);
|
| 53 |
|
| 54 |
-
|
| 55 |
-
while(isset($rate[$sortOrder]['code'])) {
|
| 56 |
-
$sortOrder++;
|
| 57 |
-
}
|
| 58 |
-
|
| 59 |
-
$rates[$sortOrder] = array(
|
| 60 |
'code' => $code,
|
| 61 |
'title' => $title,
|
| 62 |
'price' => $price,
|
| 24 |
*/
|
| 25 |
class HEM_Simpleshipping_Model_Simpleshipping extends Mage_Core_Model_Abstract
|
| 26 |
{
|
| 27 |
+
const _field_CODE = 0;
|
| 28 |
+
const _field_PRICE = 1;
|
| 29 |
+
const _field_DESCRIPTION = 2;
|
|
|
|
| 30 |
|
| 31 |
/**
|
| 32 |
* return simple shipping table rates
|
| 43 |
$method = trim($method);
|
| 44 |
$method = explode('|', $method);
|
| 45 |
|
|
|
|
| 46 |
$code = trim($method[self::_field_CODE]);
|
| 47 |
$price = trim($method[self::_field_PRICE]);
|
| 48 |
$title = trim($method[self::_field_DESCRIPTION]);
|
| 49 |
|
| 50 |
$title = str_replace(array('=>', '<='), array('<strong>', '</strong>'), $title);
|
| 51 |
|
| 52 |
+
$rates[] = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
'code' => $code,
|
| 54 |
'title' => $title,
|
| 55 |
'price' => $price,
|
app/code/community/HEM/Simpleshipping/etc/system.xml
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
-
|
| 3 |
<!--
|
| 4 |
/**
|
| 5 |
* Magento
|
|
@@ -16,7 +15,6 @@
|
|
| 16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
-
|
| 20 |
<config>
|
| 21 |
<sections>
|
| 22 |
<carriers translate="label" module="shipping">
|
|
@@ -55,7 +53,7 @@
|
|
| 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 |
-
<comment>format:
|
| 59 |
</shippingconf>
|
| 60 |
|
| 61 |
<sort_order translate="label">
|
| 1 |
<?xml version="1.0"?>
|
|
|
|
| 2 |
<!--
|
| 3 |
/**
|
| 4 |
* Magento
|
| 15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
-->
|
|
|
|
| 18 |
<config>
|
| 19 |
<sections>
|
| 20 |
<carriers translate="label" module="shipping">
|
| 53 |
<show_in_default>1</show_in_default>
|
| 54 |
<show_in_website>1</show_in_website>
|
| 55 |
<show_in_store>1</show_in_store>
|
| 56 |
+
<comment>format: code|price|description - use =>text<= to output bold text, set price to 0 to hide</comment>
|
| 57 |
</shippingconf>
|
| 58 |
|
| 59 |
<sort_order translate="label">
|
app/etc/modules/HEM_Simpleshipping.xml
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
<modules>
|
| 3 |
<HEM_Simpleshipping>
|
| 4 |
<active>true</active>
|
| 5 |
<codePool>local</codePool>
|
| 6 |
</HEM_Simpleshipping>
|
| 7 |
</modules>
|
|
|
|
| 8 |
<modules>
|
| 9 |
<HEM_Simpleshipping>
|
| 10 |
<active>true</active>
|
| 11 |
<codePool>community</codePool>
|
| 12 |
</HEM_Simpleshipping>
|
| 13 |
</modules>
|
|
|
|
| 1 |
<modules>
|
| 2 |
<HEM_Simpleshipping>
|
| 3 |
<active>true</active>
|
| 4 |
<codePool>local</codePool>
|
| 5 |
</HEM_Simpleshipping>
|
| 6 |
</modules>
|
| 7 |
+
<?xml version="1.0"?>
|
| 8 |
<modules>
|
| 9 |
<HEM_Simpleshipping>
|
| 10 |
<active>true</active>
|
| 11 |
<codePool>community</codePool>
|
| 12 |
</HEM_Simpleshipping>
|
| 13 |
</modules>
|
app/locale/de_DE/HEM_Simpleshipping.csv
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"Enabled","Aktiviert"
|
| 2 |
"Method name","Name der Versandart"
|
| 3 |
"Shipping configuration","Versandarten konfigurieren"
|
| 4 |
-
"format:
|
| 5 |
"Sort order","Reihenfolge"
|
| 1 |
"Enabled","Aktiviert"
|
| 2 |
"Method name","Name der Versandart"
|
| 3 |
"Shipping configuration","Versandarten konfigurieren"
|
| 4 |
+
"format: code|price|description - use =>text<= to output bold text, set price to 0 to hide","Format: Code|Preis|Beschreibung - =>test<= zeigt den Text fett an"
|
| 5 |
"Sort order","Reihenfolge"
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>HEM_Simpleshipping</name>
|
| 4 |
-
<version>0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -13,17 +13,16 @@ You can easily define a list of carriers that will be displayed in the shipping-
|
|
| 13 |
This Extension is particularly useful to add some shipping options to your shop which can have a fixed price (i.e. no weight calculation). F.e. cash on delivery or pickup.
|
| 14 |

|
| 15 |
CSV columns:
|
| 16 |
-
|
| 17 |

|
| 18 |
-
sort order: for sorting in frontend
|
| 19 |
code: shipping_method (getShippingMethod), e.g. simpleshipping_pickup
|
| 20 |
price: price for this shipping method
|
| 21 |
description: text that will show in storefront</description>
|
| 22 |
<notes>No Problems</notes>
|
| 23 |
<authors><author><name>Hucke EDV</name><user>auto-converted</user><email>magento@hucke.net</email></author><author><name>Bastian Ike</name><user>auto-converted</user><email>b-ike@b-ike.de</email></author></authors>
|
| 24 |
-
<date>2011-03-
|
| 25 |
-
<time>
|
| 26 |
-
<contents><target name="mageetc"><dir name="modules"><file name="HEM_Simpleshipping.xml" hash="
|
| 27 |
<compatible/>
|
| 28 |
<dependencies/>
|
| 29 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>HEM_Simpleshipping</name>
|
| 4 |
+
<version>1.0.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
| 7 |
<channel>community</channel>
|
| 13 |
This Extension is particularly useful to add some shipping options to your shop which can have a fixed price (i.e. no weight calculation). F.e. cash on delivery or pickup.
|
| 14 |

|
| 15 |
CSV columns:
|
| 16 |
+
code|price|description
|
| 17 |

|
|
|
|
| 18 |
code: shipping_method (getShippingMethod), e.g. simpleshipping_pickup
|
| 19 |
price: price for this shipping method
|
| 20 |
description: text that will show in storefront</description>
|
| 21 |
<notes>No Problems</notes>
|
| 22 |
<authors><author><name>Hucke EDV</name><user>auto-converted</user><email>magento@hucke.net</email></author><author><name>Bastian Ike</name><user>auto-converted</user><email>b-ike@b-ike.de</email></author></authors>
|
| 23 |
+
<date>2011-03-30</date>
|
| 24 |
+
<time>09:09:23</time>
|
| 25 |
+
<contents><target name="mageetc"><dir name="modules"><file name="HEM_Simpleshipping.xml" hash="ad6ab6598044d1a263078598cc5a7b96"/></dir></target><target name="magecommunity"><dir name="HEM"><dir name="Simpleshipping"><dir name="Helper"><file name="Data.php" hash="d053ebd30042512be08a35a244258c7a"/></dir><dir name="Model"><dir name="Carrier"><file name="Simpleshipping.php" hash="3f0f37e3906bb452229f6b9e9ea2307d"/></dir><file name="Simpleshipping.php" hash="2f1559d8bb9d203e1e30a6305c23f2da"/></dir><dir name="etc"><file name="config.xml" hash="98eea019ceeeedbc9145b6d233b5cede"/><file name="system.xml" hash="544a5a080b1f94fa2ece9755b009a1d5"/></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="HEM_Simpleshipping.csv" hash="a88bae75713bd474a5de70bb4ad3d2fd"/></dir></target></contents>
|
| 26 |
<compatible/>
|
| 27 |
<dependencies/>
|
| 28 |
</package>
|
