Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

GrandTotal in “isAvailable” function
 
yugyn_lonewolf
Sr. Member
 
Total Posts:  108
Joined:  2008-05-31
 

Hi,

i have a new payment method and i need to know the GrandTotal into isAvailable function.

This is the code:

class Mage_MyModule_Model_MyModule extends Mage_Payment_Model_Method_Abstract {

protected $_code = ‘mymodule’;
...
... 
public function isAvailable($quote=null) {

$grand_total = ????????????

How can i do?
Thanks if you can help me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

try $quote->getGrandTotal();

cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
yugyn_lonewolf
Sr. Member
 
Total Posts:  108
Joined:  2008-05-31
 

It’s ok!!!

Thank you very much Stefan!!!

Best reagrds…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top