Skip to content

Commit

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

$shippingAddress = $quote->getShippingAddress();
$shippingAddress->setCountryId($country);

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

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

0 comments on commit 1a73769

Please sign in to comment.