Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/2.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Jones committed Apr 11, 2013
2 parents c45d10c + 282e18b commit 283b3f0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@
class Meanbee_Royalmail_Model_Shipping_Carrier_Royalmail_Internationalsignedfor
extends Meanbee_Royalmail_Model_Shipping_Carrier_Royalmail_Airmail {

protected function getRates() {
$rates = parent::getRates();

if ($rates == null) {
return null;
}

for ($i = 0; $i < count($rates); $i++) {
$rates[$i]['cost'] += $this->_getExtraCharge();
}

return $rates;
}

protected function _getExtraCharge() {
return 5.30;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Meanbee/Royalmail/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<config>
<modules>
<Meanbee_Royalmail>
<version>2.5.2</version>
<version>2.5.3</version>
<depends>
<Mage_Shipping />
</depends>
Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<description>Automatically calculated Royal Mail delivery methods.</description>
<license>Open Software License v3.0 (OSL-3.0)</license>
<license_uri>http://www.opensource.org/licenses/osl-3.0.php</license_uri>
<version>2.5.2</version>
<version>2.5.3</version>
<stability>stable</stability>
<notes>* Updated world zone definitions and made international signed for a variant of airmail, not aisure</notes>
<notes>* Bug Fix: International Signed For was not calculated correctly.</notes>
<authors>
<name>
<name>Meanbee</name>
Expand Down

0 comments on commit 283b3f0

Please sign in to comment.