Public Member Functions | |
isAvailable ($quote=null) | |
Protected Attributes | |
$_code = 'free' |
Definition at line 35 of file Free.php.
isAvailable | ( | $ | quote = null |
) |
Return true if the method can be used at this time
Reimplemented from Mage_Payment_Model_Method_Abstract.
Definition at line 39 of file Free.php.
00040 { 00041 if (is_null($quote)) { 00042 return false; 00043 } 00044 00045 if (Mage::app()->getStore()->roundPrice($quote->getGrandTotal()) == 0) { 00046 return true; 00047 } 00048 return false; 00049 }
$_code = 'free' [protected] |