Skip to content

Commit

Permalink
Implement display_zero_fee correctly; fixed PHOENIX-MEDIA#21
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixDev - JJ committed Apr 11, 2018
1 parent 7ef3339 commit 22daa6e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public function initTotals()
{
$this->_prepareTotals();

if ($this->_totalObject && $this->_totalObject->getCodFee()) {
if (Mage::getStoreConfigFlag('payment/phoenix_cashondelivery/display_zero_fee')
|| ($this->_totalObject && $this->_totalObject->getCodFee() > 0)
) {
$label = $this->__('Cash on Delivery fee');
$value = $this->_totalObject->getCodFee();
$baseValue = $this->_totalObject->getBaseCodFee();
Expand Down Expand Up @@ -123,4 +125,4 @@ protected function _addTotalToParent($total, $after = null)

return $this;
}
}
}

0 comments on commit 22daa6e

Please sign in to comment.