Exemple #1
0
 protected function _toHtml()
 {
     if (Mage::helper('rewards')->isMultishipMode()) {
         return '';
     } else {
         return parent::_toHtml();
     }
 }
Exemple #2
0
 protected function _toHtml()
 {
     $dont_show_me = Mage::helper('rewards/config')->replaceGrandTotalWithPoints();
     if ($dont_show_me) {
         return '';
     } else {
         return parent::_toHtml();
     }
 }
Exemple #3
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 '';
 }