Skip to content

Commit

Permalink
v. 3.7.3
Browse files Browse the repository at this point in the history
- Corrige problema no total das parcelas quando um desconto é dado por outro meio de pagamento (Fixes #248)
  • Loading branch information
r-martins committed Jan 11, 2019
1 parent 5cf60e9 commit 4095612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class RicardoMartins_PagSeguro_AjaxController extends Mage_Core_Controller_Front
*/
public function getGrandTotalAction()
{
$total = Mage::helper('checkout/cart')->getQuote()->getGrandTotal();
/** @var Mage_Sales_Model_Quote $quote */
$quote = Mage::helper('checkout/cart')->getQuote();
$quote->getPayment()->setMethod('rm_pagseguro_cc');
$quote->collectTotals();
$total = $quote->getGrandTotal();

$this->getResponse()->setHeader('Content-type', 'application/json', true);
$this->getResponse()->setBody(json_encode(array('total'=>$total)));
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/RicardoMartins/PagSeguro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<RicardoMartins_PagSeguro>
<version>3.7.2</version>
<version>3.7.3</version>
</RicardoMartins_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit 4095612

Please sign in to comment.