/** * Override block template * * @return string */ protected function _toHtml() { if ($this->_getCode() == "ratepay_rate") { $this->setTemplate('ratepay/checkout/installmentplan.phtml'); } return parent::_toHtml(); }
/** * Override block template * * @return string */ protected function _toHtml() { $status = Mage::getStoreConfig('ordercomment/ordercomment_group/ordercomment_enable'); if ($status == 1) { $this->setTemplate('ordercomment/checkout/agreements.phtml'); return parent::_toHtml(); } }
/** * Filter by "Agreement Type" * * @return mixed */ public function getAgreements() { $agreements = parent::getAgreements(); if ($this->_getCustomerSession()->isLoggedIn()) { $agreements->addFieldToFilter('agreement_type', array('in' => array(FireGento_GermanSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, FireGento_GermanSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH))); } else { $agreements->addFieldToFilter('agreement_type', array('in' => array(FireGento_GermanSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, FireGento_GermanSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, FireGento_GermanSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH))); } return $agreements; }
/** * Filter by "Agreement Type" * * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements|array */ public function getAgreements() { if (!$this->hasAgreements()) { if (!Mage::getStoreConfigFlag('checkout/options/enable_agreements')) { $agreements = array(); } else { $agreements = parent::getAgreements(); if ($this->_getCustomerSession()->isLoggedIn()) { $agreements->addFieldToFilter('agreement_type', array('in' => array(FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH))); } else { $agreements->addFieldToFilter('agreement_type', array('in' => array(FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH))); } } $this->setAgreements($agreements); } return $this->getData('agreements'); }
/** * Filter by "Agreement Type" * * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements */ public function getAgreements() { $agreements = parent::getAgreements(); $agreements->addFieldToFilter('agreement_type', array('in' => array(FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH))); return $agreements; }
/** * Override block template * * @return string */ protected function _toHtml() { $this->setTemplate('ordercomment/checkout/agreements.phtml'); return parent::_toHtml(); }
/** * Override block template * * @return string */ protected function _toHtml() { $this->setTemplate('todopagomodulodepago/checkout/agreements.phtml'); return parent::_toHtml(); }
public function _construct() { parent::_construct(); }