コード例 #1
0
 /**
  * Override block template
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_getCode() == "ratepay_rate") {
         $this->setTemplate('ratepay/checkout/installmentplan.phtml');
     }
     return parent::_toHtml();
 }
コード例 #2
0
 /**
  * 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();
     }
 }
コード例 #3
0
 /**
  * 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;
 }
コード例 #4
0
 /**
  * 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');
 }
コード例 #5
0
 /**
  * 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;
 }
コード例 #6
0
 /**
  * Override block template
  *
  * @return  string
  */
 protected function _toHtml()
 {
     $this->setTemplate('ordercomment/checkout/agreements.phtml');
     return parent::_toHtml();
 }
コード例 #7
0
 /**
  * Override block template
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setTemplate('todopagomodulodepago/checkout/agreements.phtml');
     return parent::_toHtml();
 }
コード例 #8
0
 public function _construct()
 {
     parent::_construct();
 }