Skip to content

Commit

Permalink
Resolve PHOENIX-MEDIA#13: Disable CoD for virtual quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixDev - JJ committed Apr 11, 2018
1 parent 85a7fc3 commit 1f66cac
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,14 @@ public function getAddressCodTaxAmount(Mage_Customer_Model_Address_Abstract $add
*/
public function isAvailable($quote = null)
{
if ($quote->isVirtual()) {
return false;
}

if (!parent::isAvailable($quote)) {
return false;
}

if (!is_null($quote)) {
if ($this->getConfigData('shippingallowspecific', $quote->getStoreId()) == 1) {
$country = $quote->getShippingAddress()->getCountry();
Expand Down

0 comments on commit 1f66cac

Please sign in to comment.