Пример #1
0
 protected function _construct()
 {
     if (Mage::getStoreConfig('amrules/general/breakdown')) {
         $this->_template = 'amrules/checkout/discount.phtml';
     }
     parent::_construct();
 }
Пример #2
0
 protected function _toHtml()
 {
     if (Mage::helper('rewards')->isMultishipMode()) {
         return '';
     } else {
         return parent::_toHtml();
     }
 }
Пример #3
0
 protected function _toHtml()
 {
     $dont_show_me = Mage::helper('rewards/config')->replaceGrandTotalWithPoints();
     if ($dont_show_me) {
         return '';
     } else {
         return parent::_toHtml();
     }
 }
Пример #4
0
 /**
  * Import total data into the block, if there are items
  *
  * @return string
  */
 protected function _toHtml()
 {
     $total = $this->getTotal();
     $items = $total->getItems();
     if ($items) {
         foreach ($total->getData() as $key => $value) {
             $this->setData("total_{$key}", $value);
         }
         return parent::_toHtml();
     }
     return '';
 }
Пример #5
0
 /**
  * initialize taxConfig model
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_taxConfig = Mage::getModel('adyen_fee/tax_config');
 }
 protected function _construct()
 {
     parent::_construct();
     $this->_checkoutHelper = Mage::helper('checkout');
 }