protected function _construct() { if (Mage::getStoreConfig('amrules/general/breakdown')) { $this->_template = 'amrules/checkout/discount.phtml'; } parent::_construct(); }
protected function _toHtml() { if (Mage::helper('rewards')->isMultishipMode()) { return ''; } else { return parent::_toHtml(); } }
protected function _toHtml() { $dont_show_me = Mage::helper('rewards/config')->replaceGrandTotalWithPoints(); if ($dont_show_me) { return ''; } else { return parent::_toHtml(); } }
/** * 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 ''; }
/** * 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'); }