Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
restore getAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatsuoka committed Apr 27, 2018
1 parent ba32933 commit 3b0ddeb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/MercadoPago/Core/Model/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,7 @@ public function getAmount($quote = null)
$quote = $this->_getQuote();
}

//get grant total
$total = $quote->getGrandTotal();

//if not exist calculate
if(! $total ){
$total = $quote->getBaseSubtotalWithDiscount() + $quote->getShippingAddress()->getShippingAmount() + $quote->getShippingAddress()->getBaseTaxAmount();
}
$total = $quote->getBaseSubtotalWithDiscount() + $quote->getShippingAddress()->getShippingAmount() + $quote->getShippingAddress()->getBaseTaxAmount();

return (float) $total;

Expand Down

0 comments on commit 3b0ddeb

Please sign in to comment.