Skip to content

Commit

Permalink
disabled signed delivery for Australia on retail only
Browse files Browse the repository at this point in the history
  • Loading branch information
joolswills committed Aug 11, 2016
1 parent e8c6713 commit 21137b2
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public function collectRates(Mage_Shipping_Model_Rate_Request $request)
unset($calculatedMethods[$key]);
}

// no signed delivery to Australia, USA and New Zealand
if (in_array($country, array('AU','US', 'NZ')) &&
// no signed delivery to USA and New Zealand
if (in_array($country, array('US', 'NZ')) &&
strpos($value->shippingMethodName, "TRACKED") === false &&
strpos($value->shippingMethodName, "SIGNED") !== false) {
unset($calculatedMethods[$key]);
Expand All @@ -150,6 +150,13 @@ public function collectRates(Mage_Shipping_Model_Rate_Request $request)
unset($calculatedMethods[$key]);
}

// no signed delivery to Australia
if (in_array($country, array('AU')) &&
strpos($value->shippingMethodName, "TRACKED") === false &&
strpos($value->shippingMethodName, "SIGNED") !== false) {
unset($calculatedMethods[$key]);
}

// only allow international standard to certain countries
if (! in_array($country, array('AU', 'AR', 'CA', 'IL', 'RE', 'US', 'ZA')) &&
strpos($value->shippingMethodName, "STANDARD") !== false) {
Expand Down

0 comments on commit 21137b2

Please sign in to comment.