Skip to content

Commit

Permalink
Update latest version to output proper totals
Browse files Browse the repository at this point in the history
  • Loading branch information
jayelkaake committed May 11, 2019
1 parent 437cc02 commit 732b577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app/code/community/Fera/Ai/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,16 @@ public function getCartJson()
$quote = Mage::getSingleton('checkout/session')->getQuote();
$data = [
'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
'total' => $quote->getTotal(),
'total' => $quote->getSubtotal(),
'grand_total' => $quote->getGrandTotal()
];

$data['items'] = $this->serializeQuoteItems($quote->getItemsCollection());

return json_encode($data);
}


/**
* @return string - JS to trigger debug mode if required.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/app/code/community/Fera/Ai/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Fera_Ai>
<version>1.1.5</version>
<version>1.1.6</version>
</Fera_Ai>
</modules>
<global>
Expand Down

0 comments on commit 732b577

Please sign in to comment.