Merge pull request #72 from vovayatsyuk/patch-1

Third-party checkout extensions compatibility
This commit is contained in:
Joshua Estes 2014-10-14 05:07:51 -04:00
commit 075e6f1154
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class Bitpay_Bitcoins_Block_Iframe extends Mage_Checkout_Block_Onepage_Payment
// @todo refactor this
if (!($quote = Mage::getSingleton('checkout/session')->getQuote())
or !($payment = $quote->getPayment())
or !$payment->getMethod()
or !($instance = $payment->getMethodInstance())
or ($instance->getCode() != 'Bitcoins'))
{