Created
June 3, 2011 07:48
-
-
Save Vinai/1006020 to your computer and use it in GitHub Desktop.
MCA-CE MCACE-22: Quotes with a Subtotal of 0.00 and a Shipping Method Cost > 0.00 can't be ordered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/code/core/Mage/Payment/Block/Form/Container.php b/app/code/core/Mage/Payment/Block/Form/Container.php | |
index 9b505bb..ca4b95b 100644 | |
--- a/app/code/core/Mage/Payment/Block/Form/Container.php | |
+++ b/app/code/core/Mage/Payment/Block/Form/Container.php | |
@@ -116,7 +116,7 @@ class Mage_Payment_Block_Form_Container extends Mage_Core_Block_Template | |
$quote = $this->getQuote(); | |
$store = $quote ? $quote->getStoreId() : null; | |
$methods = $this->helper('payment')->getStoreMethods($store, $quote); | |
- $total = $quote->getBaseSubtotal(); | |
+ $total = $quote->getBaseGrandTotal(); | |
foreach ($methods as $key => $method) { | |
if ($this->_canUseMethod($method) | |
&& ($total != 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment