Skip to content

Commit

Permalink
Merge pull request #34 from norgeindian/revert-33-patch-1
Browse files Browse the repository at this point in the history
Revert "Fixed country setting for shipping address"
  • Loading branch information
schmengler authored Dec 3, 2019
2 parents 1a73769 + 7f97760 commit eb0ac38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/code/community/IntegerNet/Autoshipping/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ public function prepareShippingAddress(Varien_Event_Observer $observer)
}

$shippingAddress = $quote->getShippingAddress();
if (!$shippingAddress->getCountryId()) {
$shippingAddress->setCountryId($country);
}

$shippingAddress->setCountryId($country);

if (!$shippingAddress->getFreeMethodWeight()) {
$shippingAddress->setFreeMethodWeight($shippingAddress->getWeight());
}
Expand Down

0 comments on commit eb0ac38

Please sign in to comment.