Skip to content

Instantly share code, notes, and snippets.

@Vinai
Created June 3, 2011 07:48
Show Gist options
  • Save Vinai/1006020 to your computer and use it in GitHub Desktop.
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
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