コード例 #1
0
 /**
  * Check whether block is rendering after save payment
  *
  * @return bool
  */
 protected function _isAfterPaymentSave()
 {
     if ($this->_aitcheckoutIsEnabled()) {
         $quote = $this->_getCheckout()->getQuote();
         if ($quote->getPayment()->getMethod() == $this->_paymentMethodCode && $quote->getIsActive() && $this->getTemplate() && Mage::app()->getRequest()->getActionName() != 'saveOrder' && !Mage::registry('aitcheckout_paypal_review_block_rendering')) {
             return true;
         }
         return false;
     }
     return parent::_isAfterPaymentSave();
 }